summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/MainWindow.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-22 18:26:35 +0200
committermadmaxoft <github@xoft.cz>2014-09-22 21:52:37 +0200
commit10c5d5056691f0a03798c7e9439138126da30b8a (patch)
treec07994699a9d5bc1891fb47cb70620d47e9114c4 /Tools/QtBiomeVisualiser/MainWindow.h
parentMerge pull request #1398 from mc-server/1.8-Protocol (diff)
downloadcuberite-10c5d5056691f0a03798c7e9439138126da30b8a.tar
cuberite-10c5d5056691f0a03798c7e9439138126da30b8a.tar.gz
cuberite-10c5d5056691f0a03798c7e9439138126da30b8a.tar.bz2
cuberite-10c5d5056691f0a03798c7e9439138126da30b8a.tar.lz
cuberite-10c5d5056691f0a03798c7e9439138126da30b8a.tar.xz
cuberite-10c5d5056691f0a03798c7e9439138126da30b8a.tar.zst
cuberite-10c5d5056691f0a03798c7e9439138126da30b8a.zip
Diffstat (limited to '')
-rw-r--r--Tools/QtBiomeVisualiser/MainWindow.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.h b/Tools/QtBiomeVisualiser/MainWindow.h
index 840e01b0f..6490a937f 100644
--- a/Tools/QtBiomeVisualiser/MainWindow.h
+++ b/Tools/QtBiomeVisualiser/MainWindow.h
@@ -3,6 +3,7 @@
#include <memory>
#include <QList>
#include <QMainWindow>
+#include <QHBoxLayout>
#include "BiomeView.h"
@@ -10,7 +11,7 @@
// fwd:
-class GeneratorSetupDlg;
+class GeneratorSetup;
@@ -21,8 +22,6 @@ class MainWindow :
{
Q_OBJECT
- BiomeView * m_BiomeView;
-
public:
MainWindow(QWidget * parent = nullptr);
~MainWindow();
@@ -54,8 +53,17 @@ protected:
/** Path to the vanilla folder. */
QString m_MinecraftPath;
- /** The dialog for setting up the generator. */
- std::unique_ptr<GeneratorSetupDlg> m_GeneratorSetupDlg;
+ /** The pane for setting up the generator, available when visualising a generator. */
+ GeneratorSetup * m_GeneratorSetup;
+
+ /** The main biome display widget. */
+ BiomeView * m_BiomeView;
+
+ /** The layout for the window. */
+ QHBoxLayout * m_MainLayout;
+
+ /** The separator line between biome view and generator setup. */
+ QWidget * m_LineSeparator;
/** Initializes the m_MinecraftPath based on the proper MC path */
@@ -73,6 +81,12 @@ protected:
/** Returns the name of the vanilla world in the specified path.
Reads the level.dat file for the name. Returns an empty string on failure. */
QString getWorldName(const AString & a_Path);
+
+ /** Opens the generator setup pane, if not already open, and loads the specified INI file to it. */
+ void openGeneratorSetup(const AString & a_IniFileName);
+
+ /** Closes and destroys the generator setup pane, if there is one. */
+ void closeGeneratorSetup();
};