Mercurial > hg > sonic-visualiser
diff main/MainWindow.h @ 193:4e030ebb6b36
* Make it possible to drop audio files, layer files, session files and images
onto SV panes.
Need to do a bit more work on where we expect the dropped file to go,
particularly in the case of audio files -- at the moment they're always
opened in new panes, but it may be better to by default replace whatever is
in the target pane.
author | Chris Cannam |
---|---|
date | Wed, 10 Oct 2007 15:18:02 +0000 |
parents | d3477f673fb4 |
children | c851c49c79fe |
line wrap: on
line diff
--- a/main/MainWindow.h Wed Oct 10 10:22:34 2007 +0000 +++ b/main/MainWindow.h Wed Oct 10 15:18:02 2007 +0000 @@ -75,13 +75,15 @@ enum FileOpenStatus { FileOpenSucceeded, FileOpenFailed, - FileOpenCancelled + FileOpenCancelled, + FileOpenWrongMode // attempted to open layer when no main model present }; FileOpenStatus openSomeFile(QString path, AudioFileOpenMode = AskUser); FileOpenStatus openAudioFile(QString path, AudioFileOpenMode = AskUser); FileOpenStatus openPlaylistFile(QString path, AudioFileOpenMode = AskUser); FileOpenStatus openLayerFile(QString path); + FileOpenStatus openImageFile(QString path); FileOpenStatus openSessionFile(QString path); FileOpenStatus openURL(QUrl url, AudioFileOpenMode = AskUser); FileOpenStatus openURL(QString url, AudioFileOpenMode = AskUser); @@ -239,6 +241,9 @@ void propertyStacksResized(); + void paneDropAccepted(Pane *, QStringList); + void paneDropAccepted(Pane *, QString); + void setupRecentFilesMenu(); void setupRecentTransformsMenu(); @@ -430,6 +435,7 @@ FileOpenStatus openPlaylistFile(QString path, QString location, AudioFileOpenMode = AskUser); FileOpenStatus openLayerFile(QString path, QString location); + FileOpenStatus openImageFile(QString path, QString location); FileOpenStatus openSessionFile(QString path, QString location); QString getOpenFileName(FileFinder::FileType type);