-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMainWindow.hpp
152 lines (85 loc) · 3.49 KB
/
MainWindow.hpp
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/*
This file is part of OpenFLUID software
Copyright(c) 2007, INRA - Montpellier SupAgro
== GNU General Public License Usage ==
OpenFLUID is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFLUID is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OpenFLUID. If not, see <http://www.gnu.org/licenses/>.
== Other Usage ==
Other Usage means a use of OpenFLUID that is inconsistent with the GPL
license, and requires a written agreement between You and INRA.
Licensees for Other Usage of OpenFLUID may use this file in accordance
with the terms contained in the written agreement between You and INRA.
*/
/**
@file MainWindow.hpp
@author Aline LIBRES <[email protected]>
@author Jean-Christophe Fabre <[email protected]>
*/
#ifndef __OPENFLUID_DEVSTUDIOAPP_MAINWINDOW_HPP__
#define __OPENFLUID_DEVSTUDIOAPP_MAINWINDOW_HPP__
#include <QMap>
#include <openfluid/ui/common/ActionLabel.hpp>
#include <openfluid/ui/common/AppMainWindow.hpp>
#include <openfluid/ui/common/OpenFLUIDSplashScreen.hpp>
#include <openfluid/ui/waresdev/WareSrcWidgetCollection.hpp>
#include <openfluid/ui/waresdev/WareSrcActionsCollection.hpp>
#include <openfluid/waresdev/WareBuildOptions.hpp>
#include <openfluid/dllexport.hpp>
#include "WareBuildStatusWidget.hpp"
#include "WorkspaceToolbar.hpp"
namespace Ui {
class MainWindow;
}
class QAction;
namespace openfluid { namespace ui { namespace waresdev {
class WareSrcWidget;
} } }
class OPENFLUID_API MainWindow: public openfluid::ui::common::AppMainWindow
{
Q_OBJECT
private:
Ui::MainWindow* ui;
WorkspaceToolbar* mp_Toolbar;
openfluid::ui::waresdev::WareSrcActionsCollection* mp_ActionsCollection;
openfluid::waresdev::WareBuildOptions m_BuildOptions;
WareBuildStatusWidget* mp_BuildStatusWidget;
openfluid::ui::waresdev::WareSrcWidgetCollection* mp_WidgetsCollection;
QMap<QString, QAction*> m_Actions;
std::list<QAction*> m_ExternalToolsActions;
void createLocalActions();
void createMenus();
void setWorkspaceDefaults();
signals:
void openExternalToolAsked(const QString& Command, const QString& FilePath);
private slots:
void displayBuildOptionsDialog();
void onOpenExternalToolAsked();
void onQuitRequested();
void onPreferencesAsked();
void onImportWareSourcesAsked();
void onExportWareSourcesAsked();
void onDevDashboardAsked();
void onAboutAsked();
void onOnlineWebAsked();
void onOnlineCommunityAsked();
void onBuildOptionsChanged(openfluid::waresdev::WareBuildOptions WareBuildOptions, bool RefreshVisual=false);
void setCurrentPath(const QString& Path);
void updateSaveButtonsStatus(bool FileModified, bool FileOpen, bool WareModified);
void onDuplicateWareRequested();
void onDeleteWareRequested();
void onCloseAllWaresRequested();
void updateExplorer();
public:
MainWindow(openfluid::ui::common::OpenFLUIDSplashScreen* Splash);
~MainWindow();
void closeEvent(QCloseEvent* Event);
};
#endif /* __OPENFLUID_DEVSTUDIOAPP_MAINWINDOW_HPP__ */