Mercurial > octave-nkf
comparison gui/src/historydockwidget.h @ 14703:f86884be20fc gui
Renamed all source files of the gui to lowercase and .cc to be conform with the octave sources.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Thu, 31 May 2012 20:53:56 +0200 |
parents | gui/src/HistoryDockWidget.h@faece6b2ab90 |
children |
comparison
equal
deleted
inserted
replaced
14701:06abf71d9083 | 14703:f86884be20fc |
---|---|
1 /* OctaveGUI - A graphical user interface for Octave | |
2 * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) | |
3 * | |
4 * This program is free software: you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as | |
6 * published by the Free Software Foundation, either version 3 of the | |
7 * License, or (at your option) any later version. | |
8 * | |
9 * This program is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License | |
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 */ | |
17 | |
18 #ifndef HISTORYDOCKWIDGET_H | |
19 #define HISTORYDOCKWIDGET_H | |
20 | |
21 #include <QDockWidget> | |
22 #include <QLineEdit> | |
23 #include <QListView> | |
24 #include <QSortFilterProxyModel> | |
25 #include "octavelink.h" | |
26 | |
27 class HistoryDockWidget:public QDockWidget | |
28 { | |
29 Q_OBJECT | |
30 public: | |
31 HistoryDockWidget (QWidget *parent = 0); | |
32 void updateHistory (QStringList history); | |
33 | |
34 public slots: | |
35 void handleVisibilityChanged (bool visible); | |
36 | |
37 signals: | |
38 void information (QString message); | |
39 void commandDoubleClicked (QString command); | |
40 /** Custom signal that tells if a user has clicked away that dock widget. */ | |
41 void activeChanged (bool active); | |
42 protected: | |
43 void closeEvent (QCloseEvent *event); | |
44 private slots: | |
45 void handleDoubleClick (QModelIndex modelIndex); | |
46 | |
47 private: | |
48 void construct (); | |
49 QListView *m_historyListView; | |
50 QLineEdit *m_filterLineEdit; | |
51 QSortFilterProxyModel m_sortFilterProxyModel; | |
52 }; | |
53 | |
54 #endif // HISTORYDOCKWIDGET_H |