Konsole
#include <ViewContainer.h>
Signals | |
void | closeTab (ViewContainer *self, QWidget *activeView) |
void | detachTab (ViewContainer *self, QWidget *activeView) |
Signals inherited from Konsole::ViewContainer | |
void | activeViewChanged (QWidget *view) |
void | destroyed (ViewContainer *container) |
void | empty (ViewContainer *container) |
void | moveViewRequest (int index, int id, bool &success, TabbedViewContainer *sourceContainer) |
void | newViewRequest () |
void | newViewRequest (Profile::Ptr) |
void | viewAdded (QWidget *view, ViewProperties *properties) |
void | viewRemoved (QWidget *view) |
Public Member Functions | |
TabbedViewContainer (NavigationPosition position, ViewManager *connectedViewManager, QObject *parent) | |
virtual | ~TabbedViewContainer () |
virtual QWidget * | activeView () const |
ViewManager * | connectedViewManager () |
virtual QWidget * | containerWidget () const |
virtual void | setActiveView (QWidget *view) |
virtual void | setFeatures (Features features) |
virtual void | setNewViewMenu (QMenu *menu) |
virtual void | setStyleSheet (const QString &styleSheet) |
virtual Features | supportedFeatures () const |
virtual QList< NavigationPosition > | supportedNavigationPositions () const |
Public Member Functions inherited from Konsole::ViewContainer | |
ViewContainer (NavigationPosition position, QObject *parent) | |
virtual | ~ViewContainer () |
void | activateLastView () |
void | activateNextView () |
void | activatePreviousView () |
void | addView (QWidget *view, ViewProperties *navigationItem, int index=-1) |
Features | features () const |
void | moveActiveView (MoveDirection direction) |
NavigationPosition | navigationPosition () const |
NavigationVisibility | navigationVisibility () const |
void | removeView (QWidget *view) |
IncrementalSearchBar * | searchBar () |
void | setNavigationPosition (NavigationPosition position) |
void | setNavigationTextMode (bool mode) |
void | setNavigationVisibility (NavigationVisibility mode) |
ViewProperties * | viewProperties (QWidget *view) const |
const QList< QWidget * > | views () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Protected Member Functions | |
virtual void | addViewWidget (QWidget *view, int index) |
virtual void | moveViewWidget (int fromIndex, int toIndex) |
virtual void | navigationPositionChanged (NavigationPosition position) |
virtual void | navigationTextModeChanged (bool mode) |
virtual void | navigationVisibilityChanged (NavigationVisibility mode) |
virtual void | removeViewWidget (QWidget *view) |
Protected Member Functions inherited from Konsole::ViewContainer | |
QList< QWidget * > | widgetsForItem (ViewProperties *item) const |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Public Types inherited from Konsole::ViewContainer | |
enum | Feature { QuickNewView = 1, QuickCloseView = 2 } |
enum | MoveDirection { MoveViewLeft, MoveViewRight } |
enum | NavigationPosition { NavigationPositionTop, NavigationPositionBottom, NavigationPositionLeft, NavigationPositionRight } |
enum | NavigationVisibility { AlwaysShowNavigation, ShowNavigationAsNeeded, AlwaysHideNavigation } |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
An alternative tabbed view container which uses a QTabBar and QStackedWidget combination for navigation instead of QTabWidget.
Definition at line 361 of file ViewContainer.h.
Constructor & Destructor Documentation
TabbedViewContainer::TabbedViewContainer | ( | NavigationPosition | position, |
ViewManager * | connectedViewManager, | ||
QObject * | parent | ||
) |
Constructs a new tabbed view container.
Supported positions are NavigationPositionTop and NavigationPositionBottom.
Definition at line 260 of file ViewContainer.cpp.
|
virtual |
Definition at line 454 of file ViewContainer.cpp.
Member Function Documentation
|
virtual |
Returns the view which currently has the focus or 0 if none of the child views have the focus.
Implements Konsole::ViewContainer.
Definition at line 621 of file ViewContainer.cpp.
|
protectedvirtual |
Performs the task of adding the view widget to the container widget.
Implements Konsole::ViewContainer.
Definition at line 634 of file ViewContainer.cpp.
|
signal |
ViewManager * TabbedViewContainer::connectedViewManager | ( | ) |
Definition at line 714 of file ViewContainer.cpp.
|
virtual |
Returns the widget which contains the view widgets.
Implements Konsole::ViewContainer.
Definition at line 617 of file ViewContainer.cpp.
|
signal |
|
protectedvirtual |
Rearranges the order of widgets in the container.
- Parameters
-
fromIndex Current index of the widget to move toIndex New index for the widget
Reimplemented from Konsole::ViewContainer.
Definition at line 584 of file ViewContainer.cpp.
|
protectedvirtual |
Called when the navigation position changes to re-layout the container and place the navigation widget in the specified position.
Reimplemented from Konsole::ViewContainer.
Definition at line 391 of file ViewContainer.cpp.
|
protectedvirtual |
Reimplemented from Konsole::ViewContainer.
Definition at line 441 of file ViewContainer.cpp.
|
protectedvirtual |
Called when the navigation display mode changes.
See setNavigationVisibility
Reimplemented from Konsole::ViewContainer.
Definition at line 416 of file ViewContainer.cpp.
|
protectedvirtual |
Performs the task of removing the view widget from the container widget.
Implements Konsole::ViewContainer.
Definition at line 652 of file ViewContainer.cpp.
|
virtual |
Changes the focus to the specified view and updates navigation aids to reflect the change.
Implements Konsole::ViewContainer.
Definition at line 625 of file ViewContainer.cpp.
|
virtual |
Sets which additional features are enabled in this container.
The default implementation does thing. Sub-classes should re-implement this to hide or show the relevant parts of their UI
Reimplemented from Konsole::ViewContainer.
Definition at line 361 of file ViewContainer.cpp.
|
virtual |
Sets the menu to be shown when the new view button is clicked.
Only valid if the QuickNewView feature is enabled. The default implementation does nothing.
Reimplemented from Konsole::ViewContainer.
Definition at line 353 of file ViewContainer.cpp.
|
virtual |
Sets the stylesheet for visual appearance.
The default implementation does nothing.
Reimplemented from Konsole::ViewContainer.
Definition at line 436 of file ViewContainer.cpp.
|
virtual |
Returns a bitwise-OR of supported extra UI features.
The default implementation returns 0 (no extra features)
Reimplemented from Konsole::ViewContainer.
Definition at line 357 of file ViewContainer.cpp.
|
virtual |
Returns the list of supported navigation positions.
The supported positions will depend upon the type of the navigation widget used by the ViewContainer subclass.
The base implementation returns one item, NavigationPositionTop
Reimplemented from Konsole::ViewContainer.
Definition at line 386 of file ViewContainer.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.