-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMainWindow.h
More file actions
54 lines (47 loc) · 1.1 KB
/
MainWindow.h
File metadata and controls
54 lines (47 loc) · 1.1 KB
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
47
48
49
50
51
52
53
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <map>
#include <boost/shared_ptr.hpp>
#include <QtGui>
#include "NBTTag.h"
#include "Item.h"
#include "InventoryWidget.h"
#include "ScriptWidget.h"
#include "MiscWidget.h"
using std::map;
class MainWindow : public QMainWindow
{
Q_OBJECT;
public:
MainWindow();
~MainWindow();
void closeEvent(QCloseEvent* event);
private slots:
void Open();
void Save();
void SaveAs();
void ImportInventory();
void ExportInventory();
private:
//Widgets
QMenu* fileMenu;
QMenu* editMenu;
QMenu* inventoryMenu;
QMenu* scriptMenu;
QTabWidget* tabWidget;
InventoryWidget* inventoryWidget;
ScriptWidget* scriptWidget;
MiscWidget* miscWidget;
//Data
QString openFileName;
NBT::Tag rootTag;
MainWindow(const MainWindow&); //No definition.
MainWindow& operator=(const MainWindow&); //No definition.
void LoadWorld(const char* worldName);
bool Load(const char* filePath);
bool Save(const char* filePath);
void ImportInventory(const char* filePath);
void ExportInventory(const char* filePath);
NBT::Tag* GetInventoryTag();
};
#endif