]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinview.h
Create a SidebarTreeView which will include support for drag & drop in later releases...
[dolphin.git] / src / dolphinview.h
index cffa52880d5722095c716f6fac543bca5a0c9d78..5cfd7904d4ac5c1c87fc509cd7cce0c35e79bac5 100644 (file)
@@ -346,6 +346,9 @@ public slots:
      */
     void requestActivation();
 
+    /** Applies an item effect to all cut items of the clipboard. */
+    void updateCutItems();
+
 signals:
     /** Is emitted if URL of the view has been changed to \a url. */
     void urlChanged(const KUrl& url);
@@ -404,6 +407,19 @@ private slots:
      */
     void updateItemCount();
 
+    /**
+     * Generates a preview image for each file item in \a items.
+     * The current preview settings (maximum size, 'Show Preview' menu)
+     * are respected.
+     */
+    void generatePreviews(const KFileItemList& items);
+
+    /**
+     * Replaces the icon of the item \a item by the preview pixmap
+     * \a pixmap.
+     */
+    void showPreview(const KFileItem* item, const QPixmap& pixmap);
+
     /**
      * Restores the x- and y-position of the contents if the
      * current view is part of the history.
@@ -503,6 +519,18 @@ private:
      */
     QAbstractItemView* itemView() const;
 
+    /**
+     * Returns true if the index is valid and represents
+     * the column KDirModel::Name.
+     */
+    bool isValidNameIndex(const QModelIndex& index) const;
+
+    /**
+     * Returns true, if the item \a item has been cut into
+     * the clipboard.
+     */
+    bool isCutItem(const KFileItem& item) const;
+
 private:
     bool m_showProgress;
     Mode m_mode;