X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/4b0dc69070af505e2bc620dd1be8fd3e7dff7718..c8d8556950005dfd96ebdb41d2f43ad90356367c:/src/dolphinviewcontainer.h diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index 82b105a4a..ee9f83dea 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -42,7 +42,7 @@ class DolphinStatusBar; * @short Represents a view for the directory content * including the navigation bar, filter bar and status bar. * - * View modes for icons, details and columns are supported. Currently + * View modes for icons, compact and details are supported. Currently * Dolphin allows to have up to two views inside the main window. * * @see DolphinView @@ -80,6 +80,9 @@ public: const DolphinView* view() const; DolphinView* view(); + const DolphinSearchBox* searchBox() const; + DolphinSearchBox* searchBox(); + /** * Refreshes the view container to get synchronized with the (updated) Dolphin settings. */ @@ -170,7 +173,7 @@ private slots: * directory is opened in the view. If the item is a file, the file * gets started by the corresponding application. */ - void slotItemTriggered(const KFileItem& item); + void slotItemActivated(const KFileItem& item); /** * Opens a the file \a url by opening the corresponding application. @@ -209,10 +212,16 @@ private slots: void activate(); /** - * Saves the state of the current view: contents position, - * root URL, ... + * Is invoked if the signal urlAboutToBeChanged() from the DolphinView + * is emitted. Tries to save the view-state. */ - void saveViewState(); + void slotViewUrlAboutToBeChanged(const KUrl& url); + + /** + * Is invoked if the signal urlAboutToBeChanged() from the URL navigator + * is emitted. Tries to save the view-state. + */ + void slotUrlNavigatorLocationAboutToBeChanged(const KUrl& url); /** * Restores the current view to show \a url and assures @@ -263,6 +272,12 @@ private: */ bool isSearchUrl(const KUrl& url) const; + /** + * Saves the state of the current view: contents position, + * root URL, ... + */ + void saveViewState(); + private: QVBoxLayout* m_topLayout; KUrlNavigator* m_urlNavigator; @@ -277,34 +292,4 @@ private: QElapsedTimer m_statusBarTimestamp; // Time in ms since last update }; -inline const DolphinStatusBar* DolphinViewContainer::statusBar() const -{ - return m_statusBar; -} - -inline DolphinStatusBar* DolphinViewContainer::statusBar() -{ - return m_statusBar; -} - -inline const KUrlNavigator* DolphinViewContainer::urlNavigator() const -{ - return m_urlNavigator; -} - -inline KUrlNavigator* DolphinViewContainer::urlNavigator() -{ - return m_urlNavigator; -} - -inline const DolphinView* DolphinViewContainer::view() const -{ - return m_view; -} - -inline DolphinView* DolphinViewContainer::view() -{ - return m_view; -} - #endif // DOLPHINVIEWCONTAINER_H