Added support for tablet events

This commit is contained in:
Andrea Bernabei bernabei 2008-04-22 14:54:39 +00:00
parent 4b0c47b2bd
commit 9fdbcb95d4
3 changed files with 18 additions and 1 deletions

View File

@ -24,6 +24,9 @@
History
$Log$
Revision 1.142 2008/04/22 14:54:38 bernabei
Added support for tablet events
Revision 1.141 2008/04/04 10:07:12 cignoni
Solved namespace ambiguities caused by the removal of a silly 'using namespace' in meshmodel.h
@ -649,6 +652,12 @@ void GLArea::mouseReleaseEvent(QMouseEvent*e)
update();
}
//Processing of tablet events, interesting only for painting plugins
void GLArea::tabletEvent(QTabletEvent*e)
{
if(iEdit && !suspendedEditor) iEdit->tabletEvent(currentEditor,e,*mm(),this);
}
void GLArea::wheelEvent(QWheelEvent*e)
{
const int WHEEL_STEP = 120;

View File

@ -24,6 +24,9 @@
History
$Log$
Revision 1.85 2008/04/22 14:54:38 bernabei
Added support for tablet events
Revision 1.84 2008/04/04 10:07:10 cignoni
Solved namespace ambiguities caused by the removal of a silly 'using namespace' in meshmodel.h
@ -387,6 +390,7 @@ protected:
void mouseReleaseEvent(QMouseEvent *event);
void mouseDoubleClickEvent ( QMouseEvent * event ) ;
void wheelEvent(QWheelEvent*e);
void tabletEvent(QTabletEvent *e);
bool drawSelection;
void hideEvent(QHideEvent * event);

View File

@ -23,6 +23,9 @@
/****************************************************************************
History
$Log$
Revision 1.76 2008/04/22 14:54:39 bernabei
Added support for tablet events
Revision 1.75 2008/04/18 17:36:37 cignoni
added some filter classes (smoothing, normal, quality)
@ -278,7 +281,7 @@ public:
// The FilterClass describes in which generic class of filters it fits.
// This choice affect the submenu in which each filter will be placed
// For example filters that perform an action only on the selection will be placed in the Selection Class Ê
// For example filters that perform an action only on the selection will be placed in the Selection Class <EFBFBD>
virtual const FilterClass getClass(QAction *) { return MeshFilterInterface::Generic; }
// The filters can have some additional requirements on the mesh capabiliteis.
@ -457,6 +460,7 @@ public:
// virtual void wheelEvent (QAction *QWheelEvent*e, MeshModel &/*m*/, GLArea * );
virtual void keyReleaseEvent (QAction *, QKeyEvent *, MeshModel &/*m*/, GLArea *){};
virtual void keyPressEvent (QAction *, QKeyEvent *, MeshModel &/*m*/, GLArea *){};
virtual void tabletEvent (QAction *, QTabletEvent *, MeshModel &/*m*/, GLArea *){};
};