Mercurial > hg > octave-lyh
annotate gui/src/HistoryDockWidget.h @ 13504:13e3d60aff2d
Replaced Quint with OctaveGUI.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sun, 17 Jul 2011 20:27:03 +0200 |
parents | 86d6c3b90ad7 |
children | c70511cf64ee |
rev | line source |
---|---|
13504
13e3d60aff2d
Replaced Quint with OctaveGUI.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13501
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 HISTORYDOCKWIDGET_H | |
20 #define HISTORYDOCKWIDGET_H | |
21 | |
22 #include <QDockWidget> | |
23 #include <QListView> | |
24 #include <QStringListModel> | |
25 | |
26 // Octave includes | |
27 #undef PACKAGE_BUGREPORT | |
28 #undef PACKAGE_NAME | |
29 #undef PACKAGE_STRING | |
30 #undef PACKAGE_TARNAME | |
31 #undef PACKAGE_VERSION | |
32 #undef PACKAGE_URL | |
33 #include "octave/config.h" | |
34 | |
35 #include "octave/debug.h" | |
36 #include "octave/octave.h" | |
37 #include "octave/symtab.h" | |
38 #include "octave/parse.h" | |
39 #include "octave/unwind-prot.h" | |
40 #include "octave/toplev.h" | |
41 #include "octave/load-path.h" | |
42 #include "octave/error.h" | |
43 #include "octave/quit.h" | |
44 #include "octave/variables.h" | |
45 #include "octave/sighandlers.h" | |
46 #include "octave/sysdep.h" | |
47 #include "octave/str-vec.h" | |
48 #include "octave/cmd-hist.h" | |
49 #include "octave/cmd-edit.h" | |
50 #include "octave/oct-env.h" | |
51 #include "octave/symtab.h" | |
52 #include "cmd-edit.h" | |
53 | |
54 class HistoryDockWidget : public QDockWidget { | |
55 Q_OBJECT | |
56 public: | |
57 HistoryDockWidget(QWidget *parent = 0); | |
58 void updateHistory(string_vector historyEntries); | |
59 | |
60 signals: | |
61 void information(QString message); | |
62 void commandDoubleClicked(QString command); | |
63 | |
64 private slots: | |
65 void handleListViewItemDoubleClicked(QModelIndex modelIndex); | |
66 | |
67 private: | |
68 void construct(); | |
69 QListView *m_historyListView; | |
70 QStringListModel *m_historyListModel; | |
71 }; | |
72 | |
73 #endif // HISTORYDOCKWIDGET_H |