diff --git a/src/ViewManager.h b/src/ViewManager.h --- a/src/ViewManager.h +++ b/src/ViewManager.h @@ -264,37 +264,11 @@ */ Q_SCRIPTABLE int newSession(const QString &profile, const QString &directory); - // TODO: its semantic is application-wide. Move it to more appropriate place - // DBus slot that returns the name of default profile - Q_SCRIPTABLE QString defaultProfile(); - - // TODO: its semantic is application-wide. Move it to more appropriate place - // DBus slot that returns a string list of defined (known) profiles - Q_SCRIPTABLE QStringList profileList(); - /** DBus slot that creates a new session in the current view with the associated * default profile and the default working directory */ Q_SCRIPTABLE int newSession(); - /** DBus slot that changes the view port to the next session */ - Q_SCRIPTABLE void nextSession(); - - /** DBus slot that changes the view port to the previous session */ - Q_SCRIPTABLE void prevSession(); - - /** DBus slot that switches the current session (as returned by - * currentSession()) with the left (or previous) one in the - * navigation tab. - */ - Q_SCRIPTABLE void moveSessionLeft(); - - /** DBus slot that Switches the current session (as returned by - * currentSession()) with the right (or next) one in the navigation - * tab. - */ - Q_SCRIPTABLE void moveSessionRight(); - /** DBus slot that sets ALL tabs' width to match their text */ Q_SCRIPTABLE void setTabWidthToText(bool); diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp --- a/src/ViewManager.cpp +++ b/src/ViewManager.cpp @@ -1193,36 +1193,6 @@ return session->sessionId(); } -QString ViewManager::defaultProfile() -{ - return ProfileManager::instance()->defaultProfile()->name(); -} - -QStringList ViewManager::profileList() -{ - return ProfileManager::instance()->availableProfileNames(); -} - -void ViewManager::nextSession() -{ - nextView(); -} - -void ViewManager::prevSession() -{ - previousView(); -} - -void ViewManager::moveSessionLeft() -{ - moveActiveViewLeft(); -} - -void ViewManager::moveSessionRight() -{ - moveActiveViewRight(); -} - void ViewManager::setTabWidthToText(bool useTextWidth) { ViewContainer *container = _viewSplitter->activeContainer();