Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
311:fee76aa923d8 | 312:6de6f78b13a1 |
---|---|
64 static void registerShortcuts(KeyReference &kr); | 64 static void registerShortcuts(KeyReference &kr); |
65 | 65 |
66 signals: | 66 signals: |
67 void paneInteractedWith(); | 67 void paneInteractedWith(); |
68 void rightButtonMenuRequested(QPoint position); | 68 void rightButtonMenuRequested(QPoint position); |
69 void dropAccepted(QStringList uriList); | |
70 void dropAccepted(QString text); | |
69 | 71 |
70 public slots: | 72 public slots: |
71 virtual void toolModeChanged(); | 73 virtual void toolModeChanged(); |
72 virtual void zoomWheelsEnabledChanged(); | 74 virtual void zoomWheelsEnabledChanged(); |
73 virtual void viewZoomLevelChanged(View *v, unsigned long z, bool locked); | 75 virtual void viewZoomLevelChanged(View *v, unsigned long z, bool locked); |
91 virtual void mouseDoubleClickEvent(QMouseEvent *e); | 93 virtual void mouseDoubleClickEvent(QMouseEvent *e); |
92 virtual void enterEvent(QEvent *e); | 94 virtual void enterEvent(QEvent *e); |
93 virtual void leaveEvent(QEvent *e); | 95 virtual void leaveEvent(QEvent *e); |
94 virtual void wheelEvent(QWheelEvent *e); | 96 virtual void wheelEvent(QWheelEvent *e); |
95 virtual void resizeEvent(QResizeEvent *e); | 97 virtual void resizeEvent(QResizeEvent *e); |
98 virtual void dragEnterEvent(QDragEnterEvent *e); | |
99 virtual void dropEvent(QDropEvent *e); | |
96 | 100 |
97 void drawVerticalScale(QRect r, Layer *, QPainter &); | 101 void drawVerticalScale(QRect r, Layer *, QPainter &); |
98 void drawFeatureDescription(Layer *, QPainter &); | 102 void drawFeatureDescription(Layer *, QPainter &); |
99 void drawCentreLine(int, QPainter &, bool omitLine); | 103 void drawCentreLine(int, QPainter &, bool omitLine); |
100 void drawDurationAndRate(QRect, const Model *, int, QPainter &); | 104 void drawDurationAndRate(QRect, const Model *, int, QPainter &); |