comparison main/MainWindow.h @ 82:d82e332cb178

* Fix #1491849 strange behaviour on Cancel during query on new file load
author Chris Cannam
date Fri, 05 Jan 2007 12:59:51 +0000
parents 911c0bd745cd
children 4eae5b521a34
comparison
equal deleted inserted replaced
81:911c0bd745cd 82:d82e332cb178
65 ReplaceMainModel, 65 ReplaceMainModel,
66 CreateAdditionalModel, 66 CreateAdditionalModel,
67 AskUser 67 AskUser
68 }; 68 };
69 69
70 bool openSomeFile(QString path, AudioFileOpenMode = AskUser); 70 enum FileOpenStatus {
71 bool openAudioFile(QString path, AudioFileOpenMode = AskUser); 71 FileOpenSucceeded,
72 bool openLayerFile(QString path); 72 FileOpenFailed,
73 bool openSessionFile(QString path); 73 FileOpenCancelled
74 };
75
76 FileOpenStatus openSomeFile(QString path, AudioFileOpenMode = AskUser);
77 FileOpenStatus openAudioFile(QString path, AudioFileOpenMode = AskUser);
78 FileOpenStatus openLayerFile(QString path);
79 FileOpenStatus openSessionFile(QString path);
80
74 bool saveSessionFile(QString path); 81 bool saveSessionFile(QString path);
75 bool commitData(bool mayAskUser); // on session shutdown 82 bool commitData(bool mayAskUser); // on session shutdown
76 83
77 signals: 84 signals:
78 // Used to toggle the availability of menu actions 85 // Used to toggle the availability of menu actions