comparison framework/MainWindowBase.h @ 696:155008f1bf10

Merge from branch by-id
author Chris Cannam
date Wed, 17 Jul 2019 14:25:41 +0100
parents 11336010561e
children 8e9702c0b9c7
comparison
equal deleted inserted replaced
680:a82b9d410393 696:155008f1bf10
33 #include "SVFileReader.h" 33 #include "SVFileReader.h"
34 #include "data/fileio/FileFinder.h" 34 #include "data/fileio/FileFinder.h"
35 #include "data/fileio/FileSource.h" 35 #include "data/fileio/FileSource.h"
36 #include "data/osc/OSCQueue.h" 36 #include "data/osc/OSCQueue.h"
37 #include "data/osc/OSCMessageCallback.h" 37 #include "data/osc/OSCMessageCallback.h"
38 #include "data/model/Model.h"
39
38 #include <map> 40 #include <map>
39 41
40 class Document; 42 class Document;
41 class PaneStack; 43 class PaneStack;
42 class Pane; 44 class Pane;
300 virtual void layerAdded(Layer *); 302 virtual void layerAdded(Layer *);
301 virtual void layerRemoved(Layer *); 303 virtual void layerRemoved(Layer *);
302 virtual void layerAboutToBeDeleted(Layer *); 304 virtual void layerAboutToBeDeleted(Layer *);
303 virtual void layerInAView(Layer *, bool); 305 virtual void layerInAView(Layer *, bool);
304 306
305 virtual void mainModelChanged(WaveFileModel *); 307 virtual void mainModelChanged(ModelId);
306 virtual void modelAdded(Model *); 308 virtual void modelAdded(ModelId);
307 virtual void modelAboutToBeDeleted(Model *);
308 309
309 virtual void updateMenuStates(); 310 virtual void updateMenuStates();
310 virtual void updateDescriptionLabel() = 0; 311 virtual void updateDescriptionLabel() = 0;
311 virtual void updateWindowTitle(); 312 virtual void updateWindowTitle();
312 313
313 virtual void modelGenerationFailed(QString, QString) = 0; 314 virtual void modelGenerationFailed(QString, QString) = 0;
314 virtual void modelGenerationWarning(QString, QString) = 0; 315 virtual void modelGenerationWarning(QString, QString) = 0;
315 virtual void modelRegenerationFailed(QString, QString, QString) = 0; 316 virtual void modelRegenerationFailed(QString, QString, QString) = 0;
316 virtual void modelRegenerationWarning(QString, QString, QString) = 0; 317 virtual void modelRegenerationWarning(QString, QString, QString) = 0;
317 318
318 virtual void alignmentComplete(AlignmentModel *); 319 virtual void alignmentComplete(ModelId);
319 virtual void alignmentFailed(QString) = 0; 320 virtual void alignmentFailed(QString) = 0;
320 321
321 virtual void rightButtonMenuRequested(Pane *, QPoint point) = 0; 322 virtual void rightButtonMenuRequested(Pane *, QPoint point) = 0;
322 323
323 virtual void paneAdded(Pane *) = 0; 324 virtual void paneAdded(Pane *) = 0;
416 AudioRecordMode m_audioRecordMode; 417 AudioRecordMode m_audioRecordMode;
417 418
418 mutable QLabel *m_statusLabel; 419 mutable QLabel *m_statusLabel;
419 QLabel *getStatusLabel() const; 420 QLabel *getStatusLabel() const;
420 421
421 WaveFileModel *getMainModel(); 422 ModelId getMainModelId() const;
422 const WaveFileModel *getMainModel() const; 423 std::shared_ptr<WaveFileModel> getMainModel() const;
423 void createDocument(); 424 void createDocument();
424 425
425 FileOpenStatus addOpenedAudioModel(FileSource source, 426 FileOpenStatus addOpenedAudioModel(FileSource source,
426 WaveFileModel *model, 427 ModelId model,
427 AudioFileOpenMode mode, 428 AudioFileOpenMode mode,
428 QString templateName, 429 QString templateName,
429 bool registerSource); 430 bool registerSource);
430 431
431 sv_frame_t getModelsStartFrame() const; // earliest across all views 432 sv_frame_t getModelsStartFrame() const; // earliest across all views