#define DOLPHIN_MAINWINDOW_H
#include <config-baloo.h>
-
#include <kio/fileundomanager.h>
#include <ksortablelist.h>
#include <kxmlguiwindow.h>
-#include <QIcon>
-#include <QUrl>
+#include <QIcon>
#include <QList>
#include <QPointer>
+#include <QUrl>
typedef KIO::FileUndoManager::CommandType CommandType;
class QToolButton;
class QIcon;
class PlacesPanel;
-#ifndef Q_OS_WIN
class TerminalPanel;
-#endif
/**
* @short Main window for Dolphin.
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.dolphin.MainWindow")
- Q_PROPERTY(int id READ getId SCRIPTABLE true)
public:
DolphinMainWindow();
*/
void pasteIntoFolder();
- /**
- * Returns the main window ID used through DBus.
- */
- int getId() const;
-
/**
* Implementation of the MainWindowAdaptor/QDBusAbstractAdaptor interface.
* Inform all affected dolphin components (panels, views) of an URL
*/
void openInNewWindow();
+ /**
+ * Show the target of the selected symlink
+ */
+ void showTarget();
+
/**
* Indicates in the statusbar that the execution of the command \a command
* has been finished.
void tabCountChanged(int count);
/**
- * Sets the window caption to url.fileName() if this is non-empty,
- * "/" if the URL is "file:///", and url.protocol() otherwise.
+ * Updates the Window Title with the caption from the active view container
*/
- void setUrlAsCaption(const QUrl& url);
+ void updateWindowTitle();
/**
* This slot is called when the user requested to unmount a removable media
KNewFileMenu* m_newFileMenu;
DolphinTabWidget* m_tabWidget;
DolphinViewContainer* m_activeViewContainer;
- int m_id;
DolphinViewActionHandler* m_actionHandler;
DolphinRemoteEncoding* m_remoteEncoding;
KIO::Job* m_lastHandleUrlStatJob;
-#ifndef Q_OS_WIN
TerminalPanel* m_terminalPanel;
-#endif
PlacesPanel* m_placesPanel;
bool m_tearDownFromPlacesRequested;
};
return m_newFileMenu;
}
-inline int DolphinMainWindow::getId() const
-{
- return m_id;
-}
-
#endif // DOLPHIN_MAINWINDOW_H