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
void setHotSpot(const QPoint &hotspot)
NavigationVisibility navigationVisibility() const
Returns the current mode for controlling the visibility of the the view container's navigation widget...
Definition: ViewContainer.cpp:128
void setMenu(QMenu *menu)
void empty(ViewContainer *container)
Emitted when the container has no more children.
void setContentsMargins(int left, int top, int right, int bottom)
int & rx()
const QBrush & text() const
const QMimeData * mimeData() const
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 setMimeData(QMimeData *data)
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 setFocusPolicy(Qt::FocusPolicy policy)
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 setPixmap(const QPixmap &pixmap)
const T & at(int i) const
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.
virtual void setVisible(bool visible)
void insertLayout(int index, QLayout *layout, int stretch)
void activeViewChanged(QWidget *view)
Emitted when the active view changes.
int x() const
void newViewRequest()
Emitted when the user requests to open a new view.
virtual int count() const
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
void adjustSize()
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setIcon(const QIcon &icon)
virtual void setFeatures(Features features)
Sets which additional features are enabled in this container.
Definition: ViewContainer.cpp:75
void setParent(QWidget *parent)
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
int indexOf(const T &value, int from) const
const QColor & color() const
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
Qt::DropAction exec(QFlags< Qt::DropAction > supportedActions)
ColorGroup currentColorGroup() const
virtual void removeViewWidget(QWidget *view)
Performs the task of removing the view widget from the container widget.
Definition: ViewContainer.cpp:753
void removeWidget(QWidget *widget)
void viewAdded(QWidget *view, ViewProperties *properties)
Emitted when a view is added to the container.
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
int count(const T &value) const
static QMimeData * createMimeData(int id)
Returns a new QMimeData instance which represents the view with the given id (See identifier())...
Definition: ViewProperties.h:97
void append(const T &value)
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
void removeItem(QLayoutItem *item)
virtual void setStyleSheet(const QString &styleSheet)
Sets the stylesheet for visual appearance.
Definition: ViewContainer.cpp:436
QWidget * target() const
bool isNull() const
void viewRemoved(QWidget *view)
Emitted when a view is removed from the container.
int removeAll(const T &value)
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
void deleteLater()
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
void setParent(QObject *parent)
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
QString & replace(int position, int n, QChar after)
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
void setWhatsThis(const QString &)
QPoint pos()
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
void swap(QList< T > &other)
virtual void removeViewWidget(QWidget *view)=0
Performs the task of removing the view widget from the container widget.
void insert(int i, const T &value)
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
void insertWidget(int index, QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
virtual void addViewWidget(QWidget *view, int index)
Performs the task of adding the view widget to the container widget.
Definition: ViewContainer.cpp:749
void setToolTip(const QString &)
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
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setHidden(bool hidden)
NavigationPosition
This enum describes the options for positioning the container's navigation widget.
Definition: ViewContainer.h:73
void setEnabled(bool)
void setSpacing(int spacing)
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-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.