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

KDEUI

Public Types | Public Member Functions | Protected Member Functions | Properties | List of all members
KMultiTabBar Class Reference

#include <kmultitabbar.h>

Inheritance diagram for KMultiTabBar:
Inheritance graph
[legend]

Public Types

enum  KMultiTabBarPosition { Left, Right, Top, Bottom }
 
enum  KMultiTabBarStyle { VSNET =0, KDEV3ICON =2, STYLELAST =0xffff }
 

Public Member Functions

 KMultiTabBar (KMultiTabBarPosition pos, QWidget *parent=0)
 
virtual ~KMultiTabBar ()
 
int appendButton (const QPixmap &pic, int id=-1, QMenu *popup=0, const QString &not_used_yet=QString())
 
int appendTab (const QPixmap &pic, int id=-1, const QString &text=QString())
 
class KMultiTabBarButton * button (int id) const
 
bool isTabRaised (int id) const
 
KMultiTabBarPosition position () const
 
void removeButton (int id)
 
void removeTab (int id)
 
void setPosition (KMultiTabBarPosition pos)
 
void setStyle (KMultiTabBarStyle style)
 
void setTab (int id, bool state)
 
class KMultiTabBarTab * tab (int id) const
 
KMultiTabBarStyle tabStyle () const
 

Protected Member Functions

virtual void fontChange (const QFont &)
 
void updateSeparator ()
 

Properties

KMultiTabBarPosition position
 
KMultiTabBarStyle tabStyle
 

Detailed Description

A Widget for horizontal and vertical tabs.

(Note that in Qt4, QTabBar can be vertical as well)

It is possible to add normal buttons to the top/left The handling if only one tab at a time or multiple tabs should be raisable is left to the "user".

kmultitabbar.png
KDE Multi Tab Bar Widget
Author
Joseph Wenninger

Definition at line 57 of file kmultitabbar.h.

Member Enumeration Documentation

enum KMultiTabBar::KMultiTabBarPosition
Enumerator
Left 
Right 
Top 
Bottom 

Definition at line 64 of file kmultitabbar.h.

enum KMultiTabBar::KMultiTabBarStyle

The list of available styles for KMultiTabBar.

  • VSNET - Visual Studio .Net like, always shows icon, only show the text of active tabs
  • KDEV3ICON - Kdevelop 3 like, always shows the text and icons
Enumerator
VSNET 
KDEV3ICON 
STYLELAST 

Definition at line 71 of file kmultitabbar.h.

Constructor & Destructor Documentation

KMultiTabBar::KMultiTabBar ( KMultiTabBarPosition  pos,
QWidget *  parent = 0 
)
explicit

Definition at line 463 of file kmultitabbar.cpp.

KMultiTabBar::~KMultiTabBar ( )
virtual

Definition at line 493 of file kmultitabbar.cpp.

Member Function Documentation

int KMultiTabBar::appendButton ( const QPixmap &  pic,
int  id = -1,
QMenu *  popup = 0,
const QString &  not_used_yet = QString() 
)

append a new button to the button area.

The button can later on be accessed with button(ID) eg for connecting signals to it

Parameters
pica pixmap for the button
idan arbitraty ID value. It will be emitted in the clicked signal for identifying the button if more than one button is connected to a signals.
popupA popup menu which should be displayed if the button is clicked
not_used_yetwill be used for a popup text in the future

Definition at line 500 of file kmultitabbar.cpp.

int KMultiTabBar::appendTab ( const QPixmap &  pic,
int  id = -1,
const QString &  text = QString() 
)

append a new tab to the tab area.

It can be accessed lateron with tabb(id);

Parameters
pica bitmap for the tab
idan arbitrary ID which can be used later on to identify the tab
textif a mode with text is used it will be the tab text, otherwise a mouse over hint

Definition at line 528 of file kmultitabbar.cpp.

KMultiTabBarButton * KMultiTabBar::button ( int  id) const

get a pointer to a button within the button area identified by its ID

Definition at line 534 of file kmultitabbar.cpp.

void KMultiTabBar::fontChange ( const QFont &  )
protectedvirtual

Definition at line 608 of file kmultitabbar.cpp.

bool KMultiTabBar::isTabRaised ( int  id) const

return the state of a tab, identified by its ID

Definition at line 578 of file kmultitabbar.cpp.

KMultiTabBarPosition KMultiTabBar::position ( ) const

get the tabbar position.

Returns
position
void KMultiTabBar::removeButton ( int  id)

remove a button with the given ID

Definition at line 551 of file kmultitabbar.cpp.

void KMultiTabBar::removeTab ( int  id)

remove a tab with a given ID

Definition at line 566 of file kmultitabbar.cpp.

void KMultiTabBar::setPosition ( KMultiTabBarPosition  pos)

set the real position of the widget.

Parameters
posif the mode is horizontal, only use top, bottom, if it is vertical use left or right

Definition at line 597 of file kmultitabbar.cpp.

void KMultiTabBar::setStyle ( KMultiTabBarStyle  style)

set the display style of the tabs

Definition at line 587 of file kmultitabbar.cpp.

void KMultiTabBar::setTab ( int  id,
bool  state 
)

set a tab to "raised"

Parameters
idThe ID of the tab to manipulate
statetrue == activated/raised, false == not active

Definition at line 571 of file kmultitabbar.cpp.

KMultiTabBarTab * KMultiTabBar::tab ( int  id) const

get a pointer to a tab within the tab area, identiifed by its ID

Definition at line 546 of file kmultitabbar.cpp.

KMultiTabBarStyle KMultiTabBar::tabStyle ( ) const

get the display style of the tabs

Returns
display style
void KMultiTabBar::updateSeparator ( )
protected

Definition at line 513 of file kmultitabbar.cpp.

Property Documentation

KMultiTabBar::KMultiTabBarPosition KMultiTabBar::position
readwrite

Definition at line 61 of file kmultitabbar.h.

KMultiTabBar::KMultiTabBarStyle KMultiTabBar::tabStyle
readwrite

Definition at line 62 of file kmultitabbar.h.


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

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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