Eclipse SUMO - Simulation of Urban MObility
MFXStaticToolTip Class Reference

MFXStaticToolTip (based on FXToolTip) More...

#include <MFXStaticToolTip.h>

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

Public Member Functions

void enableStaticToolTip (const bool value)
 enable/disable static tooltip More...
 
void hideStaticToolTip ()
 hide static toolTip More...
 
bool isStaticToolTipEnabled () const
 check staticToolTip is enabled More...
 
 MFXStaticToolTip (FXApp *app)
 FOX declaration. More...
 
void showStaticToolTip (const FXString &toolTipText)
 show static toolTip More...
 
 ~MFXStaticToolTip ()
 destructor More...
 
FOX callbacks
long onPaint (FXObject *obj, FXSelector sel, void *ptr)
 
long onUpdate (FXObject *sender, FXSelector sel, void *ptr)
 called when tooltip is updated More...
 

Protected Member Functions

 MFXStaticToolTip ()
 FOX need this. More...
 

Private Attributes

bool myEnableStaticTooltip = true
 flag for enable/disable static tooltip More...
 

Detailed Description

MFXStaticToolTip (based on FXToolTip)

Definition at line 27 of file MFXStaticToolTip.h.

Constructor & Destructor Documentation

◆ MFXStaticToolTip() [1/2]

MFXStaticToolTip::MFXStaticToolTip ( FXApp *  app)

FOX declaration.

constructor

Definition at line 49 of file MFXStaticToolTip.cpp.

◆ ~MFXStaticToolTip()

MFXStaticToolTip::~MFXStaticToolTip ( )

destructor

Definition at line 58 of file MFXStaticToolTip.cpp.

◆ MFXStaticToolTip() [2/2]

MFXStaticToolTip::MFXStaticToolTip ( )
protected

FOX need this.

Definition at line 132 of file MFXStaticToolTip.cpp.

Member Function Documentation

◆ enableStaticToolTip()

void MFXStaticToolTip::enableStaticToolTip ( const bool  value)

enable/disable static tooltip

Definition at line 62 of file MFXStaticToolTip.cpp.

References hideStaticToolTip(), and myEnableStaticTooltip.

Referenced by GUIGlChildWindow::buildNavigationToolBar(), GUIGlChildWindow::onCmdShowToolTipsMenu(), and GUIGlChildWindow::onCmdShowToolTipsView().

Here is the caller graph for this function:

◆ hideStaticToolTip()

void MFXStaticToolTip::hideStaticToolTip ( )

hide static toolTip

Definition at line 94 of file MFXStaticToolTip.cpp.

Referenced by enableStaticToolTip(), MFXLCDLabel::onEnter(), MFXButtonTooltip::onLeave(), MFXCheckableButton::onLeave(), MFXLabelTooltip::onLeave(), MFXMenuButtonTooltip::onLeave(), MFXTextFieldTooltip::onLeave(), MFXToggleButtonTooltip::onLeave(), MFXLCDLabel::onLeave(), GUISUMOAbstractView::paintGL(), showStaticToolTip(), and GUISUMOAbstractView::showToolTipFor().

Here is the caller graph for this function:

◆ isStaticToolTipEnabled()

bool MFXStaticToolTip::isStaticToolTipEnabled ( ) const

check staticToolTip is enabled

Definition at line 73 of file MFXStaticToolTip.cpp.

References myEnableStaticTooltip.

Referenced by GUISUMOAbstractView::paintGL(), and GUISUMOAbstractView::updateToolTip().

Here is the caller graph for this function:

◆ onPaint()

long MFXStaticToolTip::onPaint ( FXObject *  obj,
FXSelector  sel,
void *  ptr 
)

Definition at line 103 of file MFXStaticToolTip.cpp.

References myEnableStaticTooltip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdate()

long MFXStaticToolTip::onUpdate ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

called when tooltip is updated

Definition at line 114 of file MFXStaticToolTip.cpp.

Referenced by FXDEFMAP(), MFXButtonTooltip::onMotion(), MFXCheckableButton::onMotion(), MFXLabelTooltip::onMotion(), MFXMenuButtonTooltip::onMotion(), MFXTextFieldTooltip::onMotion(), MFXToggleButtonTooltip::onMotion(), MFXLCDLabel::onMotion(), and showStaticToolTip().

Here is the caller graph for this function:

◆ showStaticToolTip()

void MFXStaticToolTip::showStaticToolTip ( const FXString &  toolTipText)

show static toolTip

Definition at line 79 of file MFXStaticToolTip.cpp.

References hideStaticToolTip(), myEnableStaticTooltip, and onUpdate().

Referenced by MFXButtonTooltip::onEnter(), MFXCheckableButton::onEnter(), MFXLabelTooltip::onEnter(), MFXMenuButtonTooltip::onEnter(), MFXTextFieldTooltip::onEnter(), MFXToggleButtonTooltip::onEnter(), MFXLCDLabel::onEnter(), and GUISUMOAbstractView::showToolTipFor().

Here is the caller graph for this function:

Field Documentation

◆ myEnableStaticTooltip

bool MFXStaticToolTip::myEnableStaticTooltip = true
private

flag for enable/disable static tooltip

Definition at line 66 of file MFXStaticToolTip.h.

Referenced by enableStaticToolTip(), isStaticToolTipEnabled(), onPaint(), and showStaticToolTip().


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