*/
void goUp(Qt::MouseButtons buttons);
+ /**
+ * Open the home URL in a new tab
+ */
+ void goHome(Qt::MouseButtons buttons);
+
/** Opens Kompare for 2 selected files. */
void compareFiles();
QString squeezedText(const QString& text) const;
/**
- * Adds a clone of the action \a action to the action-collection with
- * the name \a actionName, so that the action \a action also can be
- * added to the toolbar by the user. This is useful if the creation of
- * \a action is e.g. done in Qt and hence cannot be added directly
- * to the action-collection.
+ * Creates an action for showing/hiding a panel, that is accessible
+ * in "Configure toolbars..." and "Configure shortcuts...". This is necessary
+ * as the action for toggling the dock visibility is done by Qt which
+ * is no KAction instance.
*/
- void addActionCloneToCollection(QAction* action, const QString& actionName);
+ void createPanelAction(const KIcon& icon,
+ const QKeySequence& shortcut,
+ QAction* dockAction,
+ const QString& actionName);
private:
/**
// Members for the tab-handling:
struct ViewTab
{
- ViewTab() : isPrimaryViewActive(true), primaryView(0), secondaryView(0), splitter(0) {}
+ ViewTab() : isPrimaryViewActive(true), wasActive(false), primaryView(0), secondaryView(0), splitter(0) {}
bool isPrimaryViewActive;
+ bool wasActive;
DolphinViewContainer* primaryView;
DolphinViewContainer* secondaryView;
QSplitter* splitter;