comparison gui/src/HistoryDockWidget.h @ 13518:bace956a3724

Put history model part into OctaveLink.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Tue, 19 Jul 2011 15:53:43 +0200
parents 86adc9c4ec4b
children 869c62c15e95
comparison
equal deleted inserted replaced
13517:86adc9c4ec4b 13518:bace956a3724
19 #ifndef HISTORYDOCKWIDGET_H 19 #ifndef HISTORYDOCKWIDGET_H
20 #define HISTORYDOCKWIDGET_H 20 #define HISTORYDOCKWIDGET_H
21 21
22 #include <QDockWidget> 22 #include <QDockWidget>
23 #include <QListView> 23 #include <QListView>
24 #include <QStringListModel> 24 #include "OctaveLink.h"
25 25
26 class HistoryDockWidget:public QDockWidget 26 class HistoryDockWidget:public QDockWidget
27 { 27 {
28 Q_OBJECT 28 Q_OBJECT
29 public: 29 public:
30 HistoryDockWidget (QWidget *parent = 0); 30 HistoryDockWidget (QWidget *parent = 0);
31 void updateHistory (QStringList history); 31 void updateHistory (QStringList history);
32 32
33 signals: 33 signals:
34 void information (QString message); 34 void information (QString message);
35 void commandDoubleClicked (QString command);
36
37 private slots:
38 void handleListViewItemDoubleClicked (QModelIndex modelIndex);
39 35
40 private: 36 private:
41 void construct (); 37 void construct ();
42 QListView *m_historyListView; 38 QListView *m_historyListView;
43 QStringListModel *m_historyListModel;
44 }; 39 };
45 40
46 #endif // HISTORYDOCKWIDGET_H 41 #endif // HISTORYDOCKWIDGET_H