Changeset View
Changeset View
Standalone View
Standalone View
src/ViewManager.h
Show First 20 Lines • Show All 247 Lines • ▼ Show 20 Line(s) | 237 | public Q_SLOTS: | |||
---|---|---|---|---|---|
248 | /** DBus slot that returns the current (active) session window */ | 248 | /** DBus slot that returns the current (active) session window */ | ||
249 | Q_SCRIPTABLE int currentSession(); | 249 | Q_SCRIPTABLE int currentSession(); | ||
250 | 250 | | |||
251 | /** DBus slot that sets the current (active) session window */ | 251 | /** DBus slot that sets the current (active) session window */ | ||
252 | Q_SCRIPTABLE void setCurrentSession(int sessionId); | 252 | Q_SCRIPTABLE void setCurrentSession(int sessionId); | ||
253 | 253 | | |||
254 | /** DBus slot that creates a new session in the current view. | 254 | /** DBus slot that creates a new session in the current view. | ||
255 | * @param profile the name of the profile to be used | 255 | * @param profile the name of the profile to be used | ||
256 | * started. | | |||
257 | */ | | |||
258 | Q_SCRIPTABLE int newSession(const QString &profile); | | |||
259 | | ||||
260 | /** DBus slot that creates a new session in the current view. | | |||
261 | * @param profile the name of the profile to be used | | |||
262 | * @param directory the working directory where the session is | 256 | * @param directory the working directory where the session is | ||
263 | * started. | 257 | * started. | ||
264 | */ | 258 | */ | ||
265 | Q_SCRIPTABLE int newSession(const QString &profile, const QString &directory); | 259 | Q_SCRIPTABLE int newSession(const QString &profile = QString(), const QString &directory = QString(), bool runSession = true); | ||
266 | 260 | | |||
267 | // TODO: its semantic is application-wide. Move it to more appropriate place | 261 | // TODO: its semantic is application-wide. Move it to more appropriate place | ||
268 | // DBus slot that returns the name of default profile | 262 | // DBus slot that returns the name of default profile | ||
269 | Q_SCRIPTABLE QString defaultProfile(); | 263 | Q_SCRIPTABLE QString defaultProfile(); | ||
270 | 264 | | |||
271 | // TODO: its semantic is application-wide. Move it to more appropriate place | 265 | // TODO: its semantic is application-wide. Move it to more appropriate place | ||
272 | // DBus slot that returns a string list of defined (known) profiles | 266 | // DBus slot that returns a string list of defined (known) profiles | ||
273 | Q_SCRIPTABLE QStringList profileList(); | 267 | Q_SCRIPTABLE QStringList profileList(); | ||
274 | 268 | | |||
275 | /** DBus slot that creates a new session in the current view with the associated | | |||
276 | * default profile and the default working directory | | |||
277 | */ | | |||
278 | Q_SCRIPTABLE int newSession(); | | |||
279 | | ||||
280 | /** DBus slot that changes the view port to the next session */ | 269 | /** DBus slot that changes the view port to the next session */ | ||
281 | Q_SCRIPTABLE void nextSession(); | 270 | Q_SCRIPTABLE void nextSession(); | ||
282 | 271 | | |||
283 | /** DBus slot that changes the view port to the previous session */ | 272 | /** DBus slot that changes the view port to the previous session */ | ||
284 | Q_SCRIPTABLE void prevSession(); | 273 | Q_SCRIPTABLE void prevSession(); | ||
285 | 274 | | |||
286 | /** DBus slot that switches the current session (as returned by | 275 | /** DBus slot that switches the current session (as returned by | ||
287 | * currentSession()) with the left (or previous) one in the | 276 | * currentSession()) with the left (or previous) one in the | ||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |