• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

KTabCtl Class Reference

Tabbed dialog with extended features. More...

#include <ktabctl.h>

Inheritance diagram for KTabCtl:

Inheritance graph
[legend]

List of all members.


Signals

void tabSelected (int)

Public Member Functions

void addTab (QWidget *, const QString &)
bool isTabEnabled (const QString &)
 KTabCtl (QWidget *parent=0, const char *name=0)
void setBorder (bool)
void setFont (const QFont &font)
void setShape (QTabBar::Shape shape)
void setTabEnabled (const QString &, bool)
void setTabFont (const QFont &font)
void show ()
virtual QSize sizeHint () const
 ~KTabCtl ()

Protected Slots

void showTab (int i)

Protected Member Functions

QRect getChildRect () const
void paintEvent (QPaintEvent *)
void resizeEvent (QResizeEvent *)
void setSizes ()
virtual void virtual_hook (int id, void *data)

Protected Attributes

int bh
bool blBorder
QMemArray< QWidget * > pages
QTabBar * tabs

Detailed Description

Tabbed dialog with extended features.

KTabCtl is very similar to QTabDialog, with the following differences:

  • To avoid confusion, the API is almost identical with QTabDialog.
  • Does not create any buttons, therefore KTabCtl is not limited to dialog boxes. You can use it whereever you want.
  • emits the signal tabSelected(int pagenumber) when the user selects one of the tabs. This gives you the chance to update the widget contents of a single page. The signal is emitted _before_ the page is shown. This is very useful if the contents of some widgets on page A depend on the contents of some other widgets on page B.
Author:
Alexander Sanda (alex@darkstar.ping.at)
Version:
Id
ktabctl.h 465272 2005-09-29 09:47:40Z mueller

Definition at line 48 of file ktabctl.h.


Constructor & Destructor Documentation

KTabCtl::KTabCtl ( QWidget *  parent = 0,
const char *  name = 0 
)

KTabCtl provides a universal tab control.

It is in no ways limited to dialogs and can be used for whatever you want. It has no buttons or any other stuff.

However, this is based on the original QTabDialog.

Definition at line 34 of file ktabctl.cpp.

KTabCtl::~KTabCtl (  ) 

Definition at line 45 of file ktabctl.cpp.


Member Function Documentation

void KTabCtl::addTab ( QWidget *  w,
const QString &  name 
)

Definition at line 319 of file ktabctl.cpp.

QRect KTabCtl::getChildRect (  )  const [protected]

Definition at line 274 of file ktabctl.cpp.

bool KTabCtl::isTabEnabled ( const QString &  name  ) 

Definition at line 102 of file ktabctl.cpp.

void KTabCtl::paintEvent ( QPaintEvent *   )  [protected]

Reimplemented from QWidget.

Definition at line 238 of file ktabctl.cpp.

void KTabCtl::resizeEvent ( QResizeEvent *   )  [protected]

Reimplemented from QWidget.

Definition at line 50 of file ktabctl.cpp.

void KTabCtl::setBorder ( bool  state  ) 

Definition at line 182 of file ktabctl.cpp.

void KTabCtl::setFont ( const QFont &  font  ) 

Reimplemented from QWidget.

Definition at line 66 of file ktabctl.cpp.

void KTabCtl::setShape ( QTabBar::Shape  shape  ) 

Definition at line 187 of file ktabctl.cpp.

void KTabCtl::setSizes (  )  [protected]

Definition at line 124 of file ktabctl.cpp.

void KTabCtl::setTabEnabled ( const QString &  name,
bool  state 
)

Definition at line 112 of file ktabctl.cpp.

void KTabCtl::setTabFont ( const QFont &  font  ) 

Definition at line 75 of file ktabctl.cpp.

void KTabCtl::show ( void   ) 

Reimplemented from QWidget.

Definition at line 84 of file ktabctl.cpp.

void KTabCtl::showTab ( int  i  )  [protected, slot]

Definition at line 291 of file ktabctl.cpp.

QSize KTabCtl::sizeHint ( void   )  const [virtual]

Reimplemented from QWidget.

Definition at line 193 of file ktabctl.cpp.

void KTabCtl::tabSelected ( int   )  [signal]

void KTabCtl::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 333 of file ktabctl.cpp.


Member Data Documentation

int KTabCtl::bh [protected]

Definition at line 83 of file ktabctl.h.

bool KTabCtl::blBorder [protected]

Definition at line 84 of file ktabctl.h.

QMemArray<QWidget *> KTabCtl::pages [protected]

Definition at line 82 of file ktabctl.h.

QTabBar* KTabCtl::tabs [protected]

Definition at line 81 of file ktabctl.h.


The documentation for this class was generated from the following files:
  • ktabctl.h
  • ktabctl.cpp

kdeui

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal