• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeplasma-addons API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • Lancelot
  • TabBar
Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
Lancelot::TabBar Class Reference

#include <TabBar.h>

Inheritance diagram for Lancelot::TabBar:
Inheritance graph
[legend]

Public Slots

void setCurrentTab (const QString &current)
 

Signals

void currentTabChanged (const QString &current)
 

Public Member Functions

 TabBar (QGraphicsWidget *parent=0)
 
 ~TabBar ()
 
void addTab (const QString &id, const QIcon &icon, const QString &title, const QString &mimeType=QString::null, const QString &mimeData=QString::null)
 
QString currentTab () const
 
Plasma::Flip flip () const
 
Qt::Orientation orientation () const
 
void removeTab (const QString &id)
 
void setFlip (Plasma::Flip flip)
 
void setOrientation (Qt::Orientation value)
 
void setTabIconSize (const QSize &size)
 
void setTabsGroupName (const QString &groupName)
 
void setTextDirection (Qt::Orientation value)
 
QSize tabIconSize () const
 
Qt::Orientation textDirection () const
 

Protected Member Functions

L_Override void resizeEvent (QGraphicsSceneResizeEvent *event)
 
L_Override bool sceneEventFilter (QGraphicsItem *watched, QEvent *event)
 

Properties

QString currentTab
 
Qt::Orientation orientation
 
QSize tabIconSize
 
Qt::Orientation textDirection
 

Detailed Description

Provides a group of buttons representing tabs.

Can be used for controlling the CardLayout

Author
Ivan Cukic

Definition at line 40 of file TabBar.h.

Constructor & Destructor Documentation

Lancelot::TabBar::TabBar ( QGraphicsWidget *  parent = 0)

Creates a new Lancelot::TabBar.

Parameters
parentparent item

Definition at line 149 of file TabBar.cpp.

Lancelot::TabBar::~TabBar ( )

Destroys this Lancelot::TabBar.

Definition at line 156 of file TabBar.cpp.

Member Function Documentation

void Lancelot::TabBar::addTab ( const QString &  id,
const QIcon &  icon,
const QString &  title,
const QString &  mimeType = QString::null,
const QString &  mimeData = QString::null 
)

Adds a new tab.

Parameters
idid of the tab
iconicon for the tab
titletab title

Definition at line 215 of file TabBar.cpp.

QString Lancelot::TabBar::currentTab ( ) const
Returns
the active tab
void Lancelot::TabBar::currentTabChanged ( const QString &  current)
signal

This signal is emitted when the currently selected tab is changed.

Plasma::Flip Lancelot::TabBar::flip ( ) const
Returns
the current layout flip

Definition at line 289 of file TabBar.cpp.

Qt::Orientation Lancelot::TabBar::orientation ( ) const
Returns
the tab bar orientation
void Lancelot::TabBar::removeTab ( const QString &  id)

Removes the specified tab.

Parameters
idid of the tab to remove

Definition at line 245 of file TabBar.cpp.

void Lancelot::TabBar::resizeEvent ( QGraphicsSceneResizeEvent *  event)
protected

Definition at line 277 of file TabBar.cpp.

bool Lancelot::TabBar::sceneEventFilter ( QGraphicsItem *  watched,
QEvent *  event 
)
protected

Definition at line 308 of file TabBar.cpp.

void Lancelot::TabBar::setCurrentTab ( const QString &  current)
slot

Sets the current tab.

Definition at line 189 of file TabBar.cpp.

void Lancelot::TabBar::setFlip ( Plasma::Flip  flip)

Sets the layout flip.

Parameters
flipnew value

Definition at line 283 of file TabBar.cpp.

void Lancelot::TabBar::setOrientation ( Qt::Orientation  value)

Sets the tab bar orientation.

Parameters
valuenew orientation

Definition at line 167 of file TabBar.cpp.

void Lancelot::TabBar::setTabIconSize ( const QSize &  size)

Sets the icon size for tab buttons.

Parameters
sizenew size

Definition at line 295 of file TabBar.cpp.

void Lancelot::TabBar::setTabsGroupName ( const QString &  groupName)

Sets the Lancelot::Group for the tab buttons.

Parameters
groupNamename of the specific Lancelot::Group

Definition at line 260 of file TabBar.cpp.

void Lancelot::TabBar::setTextDirection ( Qt::Orientation  value)

Sets the inner layout of tab buttons - that is whether the icon is above or beside the text.

Definition at line 178 of file TabBar.cpp.

QSize Lancelot::TabBar::tabIconSize ( ) const
Returns
the current icon size of tab buttons
Qt::Orientation Lancelot::TabBar::textDirection ( ) const
Returns
the inner layout of buttons
See also
setTextDirection

Property Documentation

QString Lancelot::TabBar::currentTab
readwrite

Definition at line 45 of file TabBar.h.

Qt::Orientation Lancelot::TabBar::orientation
readwrite

Definition at line 43 of file TabBar.h.

QSize Lancelot::TabBar::tabIconSize
readwrite

Definition at line 46 of file TabBar.h.

Qt::Orientation Lancelot::TabBar::textDirection
readwrite

Definition at line 44 of file TabBar.h.


The documentation for this class was generated from the following files:
  • TabBar.h
  • TabBar.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

liblancelot

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

kdeplasma-addons API Reference

Skip menu "kdeplasma-addons API Reference"
  •     GroupingDesktop
  •   liblancelot

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