Mercurial > hg > svapp
comparison framework/MainWindowBase.h @ 236:dd14baa45847
Merge from branch "templating"
author | Chris Cannam |
---|---|
date | Sun, 26 Jun 2011 19:53:34 +0100 |
parents | 65d75297a37e |
children | c469f8d8208e |
comparison
equal
deleted
inserted
replaced
233:8aace2d9f1c2 | 236:dd14baa45847 |
---|---|
77 public: | 77 public: |
78 MainWindowBase(bool withAudioOutput, bool withOSCSupport, bool withMIDIInput); | 78 MainWindowBase(bool withAudioOutput, bool withOSCSupport, bool withMIDIInput); |
79 virtual ~MainWindowBase(); | 79 virtual ~MainWindowBase(); |
80 | 80 |
81 enum AudioFileOpenMode { | 81 enum AudioFileOpenMode { |
82 ReplaceSession, | |
82 ReplaceMainModel, | 83 ReplaceMainModel, |
83 CreateAdditionalModel, | 84 CreateAdditionalModel, |
84 ReplaceCurrentPane, | 85 ReplaceCurrentPane, |
85 AskUser | 86 AskUser |
86 }; | 87 }; |
100 virtual FileOpenStatus openLayer(FileSource source); | 101 virtual FileOpenStatus openLayer(FileSource source); |
101 virtual FileOpenStatus openImage(FileSource source); | 102 virtual FileOpenStatus openImage(FileSource source); |
102 | 103 |
103 virtual FileOpenStatus openSessionFile(QString fileOrUrl); | 104 virtual FileOpenStatus openSessionFile(QString fileOrUrl); |
104 virtual FileOpenStatus openSession(FileSource source); | 105 virtual FileOpenStatus openSession(FileSource source); |
106 virtual FileOpenStatus openSessionTemplate(QString templateName); | |
107 virtual FileOpenStatus openSessionTemplate(FileSource source); | |
105 | 108 |
106 virtual bool saveSessionFile(QString path); | 109 virtual bool saveSessionFile(QString path); |
110 virtual bool saveSessionTemplate(QString path); | |
107 | 111 |
108 /// Implementation of FrameTimer interface method | 112 /// Implementation of FrameTimer interface method |
109 virtual unsigned long getFrame() const; | 113 virtual unsigned long getFrame() const; |
110 | 114 |
111 signals: | 115 signals: |
392 | 396 |
393 virtual QString getOpenFileName(FileFinder::FileType type); | 397 virtual QString getOpenFileName(FileFinder::FileType type); |
394 virtual QString getSaveFileName(FileFinder::FileType type); | 398 virtual QString getSaveFileName(FileFinder::FileType type); |
395 virtual void registerLastOpenedFilePath(FileFinder::FileType type, QString path); | 399 virtual void registerLastOpenedFilePath(FileFinder::FileType type, QString path); |
396 | 400 |
401 virtual QString getDefaultSessionTemplate() const; | |
402 | |
397 virtual void createPlayTarget(); | 403 virtual void createPlayTarget(); |
398 virtual void openHelpUrl(QString url); | 404 virtual void openHelpUrl(QString url); |
399 | 405 |
400 virtual void setupMenus() = 0; | 406 virtual void setupMenus() = 0; |
401 virtual void updateVisibleRangeDisplay(Pane *p) const = 0; | 407 virtual void updateVisibleRangeDisplay(Pane *p) const = 0; |
403 | 409 |
404 virtual bool shouldCreateNewSessionForRDFAudio(bool *) { return true; } | 410 virtual bool shouldCreateNewSessionForRDFAudio(bool *) { return true; } |
405 | 411 |
406 virtual void connectLayerEditDialog(ModelDataTableDialog *dialog); | 412 virtual void connectLayerEditDialog(ModelDataTableDialog *dialog); |
407 | 413 |
408 virtual void toXml(QTextStream &stream); | 414 virtual void toXml(QTextStream &stream, bool asTemplate); |
409 }; | 415 }; |
410 | 416 |
411 | 417 |
412 #endif | 418 #endif |