Mercurial > hg > svcore
comparison data/fileio/MIDIFileReader.cpp @ 308:14e0f60435b8
* 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 | 73537d900d4b |
children | 516819f2b97b |
comparison
equal
deleted
inserted
replaced
307:b1a3f7bc035d | 308:14e0f60435b8 |
---|---|
863 } | 863 } |
864 | 864 |
865 bool ok = false; | 865 bool ok = false; |
866 QString selected = QInputDialog::getItem | 866 QString selected = QInputDialog::getItem |
867 (0, tr("Select track or tracks to import"), | 867 (0, tr("Select track or tracks to import"), |
868 tr("You can only import this file as a single annotation layer,\nbut the file contains more than one track,\nor notes on more than one channel.\n\nPlease select the track or merged tracks you wish to import:"), | 868 tr("<b>Select track to import</b><p>You can only import this file as a single annotation layer, but the file contains more than one track, or notes on more than one channel.<p>Please select the track or merged tracks you wish to import:"), |
869 available, 0, false, &ok); | 869 available, 0, false, &ok); |
870 | 870 |
871 if (!ok || selected.isEmpty()) return 0; | 871 if (!ok || selected.isEmpty()) return 0; |
872 | 872 |
873 if (selected == allTracks || selected == allNonPercussion) { | 873 if (selected == allTracks || selected == allNonPercussion) { |