diff widgets/ModelDataTableDialog.h @ 401:96531861b2f3

* a bit of progress on retaining current row when sorting changes &c
author Chris Cannam
date Tue, 17 Jun 2008 16:07:56 +0000
parents 32acd578fcba
children 66e01a6c9554
line wrap: on
line diff
--- a/widgets/ModelDataTableDialog.h	Mon Jun 16 14:48:42 2008 +0000
+++ b/widgets/ModelDataTableDialog.h	Tue Jun 17 16:07:56 2008 +0000
@@ -36,22 +36,26 @@
     void scrollToFrame(unsigned long frame);
 
 public slots:
-    void scrollToFrameRequested(unsigned long frame);
+    void userScrolledToFrame(unsigned long frame);
+    void playbackScrolledToFrame(unsigned long frame);
     void addCommand(Command *);
 
 protected slots:
     void viewClicked(const QModelIndex &);
     void viewPressed(const QModelIndex &);
     void currentChanged(const QModelIndex &, const QModelIndex &);
+    void currentChangedThroughResort(const QModelIndex &);
     
     void insertRow();
     void deleteRows();
     void editRow();
 
 protected:
+    void makeCurrent(int row);
     ModelDataTableModel *m_table;
     QTableView *m_tableView;
     int m_currentRow;
+    bool m_trackPlayback;
 };
 
 #endif