SUIT_Accel Class Reference

#include <SUIT_Accel.h>

Inheritance diagram for SUIT_Accel:

Inheritance graph

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_AccelgetAccel ()

Protected Member Functions

bool eventFilter (QObject *, QEvent *)

Private Types

typedef QMap< int, int > IdActionMap
typedef QMap< QString, IdActionMapViewerTypeIdActionMap

Private Member Functions

 SUIT_Accel ()
int getAccelKey (QEvent *)

Private Attributes

ViewerTypeIdActionMap myMap
QMap< int, bool > myOptMap

Static Private Attributes

static SUIT_Accelmyself = 0

Detailed Description

Manager of keyboard accelerator bindings


Member Typedef Documentation

typedef QMap<int, int> SUIT_Accel.IdActionMap [private]
 

typedef QMap<QString, IdActionMap> SUIT_Accel.ViewerTypeIdActionMap [private]
 


Member Enumeration Documentation

enum SUIT_Accel::Actions
 

Enumerator:
PanLeft 
PanRight 
PanUp 
PanDown 
ZoomIn 
ZoomOut 
ZoomFit 
RotateLeft 
RotateRight 
RotateUp 
RotateDown 
LastAction 


Constructor & Destructor Documentation

SUIT_Accel::SUIT_Accel  )  [private]
 

Constructor [private].


Member Function Documentation

SUIT_Accel * SUIT_Accel::getAccel  )  [static]
 

getAccel() : public interface for SUIT_Accel object. Only one instance is created and returned.

void SUIT_Accel::setActionKey const int  action,
const int  key,
const QString &  type
 

setActionKey() : assign a ceratain action for a key accelerator

void SUIT_Accel::unsetActionKey const int  key,
const QString &  type
 

unsetActionKey() : unregister a certain key accelerator

bool SUIT_Accel::eventFilter QObject obj,
QEvent *  event
[protected]
 

eventFilter() : filtering ALL events of QApplication.

int SUIT_Accel::getAccelKey QEvent *  event  )  [private]
 

getAccelKey() : returns key pressed if 1) event was KeyPress 2) pressed key is a registered accelerator


Field Documentation

ViewerTypeIdActionMap SUIT_Accel.myMap [private]
 

QMap<int, bool> SUIT_Accel.myOptMap [private]
 

SUIT_Accel * SUIT_Accel::myself = 0 [static, private]