Public Types | Public Member Functions | Protected Member Functions

QwtPickerMachine Class Reference

A state machine for QwtPicker selections. More...

#include <qwt_picker_machine.h>

Inheritance diagram for QwtPickerMachine:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Command { Begin, Append, Move, End }
 

Commands - the output of the state machine.

More...
typedef QValueList< CommandCommandList

Public Member Functions

virtual ~QwtPickerMachine ()
 Destructor.
virtual CommandList transition (const QwtEventPattern &, const QEvent *)=0
 Transition.
void reset ()
 Set the current state to 0.
int state () const
 Return the current state.
void setState (int)
 Change the current state.

Protected Member Functions

 QwtPickerMachine ()
 Constructor.

Detailed Description

A state machine for QwtPicker selections.

QwtPickerMachine accepts key and mouse events and translates them into selection commands.

See also:
QwtEventPattern::MousePatternCode, QwtEventPattern::KeyPatternCode

Definition at line 32 of file qwt_picker_machine.h.


Member Typedef Documentation

Definition at line 45 of file qwt_picker_machine.h.


Member Enumeration Documentation

Commands - the output of the state machine.

Enumerator:
Begin 
Append 
Move 
End 

Definition at line 36 of file qwt_picker_machine.h.

    {
        Begin,
        Append,
        Move,
        End
    };

Constructor & Destructor Documentation

QwtPickerMachine::~QwtPickerMachine (  ) [virtual]

Destructor.

Definition at line 21 of file qwt_picker_machine.cpp.

{
}
QwtPickerMachine::QwtPickerMachine (  ) [protected]

Constructor.

Definition at line 15 of file qwt_picker_machine.cpp.

                                  :
    d_state(0)
{
}

Member Function Documentation

void QwtPickerMachine::reset (  )

Set the current state to 0.

Definition at line 38 of file qwt_picker_machine.cpp.

References setState().

Referenced by QwtPicker::reset().

{
    setState(0);
}
void QwtPickerMachine::setState ( int  state )
int QwtPickerMachine::state (  ) const
virtual CommandList QwtPickerMachine::transition ( const QwtEventPattern ,
const QEvent *   
) [pure virtual]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines