• 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
 
- 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 &regExp) 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.

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-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.

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
  • 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