13495
|
1 /* Quint - A graphical user interface for Octave |
|
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 "SimpleEditor.h" |
|
26 #include "NumberedCodeEdit.h" |
|
27 |
|
28 class FileEditorMdiSubWindow : public QMdiSubWindow { |
|
29 Q_OBJECT |
|
30 public: |
|
31 FileEditorMdiSubWindow(QWidget *parent = 0); |
|
32 void loadFile(QString fileName); |
|
33 |
|
34 void installEventFilter(QObject *object); |
|
35 |
|
36 public slots: |
|
37 void newFile(); |
|
38 void saveFile(); |
|
39 |
|
40 void showToolTipNew(); |
|
41 void showToolTipSave(); |
|
42 void showToolTipUndo(); |
|
43 void showToolTipRedo(); |
|
44 |
|
45 void registerModified(bool modified); |
|
46 private: |
|
47 void construct(); |
|
48 QToolBar *m_toolBar; |
|
49 SimpleEditor *m_simpleEditor; |
|
50 NumberedCodeEdit *m_numberedTextView; |
|
51 QStatusBar *m_statusBar; |
|
52 QString m_fileName; |
|
53 bool m_modified; |
|
54 }; |
|
55 |
|
56 #endif // FILEEDITORMDISUBWINDOW_H |