QwtPickerMachine accepts key and mouse events and translates them into selection commands.
Definition at line 32 of file qwt_picker_machine.h.
Public Types | |
typedef QList< Command > | CommandList |
enum | Command { Begin, Append, Move, End } |
Public Member Functions | |
virtual | ~QwtPickerMachine () |
virtual CommandList | transition (const QwtEventPattern &, const QEvent *)=0 |
void | reset () |
int | state () const |
void | setState (int) |
Protected Member Functions | |
QwtPickerMachine () |
|
Commands - the output of the state machine.
Definition at line 36 of file qwt_picker_machine.h. |
|
Destructor.
Definition at line 21 of file qwt_picker_machine.cpp. |
|
Constructor.
Definition at line 15 of file qwt_picker_machine.cpp. |
|
Set the current state to 0.
Definition at line 38 of file qwt_picker_machine.cpp. References setState(). |
|
Change the current state.
Definition at line 32 of file qwt_picker_machine.cpp. Referenced by reset(), QwtPickerPolygonMachine::transition(), QwtPickerDragRectMachine::transition(), QwtPickerClickRectMachine::transition(), and QwtPickerDragPointMachine::transition(). |
|
Return the current state.
Definition at line 26 of file qwt_picker_machine.cpp. Referenced by QwtPickerPolygonMachine::transition(), QwtPickerDragRectMachine::transition(), QwtPickerClickRectMachine::transition(), and QwtPickerDragPointMachine::transition(). |
|
Transition.
Implemented in QwtPickerClickPointMachine, QwtPickerDragPointMachine, QwtPickerClickRectMachine, QwtPickerDragRectMachine, and QwtPickerPolygonMachine. |