]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinview.h
Removed method 'int columnIndex(Sorting sorting) const'. The mapping is done outside...
[dolphin.git] / src / dolphinview.h
index 5a9d4eb248c380a4696617224d5b72a886a02ef7..7d6e1288fb498efa3170134a392630bec68c48a3 100644 (file)
@@ -54,7 +54,7 @@ class ViewProperties;
 
 /**
  * @short Represents a view for the directory content
- *        including the navigation bar and status bar.
+ *        including the navigation bar, filter bar and status bar.
  *
  * View modes for icons and details are supported. Currently
  * Dolphin allows to have up to two views inside the main window.
@@ -114,7 +114,7 @@ public:
     /**
      * Sets the current active URL.
      * The signals UrlNavigator::urlChanged() and UrlNavigator::historyChanged()
-     * are submitted.
+     * are emitted.
      */
     void setUrl(const KUrl& url);
 
@@ -375,7 +375,7 @@ signals:
 
     /**
      * Is emitted if information of an item is requested to be shown e. g. in the sidebar.
-     * It the U is empty, no item information request is pending.
+     * It the URL is empty, no item information request is pending.
      */
     void requestItemInfo(const KUrl& url);
 
@@ -430,7 +430,20 @@ private slots:
      */
     void changeNameFilter(const QString& nameFilter);
 
-    void openContextMenu(const QPoint& pos, const QPoint& globalPos);
+    /**
+     * Opens the context menu on position \a pos. The position
+     * is used to check whether the context menu is related to an
+     * item or to the viewport.
+     */
+    void openContextMenu(const QPoint& pos);
+
+    /**
+     * Drops the URLs \a urls at the position \a pos.
+     * The position is used to check whether the dropping
+     * is done above an item or above the viewport.
+     */
+    void dropUrls(const KUrl::List& urls,
+                  const QPoint& pos);
 
     /**
      * Updates the view properties of the current URL to the
@@ -465,11 +478,6 @@ private:
      */
     void createView();
 
-    /**
-     * Returns the column index used in the KDirModel depending on \a sorting.
-     */
-    int columnIndex(Sorting sorting) const;
-
     /**
      * Selects all items by using the selection flags \a flags. This is a helper
      * method for the slots DolphinView::selectAll() and DolphinView::invertSelection().