Eclipse SUMO - Simulation of Urban MObility
|
#include <MFXCheckableButton.h>
Public Member Functions | |
bool | amChecked () const |
check if this MFXCheckableButton is checked | |
MFXCheckableButton (bool amChecked, FXComposite *p, MFXStaticToolTip *staticToolTip, const std::string &text, FXIcon *ic=NULL, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=BUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
fox declaration | |
void | setChecked (bool val, const bool inform=false) |
check or uncheck this MFXCheckableButton | |
~MFXCheckableButton () | |
destructor (Called automatically) | |
FOX callbacks | |
called when this MFXCheckableButton is painted | |
long | onPaint (FXObject *, FXSelector, void *) |
long | onUpdate (FXObject *, FXSelector, void *) |
called when this MFXCheckableButton is updated | |
long | onEnter (FXObject *, FXSelector, void *) |
called when mouse enter in MFXCheckableButton | |
long | onLeave (FXObject *, FXSelector, void *) |
called when mouse leaves in MFXCheckableButton | |
long | onMotion (FXObject *, FXSelector, void *) |
called when mouse motion in MFXCheckableButton | |
Protected Member Functions | |
void | buildColors () |
build color of this MFXCheckableButton | |
void | setColors () |
set colors of this MFXCheckableButton | |
Protected Attributes | |
bool | myAmChecked |
FOX need this. | |
bool | myAmInitialised |
check if this MFXCheckableButton is initialised | |
FXColor | myBackColor |
colors of this MFXCheckableButton | |
FXColor | myDarkColor |
FXColor | myHiliteColor |
FXColor | myShadowColor |
MFXStaticToolTip * | myStaticToolTip = nullptr |
static tool tip | |
Private Member Functions | |
MFXCheckableButton (const MFXCheckableButton &)=delete | |
Invalidated copy constructor. | |
MFXCheckableButton & | operator= (const MFXCheckableButton &)=delete |
Invalidated assignment operator. | |
Definition at line 31 of file MFXCheckableButton.h.
MFXCheckableButton::MFXCheckableButton | ( | bool | amChecked, |
FXComposite * | p, | ||
MFXStaticToolTip * | staticToolTip, | ||
const std::string & | text, | ||
FXIcon * | ic = NULL , |
||
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = BUTTON_NORMAL , |
||
FXint | x = 0 , |
||
FXint | y = 0 , |
||
FXint | w = 0 , |
||
FXint | h = 0 , |
||
FXint | pl = DEFAULT_PAD , |
||
FXint | pr = DEFAULT_PAD , |
||
FXint | pt = DEFAULT_PAD , |
||
FXint | pb = DEFAULT_PAD |
||
) |
fox declaration
constructor (Very similar to the FXButton constructor)
Definition at line 37 of file MFXCheckableButton.cpp.
MFXCheckableButton::~MFXCheckableButton | ( | ) |
destructor (Called automatically)
Definition at line 48 of file MFXCheckableButton.cpp.
|
privatedelete |
Invalidated copy constructor.
bool MFXCheckableButton::amChecked | ( | ) | const |
check if this MFXCheckableButton is checked
Definition at line 52 of file MFXCheckableButton.cpp.
References myAmChecked.
Referenced by GNEViewNet::askMergeJunctions(), GNEViewNet::autoSelectNodes(), GUIGlChildWindow::buildNavigationToolBar(), GNEViewNet::changeAllPhases(), GNEViewNet::drawGrid(), GNEViewNet::drawTemporalJunction(), GUISUMOViewParent::onCmdMakeSnapshot(), GNEOptionsDialog::onCmdShowToolTipsMenu(), GNEPythonToolDialog::onCmdShowToolTipsMenu(), GUIGlChildWindow::onCmdShowToolTipsMenu(), GUIGlChildWindow::onCmdShowToolTipsView(), GNEViewNet::onCmdToggleAutoOppositeEdge(), GNEViewNet::onCmdToggleChainEdges(), GNEViewNet::onCmdToggleChangeAllPhases(), GNEViewNet::onCmdToggleDrawSpreadVehicles(), GNEViewNet::onCmdToggleExtendSelection(), GNEViewNet::onCmdToggleHideConnections(), GNEViewNet::onCmdToggleHideNonInspecteDemandElements(), GNEViewNet::onCmdToggleHideShapes(), GNEViewNet::onCmdToggleLockContainer(), GNEViewNet::onCmdToggleLockPerson(), GNEViewNet::onCmdToggleMoveElevation(), GNEViewNet::onCmdToggleSelectEdges(), GNEViewNet::onCmdToggleShowAdditionals(), GNEViewNet::onCmdToggleShowAdditionalSubElements(), GNEViewNet::onCmdToggleShowAllContainerPlans(), GNEViewNet::onCmdToggleShowAllPersonPlans(), GNEViewNet::onCmdToggleShowConnections(), GNEViewNet::onCmdToggleShowDemandElementsData(), GNEViewNet::onCmdToggleShowDemandElementsNetwork(), GNEViewNet::onCmdToggleShowJunctionBubbles(), GNEViewNet::onCmdToggleShowOverlappedRoutes(), GNEViewNet::onCmdToggleShowShapes(), GNEViewNet::onCmdToggleShowTAZElements(), GNEViewNet::onCmdToggleShowTrips(), GNEViewNet::onCmdToggleTAZDrawFill(), GNEViewNet::onCmdToggleTAZRelDrawing(), GNEViewNet::onCmdToggleTAZRelOnlyFrom(), GNEViewNet::onCmdToggleTAZRelOnlyTo(), GNEViewNet::onCmdToggleWarnAboutMerge(), GUIGlChildWindow::onCmdZoomStyle(), GNEApplicationWindow::onUpdToggleViewOption(), GNEViewNet::processLeftButtonPressNetwork(), GNEViewNet::showJunctionAsBubbles(), GNEApplicationWindowHelper::toggleEditOptionsData(), GNEApplicationWindowHelper::toggleEditOptionsDemand(), and GNEApplicationWindowHelper::toggleEditOptionsNetwork().
|
protected |
build color of this MFXCheckableButton
Definition at line 115 of file MFXCheckableButton.cpp.
References myAmInitialised, myBackColor, myDarkColor, myHiliteColor, and myShadowColor.
Referenced by onPaint(), and onUpdate().
long MFXCheckableButton::onEnter | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called when mouse enter in MFXCheckableButton
Definition at line 91 of file MFXCheckableButton.cpp.
References myStaticToolTip, and MFXStaticToolTip::showStaticToolTip().
Referenced by FXDEFMAP().
long MFXCheckableButton::onLeave | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called when mouse leaves in MFXCheckableButton
Definition at line 99 of file MFXCheckableButton.cpp.
References MFXStaticToolTip::hideStaticToolTip(), and myStaticToolTip.
Referenced by FXDEFMAP().
long MFXCheckableButton::onMotion | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called when mouse motion in MFXCheckableButton
Definition at line 107 of file MFXCheckableButton.cpp.
References myStaticToolTip, and MFXStaticToolTip::onUpdate().
Referenced by FXDEFMAP().
long MFXCheckableButton::onPaint | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 71 of file MFXCheckableButton.cpp.
References buildColors(), myAmInitialised, and setColors().
Referenced by FXDEFMAP().
long MFXCheckableButton::onUpdate | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called when this MFXCheckableButton is updated
Definition at line 81 of file MFXCheckableButton.cpp.
References buildColors(), myAmInitialised, and setColors().
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
void MFXCheckableButton::setChecked | ( | bool | val, |
const bool | inform = false |
||
) |
check or uncheck this MFXCheckableButton
Definition at line 58 of file MFXCheckableButton.cpp.
References myAmChecked.
Referenced by GNEStopFrame::addStop(), GUIGlChildWindow::buildNavigationToolBar(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNEViewNet::doPaintGL(), GNEViewNet::drawGrid(), GNEOptionsDialog::GNEOptionsDialog(), GUISUMOViewParent::onCmdMakeSnapshot(), GNENetgenerateDialog::onCmdSetGrid(), GNENetgenerateDialog::onCmdSetRandom(), GNENetgenerateDialog::onCmdSetRandomGrid(), GNENetgenerateDialog::onCmdSetSpider(), GNEOptionsDialog::onCmdShowToolTipsMenu(), GNEPythonToolDialog::onCmdShowToolTipsMenu(), GUIGlChildWindow::onCmdShowToolTipsMenu(), GUIGlChildWindow::onCmdShowToolTipsView(), GNEViewNet::onCmdToggleAutoOppositeEdge(), GNEViewNet::onCmdToggleChainEdges(), GNEViewNet::onCmdToggleChangeAllPhases(), GNEViewNet::onCmdToggleDrawJunctionShape(), GNEViewNet::onCmdToggleDrawSpreadVehicles(), GNEViewNet::onCmdToggleExtendSelection(), GNEViewNet::onCmdToggleHideConnections(), GNEViewNet::onCmdToggleHideNonInspecteDemandElements(), GNEViewNet::onCmdToggleHideShapes(), GNEViewNet::onCmdToggleLockContainer(), GNEViewNet::onCmdToggleLockPerson(), GNEViewNet::onCmdToggleMoveElevation(), GNEViewNet::onCmdToggleSelectEdges(), GNEViewNet::onCmdToggleShowAdditionals(), GNEViewNet::onCmdToggleShowAdditionalSubElements(), GNEViewNet::onCmdToggleShowAllContainerPlans(), GNEViewNet::onCmdToggleShowAllPersonPlans(), GNEViewNet::onCmdToggleShowConnections(), GNEViewNet::onCmdToggleShowDemandElementsData(), GNEViewNet::onCmdToggleShowDemandElementsNetwork(), GNEViewNet::onCmdToggleShowGrid(), GNEViewNet::onCmdToggleShowJunctionBubbles(), GNEViewNet::onCmdToggleShowOverlappedRoutes(), GNEViewNet::onCmdToggleShowShapes(), GNEViewNet::onCmdToggleShowTAZElements(), GNEViewNet::onCmdToggleShowTrips(), GNEViewNet::onCmdToggleTAZDrawFill(), GNEViewNet::onCmdToggleTAZRelDrawing(), GNEViewNet::onCmdToggleTAZRelOnlyFrom(), GNEViewNet::onCmdToggleTAZRelOnlyTo(), GNEViewNet::onCmdToggleWarnAboutMerge(), GUIGlChildWindow::onCmdZoomStyle(), GNENetgenerateDialog::openDialog(), GNEPythonToolDialog::openDialog(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().
|
protected |
set colors of this MFXCheckableButton
Definition at line 125 of file MFXCheckableButton.cpp.
References myAmChecked, myBackColor, myDarkColor, myHiliteColor, and myShadowColor.
Referenced by onPaint(), and onUpdate().
|
protected |
FOX need this.
flag to indicate if this MFXCheckableButton is checked
Definition at line 75 of file MFXCheckableButton.h.
Referenced by amChecked(), setChecked(), and setColors().
|
protected |
check if this MFXCheckableButton is initialised
Definition at line 84 of file MFXCheckableButton.h.
Referenced by buildColors(), onPaint(), and onUpdate().
|
protected |
colors of this MFXCheckableButton
Definition at line 78 of file MFXCheckableButton.h.
Referenced by buildColors(), and setColors().
|
protected |
Definition at line 79 of file MFXCheckableButton.h.
Referenced by buildColors(), and setColors().
|
protected |
Definition at line 80 of file MFXCheckableButton.h.
Referenced by buildColors(), and setColors().
|
protected |
Definition at line 81 of file MFXCheckableButton.h.
Referenced by buildColors(), and setColors().
|
protected |
static tool tip
Definition at line 87 of file MFXCheckableButton.h.
Referenced by onEnter(), onLeave(), and onMotion().