Eaagles::Instruments::LcPushButton Class Reference

Inherits Eaagles::Instruments::LcButton.

Inheritance diagram for Eaagles::Instruments::LcPushButton:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::Instruments::LcPushButton:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LcPushButton ()
bool setFunction (const bool newFunction)
bool getFunction ()
bool getCurrentState ()
bool setCurrentState (const bool newCurrentState)
virtual bool onSingleClick ()
virtual bool onMouseDown ()
virtual void updateData (const LCreal dt=0.000000)
virtual bool event (const int event, Basic::LcObject *const obj=0)

Protected Member Functions

bool setSlotFunction (const Basic::LcBoolean *newFunction)
bool setSlotStartState (const Basic::LcBoolean *newFunction)

Private Attributes

bool functionType
bool currentState
bool mouseDown

Constructor & Destructor Documentation

Eaagles::Instruments::LcPushButton::LcPushButton (  ) 


Member Function Documentation

bool Eaagles::Instruments::LcPushButton::setFunction ( const bool  newFunction  )  [inline]

sets the pushbutton type ie momentary = false or maintained = true

bool Eaagles::Instruments::LcPushButton::getFunction (  )  [inline]

gets the pushbutton type ie momentary = false or maintained = true

bool Eaagles::Instruments::LcPushButton::getCurrentState (  )  [inline]

gets the current state of the pushbutton ie off = false or on = true

bool Eaagles::Instruments::LcPushButton::setCurrentState ( const bool  newCurrentState  )  [inline]

sets the current state of the pushbutton ie off = false or on = true

bool Eaagles::Instruments::LcPushButton::onSingleClick (  )  [virtual]

if maintained keeps second graphic visible, if momentary switches back to first graphic

Reimplemented from Eaagles::Instruments::LcButton.

bool Eaagles::Instruments::LcPushButton::onMouseDown (  )  [virtual]

hides first graphic and makes second graphic visible

void Eaagles::Instruments::LcPushButton::updateData ( const LCreal  dt = 0.000000  )  [virtual]

Function to execute non time critical stuff.

Reimplemented from Eaagles::Basic::LcComponent.

virtual bool Eaagles::Instruments::LcPushButton::event ( const int  event,
Basic::LcObject *const   obj = 0 
) [virtual]

The event handler for this object.

Reimplemented from Eaagles::Instruments::LcButton.

bool Eaagles::Instruments::LcPushButton::setSlotFunction ( const Basic::LcBoolean newFunction  )  [protected]

sets the pushbutton type to momentary = false or maintained = true

bool Eaagles::Instruments::LcPushButton::setSlotStartState ( const Basic::LcBoolean newFunction  )  [protected]

sets the pushbutton start state ie not pressed or pressed


Member Data Documentation

bool Eaagles::Instruments::LcPushButton::functionType [private]

false = momentary, true = maintained

bool Eaagles::Instruments::LcPushButton::currentState [private]

false = off, true = on

bool Eaagles::Instruments::LcPushButton::mouseDown [private]

mouse press down status


Generated on Tue Dec 19 16:27:04 2006 for Eaagles by  doxygen 1.5.0