Manager of keyboard accelerator bindings.
#include <SUIT_Accel.h>

Public Types | |
| enum | Actions {  PanLeft = 1, PanRight, PanUp, PanDown, ZoomIn, ZoomOut, ZoomFit, RotateLeft, RotateRight, RotateUp, RotateDown, LastAction }  | 
Public Member Functions | |
| void | setActionKey (const int action, const int key, const QString &type) | 
| void | unsetActionKey (const int key, const QString &type) | 
Static Public Member Functions | |
| static SUIT_Accel * | getAccel () | 
Protected Member Functions | |
| bool | eventFilter (QObject *, QEvent *) | 
Private Types | |
| typedef QMap< int, int > | IdActionMap | 
| maps key to action id  More... | |
| typedef QMap< QString,  IdActionMap >  | ViewerTypeIdActionMap | 
| maps viewer type to IdActionMap  More... | |
Private Member Functions | |
| SUIT_Accel () | |
| int | getAccelKey (QEvent *) | 
Private Attributes | |
| ViewerTypeIdActionMap | myMap | 
| viewer actions map  More... | |
| QMap< int, bool > | myOptMap | 
| Maps key to <not_used> flag map, used for optimization.  More... | |
Static Private Attributes | |
| static SUIT_Accel * | myself = 0 | 
      
  | 
  private | 
      
  | 
  private | 
| enum SUIT_Accel::Actions | 
      
  | 
  private | 
Constructor [private].
eventFilter() : filtering ALL events of QApplication.
References getAccelKey(), getParentViewWindow(), SUIT_ViewModel::getType(), SUIT_ViewWindow::getViewManager(), SUIT_ViewManager::getViewModel(), myMap, and SUIT_ViewWindow::onAccelAction().
      
  | 
  static | 
getAccel() : public interface for SUIT_Accel object. Only one instance is created and returned.
References myself, and SUIT_Accel().
      
  | 
  private | 
setActionKey() : assign a ceratain action for a key accelerator
unsetActionKey() : unregister a certain key accelerator
References myMap.
      
  | 
  private | 
      
  | 
  private | 
All registered keys (accelerators) are stored in this map.
      
  | 
  staticprivate |