┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2006-12-08 23:41:08 +0000
committerPeter Penz <[email protected]>2006-12-08 23:41:08 +0000
commitd8669c68e40a6571dfcbdf38e3281a4aeb8c2be6 (patch)
tree8b49a9b34fbdcbb9f577481a7acf9efb62322c8f /src/dolphinview.h
parentd7d4fb9d26773c2d729b49d71af10e1378381ff3 (diff)
Cleanup of signal/slot handling between the dolphin view and the main window: now the main window listens to the signals from the dolphin view and connects to private slots (previously the dolphin view connected to public slots of the main window). Also prevent naming all slots by the prefix 'slot', describe instead what the method does.
svn path=/trunk/playground/utils/dolphin/; revision=611617
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h39
1 files changed, 17 insertions, 22 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h
index c78bc0b61..39fb7cc26 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -313,19 +313,14 @@ public:
/**
* Triggers to request user information for the item given
- * by the Url \a url. The signal signalRequestItemInfo is emitted,
+ * by the Url \a url. The signal requestItemInfo is emitted,
* which provides a way for widgets to get an indication to update
* the item information.
*/
- void requestItemInfo(const KUrl& url);
+ void emitRequestItemInfo(const KUrl& url);
- /**
- * Checks if the filter bar is visible.
- *
- * @return @c true Filter bar is visible.
- * @return @c false Filter bar is not visible.
- */
- bool isFilterBarVisible();
+ /** Returns true, if the filter bar is visible. */
+ bool isFilterBarVisible() const;
/**
* Return the DolphinMainWindow this View belongs to. It is guranteed
@@ -351,28 +346,28 @@ public slots:
signals:
/** Is emitted if Url of the view has been changed to \a url. */
- void signalUrlChanged(const KUrl& url);
+ void urlChanged(const KUrl& url);
/**
* Is emitted if the view mode (IconsView, DetailsView,
* PreviewsView) has been changed.
*/
- void signalModeChanged();
+ void modeChanged();
/** Is emitted if the 'show hidden files' property has been changed. */
- void signalShowHiddenFilesChanged();
+ void showHiddenFilesChanged();
/** Is emitted if the sorting by name, size or date has been changed. */
- void signalSortingChanged(DolphinView::Sorting sorting);
+ void sortingChanged(DolphinView::Sorting sorting);
/** Is emitted if the sort order (ascending or descending) has been changed. */
- void signalSortOrderChanged(Qt::SortOrder order);
+ void sortOrderChanged(Qt::SortOrder order);
/**
* Is emitted if information of an item is requested to be shown e. g. in the sidebar.
* It the Url is empty, no item information request is pending.
*/
- void signalRequestItemInfo(const KUrl& url);
+ void requestItemInfo(const KUrl& url);
/** Is emitted if the contents has been moved to \a x, \a y. */
void contentsMoved(int x, int y);
@@ -382,20 +377,19 @@ signals:
* be retrieved by mainWindow()->activeView()->selectedItems() or by
* mainWindow()->activeView()->selectedUrls().
*/
- void signalSelectionChanged();
+ void selectionChanged();
/**
- * Is emitted whenever the directory view is redirected by an ioslave
+ * Is emitted whenever the filter bar has been turned show or hidden.
*/
- void redirection(const KUrl& oldUrl, const KUrl& newUrl);
+ void showFilterBarChanged(bool shown);
protected:
/** @see QWidget::mouseReleaseEvent */
virtual void mouseReleaseEvent(QMouseEvent* event);
-
private slots:
- void slotUrlChanged(const KUrl& kurl);
+ void loadDirectory(const KUrl& kurl);
void triggerIconsViewItem(Q3IconViewItem *item);
void triggerItem(const QModelIndex& index);
void updateUrl();
@@ -406,8 +400,9 @@ private slots:
void slotCompleted();
void slotInfoMessage(const QString& msg);
void slotErrorMessage(const QString& msg);
-
void slotGrabActivation();
+ void emitSelectionChangedSignal();
+ void closeFilterBar();
/**
* Is invoked shortly before the contents of a view implementation
@@ -453,11 +448,11 @@ private:
*/
void applyModeToView();
- DolphinMainWindow *m_mainWindow;
bool m_refreshing;
bool m_showProgress;
Mode m_mode;
+ DolphinMainWindow* m_mainWindow;
QVBoxLayout* m_topLayout;
UrlNavigator* m_urlNavigator;
DolphinIconsView* m_iconsView;