1 // SUIT_Accel.h: interface for the SUIT_Accel class.
3 //////////////////////////////////////////////////////////////////////
11 #include <qstringlist.h>
17 class SUIT_EXPORT SUIT_Accel: public QObject
22 SUIT_Accel( SUIT_Desktop* theDesktop );
23 virtual ~SUIT_Accel();
25 enum Actions { PanLeft = 1, PanRight, PanUp, PanDown, ZoomIn, ZoomOut, ZoomFit, RotateLeft, RotateRight, RotateUp, RotateDown, UserAction };
26 void setActionKey( const int action, const int key, const QString& type );
29 void onActivated( int );
33 SUIT_Desktop* myDesktop;
35 typedef QMap<int, int> KeyActionMap; // key-to-action map
36 typedef QMap<int, QStringList> ActionViewerTypesMap; // key=action id
37 KeyActionMap myKeyActionMap;
38 ActionViewerTypesMap myActionViewerTypesMap;