Mercurial > hg > svgui
comparison widgets/ModelDataTableDialog.h @ 404:4075bf03faef
* Add playback controls to data edit dialog
* Make data edit dialog close properly when layer is removed from view
* More fixes to playback tracking & selection model in data edit dialog
* Remove edit button from data edit dialog for now
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2008 15:53:23 +0000 |
parents | 66e01a6c9554 |
children | 55cdd79606ba |
comparison
equal
deleted
inserted
replaced
403:dc32f6e7839b | 404:4075bf03faef |
---|---|
21 class TabularModel; | 21 class TabularModel; |
22 class ModelDataTableModel; | 22 class ModelDataTableModel; |
23 class QTableView; | 23 class QTableView; |
24 class QModelIndex; | 24 class QModelIndex; |
25 class Command; | 25 class Command; |
26 class QToolBar; | |
26 | 27 |
27 class ModelDataTableDialog : public QMainWindow | 28 class ModelDataTableDialog : public QMainWindow |
28 { | 29 { |
29 Q_OBJECT | 30 Q_OBJECT |
30 | 31 |
31 public: | 32 public: |
32 ModelDataTableDialog(TabularModel *model, QString title, QWidget *parent =0); | 33 ModelDataTableDialog(TabularModel *model, |
34 QString title, QWidget *parent =0); | |
33 ~ModelDataTableDialog(); | 35 ~ModelDataTableDialog(); |
36 | |
37 QToolBar *getPlayToolbar() { return m_playToolbar; } | |
34 | 38 |
35 signals: | 39 signals: |
36 void scrollToFrame(unsigned long frame); | 40 void scrollToFrame(unsigned long frame); |
37 | 41 |
38 public slots: | 42 public slots: |
52 void togglePlayTracking(); | 56 void togglePlayTracking(); |
53 | 57 |
54 protected: | 58 protected: |
55 void makeCurrent(int row); | 59 void makeCurrent(int row); |
56 ModelDataTableModel *m_table; | 60 ModelDataTableModel *m_table; |
61 QToolBar *m_playToolbar; | |
57 QTableView *m_tableView; | 62 QTableView *m_tableView; |
58 int m_currentRow; | 63 int m_currentRow; |
59 bool m_trackPlayback; | 64 bool m_trackPlayback; |
60 }; | 65 }; |
61 | 66 |