# class KMultiTabBar

###

Module | kdeui
Namespace |
Class | KMultiTabBar
Inherits | QWidget

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". Author Joseph Wenninger

### enums

- KMultiTabBarPosition { Left, Right, Top, Bottom }
- KMultiTabBarStyle { VSNET, KDEV3ICON, STYLELAST }

enum details

### methods

- KMultiTabBar (pos, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  pos | KMultiTabBar.KMultiTabBarPosition |
  parent | QWidget | 0

  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

- KMultiTabBar (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KMultiTabBar.KMultiTabBarPosition |
  a1 | QWidget | 0

- appendButton (pic, id, popup, not_used_yet)

  returns int

  Argument | Type | Default
  --- | --- | ---
  pic | QPixmap |
  id | int | -1
  popup | QMenu | 0
  not_used_yet | QString | 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

  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

- appendTab (pic, id, text)

  returns int

  Argument | Type | Default
  --- | --- | ---
  pic | QPixmap |
  id | int | -1
  text | QString | QString()

  append a new tab to the tab area. It can be accessed lateron with tabb(id);

  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

- button (id)

  returns KMultiTabBarButton

  Argument | Type | Default
  --- | --- | ---
  id | int |

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

- fontChange (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QFont |

- isTabRaised (id)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  id | int |

  return the state of a tab, identified by its ID

- position ( )

  returns KMultiTabBar.KMultiTabBarPosition

  get the tabbar position. Returns position

- removeButton (id)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  id | int |

  remove a button with the given ID

- removeTab (id)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  id | int |

  remove a tab with a given ID

- setPosition (pos)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  pos | KMultiTabBar.KMultiTabBarPosition |

  set the real position of the widget.

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

- setStyle (style)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  style | KMultiTabBar.KMultiTabBarStyle |

  set the display style of the tabs

- setTab (id, state)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  id | int |
  state | bool |

  set a tab to "raised"

  id - The ID of the tab to manipulate

  state - true == activated/raised, false == not active

- tab (id)

  returns KMultiTabBarTab

  Argument | Type | Default
  --- | --- | ---
  id | int |

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

- tabStyle ( )

  returns KMultiTabBar.KMultiTabBarStyle

  get the display style of the tabs Returns display style

- updateSeparator ( )

  returns Nothing

### enums - detail

- KMultiTabBarPosition { Left, Right, Top, Bottom }

  | Left | - | - |
  | Right | - | - |
  | Top | - | - |
  | Bottom | - | - |

- KMultiTabBarStyle { VSNET, KDEV3ICON, STYLELAST }

  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

  | VSNET | - 0 | - |
  | KDEV3ICON | - 2 | - |
  | STYLELAST | - 0xffff | - |