X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/f11c699fa203dd2cde0e85c63a6d186e3fa6a3de..d6488887ecf69d7f192b94de8dce34fae0b7eb76:/src/dolphincontroller.h diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index 6425816a8..e08e9e490 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -66,7 +66,6 @@ class QWidget; * - setUrl() * - setShowHiddenFiles() * - setShowPreview() - * - setAdditionalInfoCount() * - indicateActivationChange() * - triggerZoomIn() * - triggerZoomOut() @@ -129,12 +128,10 @@ public: * @param urls URLs that are dropped above a destination. * @param destPath Path of the destination. * @param destItem Destination item (can be null, see KFileItem::isNull()). - * @param source Pointer to the view implementation which invoked this method. */ void indicateDroppedUrls(const KUrl::List& urls, const KUrl& destPath, - const KFileItem& destItem, - QWidget* source); + const KFileItem& destItem); /** * Informs the abstract Dolphin view about a sorting change done inside @@ -160,30 +157,6 @@ public: */ void indicateAdditionalInfoChange(const KFileItemDelegate::InformationList& info); - /** - * Informs the view implementation about a change of the show hidden files - * state and is invoked by the abstract Dolphin view. - * The signal showHiddenFilesChanged() is emitted. - */ - void setShowHiddenFiles(bool show); - bool showHiddenFiles() const; - - /** - * Informs the view implementation about a change of the show preview - * state and is invoked by the abstract Dolphin view. - * The signal showPreviewChanged() is emitted. - */ - void setShowPreview(bool show); - bool showPreview() const; - - /** - * Informs the view implementation about a change of the number of - * additional informations and is invoked by the abstract Dolphin view. - * The signal additionalInfoCountChanged() is emitted. - */ - //void setAdditionalInfoCount(int count); - //bool additionalInfoCount() const; - /** * Informs the view implementation about a change of the activation * state and is invoked by the abstract Dolphin view. The signal @@ -219,11 +192,6 @@ public: void setZoomOutPossible(bool possible); bool isZoomOutPossible() const; - // TODO: remove this method when the issue #160611 is solved in Qt 4.4 - static void drawHoverIndication(QWidget* widget, - const QRect& bounds, - const QBrush& brush); - public slots: /** * Emits the signal itemTriggered(). The method should be invoked by the @@ -276,13 +244,11 @@ signals: * Is emitted if the URLs \a urls have been dropped to the destination * path \a destPath. If the URLs have been dropped above an item of * the destination path, the item is indicated by \a destItem - * (can be null, see KFileItem::isNull()). \a source indicates - * the widget where the dragging has been started from. + * (can be null, see KFileItem::isNull()). */ void urlsDropped(const KUrl::List& urls, const KUrl& destPath, - const KFileItem& destItem, - QWidget* source); + const KFileItem& destItem); /** * Is emitted if the sorting has been changed to \a sorting by @@ -307,30 +273,6 @@ signals: */ void additionalInfoChanged(const KFileItemDelegate::InformationList& info); - /** - * Is emitted if the state for showing hidden files has been - * changed to \a show by the abstract Dolphin view. The view - * implementation might connect to this signal if custom - * updates are required in this case. - */ - void showHiddenFilesChanged(bool show); - - /** - * Is emitted if the state for showing previews has been - * changed to \a show by the abstract Dolphin view. - * The view implementation might connect to this signal if custom - * updates are required in this case. - */ - void showPreviewChanged(bool show); - - /** - * Is emitted if the number of additional informations has been - * changed to \a count by the abstract Dolphin view. - * The view implementation might connect to this signal if custom - * updates are required in this case. - */ - //void additionalInfoCountChanged(int count); - /** * Is emitted if the activation state has been changed to \a active * by the abstract Dolphin view. @@ -374,11 +316,8 @@ signals: void zoomOut(); private: - bool m_showHiddenFiles; - bool m_showPreview; bool m_zoomInPossible; bool m_zoomOutPossible; - //int m_additionalInfoCount; KUrl m_url; DolphinView* m_dolphinView; }; @@ -393,21 +332,6 @@ inline const KUrl& DolphinController::url() const return m_url; } -inline bool DolphinController::showHiddenFiles() const -{ - return m_showHiddenFiles; -} - -inline bool DolphinController::showPreview() const -{ - return m_showPreview; -} - -/*inline bool DolphinController::additionalInfoCount() const -{ - return m_additionalInfoCount; -}*/ - inline void DolphinController::setZoomInPossible(bool possible) { m_zoomInPossible = possible;