comparison 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
comparison
equal deleted inserted replaced
188:4c5bfe0f8502 189:26397b84e6a2
52 class QTreeView; 52 class QTreeView;
53 class QPushButton; 53 class QPushButton;
54 class OSCQueue; 54 class OSCQueue;
55 class OSCMessage; 55 class OSCMessage;
56 class KeyReference; 56 class KeyReference;
57 class Labeller;
57 58
58 59
59 class MainWindow : public QMainWindow 60 class MainWindow : public QMainWindow
60 { 61 {
61 Q_OBJECT 62 Q_OBJECT
106 void canEditSelection(bool); 107 void canEditSelection(bool);
107 void canDeleteSelection(bool); 108 void canDeleteSelection(bool);
108 void canPaste(bool); 109 void canPaste(bool);
109 void canInsertInstant(bool); 110 void canInsertInstant(bool);
110 void canInsertInstantsAtBoundaries(bool); 111 void canInsertInstantsAtBoundaries(bool);
112 void canRenumberInstants(bool);
111 void canDeleteCurrentLayer(bool); 113 void canDeleteCurrentLayer(bool);
112 void canZoom(bool); 114 void canZoom(bool);
113 void canScroll(bool); 115 void canScroll(bool);
114 void canPlay(bool); 116 void canPlay(bool);
115 void canFfwd(bool); 117 void canFfwd(bool);
208 void paste(); 210 void paste();
209 void deleteSelected(); 211 void deleteSelected();
210 void insertInstant(); 212 void insertInstant();
211 void insertInstantAt(size_t); 213 void insertInstantAt(size_t);
212 void insertInstantsAtBoundaries(); 214 void insertInstantsAtBoundaries();
215 void setInstantsNumbering();
216 void setInstantsCounterCycle();
217 void renumberInstants();
213 218
214 void documentModified(); 219 void documentModified();
215 void documentRestored(); 220 void documentRestored();
216 221
217 void updateMenuStates(); 222 void updateMenuStates();
296 301
297 bool m_documentModified; 302 bool m_documentModified;
298 bool m_openingAudioFile; 303 bool m_openingAudioFile;
299 bool m_abandoning; 304 bool m_abandoning;
300 305
306 Labeller *m_labeller;
307
301 int m_lastPlayStatusSec; 308 int m_lastPlayStatusSec;
302 mutable QString m_myStatusMessage; 309 mutable QString m_myStatusMessage;
303 310
304 QPointer<PreferencesDialog> m_preferencesDialog; 311 QPointer<PreferencesDialog> m_preferencesDialog;
305 QPointer<QTreeView> m_layerTreeView; 312 QPointer<QTreeView> m_layerTreeView;
339 ExistingLayerActionMap m_existingLayerActions; 346 ExistingLayerActionMap m_existingLayerActions;
340 ExistingLayerActionMap m_sliceActions; 347 ExistingLayerActionMap m_sliceActions;
341 348
342 typedef std::map<ViewManager::ToolMode, QAction *> ToolActionMap; 349 typedef std::map<ViewManager::ToolMode, QAction *> ToolActionMap;
343 ToolActionMap m_toolActions; 350 ToolActionMap m_toolActions;
351
352 typedef std::map<QAction *, int> NumberingActionMap;
353 NumberingActionMap m_numberingActions;
344 354
345 void setupMenus(); 355 void setupMenus();
346 void setupFileMenu(); 356 void setupFileMenu();
347 void setupEditMenu(); 357 void setupEditMenu();
348 void setupViewMenu(); 358 void setupViewMenu();