Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::Ui::OTabInfo Class Reference

The OTabInfo class is used internally by OTabWidget to keep track of widgets added to the control. More...

#include </home/clem/local/src/opie/libopie2/opieui/otabinfo.h>

Collaboration diagram for Opie::Ui::OTabInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OTabInfo ()
 Object constructor.
 OTabInfo (int id, QWidget *control, const QString &icon, const QString &label)
 Object constructor.
int id () const
 Returns TabBar ID.
void setId (int id)
 Set Id for tab.
const QStringlabel () const
 Returns text label for widget.
void setLabel (const QString &label)
 Set label for tab.
QWidget * control () const
 Returns pointer to widget.
const QStringicon () const
 Returns name of icon file.
void setIcon (const QString &icon)
 Set icon for tab.

Private Attributes

int i
QWidget * c
QString p
QString l
Private * d

Detailed Description

The OTabInfo class is used internally by OTabWidget to keep track of widgets added to the control.

OTabInfo provides the following information about a widget added to an OTabWidget control:

ID - integer tab bar ID Control - QWidget pointer to child widget Label - QString text label for OTabWidget selection control Icon - QString name of icon file

Definition at line 57 of file otabinfo.h.


Constructor & Destructor Documentation

Opie::Ui::OTabInfo::OTabInfo  )  [inline]
 

Object constructor.

Definition at line 64 of file otabinfo.h.

Opie::Ui::OTabInfo::OTabInfo int  id,
QWidget *  control,
const QString icon,
const QString label
[inline]
 

Object constructor.

Parameters:
id TabBar identifier for widget.
control QWidget pointer to widget.
icon QString name of icon file.
label QString text label for OTabWidget selection control.

Definition at line 75 of file otabinfo.h.


Member Function Documentation

Opie::Ui::OTabInfo::control  )  const [inline]
 

Returns pointer to widget.

Definition at line 110 of file otabinfo.h.

References c.

Referenced by Opie::Ui::OTabWidget::changeTab(), Opie::Ui::OTabWidget::currentWidget(), Opie::Ui::OTabWidget::removePage(), Opie::Ui::OTabWidget::selectTab(), and Opie::Ui::OTabWidget::setCurrentTab().

Opie::Ui::OTabInfo::icon  )  const [inline]
 

Returns name of icon file.

Definition at line 116 of file otabinfo.h.

References p.

Opie::Ui::OTabInfo::id  )  const [inline]
 

Returns TabBar ID.

Definition at line 82 of file otabinfo.h.

References i.

Referenced by Opie::Ui::OTabWidget::changeTab(), Opie::Ui::OTabWidget::currentTab(), Opie::Ui::OTabWidget::removePage(), Opie::Ui::OTabWidget::selectTab(), Opie::Ui::OTabWidget::setCurrentTab(), and Opie::Ui::OTabWidget::slotTabBarSelected().

Opie::Ui::OTabInfo::label  )  const [inline]
 

Returns text label for widget.

Definition at line 96 of file otabinfo.h.

References l.

Referenced by Opie::Ui::OTabWidget::changeTab(), Opie::Ui::OTabWidget::removePage(), Opie::Ui::OTabWidget::selectTab(), and Opie::Ui::OTabWidget::setCurrentTab().

Opie::Ui::OTabInfo::setIcon const QString icon  )  [inline]
 

Set icon for tab.

Parameters:
icon QString name of icon file.

Definition at line 124 of file otabinfo.h.

References p.

Referenced by Opie::Ui::OTabWidget::changeTab().

Opie::Ui::OTabInfo::setId int  id  )  [inline]
 

Set Id for tab.

Parameters:
id integer tab identifier.

Definition at line 90 of file otabinfo.h.

References i.

Opie::Ui::OTabInfo::setLabel const QString label  )  [inline]
 

Set label for tab.

Parameters:
label QString text label for OTabWidget selection control.

Definition at line 104 of file otabinfo.h.

References l.

Referenced by Opie::Ui::OTabWidget::changeTab().


Member Data Documentation

QWidget* Opie::Ui::OTabInfo::c [private]
 

Definition at line 128 of file otabinfo.h.

Referenced by control().

Private* Opie::Ui::OTabInfo::d [private]
 

Definition at line 131 of file otabinfo.h.

int Opie::Ui::OTabInfo::i [private]
 

Definition at line 127 of file otabinfo.h.

Referenced by id(), and setId().

QString Opie::Ui::OTabInfo::l [private]
 

Definition at line 130 of file otabinfo.h.

Referenced by label(), and setLabel().

QString Opie::Ui::OTabInfo::p [private]
 

Definition at line 129 of file otabinfo.h.

Referenced by icon(), and setIcon().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 18:02:06 2005 for OPIE by  doxygen 1.4.2