* - setUrl()
* - setShowHiddenFiles()
* - setShowPreview()
- * - setAdditionalInfoCount()
* - indicateActivationChange()
* - triggerZoomIn()
* - triggerZoomOut()
* @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
*/
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
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
* 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
*/
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.
void zoomOut();
private:
- bool m_showHiddenFiles;
- bool m_showPreview;
bool m_zoomInPossible;
bool m_zoomOutPossible;
- //int m_additionalInfoCount;
KUrl m_url;
DolphinView* m_dolphinView;
};
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;