kdeui
KTabCtl Class Reference
Tabbed dialog with extended features. More...
#include <ktabctl.h>
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.
- 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
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] |
void KTabCtl::resizeEvent | ( | QResizeEvent * | ) | [protected] |
void KTabCtl::setBorder | ( | bool | state | ) |
Definition at line 182 of file ktabctl.cpp.
void KTabCtl::setFont | ( | const QFont & | font | ) |
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 | ) |
void KTabCtl::showTab | ( | int | i | ) | [protected, slot] |
Definition at line 291 of file ktabctl.cpp.
QSize KTabCtl::sizeHint | ( | void | ) | const [virtual] |
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] |
bool KTabCtl::blBorder [protected] |
QMemArray<QWidget *> KTabCtl::pages [protected] |
QTabBar* KTabCtl::tabs [protected] |
The documentation for this class was generated from the following files: