Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
 
 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
 
MFXStaticToolTipmyStaticToolTip = nullptr
 static tool tip
 

Private Member Functions

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

Detailed Description

Definition at line 37 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 43 of file MFXCheckableButton.cpp.

◆ ~MFXCheckableButton()

MFXCheckableButton::~MFXCheckableButton ( )

destructor (Called automatically)

Definition at line 54 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 58 of file MFXCheckableButton.cpp.

References myAmChecked.

Referenced by GNEViewNet::askMergeJunctions(), GNEViewNet::autoSelectNodes(), GUIGlChildWindow::buildNavigationToolBar(), GNEViewNet::changeAllPhases(), GNEViewNet::drawGrid(), GNEViewNet::drawTemporalJunction(), GUISUMOViewParent::onCmdMakeSnapshot(), GNEOptionsEditor::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::onCmdToggleMergeAutomatically(), 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(), GUIGlChildWindow::onCmdZoomStyle(), GNEApplicationWindow::onUpdToggleViewOption(), GNEViewNet::processLeftButtonPressNetwork(), and GNEViewNet::showJunctionAsBubbles().

Here is the caller graph for this function:

◆ buildColors()

void MFXCheckableButton::buildColors ( )
protected

build color of this MFXCheckableButton

Definition at line 121 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 97 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 105 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 113 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 77 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 87 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 64 of file MFXCheckableButton.cpp.

References myAmChecked.

Referenced by GNEStopFrame::addStop(), GUIGlChildWindow::buildNavigationToolBar(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNEViewNet::doPaintGL(), GNEViewNet::drawGrid(), GNEViewNet::GNEViewNet(), GUISUMOViewParent::onCmdMakeSnapshot(), GNENetgenerateDialog::onCmdSetGridNetwork(), GNENetgenerateDialog::onCmdSetRandomNetwork(), GNENetgenerateDialog::onCmdSetRandomNetworkGridNetwork(), GNENetgenerateDialog::onCmdSetSpiderNetwork(), GNEOptionsEditor::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::onCmdToggleMergeAutomatically(), 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(), GUIGlChildWindow::onCmdZoomStyle(), GNEViewNet::updateDataModeSpecificControls(), GNEViewNet::updateDemandModeSpecificControls(), and GNEViewNet::updateNetworkModeSpecificControls().

◆ setColors()

void MFXCheckableButton::setColors ( )
protected

set colors of this MFXCheckableButton

Definition at line 131 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 81 of file MFXCheckableButton.h.

Referenced by amChecked(), setChecked(), and setColors().

◆ myAmInitialised

bool MFXCheckableButton::myAmInitialised
protected

check if this MFXCheckableButton is initialised

Definition at line 90 of file MFXCheckableButton.h.

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

◆ myBackColor

FXColor MFXCheckableButton::myBackColor
protected

colors of this MFXCheckableButton

Definition at line 84 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myDarkColor

FXColor MFXCheckableButton::myDarkColor
protected

Definition at line 85 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myHiliteColor

FXColor MFXCheckableButton::myHiliteColor
protected

Definition at line 86 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myShadowColor

FXColor MFXCheckableButton::myShadowColor
protected

Definition at line 87 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myStaticToolTip

MFXStaticToolTip* MFXCheckableButton::myStaticToolTip = nullptr
protected

static tool tip

Definition at line 93 of file MFXCheckableButton.h.

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


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