comparison widgets/ModelDataTableDialog.h @ 552:2e8194a30f40 sv-v1.7.1

* Layer data editor window: fix sorting for columns in region model, add Find feature * RDF import: assign names to layers based on event types, if no suitable labels are found in the RDF * Add label to status bar showing the last text that was passed in current layer (so e.g. counting 1, 2, 3, 4 if that's what beats are labelled) * Better layout of text labels for region layers in segmentation mode when they are close together * Give text layer the same method for finding "nearest point" as region and note layers, should improve its editability
author Chris Cannam
date Thu, 22 Oct 2009 15:54:21 +0000
parents 55cdd79606ba
children e4773943c9c1
comparison
equal deleted inserted replaced
551:c2ba2796cbee 552:2e8194a30f40
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 class QToolBar;
27 class QLineEdit;
27 28
28 class ModelDataTableDialog : public QMainWindow 29 class ModelDataTableDialog : public QMainWindow
29 { 30 {
30 Q_OBJECT 31 Q_OBJECT
31 32
47 protected slots: 48 protected slots:
48 void viewClicked(const QModelIndex &); 49 void viewClicked(const QModelIndex &);
49 void viewPressed(const QModelIndex &); 50 void viewPressed(const QModelIndex &);
50 void currentChanged(const QModelIndex &, const QModelIndex &); 51 void currentChanged(const QModelIndex &, const QModelIndex &);
51 void currentChangedThroughResort(const QModelIndex &); 52 void currentChangedThroughResort(const QModelIndex &);
53 void searchTextChanged(const QString &);
54 void searchRepeated();
52 55
53 void insertRow(); 56 void insertRow();
54 void deleteRows(); 57 void deleteRows();
55 void editRow(); 58 void editRow();
56 void togglePlayTracking(); 59 void togglePlayTracking();
60 protected: 63 protected:
61 void makeCurrent(int row); 64 void makeCurrent(int row);
62 ModelDataTableModel *m_table; 65 ModelDataTableModel *m_table;
63 QToolBar *m_playToolbar; 66 QToolBar *m_playToolbar;
64 QTableView *m_tableView; 67 QTableView *m_tableView;
68 QLineEdit *m_find;
65 int m_currentRow; 69 int m_currentRow;
66 bool m_trackPlayback; 70 bool m_trackPlayback;
67 }; 71 };
68 72
69 #endif 73 #endif