* @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
/**
* Refreshes the view container to get synchronized with the (updated) Dolphin settings.
*/
- void refresh();
+ void readSettings();
/** Returns true, if the filter bar is visible. */
bool isFilterBarVisible() const;
*/
void updateStatusBar();
- void updateProgress(int percent);
+ void updateDirectoryLoadingProgress(int percent);
+
+ void updateDirectorySortingProgress(int percent);
/**
* Updates the statusbar to show an undetermined progress with the correct
* context information whether a searching or a directory loading is done.
*/
- void slotStartedPathLoading();
+ void slotDirectoryLoadingStarted();
/**
* Assures that the viewport position is restored and updates the
* statusbar to reflect the current content.
*/
- void slotFinishedPathLoading();
+ void slotDirectoryLoadingCompleted();
/**
* Handles clicking on an item. If the item is a directory, the
* 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);
-
- /**
- * Opens a the file \a url by opening the corresponding application.
- * Is connected with the signal urlIsFile() from DolphinDirLister and will
- * get invoked if the user manually has entered a file into the URL navigator.
- */
- void openFile(const KUrl& url);
+ void slotItemActivated(const KFileItem& item);
/**
* Shows the information for the item \a item inside the statusbar. If the
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
*/
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;