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

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/noncore/unsupported/libopie/otabinfo.h>

Collaboration diagram for 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.
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 53 of file otabinfo.h.


Constructor & Destructor Documentation

OTabInfo::OTabInfo  )  [inline]
 

Object constructor.

Parameters:
parent Pointer to parent of this control.
name Name of control.
s Style of widget selection control.
p Position of the widget selection control.

Definition at line 65 of file otabinfo.h.

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 76 of file otabinfo.h.


Member Function Documentation

OTabInfo::control  )  const [inline]
 

Returns pointer to widget.

Definition at line 103 of file otabinfo.h.

References c.

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

OTabInfo::icon  )  const [inline]
 

Returns name of icon file.

Definition at line 109 of file otabinfo.h.

References p.

OTabInfo::id  )  const [inline]
 

Returns TabBar ID.

Definition at line 83 of file otabinfo.h.

References i.

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

OTabInfo::label  )  const [inline]
 

Returns text label for widget.

Definition at line 89 of file otabinfo.h.

References l.

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

OTabInfo::setIcon const QString icon  )  [inline]
 

Set icon for tab.

Parameters:
icon QString name of icon file.

Definition at line 117 of file otabinfo.h.

References p.

Referenced by OTabWidget::changeTab().

OTabInfo::setLabel const QString label  )  [inline]
 

Set label for tab.

Parameters:
label QString text label for OTabWidget selection control.

Definition at line 97 of file otabinfo.h.

References l.

Referenced by OTabWidget::changeTab().


Member Data Documentation

QWidget* OTabInfo::c [private]
 

Definition at line 121 of file otabinfo.h.

Referenced by control().

Private* OTabInfo::d [private]
 

Definition at line 124 of file otabinfo.h.

int OTabInfo::i [private]
 

Definition at line 120 of file otabinfo.h.

Referenced by id().

QString OTabInfo::l [private]
 

Definition at line 123 of file otabinfo.h.

Referenced by label(), and setLabel().

QString OTabInfo::p [private]
 

Definition at line 122 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 17:43:35 2005 for OPIE by  doxygen 1.4.2