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) |
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 |
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 } |
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.