Eclipse SUMO - Simulation of Urban MObility
MFXCheckableButton Class Reference

#include <MFXCheckableButton.h>

Inheritance diagram for MFXCheckableButton:
[legend]
Collaboration diagram for MFXCheckableButton:
[legend]

Public Member Functions

bool amChecked () const
 check if this MFXCheckableButton is checked More...
 
 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 More...
 
void setChecked (bool val, const bool inform=false)
 check or uncheck this MFXCheckableButton More...
 
 ~MFXCheckableButton ()
 destructor (Called automatically) More...
 
FOX callbacks

called when this MFXCheckableButton is painted

long onPaint (FXObject *, FXSelector, void *)
 
long onUpdate (FXObject *, FXSelector, void *)
 called when this MFXCheckableButton is updated More...
 
long onEnter (FXObject *, FXSelector, void *)
 called when mouse enter in MFXCheckableButton More...
 
long onLeave (FXObject *, FXSelector, void *)
 called when mouse leaves in MFXCheckableButton More...
 
long onMotion (FXObject *, FXSelector, void *)
 called when mouse motion in MFXCheckableButton More...
 

Protected Member Functions

void buildColors ()
 build color of this MFXCheckableButton More...
 
void setColors ()
 set colors of this MFXCheckableButton More...
 

Protected Attributes

bool myAmChecked
 FOX need this. More...
 
bool myAmInitialised
 check if this MFXCheckableButton is initialised More...
 
FXColor myBackColor
 colors of this MFXCheckableButton More...
 
FXColor myDarkColor
 
FXColor myHiliteColor
 
FXColor myShadowColor
 
MFXStaticToolTipmyStaticToolTip = nullptr
 static tool tip More...
 

Private Member Functions

 MFXCheckableButton (const MFXCheckableButton &)=delete
 Invalidated copy constructor. More...
 
MFXCheckableButtonoperator= (const MFXCheckableButton &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

Definition at line 31 of file MFXCheckableButton.h.

Constructor & Destructor Documentation

◆ MFXCheckableButton() [1/2]

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::~MFXCheckableButton ( )

destructor (Called automatically)

Definition at line 48 of file MFXCheckableButton.cpp.

◆ MFXCheckableButton() [2/2]

MFXCheckableButton::MFXCheckableButton ( const MFXCheckableButton )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ amChecked()

bool MFXCheckableButton::amChecked ( ) const

check if this MFXCheckableButton is checked

Definition at line 52 of file MFXCheckableButton.cpp.

References myAmChecked.

Referenced by GNEViewNet::autoSelectNodes(), GUIGlChildWindow::buildNavigationToolBar(), GNEViewNet::changeAllPhases(), GNEViewNet::drawGrid(), GNEViewNet::drawTemporalJunction(), GNEViewNet::mergeJunctions(), 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().

Here is the caller graph for this function:

◆ buildColors()

void MFXCheckableButton::buildColors ( )
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().

Here is the caller graph for this function:

◆ onEnter()

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().

Here is the caller graph for this function:

◆ onLeave()

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().

Here is the caller graph for this function:

◆ onMotion()

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().

Here is the caller graph for this function:

◆ onPaint()

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().

Here is the caller graph for this function:

◆ onUpdate()

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().

Here is the caller graph for this function:

◆ operator=()

MFXCheckableButton& MFXCheckableButton::operator= ( const MFXCheckableButton )
privatedelete

Invalidated assignment operator.

◆ setChecked()

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().

◆ setColors()

void MFXCheckableButton::setColors ( )
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().

Here is the caller graph for this function:

Field Documentation

◆ myAmChecked

bool MFXCheckableButton::myAmChecked
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().

◆ myAmInitialised

bool MFXCheckableButton::myAmInitialised
protected

check if this MFXCheckableButton is initialised

Definition at line 84 of file MFXCheckableButton.h.

Referenced by buildColors(), onPaint(), and onUpdate().

◆ myBackColor

FXColor MFXCheckableButton::myBackColor
protected

colors of this MFXCheckableButton

Definition at line 78 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myDarkColor

FXColor MFXCheckableButton::myDarkColor
protected

Definition at line 79 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myHiliteColor

FXColor MFXCheckableButton::myHiliteColor
protected

Definition at line 80 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myShadowColor

FXColor MFXCheckableButton::myShadowColor
protected

Definition at line 81 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myStaticToolTip

MFXStaticToolTip* MFXCheckableButton::myStaticToolTip = nullptr
protected

static tool tip

Definition at line 87 of file MFXCheckableButton.h.

Referenced by onEnter(), onLeave(), and onMotion().


The documentation for this class was generated from the following files: