summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/MainWindow.h
blob: f6028aff1e07893725f253a38e3951206b43bac2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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();
};