• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • Konsole
  • TabbedViewContainer
Signals | Public Member Functions | Protected Member Functions | List of all members
Konsole::TabbedViewContainer Class Reference

#include <ViewContainer.h>

Inheritance diagram for Konsole::TabbedViewContainer:
Inheritance graph
[legend]

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
 

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.

TabbedViewContainer::~TabbedViewContainer ( )
virtual

Definition at line 454 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 621 of file ViewContainer.cpp.

void TabbedViewContainer::addViewWidget ( QWidget *  view,
int  index 
)
protectedvirtual

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

Implements Konsole::ViewContainer.

Definition at line 634 of file ViewContainer.cpp.

void Konsole::TabbedViewContainer::closeTab ( ViewContainer *  self,
QWidget *  activeView 
)
signal
ViewManager * TabbedViewContainer::connectedViewManager ( )

Definition at line 714 of file ViewContainer.cpp.

QWidget * TabbedViewContainer::containerWidget ( ) const
virtual

Returns the widget which contains the view widgets.

Implements Konsole::ViewContainer.

Definition at line 617 of file ViewContainer.cpp.

void Konsole::TabbedViewContainer::detachTab ( ViewContainer *  self,
QWidget *  activeView 
)
signal
void TabbedViewContainer::moveViewWidget ( int  fromIndex,
int  toIndex 
)
protectedvirtual

Rearranges the order of widgets in the container.

Parameters
fromIndexCurrent index of the widget to move
toIndexNew index for the widget

Reimplemented from Konsole::ViewContainer.

Definition at line 584 of file ViewContainer.cpp.

void TabbedViewContainer::navigationPositionChanged ( NavigationPosition  )
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.

void TabbedViewContainer::navigationTextModeChanged ( bool  mode)
protectedvirtual

Reimplemented from Konsole::ViewContainer.

Definition at line 441 of file ViewContainer.cpp.

void TabbedViewContainer::navigationVisibilityChanged ( NavigationVisibility  )
protectedvirtual

Called when the navigation display mode changes.

See setNavigationVisibility

Reimplemented from Konsole::ViewContainer.

Definition at line 416 of file ViewContainer.cpp.

void TabbedViewContainer::removeViewWidget ( QWidget *  view)
protectedvirtual

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

Implements Konsole::ViewContainer.

Definition at line 652 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 625 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 361 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 353 of file ViewContainer.cpp.

void TabbedViewContainer::setStyleSheet ( const QString &  styleSheet)
virtual

Sets the stylesheet for visual appearance.

The default implementation does nothing.

Reimplemented from Konsole::ViewContainer.

Definition at line 436 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 357 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 386 of file ViewContainer.cpp.


The documentation for this class was generated from the following files:
  • ViewContainer.h
  • ViewContainer.cpp
This file is part of the KDE documentation.
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.

Konsole

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal