comparison widgets/ModelDataTableDialog.h @ 393:6671eb37d6d6

* basics of data editing in data table view
author Chris Cannam
date Mon, 09 Jun 2008 16:01:50 +0000
parents 1d85aa5a49be
children 592d692b4f8b
comparison
equal deleted inserted replaced
392:1d85aa5a49be 393:6671eb37d6d6
19 #include <QDialog> 19 #include <QDialog>
20 20
21 class Model; 21 class Model;
22 class ModelDataTableModel; 22 class ModelDataTableModel;
23 class QTableView; 23 class QTableView;
24 class QModelIndex;
25 class Command;
24 26
25 class ModelDataTableDialog : public QDialog 27 class ModelDataTableDialog : public QDialog
26 { 28 {
27 Q_OBJECT 29 Q_OBJECT
28 30
29 public: 31 public:
30 ModelDataTableDialog(Model *model, QWidget *parent = 0); 32 ModelDataTableDialog(Model *model, QWidget *parent = 0);
31 ~ModelDataTableDialog(); 33 ~ModelDataTableDialog();
32 34
35 public slots:
36 void scrollToFrame(unsigned long frame);
37 void executeCommand(Command *);
38
39 protected slots:
40 void viewClicked(const QModelIndex &);
41 void viewPressed(const QModelIndex &);
42
33 protected: 43 protected:
34 ModelDataTableModel *m_table; 44 ModelDataTableModel *m_table;
35 QTableView *m_tableView; 45 QTableView *m_tableView;
36 }; 46 };
37 47