comparison framework/MainWindowBase.h @ 669:331be52cd473 single-point

Permit subclass to determine window title format
author Chris Cannam
date Tue, 14 May 2019 14:51:09 +0100
parents 49cf3787cf22
children 5e9b1956b609
comparison
equal deleted inserted replaced
667:31ea416fea3c 669:331be52cd473
306 virtual void modelAdded(Model *); 306 virtual void modelAdded(Model *);
307 virtual void modelAboutToBeDeleted(Model *); 307 virtual void modelAboutToBeDeleted(Model *);
308 308
309 virtual void updateMenuStates(); 309 virtual void updateMenuStates();
310 virtual void updateDescriptionLabel() = 0; 310 virtual void updateDescriptionLabel() = 0;
311 virtual void updateWindowTitle();
311 312
312 virtual void modelGenerationFailed(QString, QString) = 0; 313 virtual void modelGenerationFailed(QString, QString) = 0;
313 virtual void modelGenerationWarning(QString, QString) = 0; 314 virtual void modelGenerationWarning(QString, QString) = 0;
314 virtual void modelRegenerationFailed(QString, QString, QString) = 0; 315 virtual void modelRegenerationFailed(QString, QString, QString) = 0;
315 virtual void modelRegenerationWarning(QString, QString, QString) = 0; 316 virtual void modelRegenerationWarning(QString, QString, QString) = 0;
343 virtual void newerVersionAvailable(QString) { } 344 virtual void newerVersionAvailable(QString) { }
344 345
345 virtual void menuActionMapperInvoked(QObject *); 346 virtual void menuActionMapperInvoked(QObject *);
346 347
347 protected: 348 protected:
348 QString m_sessionFile; 349 QString m_sessionFile;
349 QString m_audioFile; 350 QString m_audioFile;
350 Document *m_document; 351 Document *m_document;
351 352
352 PaneStack *m_paneStack; 353 // This is used in the window title. It's the upstream location
353 ViewManager *m_viewManager; 354 // (maybe a URL) the user provided as source of the main model. It
354 Layer *m_timeRulerLayer; 355 // should be set in cases where there is no current session file
355 356 // and m_sessionFile is empty, or where a new main model has been
356 SoundOptions m_soundOptions; 357 // imported into an existing session. It should be used only for
358 // user presentation, never parsed - treat it as an opaque label
359 QString m_originalLocation;
360
361 PaneStack *m_paneStack;
362 ViewManager *m_viewManager;
363 Layer *m_timeRulerLayer;
364
365 SoundOptions m_soundOptions;
357 366
358 AudioCallbackPlaySource *m_playSource; 367 AudioCallbackPlaySource *m_playSource;
359 AudioCallbackRecordTarget *m_recordTarget; 368 AudioCallbackRecordTarget *m_recordTarget;
360 breakfastquay::ResamplerWrapper *m_resamplerWrapper; 369 breakfastquay::ResamplerWrapper *m_resamplerWrapper;
361 breakfastquay::SystemPlaybackTarget *m_playTarget; // only one of this... 370 breakfastquay::SystemPlaybackTarget *m_playTarget; // only one of this...