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

Konsole

Konsole::TabbedViewContainer

Konsole::TabbedViewContainer Class Reference

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

#include <ViewContainer.h>

Inheritance diagram for Konsole::TabbedViewContainer:

Inheritance graph
[legend]

List of all members.


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
 TabbedViewContainer (NavigationPosition position, QObject *parent)
virtual ~TabbedViewContainer ()

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)

Detailed Description

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

Definition at line 405 of file ViewContainer.h.


Constructor & Destructor Documentation

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

Constructs a new tabbed view container.

Supported positions are NavigationPositionTop and NavigationPositionBottom.

Definition at line 424 of file ViewContainer.cpp.

TabbedViewContainer::~TabbedViewContainer (  )  [virtual]

Definition at line 590 of file ViewContainer.cpp.


Member Function Documentation

QWidget * TabbedViewContainer::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 669 of file ViewContainer.cpp.

void TabbedViewContainer::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 682 of file ViewContainer.cpp.

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

Returns the widget which contains the view widgets.

Implements Konsole::ViewContainer.

Definition at line 665 of file ViewContainer.cpp.

void TabbedViewContainer::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 632 of file ViewContainer.cpp.

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

Called when the navigation display mode changes.

See setNavigationDisplayMode

Reimplemented from Konsole::ViewContainer.

Definition at line 571 of file ViewContainer.cpp.

void TabbedViewContainer::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 537 of file ViewContainer.cpp.

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

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

Implements Konsole::ViewContainer.

Definition at line 700 of file ViewContainer.cpp.

void TabbedViewContainer::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 673 of file ViewContainer.cpp.

void TabbedViewContainer::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 497 of file ViewContainer.cpp.

void TabbedViewContainer::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 489 of file ViewContainer.cpp.

ViewContainer::Features TabbedViewContainer::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 493 of file ViewContainer.cpp.

QList< ViewContainer::NavigationPosition > TabbedViewContainer::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 533 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.7
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