Konsole
ViewManager.cpp
Go to the documentation of this file.
106 QDBusConnection::sessionBus().registerObject(QLatin1String("/Windows/") + QString::number(_managerId), this);
138 KAction* previousViewAction = new KAction(i18nc("@action Shortcut entry", "Previous Tab") , this);
139 KAction* lastViewAction = new KAction(i18nc("@action Shortcut entry", "Switch to Last Tab") , this);
140 KAction* nextContainerAction = new KAction(i18nc("@action Shortcut entry", "Next View Container") , this);
142 KAction* moveViewLeftAction = new KAction(i18nc("@action Shortcut entry", "Move Tab Left") , this);
143 KAction* moveViewRightAction = new KAction(i18nc("@action Shortcut entry", "Move Tab Right") , this);
164 KAction* closeActiveAction = new KAction(i18nc("@action:inmenu Close Active View", "Close Active") , this);
173 KAction* closeOtherAction = new KAction(i18nc("@action:inmenu Close Other Views", "Close Others") , this);
223 KAction* switchToTabAction = new KAction(i18nc("@action Shortcut entry", "Switch to Tab %1", i + 1), this);
507 connect(controller , SIGNAL(focused(SessionController*)) , this , SLOT(controllerChanged(SessionController*)));
647 connect(container, SIGNAL(newViewRequest(Profile::Ptr)), this, SIGNAL(newViewRequest(Profile::Ptr)));
651 connect(container , SIGNAL(activeViewChanged(QWidget*)) , this , SLOT(viewActivated(QWidget*)));
656 void ViewManager::containerMoveViewRequest(int index, int id, bool& moved, TabbedViewContainer* sourceTabbedContainer)
659 SessionController* controller = qobject_cast<SessionController*>(ViewProperties::propertiesById(id));
838 view->setTrimTrailingSpaces(profile->property<bool>(Profile::TrimTrailingSpacesInSelectedText));
840 view->setOpenLinksByDirectClick(profile->property<bool>(Profile::OpenLinksByDirectClickEnabled));
1079 SessionController* controller = qobject_cast<SessionController*>(container->viewProperties(tab));
void setWordCharacters(const QString &wc)
Sets which characters, in addition to letters and numbers, are regarded as being part of a word for t...
Definition: TerminalDisplay.cpp:2658
static SessionManager * instance()
Returns the session manager instance.
Definition: SessionManager.cpp:69
void setMouseWheelZoom(bool value)
Specified whether zoom terminal on Ctrl+mousewheel is enabled or not.
Definition: TerminalDisplay.h:347
Represents a terminal session consisting of a pseudo-teletype and a terminal emulation.
Definition: Session.h:67
Provides the menu actions to manipulate a single terminal session and view pair.
Definition: SessionController.h:85
Put newly created tab right after current tab.
Definition: ViewManager.h:134
QWidget * activeView() const
Returns the view manager's active view.
Definition: ViewManager.cpp:118
void setBlinkingCursorEnabled(bool blink)
Specifies whether or not the cursor can blink.
Definition: TerminalDisplay.cpp:1510
Each container has a row of tabs (one per session) which the user can click on to navigate between op...
Definition: ViewManager.h:122
void setWallpaper(ColorSchemeWallpaper::Ptr p)
Sets the background picture.
Definition: TerminalDisplay.cpp:594
void setVTFont(const QFont &font)
Sets the font used to draw the display.
Definition: TerminalDisplay.cpp:205
void setTripleClickMode(Enum::TripleClickModeEnum mode)
Sets how the text is selected when the user triple clicks within the display.
Definition: TerminalDisplay.h:166
NewTabBehavior
This enum describes where newly created tab should be placed.
Definition: ViewManager.h:130
Q_SCRIPTABLE int sessionCount()
DBus slot that returns the number of sessions in the current view.
Definition: ViewManager.cpp:994
Draw a line underneath the cursor's position.
Definition: Enumeration.h:88
An alternative tabbed view container which uses a QTabBar and QStackedWidget combination for navigati...
Definition: ViewContainer.h:361
void setBellMode(int mode)
Sets the type of effect used to alert the user when a 'bell' occurs in the terminal session...
Definition: TerminalDisplay.cpp:3013
void addView(QWidget *view, ViewProperties *navigationItem, int index=-1)
Adds a new view to the container widget.
Definition: ViewContainer.cpp:138
Q_SCRIPTABLE void moveSessionRight()
DBus slot that Switches the current session (as returned by currentSession()) with the right (or next...
Definition: ViewManager.cpp:1065
void updateWindowIcon()
QPointer< TerminalDisplay > view()
Returns the view associated with this controller.
Definition: SessionController.h:112
(bool) If true, trailing spaces are trimmed in selected text
Definition: Profile.h:213
void setShowQuickButtons(bool show)
Definition: ViewManager.cpp:1115
void getColorTable(ColorEntry *table, uint randomSeed=0) const
Copies the color entries which form the palette for this color scheme into table. ...
Definition: ColorScheme.cpp:222
Q_SCRIPTABLE QString defaultProfile()
Definition: ViewManager.cpp:1040
void setUnderlineLinks(bool value)
Specifies whether links and email addresses should be underlined when hovered by the mouse...
Definition: TerminalDisplay.h:178
Q_SCRIPTABLE void nextSession()
DBus slot that changes the view port to the next session.
Definition: ViewManager.cpp:1050
(MiddleClickPasteModeEnum) Specifies the source from which mouse middle click pastes data...
Definition: Profile.h:223
Q_SCRIPTABLE int currentSession()
DBus slot that returns the current (active) session window.
Definition: ViewManager.cpp:999
void setSaveGeometryOnExitRequest(bool)
void setDarkBackground(bool darkBackground)
Sets whether the session has a dark background or not.
Definition: Session.cpp:235
void setKeyboardCursorColor(const QColor &color)
Sets the color used to draw the keyboard cursor.
Definition: TerminalDisplay.cpp:566
QList< TerminalDisplay * > views() const
Returns the views connected to this session.
Definition: Session.cpp:303
virtual void setFeatures(Features features)
Sets which additional features are enabled in this container.
Definition: ViewContainer.cpp:75
Profile::Ptr sessionProfile(Session *session) const
Returns the profile associated with a session.
Definition: SessionManager.cpp:141
void setScrollFullPage(bool fullPage)
Definition: TerminalDisplay.cpp:1841
Q_SCRIPTABLE QStringList profileList()
Definition: ViewManager.cpp:1045
Use a solid rectangular block to draw the cursor.
Definition: Enumeration.h:82
void moveActiveView(MoveDirection direction)
Moves the active view within the container and updates the order in which the views are shown in the ...
Definition: ViewContainer.cpp:83
void setAutoCopySelectedText(bool enabled)
Definition: TerminalDisplay.cpp:2710
Manages the terminal display widgets in a Konsole window or part.
Definition: ViewManager.h:66
An interface for container widgets which can hold one or more views.
Definition: ViewContainer.h:64
void setNavigationPosition(int position)
Definition: ViewManager.cpp:1095
Profile::Ptr defaultProfile() const
Returns a Profile object describing the default profile.
Definition: ProfileManager.cpp:308
ViewManager * connectedViewManager()
Definition: ViewContainer.cpp:714
int getRestoreId(Session *session)
Definition: SessionManager.cpp:295
bool isRunning() const
Returns true if the session is currently running.
Definition: Session.cpp:240
virtual QWidget * containerWidget() const =0
Returns the widget which contains the view widgets.
A splitter which holds a number of ViewContainer objects and allows the user to control the size of e...
Definition: ViewSplitter.h:47
qreal opacity() const
Returns the opacity level for this color scheme, see setOpacity() TODO: More documentation.
Definition: ColorScheme.cpp:284
QList< Profile::Ptr > allProfiles()
Returns a list of all available profiles.
Definition: ProfileManager.cpp:296
void setNavigationMethod(NavigationMethod method)
Sets the type of widget provided to navigate between open sessions in a container.
Definition: ViewManager.cpp:685
static ProfileManager * instance()
Returns the profile manager instance.
Definition: ProfileManager.cpp:114
void setBidiEnabled(bool set)
Sets the status of the BiDi rendering inside the terminal display.
Definition: TerminalDisplay.h:431
void setAntialias(bool value)
Specified whether anti-aliasing of text in the terminal display is enabled or not.
Definition: TerminalDisplay.h:386
Provides a button which can be clicked to create new views quickly.
Definition: ViewContainer.h:240
void restoreSessions(const KConfigGroup &group)
Definition: ViewManager.cpp:959
void viewDetached(Session *session)
Emitted when a session is detached from a view owned by this ViewManager.
(bool) Specifies whether the PageUp/Down will scroll the full height or half height.
Definition: Profile.h:157
virtual void setStyleSheet(const QString &styleSheet)
Sets the stylesheet for visual appearance.
Definition: ViewContainer.h:172
void setNavigationVisibility(int visibility)
Definition: ViewManager.cpp:1085
Q_SCRIPTABLE void prevSession()
DBus slot that changes the view port to the previous session.
Definition: ViewManager.cpp:1055
void setNavigationStyleSheet(const QString &styleSheet)
Definition: ViewManager.cpp:1106
NavigationMethod navigationMethod() const
Returns the type of navigation widget created in new containers.
Definition: ViewManager.cpp:730
void setNavigationPosition(NavigationPosition position)
Sets the position of the navigation widget with respect to the main content area. ...
Definition: ViewContainer.cpp:115
void activatePreviousView()
Changes the active view to the previous view.
Definition: ViewContainer.cpp:231
Q_SCRIPTABLE void moveSessionLeft()
DBus slot that switches the current session (as returned by currentSession()) with the left (or previ...
Definition: ViewManager.cpp:1060
void setColorTable(const ColorEntry table[])
Sets the terminal color palette used by the display.
Definition: TerminalDisplay.cpp:152
virtual QWidget * activeView() const =0
Returns the view which currently has the focus or 0 if none of the child views have the focus...
void setInitialWorkingDirectory(const QString &dir)
Sets the initial working directory for the session when it is run This has no effect once the session...
Definition: Session.cpp:277
void applyProfileToView(TerminalDisplay *view, const Profile::Ptr profile)
Applies the view-specific settings associated with specified profile to the terminal display view...
Definition: ViewManager.cpp:789
(TripleClickModeEnum) Specifies which part of current line should be selected with triple click actio...
Definition: Profile.h:201
void setScrollBarPosition(Enum::ScrollBarPositionEnum position)
Specifies whether the terminal display has a vertical scroll bar, and if so whether it is shown on th...
Definition: TerminalDisplay.cpp:1787
void setCenterContents(bool enable)
Sets whether the contents are centered between the margins.
Definition: TerminalDisplay.cpp:1774
void setMiddleClickPasteMode(Enum::MiddleClickPasteModeEnum mode)
Definition: TerminalDisplay.cpp:2715
void unplugController(SessionController *controller)
Emitted when the current session needs unplugged from factory().
Provides a button which can be clicked to close views quickly.
Definition: ViewContainer.h:242
Encapsulates user-visible information about the terminal session currently being displayed in a view...
Definition: ViewProperties.h:44
void setOpacity(qreal opacity)
Sets the opacity of the terminal display.
Definition: TerminalDisplay.cpp:575
void setOpenLinksByDirectClick(bool value)
Specifies whether links and email addresses should be opened when clicked with the mouse...
Definition: TerminalDisplay.h:193
A widget which allows users to search incrementally through a document for a a text string or regular...
Definition: IncrementalSearchBar.h:56
static ViewProperties * propertiesById(int id)
Finds a ViewProperties instance given its numeric identifier.
Definition: ViewProperties.cpp:38
void setLineSpacing(uint)
Definition: TerminalDisplay.cpp:260
void setNavigationBehavior(int behavior)
Definition: ViewManager.cpp:1133
void setSize(int columns, int lines)
Definition: TerminalDisplay.cpp:1716
void activeViewChanged(SessionController *controller)
Emitted when the active view changes.
void viewPropertiesChanged(const QList< ViewProperties * > &propertiesList)
Emitted when the list of view properties ( as returned by viewProperties() ) changes.
void splitViewToggle(bool multipleViews)
Emitted when the number of views containers changes.
void setTrimTrailingSpaces(bool enabled)
Sets whether trailing spaces should be trimmed in selected text.
Definition: TerminalDisplay.h:207
void setRandomSeed(uint seed)
Sets the seed used to generate random colors for the display (in color schemes that support them)...
Definition: TerminalDisplay.cpp:800
void setKeyboardCursorShape(Enum::CursorShapeEnum shape)
Sets the shape of the keyboard cursor.
Definition: TerminalDisplay.cpp:558
void setShowTerminalSizeHint(bool on)
Sets whether or not the current height and width of the terminal in lines and columns is displayed wh...
Definition: TerminalDisplay.h:415
virtual QList< NavigationPosition > supportedNavigationPositions() const
Returns the list of supported navigation positions.
Definition: ViewContainer.cpp:124
void setNavigationVisibility(NavigationVisibility mode)
Definition: ViewContainer.cpp:106
void createView(Session *session)
Creates a new view to display the output from and deliver input to session.
Definition: ViewManager.cpp:577
TripleClickModeEnum
This enum describes the behavior of triple click action .
Definition: Enumeration.h:92
(CursorShapeEnum) The shape used by terminal displays to represent the cursor.
Definition: Profile.h:187
void setBoldIntense(bool value)
Specifies whether characters with intense colors should be rendered as bold.
Definition: TerminalDisplay.h:400
(ScrollBarPositionEnum) Specifies the position of the scroll bar in terminal displays using this prof...
Definition: Profile.h:153
A plain view container with no navigation display.
Definition: ViewContainer.h:434
Use an 'I' shape, similar to that used in text editing applications, to draw the cursor.
Definition: Enumeration.h:86
Q_SCRIPTABLE void setTabWidthToText(bool)
DBus slot that sets ALL tabs' width to match their text.
Definition: ViewManager.cpp:1070
SessionController * activeViewController() const
Returns the controller for the active view.
Definition: ViewManager.cpp:533
virtual void setActiveView(QWidget *widget)=0
Changes the focus to the specified view and updates navigation aids to reflect the change...
Q_SCRIPTABLE int newSession()
DBus slot that creates a new session in the current view with the associated default profile and the ...
Definition: ViewManager.cpp:1008
The container has no navigation widget.
Definition: ViewManager.h:124
const QList< QWidget * > views() const
Returns a list of the contained views.
Definition: ViewContainer.cpp:189
void setNavigationTextMode(bool mode)
Sets the navigation text mode If mode is true, use the width of the title; otherwise use the default ...
Definition: ViewContainer.cpp:133
ViewProperties * viewProperties(QWidget *view) const
Returns the ViewProperties instance associated with a particular view in the container.
Definition: ViewContainer.cpp:248
Show the scroll-bar on the right of the terminal display.
Definition: Enumeration.h:62
QStringList availableProfileNames() const
Returns a list of names of all available profiles.
Definition: ProfileManager.cpp:202
Session * createSession(Profile::Ptr profile=Profile::Ptr())
Creates a new session using the settings specified by the specified profile.
Definition: SessionManager.cpp:88
uint randomSeed() const
Returns the seed used to generate random colors for the display (in color schemes that support them)...
Definition: TerminalDisplay.cpp:804
NavigationVisibility
This enum describes the options for showing or hiding the container's navigation widget.
Definition: ViewContainer.h:106
Features features() const
Returns a bitwise-OR of enabled extra UI features.
Definition: ViewContainer.cpp:79
void setControlDrag(bool enable)
Definition: TerminalDisplay.h:158
QWidget * widget() const
Return the main widget for the view manager which holds all of the views managed by this ViewManager ...
Definition: ViewManager.cpp:128
void setBlinkingTextEnabled(bool blink)
Specifies whether or not text can blink.
Definition: TerminalDisplay.cpp:1527
A widget which displays output from a terminal emulation and sends input keypresses and mouse activit...
Definition: TerminalDisplay.h:63
QList< ViewProperties * > viewProperties() const
Returns the list of view properties for views in the active container.
Definition: ViewManager.cpp:907
Show the scroll-bar on the left of the terminal display.
Definition: Enumeration.h:60
(bool) If true, links can be opened by direct mouse click.
Definition: Profile.h:207
NavigationPosition
This enum describes the options for positioning the container's navigation widget.
Definition: ViewContainer.h:73
void newViewRequest()
Requests creation of a new view with the default profile.
ViewManager(QObject *parent, KActionCollection *collection)
Constructs a new view manager with the specified parent.
Definition: ViewManager.cpp:57
const ColorScheme * defaultColorScheme() const
Returns the default color scheme for Konsole.
Definition: ColorSchemeManager.cpp:288
NavigationMethod
This enum describes the available types of navigation widget which newly created containers can provi...
Definition: ViewManager.h:117
static ColorSchemeManager * instance()
Returns the global color scheme manager instance.
Definition: ColorSchemeManager.cpp:172
(bool) If true, control key must be pressed to click and drag selected text.
Definition: Profile.h:209
ColorSchemeWallpaper::Ptr wallpaper() const
Definition: ColorScheme.cpp:370
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.