summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/BiomeView.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-10-03 12:33:03 +0200
committermadmaxoft <github@xoft.cz>2014-10-03 12:33:03 +0200
commitf625b33d56f6a0ce98f03a24bf6cad8b5624ce07 (patch)
tree5062632160237bcc8e382527bddfb54b4b1b5d45 /Tools/QtBiomeVisualiser/BiomeView.h
parentFix spelling of PRISMRAINE (diff)
downloadcuberite-f625b33d56f6a0ce98f03a24bf6cad8b5624ce07.tar
cuberite-f625b33d56f6a0ce98f03a24bf6cad8b5624ce07.tar.gz
cuberite-f625b33d56f6a0ce98f03a24bf6cad8b5624ce07.tar.bz2
cuberite-f625b33d56f6a0ce98f03a24bf6cad8b5624ce07.tar.lz
cuberite-f625b33d56f6a0ce98f03a24bf6cad8b5624ce07.tar.xz
cuberite-f625b33d56f6a0ce98f03a24bf6cad8b5624ce07.tar.zst
cuberite-f625b33d56f6a0ce98f03a24bf6cad8b5624ce07.zip
Diffstat (limited to 'Tools/QtBiomeVisualiser/BiomeView.h')
-rw-r--r--Tools/QtBiomeVisualiser/BiomeView.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/Tools/QtBiomeVisualiser/BiomeView.h b/Tools/QtBiomeVisualiser/BiomeView.h
index f0521571d..ae5dd2338 100644
--- a/Tools/QtBiomeVisualiser/BiomeView.h
+++ b/Tools/QtBiomeVisualiser/BiomeView.h
@@ -25,7 +25,24 @@ public:
The entire view is then invalidated and regenerated. */
void setChunkSource(std::shared_ptr<ChunkSource> a_ChunkSource);
+ /** Sets the position of the central pixel of the map to the specified point and redraws the view. */
+ void setPosition(int a_BlockX, int a_BlockZ);
+
+ /** Sets the zoom level to the specified value and redraws the view. */
+ void setZoomLevel(double a_ZoomLevel);
+
signals:
+ /** Signalled when the user uses the wheel to scroll upwards. */
+ void wheelUp();
+
+ /** Signalled when the user uses the wheel to scroll downwards. */
+ void wheelDown();
+
+ /** Signalled when the user presses a key to increase zoom. */
+ void increaseZoom();
+
+ /** Signalled when the user presses a key to decrease zoom. */
+ void decreaseZoom();
public slots:
/** Redraw the entire widget area. */
@@ -86,12 +103,6 @@ protected:
/** Called when the user presses a key. */
virtual void keyPressEvent(QKeyEvent * a_Event) override;
-
- /** Decreases the zoom level and queues a redraw. */
- void decreaseZoom();
-
- /** Increases the zoom level and queues a redraw. */
- void increaseZoom();
};