org.kde.koala

Class KMultiTabBar

public class KMultiTabBar extends QWidget

A Widget for horizontal and vertical tabs. 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".

Author: Joseph Wenninger

UNKNOWN: A Widget for horizontal and vertical tabs.

Field Summary
static intBottom
static intHorizontal
static intKDEV3
static intKDEV3ICON
static intKONQSBC
static intLeft
static intRight
static intSTYLELAST
static intTop
static intVertical
static intVSNET
The list of available styles for KMultiTabBar - VSNET - Visual Studio .Net like (only show the text of active tabs - KDEV3 - Kdevelop 3 like (always show the text) - KONQSBC - konqy's classic sidebar style (unthemed) (currently disabled)
Constructor Summary
protected KMultiTabBar(Class dummy)
KMultiTabBar(int bm, QWidget parent, String name)
KMultiTabBar(int bm, QWidget parent)
KMultiTabBar(int bm)
Method Summary
intappendButton(QPixmap pic, int id, QPopupMenu popup, String not_used_yet)
append a new button to the button area.
intappendButton(QPixmap pic, int id, QPopupMenu popup)
intappendButton(QPixmap pic, int id)
intappendButton(QPixmap pic)
intappendTab(QPixmap pic, int id, String text)
append a new tab to the tab area.
intappendTab(QPixmap pic, int id)
intappendTab(QPixmap pic)
KMultiTabBarButtonbutton(int id)
get a pointer to a button within the button area identified by its ID
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
protected voidfontChange(QFont arg1)
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisTabRaised(int id)
return the state of a tab, identified by it's ID
QMetaObjectmetaObject()
intposition()
get the tabbar position.
voidremoveButton(int id)
remove a button with the given ID
voidremoveTab(int id)
remove a tab with a given ID
voidsetPosition(int pos)
set the real position of the widget.
voidsetStyle(int style)
set the display style of the tabs
voidsetTab(int id, boolean state)
set a tab to "raised"
voidshowActiveTabTexts(boolean show)
might vanish, not sure yet
voidshowActiveTabTexts()
KMultiTabBarTabtab(int id)
get a pointer to a tab within the tab area, identiifed by its ID
inttabStyle()
get the display style of the tabs
protected voidupdateSeparator()

Field Detail

Bottom

public static final int Bottom

Horizontal

public static final int Horizontal

KDEV3

public static final int KDEV3

KDEV3ICON

public static final int KDEV3ICON

KONQSBC

public static final int KONQSBC

Left

public static final int Left

Right

public static final int Right

STYLELAST

public static final int STYLELAST

Top

public static final int Top

Vertical

public static final int Vertical

VSNET

public static final int VSNET
The list of available styles for KMultiTabBar - VSNET - Visual Studio .Net like (only show the text of active tabs - KDEV3 - Kdevelop 3 like (always show the text) - KONQSBC - konqy's classic sidebar style (unthemed) (currently disabled)

UNKNOWN: The list of available styles for KMultiTabBar - VSNET - Visual Studio .

Constructor Detail

KMultiTabBar

protected KMultiTabBar(Class dummy)

KMultiTabBar

public KMultiTabBar(int bm, QWidget parent, String name)

KMultiTabBar

public KMultiTabBar(int bm, QWidget parent)

KMultiTabBar

public KMultiTabBar(int bm)

Method Detail

appendButton

public int appendButton(QPixmap pic, int id, QPopupMenu popup, String not_used_yet)
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: pic a pixmap for the button id an 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. popup A popup menu which should be displayed if the button is clicked not_used_yet will be used for a popup text in the future

UNKNOWN: append a new button to the button area.

appendButton

public int appendButton(QPixmap pic, int id, QPopupMenu popup)

appendButton

public int appendButton(QPixmap pic, int id)

appendButton

public int appendButton(QPixmap pic)

appendTab

public int appendTab(QPixmap pic, int id, String text)
append a new tab to the tab area. It can be accessed lateron with tabb(id);

Parameters: pic a bitmap for the tab id an arbitrary ID which can be used later on to identify the tab text if a mode with text is used it will be the tab text, otherwise a mouse over hint

UNKNOWN: append a new tab to the tab area.

appendTab

public int appendTab(QPixmap pic, int id)

appendTab

public int appendTab(QPixmap pic)

button

public KMultiTabBarButton button(int id)
get a pointer to a button within the button area identified by its ID

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

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

fontChange

protected void fontChange(QFont arg1)

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isTabRaised

public boolean isTabRaised(int id)
return the state of a tab, identified by it's ID

UNKNOWN: return the state of a tab, identified by it's ID

metaObject

public QMetaObject metaObject()

position

public int position()
get the tabbar position.

Returns: position

UNKNOWN: get the tabbar position.

removeButton

public void removeButton(int id)
remove a button with the given ID

UNKNOWN: remove a button with the given ID

removeTab

public void removeTab(int id)
remove a tab with a given ID

UNKNOWN: remove a tab with a given ID

setPosition

public void setPosition(int pos)
set the real position of the widget.

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

UNKNOWN: set the real position of the widget.

setStyle

public void setStyle(int style)
set the display style of the tabs

UNKNOWN: set the display style of the tabs

setTab

public void setTab(int id, boolean state)
set a tab to "raised"

Parameters: id The ID of the tab to manipulate state true == activated/raised, false == not active

UNKNOWN: set a tab to "raised"

showActiveTabTexts

public void showActiveTabTexts(boolean show)
might vanish, not sure yet

UNKNOWN: might vanish, not sure yet

showActiveTabTexts

public void showActiveTabTexts()

tab

public KMultiTabBarTab tab(int id)
get a pointer to a tab within the tab area, identiifed by its ID

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

tabStyle

public int tabStyle()
get the display style of the tabs

Returns: display style

UNKNOWN: get the display style of the tabs

updateSeparator

protected void updateSeparator()