diff main/MainWindow.h @ 189:26397b84e6a2

* Add labelling option for instants inserted through tapping (closes FR#1674184) Needs some refinement still, but it's almost functionally complete
author Chris Cannam
date Mon, 08 Oct 2007 14:44:38 +0000
parents 98ba77e0d897
children d3477f673fb4
line wrap: on
line diff
--- a/main/MainWindow.h	Fri Oct 05 16:31:30 2007 +0000
+++ b/main/MainWindow.h	Mon Oct 08 14:44:38 2007 +0000
@@ -54,6 +54,7 @@
 class OSCQueue;
 class OSCMessage;
 class KeyReference;
+class Labeller;
 
 
 class MainWindow : public QMainWindow
@@ -108,6 +109,7 @@
     void canPaste(bool);
     void canInsertInstant(bool);
     void canInsertInstantsAtBoundaries(bool);
+    void canRenumberInstants(bool);
     void canDeleteCurrentLayer(bool);
     void canZoom(bool);
     void canScroll(bool);
@@ -210,6 +212,9 @@
     void insertInstant();
     void insertInstantAt(size_t);
     void insertInstantsAtBoundaries();
+    void setInstantsNumbering();
+    void setInstantsCounterCycle();
+    void renumberInstants();
 
     void documentModified();
     void documentRestored();
@@ -298,6 +303,8 @@
     bool                     m_openingAudioFile;
     bool                     m_abandoning;
 
+    Labeller                *m_labeller;
+
     int                      m_lastPlayStatusSec;
     mutable QString          m_myStatusMessage;
 
@@ -342,6 +349,9 @@
     typedef std::map<ViewManager::ToolMode, QAction *> ToolActionMap;
     ToolActionMap m_toolActions;
 
+    typedef std::map<QAction *, int> NumberingActionMap;
+    NumberingActionMap m_numberingActions;
+
     void setupMenus();
     void setupFileMenu();
     void setupEditMenu();