From 546384562ae872614cd0c8fa568bd65ae41885da Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 16 Feb 2007 17:03:02 +0000 Subject: Reanimated drag & drop support again after introducing the DolphinController. It is now also possible to move the items inside an icon view like discussed on kde-devel/kde-usability. svn path=/trunk/KDE/kdebase/apps/; revision=634228 --- src/dolphincontroller.h | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'src/dolphincontroller.h') diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index 8229ade1e..bde01c28e 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -56,11 +56,13 @@ public: void setUrl(const KUrl& url) { m_url = url; } const KUrl& url() const { return m_url; } - void triggerContextMenuRequest(const QPoint& pos, - const QPoint& globalPos); + void triggerContextMenuRequest(const QPoint& pos); void triggerActivation(); + void indicateDroppedUrls(const KUrl::List& urls, + const QPoint& pos); + void indicateSortingChange(DolphinView::Sorting sorting); void indicateSortOrderChange(Qt::SortOrder order); @@ -76,17 +78,24 @@ signals: * context menu should be opened. It is recommended * to get the corresponding model index from * this position. - * @param globalPos Global position where the context menu should - * be opened. */ - void requestContextMenu(const QPoint& pos, - const QPoint& globalPos); + void requestContextMenu(const QPoint& pos); /** * Is emitted if the view has been activated by e. g. a mouse click. */ void activated(); + /** + * Is emitted if the URLs \a urls have been dropped. + * @param pos Position relative to the view widget where the + * dropping has been done. It is recommended + * to get the corresponding model index from + * this position to find out the destination. + */ + void urlsDropped(const KUrl::List& urls, + const QPoint& pos); + /** Is emitted if the sorting has been changed to \a sorting. */ void sortingChanged(DolphinView::Sorting sorting); -- cgit v1.3