Konsole
ViewContainer.h
Go to the documentation of this file.
370 TabbedViewContainer(NavigationPosition position, ViewManager* connectedViewManager, QObject* parent);
408 void 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
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
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
void addView(QWidget *view, ViewProperties *navigationItem, int index=-1)
Adds a new view to the container widget.
Definition: ViewContainer.cpp:138
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
virtual void setFeatures(Features features)
Sets which additional features are enabled in this container.
Definition: ViewContainer.cpp:75
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
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
virtual void setNewViewMenu(QMenu *menu)
Sets the menu to be shown when the new view button is clicked.
Definition: ViewContainer.h:261
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
virtual void removeViewWidget(QWidget *view)
Performs the task of removing the view widget from the container widget.
Definition: ViewContainer.cpp:753
virtual QWidget * containerWidget() const =0
Returns the widget which contains the view widgets.
void viewAdded(QWidget *view, ViewProperties *properties)
Emitted when a view is added to the container.
Provides a button which can be clicked to create new views quickly.
Definition: ViewContainer.h:240
virtual void setStyleSheet(const QString &styleSheet)
Sets the stylesheet for visual appearance.
Definition: ViewContainer.h:172
void viewRemoved(QWidget *view)
Emitted when a view is removed from the container.
Position the navigation widget to the right of the views.
Definition: ViewContainer.h:81
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
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
virtual Features supportedFeatures() const
Returns a bitwise-OR of supported extra UI features.
Definition: ViewContainer.h:255
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 QList< NavigationPosition > supportedNavigationPositions() const
Returns the list of supported navigation positions.
Definition: ViewContainer.cpp:124
void setNavigationVisibility(NavigationVisibility mode)
Definition: ViewContainer.cpp:106
Feature
Enum describing extra UI features which can be provided by the container.
Definition: ViewContainer.h:237
QList< QWidget * > widgetsForItem(ViewProperties *item) const
Returns the widgets which are associated with a particular navigation item.
Definition: ViewContainer.cpp:255
virtual void removeViewWidget(QWidget *view)=0
Performs the task of removing the view widget from the container widget.
A plain view container with no navigation display.
Definition: ViewContainer.h:434
ViewContainer(NavigationPosition position, QObject *parent)
Constructs a new view container with the specified parent.
Definition: ViewContainer.cpp:54
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
QObject * parent() const
Position the navigation widget to the left of the views.
Definition: ViewContainer.h:79
NavigationPosition
This enum describes the options for positioning the container's navigation widget.
Definition: ViewContainer.h:73
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.