Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinmainwindow.h
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 64 | public: | |||
---|---|---|---|---|---|
87 | 87 | | |||
88 | /** | 88 | /** | ||
89 | * Opens the directories which contain the files \p files and selects all files. | 89 | * Opens the directories which contain the files \p files and selects all files. | ||
90 | * If \a splitView is set, 2 directories are collected within one tab. | 90 | * If \a splitView is set, 2 directories are collected within one tab. | ||
91 | * \pre \a files must contain at least one url. | 91 | * \pre \a files must contain at least one url. | ||
92 | */ | 92 | */ | ||
93 | void openFiles(const QList<QUrl>& files, bool splitView); | 93 | void openFiles(const QList<QUrl>& files, bool splitView); | ||
94 | 94 | | |||
95 | /** | 95 | /** | ||
elvisangelaccio: Unrelated style change, please move it to another commit. | |||||
96 | * Returns the 'Create New...' sub menu which also can be shared | 96 | * Returns the 'Create New...' sub menu which also can be shared | ||
97 | * with other menus (e. g. a context menu). | 97 | * with other menus (e. g. a context menu). | ||
elvisangelaccio: Accidental comment change? | |||||
98 | */ | 98 | */ | ||
99 | KNewFileMenu* newFileMenu() const; | 99 | KNewFileMenu* newFileMenu() const; | ||
100 | 100 | | |||
101 | void setTabsToHomeIfMountPathOpen(const QString& mountPath); | 101 | void setTabsToHomeIfMountPathOpen(const QString& mountPath); | ||
102 | 102 | | |||
103 | public slots: | 103 | public slots: | ||
104 | /** | 104 | /** | ||
105 | * Opens each directory in \p dirs in a separate tab. If \a splitView is set, | ||||
106 | * 2 directories are collected within one tab. | ||||
107 | * \pre \a dirs must contain at least one url. | ||||
108 | * | ||||
109 | * @note this function is overloaded so that it is callable via DBus. | ||||
110 | */ | ||||
111 | void openDirectories(const QStringList &dirs, bool splitView); | ||||
112 | | ||||
113 | /** | ||||
114 | * Opens the directories which contain the files \p files and selects all files. | ||||
115 | * If \a splitView is set, 2 directories are collected within one tab. | ||||
116 | * \pre \a files must contain at least one url. | ||||
117 | * | ||||
118 | * @note this is overloaded so that this function is callable via DBus. | ||||
119 | */ | ||||
120 | void openFiles(const QStringList &files, bool splitView); | ||||
121 | | ||||
122 | /** | ||||
123 | * Tries to raise/activate the Dolphin window. | ||||
124 | */ | ||||
125 | void activateWindow(); | ||||
126 | | ||||
127 | /** | ||||
128 | * Determines if a URL is open in any tab. | ||||
129 | * @note Use of QString instead of QUrl is required to be callable via DBus. | ||||
130 | * | ||||
131 | * @param url URL to look for | ||||
132 | * @returns true if url is currently open in a tab, false otherwise. | ||||
133 | */ | ||||
134 | bool isUrlOpen(const QString &url); | ||||
135 | | ||||
136 | | ||||
137 | /** | ||||
105 | * Pastes the clipboard data into the currently selected folder | 138 | * Pastes the clipboard data into the currently selected folder | ||
106 | * of the active view. If not exactly one folder is selected, | 139 | * of the active view. If not exactly one folder is selected, | ||
107 | * no pasting is done at all. | 140 | * no pasting is done at all. | ||
108 | */ | 141 | */ | ||
109 | void pasteIntoFolder(); | 142 | void pasteIntoFolder(); | ||
110 | 143 | | |||
111 | /** | 144 | /** | ||
112 | * Implementation of the MainWindowAdaptor/QDBusAbstractAdaptor interface. | 145 | * Implementation of the MainWindowAdaptor/QDBusAbstractAdaptor interface. | ||
▲ Show 20 Lines • Show All 444 Lines • Show Last 20 Lines |
Unrelated style change, please move it to another commit.