diff main/MainWindow.h @ 81:911c0bd745cd

* Recall last file open/save path appropriately * Harmonise handling of overwrite query etc for different file types * When exporting a layer, export the right file type for the currently selected filter in the file dialog
author Chris Cannam
date Fri, 05 Jan 2007 12:37:14 +0000
parents bedc7517b6e8
children d82e332cb178
line wrap: on
line diff
--- a/main/MainWindow.h	Fri Dec 15 16:34:17 2006 +0000
+++ b/main/MainWindow.h	Fri Jan 05 12:37:14 2007 +0000
@@ -90,6 +90,7 @@
     void canEditSelection(bool);
     void canPaste(bool);
     void canInsertInstant(bool);
+    void canInsertInstantsAtBoundaries(bool);
     void canDeleteCurrentLayer(bool);
     void canZoom(bool);
     void canScroll(bool);
@@ -171,6 +172,8 @@
     void paste();
     void deleteSelected();
     void insertInstant();
+    void insertInstantAt(size_t);
+    void insertInstantsAtBoundaries();
 
     void documentModified();
     void documentRestored();
@@ -350,6 +353,17 @@
     virtual void closeEvent(QCloseEvent *e);
     bool checkSaveModified();
 
+    enum FileType {
+        SessionFile,
+        AudioFile,
+        LayerFile,
+        AnyFile
+    };
+
+    QString getOpenFileName(FileType type);
+    QString getSaveFileName(FileType type);
+    void registerLastOpenedFilePath(FileType type, QString path);
+
     void createPlayTarget();
 
     void openHelpUrl(QString url);