Konsole
ViewContainer.cpp
Go to the documentation of this file.
260 TabbedViewContainer::TabbedViewContainer(NavigationPosition position, ViewManager* connectedViewManager, QObject* parent)
308 _newTabButton->setWhatsThis(i18nc("@info:whatsthis", "Create a new tab. Press and hold to select profile from menu"));
386 QList<ViewContainer::NavigationPosition> TabbedViewContainer::supportedNavigationPositions() const
538 void TabbedViewContainer::onMoveViewRequest(int index, const QDropEvent* event ,bool& success, TabbedViewContainer* sourceTabbedContainer)
virtual void navigationPositionChanged(NavigationPosition)
Called when the navigation position changes to re-layout the container and place the navigation widge...
Definition: ViewContainer.h:325
virtual void addViewWidget(QWidget *view, int index)
Performs the task of adding the view widget to the container widget.
Definition: ViewContainer.cpp:634
NavigationVisibility navigationVisibility() const
Returns the current mode for controlling the visibility of the the view container's navigation widget...
Definition: ViewContainer.cpp:128
void empty(ViewContainer *container)
Emitted when the container has no more children.
virtual ~StackedViewContainer()
Definition: ViewContainer.cpp:732
static QString mimeType()
Name of mime format to use in drag-and-drop operations.
Definition: ViewProperties.h:89
virtual void navigationTextModeChanged(bool mode)
Definition: ViewContainer.cpp:441
virtual void setActiveView(QWidget *view)
Changes the focus to the specified view and updates navigation aids to reflect the change...
Definition: ViewContainer.cpp:745
void moveViewRequest(int index, int id, bool &success, TabbedViewContainer *sourceContainer)
Emitted when the user requests to move a view from another container into this container.
StackedViewContainer(QObject *parent)
Definition: ViewContainer.cpp:719
An alternative tabbed view container which uses a QTabBar and QStackedWidget combination for navigati...
Definition: ViewContainer.h:361
virtual void setActiveView(QWidget *view)
Changes the focus to the specified view and updates navigation aids to reflect the change...
Definition: ViewContainer.cpp:625
void addView(QWidget *view, ViewProperties *navigationItem, int index=-1)
Adds a new view to the container widget.
Definition: ViewContainer.cpp:138
virtual Features supportedFeatures() const
Returns a bitwise-OR of supported extra UI features.
Definition: ViewContainer.cpp:357
ProfileList provides a list of actions which represent session profiles that a SessionManager can cre...
Definition: ProfileList.h:51
void destroyed(ViewContainer *container)
Emitted when the container is deleted.
void activeViewChanged(QWidget *view)
Emitted when the active view changes.
void newViewRequest()
Emitted when the user requests to open a new view.
virtual void navigationTextModeChanged(bool)
Definition: ViewContainer.h:327
void closeTab(ViewContainer *self, QWidget *activeView)
virtual void setVisible(bool visible)
Definition: IncrementalSearchBar.cpp:233
virtual void setFeatures(Features features)
Sets which additional features are enabled in this container.
Definition: ViewContainer.cpp:361
virtual void setFeatures(Features features)
Sets which additional features are enabled in this container.
Definition: ViewContainer.cpp:75
void syncWidgetActions(QWidget *widget, bool sync)
TODO: Document me.
Definition: ProfileList.cpp:114
void setSupportedMimeType(const QString &mimeType)
Definition: ViewContainerTabBar.cpp:167
QPixmap dragDropPixmap(int tab)
Definition: ViewContainerTabBar.cpp:207
Position the navigation widget below the views.
Definition: ViewContainer.h:77
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
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
Always show the navigation widget.
Definition: ViewContainer.h:108
Show the navigation widget only when the container has more than one view.
Definition: ViewContainer.h:110
virtual QWidget * activeView() const
Returns the view which currently has the focus or 0 if none of the child views have the focus...
Definition: ViewContainer.cpp:741
ViewManager * connectedViewManager()
Definition: ViewContainer.cpp:714
virtual void removeViewWidget(QWidget *view)
Performs the task of removing the view widget from the container widget.
Definition: ViewContainer.cpp:753
void viewAdded(QWidget *view, ViewProperties *properties)
Emitted when a view is added to the container.
static QMimeData * createMimeData(int id)
Returns a new QMimeData instance which represents the view with the given id (See identifier())...
Definition: ViewProperties.h:97
Provides a button which can be clicked to create new views quickly.
Definition: ViewContainer.h:240
virtual void moveViewWidget(int fromIndex, int toIndex)
Rearranges the order of widgets in the container.
Definition: ViewContainer.cpp:584
virtual void setStyleSheet(const QString &styleSheet)
Sets the stylesheet for visual appearance.
Definition: ViewContainer.cpp:436
void viewRemoved(QWidget *view)
Emitted when a view is removed from the container.
static int decodeMimeData(const QMimeData *mimeData)
Decodes a QMimeData instance created with createMimeData() and returns the identifier of the associat...
Definition: ViewProperties.h:109
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
virtual QWidget * activeView() const =0
Returns the view which currently has the focus or 0 if none of the child views have the focus...
IncrementalSearchBar * searchBar()
Definition: ViewContainer.cpp:194
virtual void setNewViewMenu(QMenu *menu)
Sets the menu to be shown when the new view button is clicked.
Definition: ViewContainer.cpp:353
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 detachTab(ViewContainer *self, QWidget *activeView)
A widget which allows users to search incrementally through a document for a a text string or regular...
Definition: IncrementalSearchBar.h:56
virtual void moveViewWidget(int fromIndex, int toIndex)
Rearranges the order of widgets in the container.
Definition: ViewContainer.cpp:74
virtual void addViewWidget(QWidget *view, int index)=0
Performs the task of adding the view widget to the container widget.
virtual void navigationPositionChanged(NavigationPosition position)
Called when the navigation position changes to re-layout the container and place the navigation widge...
Definition: ViewContainer.cpp:391
virtual ~TabbedViewContainer()
Definition: ViewContainer.cpp:454
virtual QList< NavigationPosition > supportedNavigationPositions() const
Returns the list of supported navigation positions.
Definition: ViewContainer.cpp:124
virtual QWidget * containerWidget() const
Returns the widget which contains the view widgets.
Definition: ViewContainer.cpp:617
void setNavigationVisibility(NavigationVisibility mode)
Definition: ViewContainer.cpp:106
QList< QWidget * > widgetsForItem(ViewProperties *item) const
Returns the widgets which are associated with a particular navigation item.
Definition: ViewContainer.cpp:255
int identifier() const
A unique identifier associated with this ViewProperties instance.
Definition: ViewProperties.cpp:93
virtual void removeViewWidget(QWidget *view)=0
Performs the task of removing the view widget from the container widget.
ViewContainer(NavigationPosition position, QObject *parent)
Constructs a new view container with the specified parent.
Definition: ViewContainer.cpp:54
virtual void navigationVisibilityChanged(NavigationVisibility mode)
Called when the navigation display mode changes.
Definition: ViewContainer.cpp:416
MoveDirection
This enum describes the directions in which views can be re-arranged within the container using the m...
Definition: ViewContainer.h:219
virtual ~ViewContainer()
Called when the ViewContainer is destroyed.
Definition: ViewContainer.cpp:62
virtual void setActiveView(QWidget *widget)=0
Changes the focus to the specified view and updates navigation aids to reflect the change...
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
virtual void navigationVisibilityChanged(NavigationVisibility)
Called when the navigation display mode changes.
Definition: ViewContainer.h:318
NavigationPosition navigationPosition() const
Returns the position of the navigation widget with respect to the main content area.
Definition: ViewContainer.cpp:111
virtual void addViewWidget(QWidget *view, int index)
Performs the task of adding the view widget to the container widget.
Definition: ViewContainer.cpp:749
Always hide the navigation widget.
Definition: ViewContainer.h:112
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
virtual QWidget * containerWidget() const
Returns the widget which contains the view widgets.
Definition: ViewContainer.cpp:737
Position the navigation widget above the views.
Definition: ViewContainer.h:75
virtual QList< NavigationPosition > supportedNavigationPositions() const
Returns the list of supported navigation positions.
Definition: ViewContainer.cpp:386
NavigationPosition
This enum describes the options for positioning the container's navigation widget.
Definition: ViewContainer.h:73
virtual void removeViewWidget(QWidget *view)
Performs the task of removing the view widget from the container widget.
Definition: ViewContainer.cpp:652
virtual QWidget * activeView() const
Returns the view which currently has the focus or 0 if none of the child views have the focus...
Definition: ViewContainer.cpp:621
TabbedViewContainer(NavigationPosition position, ViewManager *connectedViewManager, QObject *parent)
Constructs a new tabbed view container.
Definition: ViewContainer.cpp:260
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.