diff options
author | Mattes D <github@xoft.cz> | 2014-09-14 01:32:00 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-14 01:33:05 +0200 |
commit | e3a2dc5a1391d8aaaa3fdb83e946838540a07e75 (patch) | |
tree | 1a665fcc4ae0ea097ba476f70dddb5ef03539a28 /Tools/QtBiomeVisualiser/MainWindow.h | |
parent | OSSupport: Fixed UNICODE Windows builds. (diff) | |
download | cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar.gz cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar.bz2 cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar.lz cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar.xz cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.tar.zst cuberite-e3a2dc5a1391d8aaaa3fdb83e946838540a07e75.zip |
Diffstat (limited to 'Tools/QtBiomeVisualiser/MainWindow.h')
-rw-r--r-- | Tools/QtBiomeVisualiser/MainWindow.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.h b/Tools/QtBiomeVisualiser/MainWindow.h new file mode 100644 index 000000000..f6028aff1 --- /dev/null +++ b/Tools/QtBiomeVisualiser/MainWindow.h @@ -0,0 +1,46 @@ +#pragma once + +#include <QMainWindow> +#include "BiomeView.h" + + + + + +class MainWindow : + public QMainWindow +{ + Q_OBJECT + + BiomeView * m_BiomeView; + +public: + MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private slots: + /** Opens a generator definition and generates the biomes based on that. */ + void generate(); + + /** Opens an existing world and displays the loaded biomes. */ + void open(); + +protected: + // Actions: + QAction * m_actGen; + QAction * m_actOpen; + QAction * m_actExit; + + + /** Creates the actions that the UI supports. */ + void createActions(); + + /** Creates the menu bar and connects its events. */ + void createMenus(); +}; + + + + + + |