-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
63 lines (46 loc) · 1.04 KB
/
mainwindow.h
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
54
55
56
57
58
59
60
61
62
63
/*
* Description : Home Creator 3D
*
* Auteur : Alexandre Lefranc, ÉTS (C) 2012
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTreeWidgetItem>
#include <QList>
#include "mobilier.h"
#include "ui_aboutdialog.h"
namespace Ui {
class MainWindow;
class AboutDialog;
}
// Classe de la fenêtre principale
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void enable3D();
void disable3D();
Ui::MainWindow* getUi();
void refreshRender();
void resizeEvent( QResizeEvent * event );
signals:
void itemSelected(QString name);
void newHouse();
void loadHouse(QString fileName);
void saveHouse(QString fileName);
private slots:
void click3DView();
void click2DView();
void itemClick(QTreeWidgetItem * item, int column);
void newFile();
void loadFile();
bool saveFile();
void quit();
void createAndShowAbout();
private:
Ui::MainWindow* ui;
};
#endif // MAINWINDOW_H