Mercurial > hg > octave-lyh
annotate gui/src/FileEditorMdiSubWindow.h @ 13504:13e3d60aff2d
Replaced Quint with OctaveGUI.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sun, 17 Jul 2011 20:27:03 +0200 |
parents | 5ab40ef3d241 |
children | c70511cf64ee |
rev | line source |
---|---|
13504
13e3d60aff2d
Replaced Quint with OctaveGUI.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13503
diff
changeset
|
1 /* OctaveGUI - A graphical user interface for Octave |
13501 | 2 * Copyright (C) 2011 Jacob Dawid |
3 * jacob.dawid@googlemail.com | |
4 * | |
5 * This program is free software: you can redistribute it and/or modify | |
6 * it under the terms of the GNU General Public License as published by | |
7 * the Free Software Foundation, either version 3 of the License, or | |
8 * (at your option) any later version. | |
9 * | |
10 * This program is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 * GNU General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU General Public License | |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
17 */ | |
18 | |
19 #ifndef FILEEDITORMDISUBWINDOW_H | |
20 #define FILEEDITORMDISUBWINDOW_H | |
21 | |
22 #include <QMdiSubWindow> | |
23 #include <QToolBar> | |
24 #include <QStatusBar> | |
25 #include <Qsci/qsciscintilla.h> | |
13503
5ab40ef3d241
Merged diff from Torsten.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13501
diff
changeset
|
26 // Not available in the Debian repos yet! |
5ab40ef3d241
Merged diff from Torsten.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13501
diff
changeset
|
27 // #include <Qsci/qscilexeroctave.h> |
5ab40ef3d241
Merged diff from Torsten.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13501
diff
changeset
|
28 #include <Qsci/qsciapis.h> |
13501 | 29 |
30 class FileEditorMdiSubWindow : public QMdiSubWindow { | |
31 Q_OBJECT | |
32 public: | |
33 FileEditorMdiSubWindow(QWidget *parent = 0); | |
34 ~FileEditorMdiSubWindow(); | |
35 void loadFile(QString fileName); | |
36 | |
37 public slots: | |
38 void newFile(); | |
39 void saveFile(); | |
40 void saveFileAs(); | |
41 | |
42 void showToolTipNew(); | |
43 void showToolTipSave(); | |
44 void showToolTipSaveAs(); | |
45 void showToolTipUndo(); | |
46 void showToolTipRedo(); | |
47 | |
48 void registerModified(bool modified); | |
49 private: | |
50 int checkFileModified(QString msg); | |
51 void construct(); | |
52 QToolBar *m_toolBar; | |
53 QsciScintilla *m_editor; | |
54 QStatusBar *m_statusBar; | |
55 QString m_fileName; | |
56 bool m_modified; | |
57 }; | |
58 | |
59 #endif // FILEEDITORMDISUBWINDOW_H |