![]() |
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) | |
| void | toggleCheck () |
| Toggle current check state. | |
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 431 of file MFXMenuCheckIcon.cpp.
|
privatedelete |
Invalidated copy constructor.
| FXColor MFXMenuCheckIcon::getBoxColor | ( | ) | const |
Get the box background color.
Definition at line 129 of file MFXMenuCheckIcon.cpp.
References myBoxColor.
| FXbool MFXMenuCheckIcon::getCheck | ( | ) | const |
Get check state (TRUE, FALSE or MAYBE)
Definition at line 123 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 424 of file MFXMenuCheckIcon.cpp.
References myBoxColor, and myCheck.
| long MFXMenuCheckIcon::onButtonPress | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 177 of file MFXMenuCheckIcon.cpp.
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onButtonRelease | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 186 of file MFXMenuCheckIcon.cpp.
References myCheck, and setCheck().
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onCheck | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 135 of file MFXMenuCheckIcon.cpp.
References setCheck().
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onCmdAccel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 263 of file MFXMenuCheckIcon.cpp.
References myCheck, and setCheck().
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onCmdGetIntValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 170 of file MFXMenuCheckIcon.cpp.
References getCheck().
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onCmdSetIntValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 163 of file MFXMenuCheckIcon.cpp.
References setCheck().
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onCmdSetValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 156 of file MFXMenuCheckIcon.cpp.
References setCheck().
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onHotKeyPress | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 237 of file MFXMenuCheckIcon.cpp.
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onHotKeyRelease | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 248 of file MFXMenuCheckIcon.cpp.
References myCheck, and setCheck().
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onKeyPress | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 204 of file MFXMenuCheckIcon.cpp.
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onKeyRelease | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 218 of file MFXMenuCheckIcon.cpp.
References myCheck, and setCheck().
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onPaint | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 276 of file MFXMenuCheckIcon.cpp.
References LEADSPACE, myBoxColor, myCheck, myIcon, and TRAILSPACE.
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onUncheck | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 142 of file MFXMenuCheckIcon.cpp.
References setCheck().
Referenced by FXDEFMAP().
| long MFXMenuCheckIcon::onUnknown | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 149 of file MFXMenuCheckIcon.cpp.
References setCheck().
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
virtual |
Save menu to a stream.
Definition at line 417 of file MFXMenuCheckIcon.cpp.
References myBoxColor, and myCheck.
| void MFXMenuCheckIcon::setBoxColor | ( | FXColor | clr | ) |
Set the box background color.
Definition at line 408 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(), toggleCheck(), and GNEViewNetHelper::LockManager::updateLockMenuBar().
| void MFXMenuCheckIcon::toggleCheck | ( | ) |
Toggle current check state.
Definition at line 111 of file MFXMenuCheckIcon.cpp.
References myCheck, and setCheck().
Referenced by GNEApplicationWindow::onCmdLockElements().
|
protected |
Box color.
Definition at line 100 of file MFXMenuCheckIcon.h.
Referenced by getBoxColor(), load(), onPaint(), save(), and setBoxColor().
|
protected |
State of menu.
Definition at line 97 of file MFXMenuCheckIcon.h.
Referenced by getCheck(), load(), onButtonRelease(), onCmdAccel(), onHotKeyRelease(), onKeyRelease(), onPaint(), save(), setCheck(), and toggleCheck().
|
protected |
Icon.
Definition at line 94 of file MFXMenuCheckIcon.h.
Referenced by getDefaultWidth(), and onPaint().