Eclipse SUMO - Simulation of Urban MObility
|
#include <MFXMenuCheckIcon.h>
Public Member Functions | |
FXColor | getBoxColor () const |
Get the box background color. | |
FXbool | getCheck () const |
Get check state (TRUE, FALSE or MAYBE) | |
virtual FXint | getDefaultHeight () |
Return default height. | |
virtual FXint | getDefaultWidth () |
Return default width. | |
virtual void | load (FXStream &store) |
Load menu from a stream. | |
MFXMenuCheckIcon (FXComposite *p, const std::string &text, const std::string &shortcut, const std::string &info, const FXIcon *icon, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0) | |
FOX-declaration. | |
virtual void | save (FXStream &store) const |
Save menu to a stream. | |
void | setBoxColor (FXColor clr) |
Set the box background color. | |
void | setCheck (FXbool s=TRUE) |
Set check state (TRUE, FALSE or MAYBE) | |
FOX calls | |
long | onPaint (FXObject *, FXSelector, void *) |
long | onButtonPress (FXObject *, FXSelector, void *) |
long | onButtonRelease (FXObject *, FXSelector, void *) |
long | onKeyPress (FXObject *, FXSelector, void *) |
long | onKeyRelease (FXObject *, FXSelector, void *) |
long | onHotKeyPress (FXObject *, FXSelector, void *) |
long | onHotKeyRelease (FXObject *, FXSelector, void *) |
long | onCheck (FXObject *, FXSelector, void *) |
long | onUncheck (FXObject *, FXSelector, void *) |
long | onUnknown (FXObject *, FXSelector, void *) |
long | onCmdSetValue (FXObject *, FXSelector, void *) |
long | onCmdSetIntValue (FXObject *, FXSelector, void *) |
long | onCmdGetIntValue (FXObject *, FXSelector, void *) |
long | onCmdAccel (FXObject *, FXSelector, void *) |
Protected Member Functions | |
MFXMenuCheckIcon () | |
default constructor | |
Protected Attributes | |
FXColor | myBoxColor |
Box color. | |
FXuchar | myCheck |
State of menu. | |
const FXIcon * | myIcon |
Icon. | |
Private Member Functions | |
MFXMenuCheckIcon (const MFXMenuCheckIcon &)=delete | |
Invalidated copy constructor. | |
MFXMenuCheckIcon & | operator= (const MFXMenuCheckIcon &)=delete |
Invalidated assignment operator. | |
The menu check widget is used to change a state in the application from a menu. Menu checks may reflect the state of the application by graying out, becoming hidden, or by a check mark. When activated, a menu check sends a SEL_COMMAND to its target; the void* argument of the message contains the new state.
Definition at line 36 of file MFXMenuCheckIcon.h.
MFXMenuCheckIcon::MFXMenuCheckIcon | ( | FXComposite * | p, |
const std::string & | text, | ||
const std::string & | shortcut, | ||
const std::string & | info, | ||
const FXIcon * | icon, | ||
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = 0 |
||
) |
|
protected |
default constructor
Definition at line 419 of file MFXMenuCheckIcon.cpp.
|
privatedelete |
Invalidated copy constructor.
FXColor MFXMenuCheckIcon::getBoxColor | ( | ) | const |
Get the box background color.
Definition at line 117 of file MFXMenuCheckIcon.cpp.
References myBoxColor.
FXbool MFXMenuCheckIcon::getCheck | ( | ) | const |
Get check state (TRUE, FALSE or MAYBE)
Definition at line 111 of file MFXMenuCheckIcon.cpp.
References myCheck.
Referenced by onCmdGetIntValue(), GNEApplicationWindow::onCmdToggleComputeNetworkData(), and GNEViewNetHelper::LockManager::updateFlags().
|
virtual |
Return default height.
Definition at line 92 of file MFXMenuCheckIcon.cpp.
|
virtual |
Return default width.
Definition at line 70 of file MFXMenuCheckIcon.cpp.
References LEADSPACE, myIcon, and TRAILSPACE.
|
virtual |
Load menu from a stream.
Definition at line 412 of file MFXMenuCheckIcon.cpp.
References myBoxColor, and myCheck.
long MFXMenuCheckIcon::onButtonPress | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 165 of file MFXMenuCheckIcon.cpp.
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onButtonRelease | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 174 of file MFXMenuCheckIcon.cpp.
References myCheck, and setCheck().
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onCheck | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 123 of file MFXMenuCheckIcon.cpp.
References setCheck().
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onCmdAccel | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 251 of file MFXMenuCheckIcon.cpp.
References myCheck, and setCheck().
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onCmdGetIntValue | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 158 of file MFXMenuCheckIcon.cpp.
References getCheck().
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onCmdSetIntValue | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 151 of file MFXMenuCheckIcon.cpp.
References setCheck().
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onCmdSetValue | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 144 of file MFXMenuCheckIcon.cpp.
References setCheck().
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onHotKeyPress | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 225 of file MFXMenuCheckIcon.cpp.
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onHotKeyRelease | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 236 of file MFXMenuCheckIcon.cpp.
References myCheck, and setCheck().
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onKeyPress | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 192 of file MFXMenuCheckIcon.cpp.
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onKeyRelease | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 206 of file MFXMenuCheckIcon.cpp.
References myCheck, and setCheck().
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onPaint | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 264 of file MFXMenuCheckIcon.cpp.
References LEADSPACE, myBoxColor, myCheck, myIcon, and TRAILSPACE.
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onUncheck | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 130 of file MFXMenuCheckIcon.cpp.
References setCheck().
Referenced by FXDEFMAP().
long MFXMenuCheckIcon::onUnknown | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 137 of file MFXMenuCheckIcon.cpp.
References setCheck().
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
virtual |
Save menu to a stream.
Definition at line 405 of file MFXMenuCheckIcon.cpp.
References myBoxColor, and myCheck.
void MFXMenuCheckIcon::setBoxColor | ( | FXColor | clr | ) |
Set the box background color.
Definition at line 396 of file MFXMenuCheckIcon.cpp.
References myBoxColor.
void MFXMenuCheckIcon::setCheck | ( | FXbool | s = TRUE | ) |
Set check state (TRUE, FALSE or MAYBE)
Definition at line 102 of file MFXMenuCheckIcon.cpp.
References myCheck.
Referenced by onButtonRelease(), onCheck(), onCmdAccel(), onCmdSetIntValue(), onCmdSetValue(), onHotKeyRelease(), onKeyRelease(), onUncheck(), onUnknown(), GNEApplicationWindow::onUpdToggleViewOption(), and GNEViewNetHelper::LockManager::updateLockMenuBar().
|
protected |
Box color.
Definition at line 97 of file MFXMenuCheckIcon.h.
Referenced by getBoxColor(), load(), onPaint(), save(), and setBoxColor().
|
protected |
State of menu.
Definition at line 94 of file MFXMenuCheckIcon.h.
Referenced by getCheck(), load(), onButtonRelease(), onCmdAccel(), onHotKeyRelease(), onKeyRelease(), onPaint(), save(), and setCheck().
|
protected |
Icon.
Definition at line 91 of file MFXMenuCheckIcon.h.
Referenced by getDefaultWidth(), and onPaint().