diff options
author | madmaxoft <github@xoft.cz> | 2014-09-21 22:58:09 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-09-21 22:58:27 +0200 |
commit | dda66ea6efaa1ae3305dae97a9ab9bdb4254cf46 (patch) | |
tree | 85056e0b97bf7eca289cb07f7fb0dad27ac13004 /Tools/QtBiomeVisualiser/MainWindow.h | |
parent | Fix crash in cLineBlockTracer (diff) | |
download | cuberite-dda66ea6efaa1ae3305dae97a9ab9bdb4254cf46.tar cuberite-dda66ea6efaa1ae3305dae97a9ab9bdb4254cf46.tar.gz cuberite-dda66ea6efaa1ae3305dae97a9ab9bdb4254cf46.tar.bz2 cuberite-dda66ea6efaa1ae3305dae97a9ab9bdb4254cf46.tar.lz cuberite-dda66ea6efaa1ae3305dae97a9ab9bdb4254cf46.tar.xz cuberite-dda66ea6efaa1ae3305dae97a9ab9bdb4254cf46.tar.zst cuberite-dda66ea6efaa1ae3305dae97a9ab9bdb4254cf46.zip |
Diffstat (limited to '')
-rw-r--r-- | Tools/QtBiomeVisualiser/MainWindow.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.h b/Tools/QtBiomeVisualiser/MainWindow.h index 997d7a5d2..840e01b0f 100644 --- a/Tools/QtBiomeVisualiser/MainWindow.h +++ b/Tools/QtBiomeVisualiser/MainWindow.h @@ -1,5 +1,6 @@ #pragma once +#include <memory> #include <QList> #include <QMainWindow> #include "BiomeView.h" @@ -8,6 +9,13 @@ +// fwd: +class GeneratorSetupDlg; + + + + + class MainWindow : public QMainWindow { @@ -16,23 +24,27 @@ class MainWindow : BiomeView * m_BiomeView; public: - MainWindow(QWidget *parent = 0); + MainWindow(QWidget * parent = nullptr); ~MainWindow(); private slots: + /** Creates a generator definition from scratch, lets user modify generator params in realtime. */ + void newGenerator(); + /** Opens a generator definition and generates the biomes based on that. */ - void generate(); + void openGenerator(); /** Opens an existing world and displays the loaded biomes. */ - void open(); + void openWorld(); /** Opens a vanilla world that is specified by the calling action. */ void openVanillaWorld(); protected: // Actions: - QAction * m_actGen; - QAction * m_actOpen; + QAction * m_actNewGen; + QAction * m_actOpenGen; + QAction * m_actOpenWorld; QAction * m_actReload; QAction * m_actExit; @@ -42,6 +54,9 @@ protected: /** Path to the vanilla folder. */ QString m_MinecraftPath; + /** The dialog for setting up the generator. */ + std::unique_ptr<GeneratorSetupDlg> m_GeneratorSetupDlg; + /** Initializes the m_MinecraftPath based on the proper MC path */ void initMinecraftPath(); |