comparison main/MainWindow.h @ 180:98ba77e0d897

* Merge from sv-match-alignment branch (excluding alignment-specific document). - add aggregate wave model (not yet complete enough to be added as a true model in a layer, but there's potential) - add play solo mode - add alignment model -- unused in plain SV - fix two plugin leaks - add m3u playlist support (opens all files at once, potentially hazardous) - fix retrieval of pre-encoded URLs - add ability to resample audio files on import, so as to match rates with other files previously loaded; add preference for same - add preliminary support in transform code for range and rate of transform input - reorganise preferences dialog, move dark-background option to preferences, add option for temporary directory location
author Chris Cannam
date Fri, 28 Sep 2007 13:56:38 +0000
parents 5bde373ad5ca
children 26397b84e6a2
comparison
equal deleted inserted replaced
179:dab257bd9d2d 180:98ba77e0d897
77 FileOpenCancelled 77 FileOpenCancelled
78 }; 78 };
79 79
80 FileOpenStatus openSomeFile(QString path, AudioFileOpenMode = AskUser); 80 FileOpenStatus openSomeFile(QString path, AudioFileOpenMode = AskUser);
81 FileOpenStatus openAudioFile(QString path, AudioFileOpenMode = AskUser); 81 FileOpenStatus openAudioFile(QString path, AudioFileOpenMode = AskUser);
82 FileOpenStatus openPlaylistFile(QString path, AudioFileOpenMode = AskUser);
82 FileOpenStatus openLayerFile(QString path); 83 FileOpenStatus openLayerFile(QString path);
83 FileOpenStatus openSessionFile(QString path); 84 FileOpenStatus openSessionFile(QString path);
84 FileOpenStatus openURL(QUrl url); 85 FileOpenStatus openURL(QUrl url, AudioFileOpenMode = AskUser);
86 FileOpenStatus openURL(QString url, AudioFileOpenMode = AskUser);
85 87
86 bool saveSessionFile(QString path); 88 bool saveSessionFile(QString path);
87 bool commitData(bool mayAskUser); // on session shutdown 89 bool commitData(bool mayAskUser); // on session shutdown
88 90
89 signals: 91 signals:
153 void showAllOverlays(); 155 void showAllOverlays();
154 156
155 void toggleZoomWheels(); 157 void toggleZoomWheels();
156 void togglePropertyBoxes(); 158 void togglePropertyBoxes();
157 void toggleStatusBar(); 159 void toggleStatusBar();
158 void toggleDarkBackground();
159 160
160 void play(); 161 void play();
161 void ffwd(); 162 void ffwd();
162 void ffwdEnd(); 163 void ffwdEnd();
163 void rewind(); 164 void rewind();
170 void renameCurrentLayer(); 171 void renameCurrentLayer();
171 void deleteCurrentLayer(); 172 void deleteCurrentLayer();
172 173
173 void playLoopToggled(); 174 void playLoopToggled();
174 void playSelectionToggled(); 175 void playSelectionToggled();
176 void playSoloToggled();
175 void playSpeedChanged(int); 177 void playSpeedChanged(int);
176 void playSharpenToggled(); 178 void playSharpenToggled();
177 void playMonoToggled(); 179 void playMonoToggled();
178 void speedUpPlayback(); 180 void speedUpPlayback();
179 void slowDownPlayback(); 181 void slowDownPlayback();
300 mutable QString m_myStatusMessage; 302 mutable QString m_myStatusMessage;
301 303
302 QPointer<PreferencesDialog> m_preferencesDialog; 304 QPointer<PreferencesDialog> m_preferencesDialog;
303 QPointer<QTreeView> m_layerTreeView; 305 QPointer<QTreeView> m_layerTreeView;
304 306
307 bool m_initialDarkBackground;
308
305 KeyReference *m_keyReference; 309 KeyReference *m_keyReference;
306 310
307 WaveFileModel *getMainModel(); 311 WaveFileModel *getMainModel();
308 const WaveFileModel *getMainModel() const; 312 const WaveFileModel *getMainModel() const;
309 void createDocument(); 313 void createDocument();
410 414
411 FileOpenStatus openSomeFile(QString path, QString location, 415 FileOpenStatus openSomeFile(QString path, QString location,
412 AudioFileOpenMode = AskUser); 416 AudioFileOpenMode = AskUser);
413 FileOpenStatus openAudioFile(QString path, QString location, 417 FileOpenStatus openAudioFile(QString path, QString location,
414 AudioFileOpenMode = AskUser); 418 AudioFileOpenMode = AskUser);
419 FileOpenStatus openPlaylistFile(QString path, QString location,
420 AudioFileOpenMode = AskUser);
415 FileOpenStatus openLayerFile(QString path, QString location); 421 FileOpenStatus openLayerFile(QString path, QString location);
416 FileOpenStatus openSessionFile(QString path, QString location); 422 FileOpenStatus openSessionFile(QString path, QString location);
417 423
418 QString getOpenFileName(FileFinder::FileType type); 424 QString getOpenFileName(FileFinder::FileType type);
419 QString getSaveFileName(FileFinder::FileType type); 425 QString getSaveFileName(FileFinder::FileType type);