mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 16:14:38 +00:00
Added support for tablet events
This commit is contained in:
parent
4b0c47b2bd
commit
9fdbcb95d4
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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 *){};
|
||||
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user