Eclipse SUMO - Simulation of Urban MObility
FXMenuCheckIcon Class Reference

#include <FXMenuCheckIcon.h>

Inheritance diagram for FXMenuCheckIcon:
Collaboration diagram for FXMenuCheckIcon:

Public Member Functions

 FXMenuCheckIcon (FXComposite *p, const FXString &text, const FXIcon *icon, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0)
 FOX-declaration. More...
 
FXColor getBoxColor () const
 Get the box background color. More...
 
FXbool getCheck () const
 Get check state (TRUE, FALSE or MAYBE) More...
 
virtual FXint getDefaultHeight ()
 Return default height. More...
 
virtual FXint getDefaultWidth ()
 Return default width. More...
 
virtual void load (FXStream &store)
 Load menu from a stream. More...
 
virtual void save (FXStream &store) const
 Save menu to a stream. More...
 
void setBoxColor (FXColor clr)
 Set the box background color. More...
 
void setCheck (FXbool s=TRUE)
 Set check state (TRUE, FALSE or MAYBE) More...
 
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

 FXMenuCheckIcon ()
 default constructor More...
 

Protected Attributes

FXColor myBoxColor
 Box color. More...
 
FXuchar myCheck
 State of menu. More...
 
const FXIcon * myIcon
 Icon. More...
 

Private Member Functions

 FXMenuCheckIcon (const FXMenuCheckIcon &)=delete
 Invalidated copy constructor. More...
 
FXMenuCheckIconoperator= (const FXMenuCheckIcon &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

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 35 of file FXMenuCheckIcon.h.

Constructor & Destructor Documentation

◆ FXMenuCheckIcon() [1/3]

FXMenuCheckIcon::FXMenuCheckIcon ( FXComposite *  p,
const FXString &  text,
const FXIcon *  icon,
FXObject *  tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = 0 
)

FOX-declaration.

Construct a menu check

Definition at line 61 of file FXMenuCheckIcon.cpp.

◆ FXMenuCheckIcon() [2/3]

FXMenuCheckIcon::FXMenuCheckIcon ( )
protected

default constructor

Definition at line 418 of file FXMenuCheckIcon.cpp.

◆ FXMenuCheckIcon() [3/3]

FXMenuCheckIcon::FXMenuCheckIcon ( const FXMenuCheckIcon )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getBoxColor()

FXColor FXMenuCheckIcon::getBoxColor ( ) const

Get the box background color.

Definition at line 117 of file FXMenuCheckIcon.cpp.

References myBoxColor.

◆ getCheck()

FXbool FXMenuCheckIcon::getCheck ( ) const

Get check state (TRUE, FALSE or MAYBE)

Definition at line 111 of file FXMenuCheckIcon.cpp.

References myCheck.

Referenced by onCmdGetIntValue(), and GNEViewNetHelper::LockManager::updateFlags().

Here is the caller graph for this function:

◆ getDefaultHeight()

FXint FXMenuCheckIcon::getDefaultHeight ( )
virtual

Return default height.

Definition at line 92 of file FXMenuCheckIcon.cpp.

◆ getDefaultWidth()

FXint FXMenuCheckIcon::getDefaultWidth ( )
virtual

Return default width.

Definition at line 70 of file FXMenuCheckIcon.cpp.

References LEADSPACE, myIcon, and TRAILSPACE.

◆ load()

void FXMenuCheckIcon::load ( FXStream &  store)
virtual

Load menu from a stream.

Definition at line 411 of file FXMenuCheckIcon.cpp.

References myBoxColor, and myCheck.

◆ onButtonPress()

long FXMenuCheckIcon::onButtonPress ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 165 of file FXMenuCheckIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onButtonRelease()

long FXMenuCheckIcon::onButtonRelease ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 174 of file FXMenuCheckIcon.cpp.

References myCheck, and setCheck().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCheck()

long FXMenuCheckIcon::onCheck ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 123 of file FXMenuCheckIcon.cpp.

References setCheck().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdAccel()

long FXMenuCheckIcon::onCmdAccel ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 250 of file FXMenuCheckIcon.cpp.

References myCheck, and setCheck().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdGetIntValue()

long FXMenuCheckIcon::onCmdGetIntValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 158 of file FXMenuCheckIcon.cpp.

References getCheck().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetIntValue()

long FXMenuCheckIcon::onCmdSetIntValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 151 of file FXMenuCheckIcon.cpp.

References setCheck().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetValue()

long FXMenuCheckIcon::onCmdSetValue ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 144 of file FXMenuCheckIcon.cpp.

References setCheck().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onHotKeyPress()

long FXMenuCheckIcon::onHotKeyPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 224 of file FXMenuCheckIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onHotKeyRelease()

long FXMenuCheckIcon::onHotKeyRelease ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 235 of file FXMenuCheckIcon.cpp.

References myCheck, and setCheck().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyPress()

long FXMenuCheckIcon::onKeyPress ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 191 of file FXMenuCheckIcon.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyRelease()

long FXMenuCheckIcon::onKeyRelease ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 205 of file FXMenuCheckIcon.cpp.

References myCheck, and setCheck().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

long FXMenuCheckIcon::onPaint ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 263 of file FXMenuCheckIcon.cpp.

References LEADSPACE, myBoxColor, myCheck, myIcon, and TRAILSPACE.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUncheck()

long FXMenuCheckIcon::onUncheck ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 130 of file FXMenuCheckIcon.cpp.

References setCheck().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUnknown()

long FXMenuCheckIcon::onUnknown ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 137 of file FXMenuCheckIcon.cpp.

References setCheck().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ save()

void FXMenuCheckIcon::save ( FXStream &  store) const
virtual

Save menu to a stream.

Definition at line 404 of file FXMenuCheckIcon.cpp.

References myBoxColor, and myCheck.

◆ setBoxColor()

void FXMenuCheckIcon::setBoxColor ( FXColor  clr)

Set the box background color.

Definition at line 395 of file FXMenuCheckIcon.cpp.

References myBoxColor.

◆ setCheck()

void FXMenuCheckIcon::setCheck ( FXbool  s = TRUE)

Set check state (TRUE, FALSE or MAYBE)

Definition at line 102 of file FXMenuCheckIcon.cpp.

References myCheck.

Referenced by onButtonRelease(), onCheck(), onCmdAccel(), onCmdSetIntValue(), onCmdSetValue(), onHotKeyRelease(), onKeyRelease(), onUncheck(), onUnknown(), GNEApplicationWindow::onUpdToggleViewOption(), and GNEViewNetHelper::LockManager::updateLockMenuBar().

Here is the caller graph for this function:

Field Documentation

◆ myBoxColor

FXColor FXMenuCheckIcon::myBoxColor
protected

Box color.

Definition at line 96 of file FXMenuCheckIcon.h.

Referenced by getBoxColor(), load(), onPaint(), save(), and setBoxColor().

◆ myCheck

FXuchar FXMenuCheckIcon::myCheck
protected

State of menu.

Definition at line 93 of file FXMenuCheckIcon.h.

Referenced by getCheck(), load(), onButtonRelease(), onCmdAccel(), onHotKeyRelease(), onKeyRelease(), onPaint(), save(), and setCheck().

◆ myIcon

const FXIcon* FXMenuCheckIcon::myIcon
protected

Icon.

Definition at line 90 of file FXMenuCheckIcon.h.

Referenced by getDefaultWidth(), and onPaint().


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