Mercurial > hg > svapp
comparison framework/MainWindowBase.h @ 483:493f2af85497 recording
Add audio record mode (option to replace session) and support for browsing to record directory
author | Chris Cannam |
---|---|
date | Tue, 15 Sep 2015 16:34:08 +0100 |
parents | 411e019474e5 |
children | 21d3cf5c8f21 |
comparison
equal
deleted
inserted
replaced
480:1d4cb8befcfd | 483:493f2af85497 |
---|---|
106 FileOpenFailed, | 106 FileOpenFailed, |
107 FileOpenCancelled, | 107 FileOpenCancelled, |
108 FileOpenWrongMode // attempted to open layer when no main model present | 108 FileOpenWrongMode // attempted to open layer when no main model present |
109 }; | 109 }; |
110 | 110 |
111 enum AudioRecordMode { | |
112 RecordReplaceSession, | |
113 RecordCreateAdditionalModel | |
114 }; | |
115 | |
111 virtual FileOpenStatus open(FileSource source, AudioFileOpenMode = AskUser); | 116 virtual FileOpenStatus open(FileSource source, AudioFileOpenMode = AskUser); |
112 virtual FileOpenStatus openPath(QString fileOrUrl, AudioFileOpenMode = AskUser); | 117 virtual FileOpenStatus openPath(QString fileOrUrl, AudioFileOpenMode = AskUser); |
113 virtual FileOpenStatus openAudio(FileSource source, AudioFileOpenMode = AskUser, QString templateName = ""); | 118 virtual FileOpenStatus openAudio(FileSource source, AudioFileOpenMode = AskUser, QString templateName = ""); |
114 virtual FileOpenStatus openPlaylist(FileSource source, AudioFileOpenMode = AskUser); | 119 virtual FileOpenStatus openPlaylist(FileSource source, AudioFileOpenMode = AskUser); |
115 virtual FileOpenStatus openLayer(FileSource source); | 120 virtual FileOpenStatus openLayer(FileSource source); |
128 | 133 |
129 void setDefaultFfwdRwdStep(RealTime step) { | 134 void setDefaultFfwdRwdStep(RealTime step) { |
130 m_defaultFfwdRwdStep = step; | 135 m_defaultFfwdRwdStep = step; |
131 } | 136 } |
132 | 137 |
138 void setAudioRecordMode(AudioRecordMode mode) { | |
139 m_audioRecordMode = mode; | |
140 } | |
141 | |
133 signals: | 142 signals: |
134 // Used to toggle the availability of menu actions | 143 // Used to toggle the availability of menu actions |
135 void canAddPane(bool); | 144 void canAddPane(bool); |
136 void canDeleteCurrentPane(bool); | 145 void canDeleteCurrentPane(bool); |
137 void canAddLayer(bool); | 146 void canAddLayer(bool); |
358 | 367 |
359 bool m_initialDarkBackground; | 368 bool m_initialDarkBackground; |
360 | 369 |
361 RealTime m_defaultFfwdRwdStep; | 370 RealTime m_defaultFfwdRwdStep; |
362 | 371 |
372 AudioRecordMode m_audioRecordMode; | |
373 | |
363 mutable QLabel *m_statusLabel; | 374 mutable QLabel *m_statusLabel; |
364 QLabel *getStatusLabel() const; | 375 QLabel *getStatusLabel() const; |
365 | 376 |
366 WaveFileModel *getMainModel(); | 377 WaveFileModel *getMainModel(); |
367 const WaveFileModel *getMainModel() const; | 378 const WaveFileModel *getMainModel() const; |
439 virtual QString getDefaultSessionTemplate() const; | 450 virtual QString getDefaultSessionTemplate() const; |
440 virtual void setDefaultSessionTemplate(QString); | 451 virtual void setDefaultSessionTemplate(QString); |
441 | 452 |
442 virtual void createAudioIO(); | 453 virtual void createAudioIO(); |
443 virtual void openHelpUrl(QString url); | 454 virtual void openHelpUrl(QString url); |
455 virtual void openLocalFolder(QString path); | |
444 | 456 |
445 virtual void setupMenus() = 0; | 457 virtual void setupMenus() = 0; |
446 virtual void updateVisibleRangeDisplay(Pane *p) const = 0; | 458 virtual void updateVisibleRangeDisplay(Pane *p) const = 0; |
447 virtual void updatePositionStatusDisplays() const = 0; | 459 virtual void updatePositionStatusDisplays() const = 0; |
448 | 460 |