Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
 
void hideStaticToolTip ()
 hide static toolTip
 
bool isStaticToolTipEnabled () const
 check staticToolTip is enabled
 
 MFXStaticToolTip (FXApp *app)
 FOX declaration.
 
void showStaticToolTip (const FXString &toolTipText)
 show static toolTip
 
 ~MFXStaticToolTip ()
 destructor
 
FOX callbacks
long onPaint (FXObject *obj, FXSelector sel, void *ptr)
 
long onUpdate (FXObject *sender, FXSelector sel, void *ptr)
 called when tooltip is updated
 

Protected Member Functions

 MFXStaticToolTip ()
 FOX need this.
 

Private Attributes

bool myEnableStaticTooltip = true
 flag for enable/disable static tooltip
 

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(), GNEOptionsDialog::onCmdShowToolTipsMenu(), GNEPythonToolDialog::onCmdShowToolTipsMenu(), GUIGlChildWindow::onCmdShowToolTipsMenu(), and GUIGlChildWindow::onCmdShowToolTipsView().

Here is the caller graph for this function:

◆ hideStaticToolTip()

void MFXStaticToolTip::hideStaticToolTip ( )

◆ 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(), MFXCheckButtonTooltip::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(), MFXCheckButtonTooltip::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: