libopie API Documentation

OTabInfo Class Reference

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

#include <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.

QWidgetcontrol () const
 Returns pointer to widget.

const QStringicon () const
 Returns name of icon file.

void setIcon (const QString &icon)
 Set icon for tab.


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.

References label().


Member Function Documentation

OTabInfo::id  )  const [inline]
 

Returns TabBar ID.

Definition at line 83 of file otabinfo.h.

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

OTabInfo::label  )  const [inline]
 

Returns text label for widget.

Definition at line 89 of file otabinfo.h.

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

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.

Referenced by OTabWidget::changeTab().

OTabInfo::control  )  const [inline]
 

Returns pointer to widget.

Definition at line 103 of file otabinfo.h.

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

OTabInfo::icon  )  const [inline]
 

Returns name of icon file.

Definition at line 109 of file otabinfo.h.

Referenced by OTabWidget::setTabStyle().

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.

Referenced by OTabWidget::changeTab().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:25:02 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001