Engauge Digitizer 2
|
Wrapper around QStatusBar to manage permanent widgets. More...
#include <StatusBar.h>
Public Slots | |
void | slotZoom (int) |
Receive zoom selection from MainWindow. |
Signals | |
void | signalZoom (int) |
Send zoom factor, that was just selected in the status bar, to MainWindow. |
Public Member Functions | |
StatusBar (QStatusBar &statusBar) | |
Single constructor that accepts the previously-constructed standard QStatusBar. | |
~StatusBar () | |
void | setCoordinates (const QString &coordsScreen, const QString &coordsGraph, const QString &resolutionGraph) |
Populate the coordinates fields. Unavailable values are empty. Html-encoding to highlight with colors is supported. | |
void | setStatusBarMode (StatusBarMode statusBarMode) |
Set the status bar visibility mode. | |
void | showTemporaryMessage (const QString &message) |
Show temporary message in status bar. After a short interval the message will disappear. | |
StatusBarMode | statusBarMode () const |
Current mode for status bar visibility. This is tracked locally so this class knows when to hide/show the status bar. | |
void | wakeUp () |
Enable all widgets in the status bar. This is called just after a Document becomes active. |
Wrapper around QStatusBar to manage permanent widgets.
This class does not inherit from QStatusBar since QApplication automatically sets up its own QStatusBar
Definition at line 24 of file StatusBar.h.
StatusBar::StatusBar | ( | QStatusBar & | statusBar | ) |
Single constructor that accepts the previously-constructed standard QStatusBar.
Definition at line 28 of file StatusBar.cpp.
StatusBar::~StatusBar | ( | ) |
Definition at line 44 of file StatusBar.cpp.
void StatusBar::setCoordinates | ( | const QString & | coordsScreen, |
const QString & | coordsGraph, | ||
const QString & | resolutionGraph ) |
Populate the coordinates fields. Unavailable values are empty. Html-encoding to highlight with colors is supported.
Definition at line 239 of file StatusBar.cpp.
void StatusBar::setStatusBarMode | ( | StatusBarMode | statusBarMode | ) |
Set the status bar visibility mode.
Definition at line 258 of file StatusBar.cpp.
void StatusBar::showTemporaryMessage | ( | const QString & | message | ) |
Show temporary message in status bar. After a short interval the message will disappear.
Definition at line 268 of file StatusBar.cpp.
|
signal |
Send zoom factor, that was just selected in the status bar, to MainWindow.
|
slot |
Receive zoom selection from MainWindow.
Definition at line 322 of file StatusBar.cpp.
|
inline |
Current mode for status bar visibility. This is tracked locally so this class knows when to hide/show the status bar.
Definition at line 45 of file StatusBar.h.
void StatusBar::wakeUp | ( | ) |
Enable all widgets in the status bar. This is called just after a Document becomes active.
Definition at line 343 of file StatusBar.cpp.