summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/MainWindow.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-03 19:41:42 +0200
committerMattes D <github@xoft.cz>2014-10-03 19:41:42 +0200
commit0aa1b5667e0ba97101f60343323c595cc7866c6d (patch)
tree5d39793f4b9e6662a7e53f8cdb4c375bdc7f23ff /Tools/QtBiomeVisualiser/MainWindow.h
parentQtBiomeVisualiser: Zoom is now limited and aligned to steps. (diff)
downloadcuberite-0aa1b5667e0ba97101f60343323c595cc7866c6d.tar
cuberite-0aa1b5667e0ba97101f60343323c595cc7866c6d.tar.gz
cuberite-0aa1b5667e0ba97101f60343323c595cc7866c6d.tar.bz2
cuberite-0aa1b5667e0ba97101f60343323c595cc7866c6d.tar.lz
cuberite-0aa1b5667e0ba97101f60343323c595cc7866c6d.tar.xz
cuberite-0aa1b5667e0ba97101f60343323c595cc7866c6d.tar.zst
cuberite-0aa1b5667e0ba97101f60343323c595cc7866c6d.zip
Diffstat (limited to '')
-rw-r--r--Tools/QtBiomeVisualiser/MainWindow.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.h b/Tools/QtBiomeVisualiser/MainWindow.h
index 54a9cc6c7..27faae7a8 100644
--- a/Tools/QtBiomeVisualiser/MainWindow.h
+++ b/Tools/QtBiomeVisualiser/MainWindow.h
@@ -4,6 +4,7 @@
#include <QList>
#include <QMainWindow>
#include <QHBoxLayout>
+#include <QLabel>
#include "BiomeView.h"
@@ -51,6 +52,9 @@ private slots:
/** Sets a zoom level one step smaller than current, if allowed. */
void decreaseZoom();
+ /** Updates the statusbar for the specified info about the current block under the cursor. */
+ void hoverChanged(int a_BlockX, int a_BlockZ, int a_Biome);
+
protected:
/** The zoom levels */
static const double m_ViewZooms[10];
@@ -79,6 +83,13 @@ protected:
/** The layout for the window. */
QHBoxLayout * m_MainLayout;
+ /** The status bar that displays the current hover information. */
+ QStatusBar * m_StatusBar;
+
+ QLabel * m_StatusBlockX;
+ QLabel * m_StatusBlockZ;
+ QLabel * m_StatusBiome;
+
/** The separator line between biome view and generator setup. */
QWidget * m_LineSeparator;