diff view/Pane.h @ 312:6de6f78b13a1

* 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 3101c68a00c1
children c0b9eec70639
line wrap: on
line diff
--- a/view/Pane.h	Wed Oct 10 10:22:34 2007 +0000
+++ b/view/Pane.h	Wed Oct 10 15:18:02 2007 +0000
@@ -66,6 +66,8 @@
 signals:
     void paneInteractedWith();
     void rightButtonMenuRequested(QPoint position);
+    void dropAccepted(QStringList uriList);
+    void dropAccepted(QString text);
 
 public slots:
     virtual void toolModeChanged();
@@ -93,6 +95,8 @@
     virtual void leaveEvent(QEvent *e);
     virtual void wheelEvent(QWheelEvent *e);
     virtual void resizeEvent(QResizeEvent *e);
+    virtual void dragEnterEvent(QDragEnterEvent *e);
+    virtual void dropEvent(QDropEvent *e);
 
     void drawVerticalScale(QRect r, Layer *, QPainter &);
     void drawFeatureDescription(Layer *, QPainter &);