*/
KNewMenu* newMenu() const;
+ /**
+ * Returns the 'Show Menubar' action which can be shared with
+ * other menus (e. g. a context menu).
+ */
+ KAction* showMenuBarAction() const;
+
public slots:
/**
* Handles the dropping of URLs to the given
- * destination. A context menu with the options
- * 'Move Here', 'Copy Here', 'Link Here' and
- * 'Cancel' is offered to the user.
- * @param urls List of URLs which have been
- * dropped.
- * @param destination Destination URL, where the
- * list or URLs should be moved,
- * copied or linked to.
+ * destination. This is only called by the TreeViewSidebarPage.
*/
void dropUrls(const KUrl::List& urls,
const KUrl& destination);
void requestItemInfo(const KFileItem& item);
protected:
- /** @see QMainWindow::closeEvent */
+ /** @see QMainWindow::closeEvent() */
virtual void closeEvent(QCloseEvent* event);
- /**
- * This method is called when it is time for the app to save its
- * properties for session management purposes.
- */
- void saveProperties(KConfig*);
+ /** @see KMainWindow::saveProperties() */
+ virtual void saveProperties(KConfigGroup& group);
- /**
- * This method is called when this app is restored. The KConfig
- * object points to the session management config file that was saved
- * with @ref saveProperties
- */
- void readProperties(KConfig*);
+ /** @see KMainWindow::readProperties() */
+ virtual void readProperties(const KConfigGroup& group);
private slots:
/** Updates the 'Create New...' sub menu. */
*/
void slotHandlePlacesError(const QString &message);
- /**
- * Shows the error information of the job \a job
- * in the status bar.
- */
- void slotHandleJobError(KJob* job);
-
- /**
- * Indicates in the status bar that the delete operation
- * of the job \a job has been finished.
- */
- void slotDeleteFileFinished(KJob* job);
-
/**
* Updates the state of the 'Undo' menu action dependent
* from the parameter \a available.
/** Opens Kompare for 2 selected files. */
void compareFiles();
+ /**
+ * Hides the menu bar if it is visible, makes the menu bar
+ * visible if it is hidden.
+ */
+ void toggleShowMenuBar();
+
/** Opens the settings dialog for Dolphin. */
void editSettings();
/** Toggles the active view if two views are shown within the main window. */
void toggleActiveView();
- /** Called when the view is renaming a file. */
- void slotRenaming();
+ /** Called when the view is doing a file operation, like renaming, copying, moving etc. */
+ void slotDoingOperation(KonqFileUndoManager::CommandType type);
private:
DolphinMainWindow(int id);
void updateEditActions();
void updateViewActions();
void updateGoActions();
- void copyUrls(const KUrl::List& source, const KUrl& dest);
- void moveUrls(const KUrl::List& source, const KUrl& dest);
- void linkUrls(const KUrl::List& source, const KUrl& dest);
void clearStatusBar();
/**
};
KNewMenu* m_newMenu;
+ KAction* m_showMenuBar;
QSplitter* m_splitter;
DolphinViewContainer* m_activeViewContainer;
int m_id;
return m_newMenu;
}
+inline KAction* DolphinMainWindow::showMenuBarAction() const
+{
+ return m_showMenuBar;
+}
+
inline int DolphinMainWindow::getId() const
{
return m_id;