• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

Konsole::TabbedViewContainerV2

Konsole::TabbedViewContainerV2 Class Reference

#include <ViewContainer.h>

Inheritance diagram for Konsole::TabbedViewContainerV2:

Inheritance graph
[legend]

List of all members.


Detailed Description

An alternative tabbed view container which uses a QTabBar and QStackedWidget combination for navigation instead of QTabWidget.

Definition at line 442 of file ViewContainer.h.


Public Member Functions

virtual QWidget * activeView () const
virtual QWidget * containerWidget () const
virtual void setActiveView (QWidget *view)
virtual void setFeatures (Features features)
virtual void setNewViewMenu (QMenu *menu)
virtual Features supportedFeatures () const
virtual QList< NavigationPosition > supportedNavigationPositions () const
 TabbedViewContainerV2 (NavigationPosition position, QObject *parent)
virtual ~TabbedViewContainerV2 ()

Protected Member Functions

virtual void addViewWidget (QWidget *view, int index)
virtual void moveViewWidget (int fromIndex, int toIndex)
virtual void navigationDisplayModeChanged (NavigationDisplayMode mode)
virtual void navigationPositionChanged (NavigationPosition position)
virtual void removeViewWidget (QWidget *view)

Constructor & Destructor Documentation

TabbedViewContainerV2::TabbedViewContainerV2 ( NavigationPosition  position,
QObject *  parent 
)

Constructs a new tabbed view container.

Supported positions are NavigationPositionTop and NavigationPositionBottom.

Definition at line 611 of file ViewContainer.cpp.

TabbedViewContainerV2::~TabbedViewContainerV2 (  )  [virtual]

Definition at line 768 of file ViewContainer.cpp.


Member Function Documentation

QWidget * TabbedViewContainerV2::activeView (  )  const [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 846 of file ViewContainer.cpp.

void TabbedViewContainerV2::addViewWidget ( QWidget *  view,
int  index 
) [protected, virtual]

Performs the task of adding the view widget to the container widget.

Implements Konsole::ViewContainer.

Definition at line 859 of file ViewContainer.cpp.

QWidget * TabbedViewContainerV2::containerWidget (  )  const [virtual]

Returns the widget which contains the view widgets.

Implements Konsole::ViewContainer.

Definition at line 842 of file ViewContainer.cpp.

void TabbedViewContainerV2::moveViewWidget ( int  fromIndex,
int  toIndex 
) [protected, virtual]

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 809 of file ViewContainer.cpp.

void TabbedViewContainerV2::navigationDisplayModeChanged ( NavigationDisplayMode   )  [protected, virtual]

Called when the navigation display mode changes.

See setNavigationDisplayMode

Reimplemented from Konsole::ViewContainer.

Definition at line 749 of file ViewContainer.cpp.

void TabbedViewContainerV2::navigationPositionChanged ( NavigationPosition   )  [protected, virtual]

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 719 of file ViewContainer.cpp.

void TabbedViewContainerV2::removeViewWidget ( QWidget *  view  )  [protected, virtual]

Performs the task of removing the view widget from the container widget.

Implements Konsole::ViewContainer.

Definition at line 877 of file ViewContainer.cpp.

void TabbedViewContainerV2::setActiveView ( QWidget *  widget  )  [virtual]

Changes the focus to the specified view and updates navigation aids to reflect the change.

Implements Konsole::ViewContainer.

Definition at line 850 of file ViewContainer.cpp.

void TabbedViewContainerV2::setFeatures ( Features  features  )  [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 679 of file ViewContainer.cpp.

void TabbedViewContainerV2::setNewViewMenu ( QMenu *  menu  )  [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 675 of file ViewContainer.cpp.

ViewContainer::Features TabbedViewContainerV2::supportedFeatures (  )  const [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 677 of file ViewContainer.cpp.

QList< ViewContainer::NavigationPosition > TabbedViewContainerV2::supportedNavigationPositions (  )  const [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 715 of file ViewContainer.cpp.


The documentation for this class was generated from the following files:
  • ViewContainer.h
  • ViewContainer.cpp

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal