1 // Copyright (c) 2012 Dennco Project
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 // Created by tkawata on Sep-30, 2012.
22 #include <QMainWindow>
24 #include <QSharedMemory>
31 class DCGLVisualizerWidget;
32 class DCTreeViewWidget;
34 class MainWindow : public QMainWindow
39 explicit MainWindow(QWidget *parent = 0);
42 static QByteArray readSettingsForCellScriptsEditorGeometory();
43 static void writeSettingsForCellScriptsEditorGeometory(const QByteArray &value);
46 void closeEvent(QCloseEvent *event);
57 bool save(bool showMessage);
60 void documentWasModified();
66 void createOpenRecentMenu();
67 void createToolBars();
68 void createStatusBar();
72 bool openRecent(int idx);
73 void loadContent(const QString &contentDirectory);
74 void setCurrentContent(const QString &contentDirectory);
75 QString strippedName(const QString &fullFileName);
80 QMenu *openRecentMenu;
83 QToolBar *fileToolBar;
84 QToolBar *editToolBar;
85 QToolBar *playToolBar;
96 QList<QAction*> openRecentActs;
100 DCCreator *d_creator;
101 DCGLVisualizerWidget *d_visualizerWidget;
102 DCTreeViewWidget *d_treeViewWidget;
104 QString d_IPCServerName;
105 QStringList d_contentOpenHistory;
108 #endif // MAINWINDOW_H