35 const QString &coordsGraph,
36 const QString &resolutionGraph);
56 void slotComboUnits (
const QString &);
59 void slotComboZoom (
const QString &);
63 void slotStatusBarChanged(
const QString &message);
75 void createGroupUnits ();
77 void createZoomLabels ();
78 void createZoomMaps ();
79 QString labelCoordsGraph ()
const;
80 QString labelCoordsScreen ()
const;
81 QString labelResolutionGraph ()
const;
82 void updateCoordsText ();
85 STATUS_BAR_UNITS_COORDS_SCREEN,
86 STATUS_BAR_UNITS_COORDS_GRAPH,
87 STATUS_BAR_UNITS_RESOLUTION_GRAPH
90 QStatusBar &m_statusBar;
95 QComboBox *m_cmbUnits;
96 QTextEdit *m_editCoords;
98 QString m_coordsScreen;
99 QString m_coordsGraph;
100 QString m_resolutionGraph;
107 QMap<ZoomFactor, QString> m_zoomMapToLabel;
108 QMap<QString, ZoomFactor> m_zoomMapFromLabel;
void wakeUp()
Enable all widgets in the status bar. This is called just after a Document becomes active.
void setStatusBarMode(StatusBarMode statusBarMode)
Set the status bar visibility mode.
void signalZoom(int)
Send zoom factor, that was just selected in the status bar, to MainWindow.
StatusBarMode statusBarMode() const
Current mode for status bar visibility. This is tracked locally so this class knows when to hide/show...
void showTemporaryMessage(const QString &message)
Show temporary message in status bar. After a short interval the message will disappear.
StatusBar(QStatusBar &statusBar)
Single constructor that accepts the previously-constructed standard QStatusBar.
void slotZoom(int)
Receive zoom selection from MainWindow.
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...