00001 /* 00002 This file is part of the Opie Project 00003 00004 Copyright (c) 2002 Dan Williams <williamsdr@acm.org> 00005 =. 00006 .=l. 00007 .>+-= 00008 _;:, .> :=|. This program is free software; you can 00009 .> <`_, > . <= redistribute it and/or modify it under 00010 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00011 .="- .-=="i, .._ License as published by the Free Software 00012 - . .-<_> .<> Foundation; either version 2 of the License, 00013 ._= =} : or (at your option) any later version. 00014 .%`+i> _;_. 00015 .i_,=:_. -<s. This program is distributed in the hope that 00016 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00017 : .. .:, . . . without even the implied warranty of 00018 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00019 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00020 ..}^=.= = ; Library General Public License for more 00021 ++= -. .` .: details. 00022 : = ...= . :.=- 00023 -. .:....=;==+<; You should have received a copy of the GNU 00024 -_. . . )=. = Library General Public License along with 00025 -- :-=` this library; see the file COPYING.LIB. 00026 If not, write to the Free Software Foundation, 00027 Inc., 59 Temple Place - Suite 330, 00028 Boston, MA 02111-1307, USA. 00029 00030 */ 00031 00032 #ifndef OTABINFO_H 00033 #define OTABINFO_H 00034 00035 /* QT */ 00036 #include <qlist.h> 00037 #include <qstring.h> 00038 00039 class QWidget; 00040 00041 namespace Opie{ 00042 namespace Ui { 00043 00057 class OTabInfo 00058 { 00059 public: 00064 OTabInfo() : i( -1 ), c( 0 ), p( 0 ), l( QString::null ) {} 00065 00075 OTabInfo( int id, QWidget *control, const QString &icon, const QString &label ) 00076 : i( id ), c( control ), p( icon ), l( label ) {} 00077 00082 int id() const { return i; } 00083 00090 void setId( int id ) { i = id; } 00091 00096 const QString &label() const { return l; } 00097 00104 void setLabel( const QString &label ) { l = label; } 00105 00110 QWidget *control() const { return c; } 00111 00116 const QString &icon() const { return p; } 00117 00124 void setIcon( const QString &icon ) { p = icon; } 00125 00126 private: 00127 int i; 00128 QWidget *c; 00129 QString p; 00130 QString l; 00131 class Private; 00132 Private *d; 00133 }; 00134 00139 typedef QList<OTabInfo> OTabInfoList; 00140 00141 } 00142 } 00143 00144 #endif
1.4.2