#ifndef DOLPHINVIEWCONTAINER_H
#define DOLPHINVIEWCONTAINER_H
-#include "config-kactivities.h"
+#include "config-dolphin.h"
#include "dolphinurlnavigator.h"
#include "views/dolphinview.h"
class FilterBar;
class KMessageWidget;
class QUrl;
-class KUrlNavigator;
class DolphinSearchBox;
class DolphinStatusBar;
void connectUrlNavigator(DolphinUrlNavigator *urlNavigator);
/**
- * Disconnects the navigator that is currently controling the view.
+ * Disconnects the navigator that is currently controlling the view.
* This method completely reverses connectUrlNavigator().
*/
void disconnectUrlNavigator();
*/
QString caption() const;
-public slots:
+ /**
+ * Disable/enable the behavior of "select child when moving to parent folder"
+ * offered by KUrlNavigator.
+ *
+ * See KUrlNavigator::urlSelectionRequested
+ */
+ void disableUrlNavigatorSelectionRequests();
+ void enableUrlNavigatorSelectionRequests();
+
+public Q_SLOTS:
/**
* Sets the current active URL, where all actions are applied. The
* URL navigator is synchronized with this URL. The signals
*/
void setSearchModeEnabled(bool enabled);
-signals:
+Q_SIGNALS:
/**
* Is emitted whenever the filter bar has changed its visibility state.
*/
*/
void writeStateChanged(bool isFolderWritable);
-private slots:
+ /**
+ * Is emitted when the Caption has been changed.
+ * @see DolphinViewContainer::caption()
+ */
+ void captionChanged();
+
+ /**
+ * Is emitted if a new tab should be opened in the background for the URL \a url.
+ */
+ void tabRequested(const QUrl &url);
+
+ /**
+ * Is emitted if a new tab should be opened for the URL \a url and set as active.
+ */
+ void activeTabRequested(const QUrl &url);
+
+private Q_SLOTS:
/**
* Updates the number of items (= number of files + number of
* directories) in the statusbar. If files are selected, the number
* directory is opened in the view. If the item is a file, the file
* gets started by the corresponding application.
*/
- void slotItemActivated(const KFileItem& item);
+ void slotItemActivated(const KFileItem &item);
/**
* Handles activation of multiple files. The files get started by
*/
void showErrorMessage(const QString& msg);
+ /**
+ * Is invoked when a KFilePlacesModel has been changed
+ * @see DolphinPlacesModelSingleton::instance().placesModel()
+ */
+ void slotPlacesModelChanged();
+
+ void slotHiddenFilesShownChanged(bool showHiddenFiles);
+ void slotSortHiddenLastChanged(bool hiddenLast);
+
+ void slotOpenUrlFinished(KJob* job);
+
private:
/**
* @return True if the URL protocol is a search URL (e. g. baloosearch:// or filenamesearch://).