diff 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
line wrap: on
line diff
--- a/framework/MainWindowBase.h	Tue Jun 14 15:27:12 2011 +0100
+++ b/framework/MainWindowBase.h	Sun Jun 26 19:53:34 2011 +0100
@@ -79,6 +79,7 @@
     virtual ~MainWindowBase();
     
     enum AudioFileOpenMode {
+        ReplaceSession,
         ReplaceMainModel,
         CreateAdditionalModel,
         ReplaceCurrentPane,
@@ -102,8 +103,11 @@
 
     virtual FileOpenStatus openSessionFile(QString fileOrUrl);
     virtual FileOpenStatus openSession(FileSource source);
+    virtual FileOpenStatus openSessionTemplate(QString templateName);
+    virtual FileOpenStatus openSessionTemplate(FileSource source);
 
     virtual bool saveSessionFile(QString path);
+    virtual bool saveSessionTemplate(QString path);
 
     /// Implementation of FrameTimer interface method
     virtual unsigned long getFrame() const;
@@ -394,6 +398,8 @@
     virtual QString getSaveFileName(FileFinder::FileType type);
     virtual void registerLastOpenedFilePath(FileFinder::FileType type, QString path);
 
+    virtual QString getDefaultSessionTemplate() const;
+
     virtual void createPlayTarget();
     virtual void openHelpUrl(QString url);
 
@@ -405,7 +411,7 @@
 
     virtual void connectLayerEditDialog(ModelDataTableDialog *dialog);
 
-    virtual void toXml(QTextStream &stream);
+    virtual void toXml(QTextStream &stream, bool asTemplate);
 };