#include <qwt_picker_machine.h>

Public Types | |
| enum | Command { Begin, Append, Move, End } |
| typedef QList< Command > | CommandList |
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 () | |
QwtPickerMachine accepts key and mouse events and translates them into selection commands.
Commands - the output of the state machine.
| QwtPickerMachine::~QwtPickerMachine | ( | ) | [virtual] |
Destructor.
| QwtPickerMachine::QwtPickerMachine | ( | ) | [protected] |
Constructor.
| void QwtPickerMachine::reset | ( | ) |
Set the current state to 0.
| void QwtPickerMachine::setState | ( | int | state | ) |
Change the current state.
| int QwtPickerMachine::state | ( | ) | const |
Return the current state.
| virtual CommandList QwtPickerMachine::transition | ( | const QwtEventPattern & | , | |
| const QEvent * | ||||
| ) | [pure virtual] |
Transition.
Implemented in QwtPickerClickPointMachine, QwtPickerDragPointMachine, QwtPickerClickRectMachine, QwtPickerDragRectMachine, and QwtPickerPolygonMachine.
1.5.8