Eclipse SUMO - Simulation of Urban MObility
|
MFXStaticToolTip (based on FXToolTip) More...
#include <MFXStaticToolTip.h>
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 | |
draw MFXStaticToolTip | |
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 | |
MFXStaticToolTip (based on FXToolTip)
Definition at line 27 of file MFXStaticToolTip.h.
MFXStaticToolTip::MFXStaticToolTip | ( | FXApp * | app | ) |
MFXStaticToolTip::~MFXStaticToolTip | ( | ) |
destructor
Definition at line 58 of file MFXStaticToolTip.cpp.
|
protected |
FOX need this.
Definition at line 132 of file MFXStaticToolTip.cpp.
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().
void MFXStaticToolTip::hideStaticToolTip | ( | ) |
hide static toolTip
Definition at line 94 of file MFXStaticToolTip.cpp.
Referenced by enableStaticToolTip(), MFXLCDLabel::onEnter(), MFXButtonTooltip::onLeave(), MFXCheckableButton::onLeave(), MFXCheckButtonTooltip::onLeave(), MFXLabelTooltip::onLeave(), MFXMenuButtonTooltip::onLeave(), MFXTextFieldTooltip::onLeave(), MFXToggleButtonTooltip::onLeave(), MFXLCDLabel::onLeave(), GUISUMOAbstractView::paintGL(), showStaticToolTip(), and GUISUMOAbstractView::showToolTipFor().
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().
long MFXStaticToolTip::onPaint | ( | FXObject * | obj, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 103 of file MFXStaticToolTip.cpp.
References myEnableStaticTooltip.
Referenced by FXDEFMAP().
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().
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().
|
private |
flag for enable/disable static tooltip
Definition at line 66 of file MFXStaticToolTip.h.
Referenced by enableStaticToolTip(), isStaticToolTipEnabled(), onPaint(), and showStaticToolTip().