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

tabdialog.h

Go to the documentation of this file.
00001 /*
00002                =.            This file is part of the OPIE Project
00003              .=l.            Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
00004            .>+-=
00005  _;:,     .>    :=|.         This file is free software; you can
00006 .> <`_,   >  .   <=          redistribute it and/or modify it under
00007 :`=1 )Y*s>-.--   :           the terms of the GNU General Public
00008 .="- .-=="i,     .._         License as published by the Free Software
00009  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00010      ._= =}       :          or (at your option) any later version.
00011     .%`+i>       _;_.
00012     .i_,=:_.      -<s.       This file is distributed in the hope that
00013      +  .  -:.       =       it will be useful, but WITHOUT ANY WARRANTY;
00014     : ..    .:,     . . .    without even the implied warranty of
00015     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00016   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU General
00017 ..}^=.=       =       ;      Public License for more details.
00018 ++=   -.     .`     .:
00019  :     =  ...= . :.=-        You should have received a copy of the GNU
00020  -.   .:....=;==+<;          General Public License along with this file;
00021   -_. . .   )=.  =           see the file COPYING. If not, write to the
00022     --        :-=`           Free Software Foundation, Inc.,
00023                              59 Temple Place - Suite 330,
00024                              Boston, MA 02111-1307, USA.
00025 
00026 */
00027 
00028 #ifndef __TABDIALOG_H__
00029 #define __TABDIALOG_H__
00030 
00031 #include <qdialog.h>
00032 #include "tabconfig.h"
00033 
00034 class QButtonGroup;
00035 namespace Opie {namespace Ui {class OFontSelector;}}
00036 class SampleView;
00037 namespace Opie {class OColorButton;}
00038 class QPushButton;
00039 class QCheckBox;
00040 class QSpinBox;
00041 
00042 
00043 class TabDialog : public QDialog {
00044         Q_OBJECT
00045 public:
00046         TabDialog ( const QPixmap *tabicon, const QString &tabname, TabConfig &cfg, QWidget *parent = 0, const char *dname = 0, bool modal = false, WFlags = 0 );
00047         virtual ~TabDialog ( );
00048 
00049 public slots:
00050         virtual void accept ( );
00051 
00052 protected slots:
00053         void iconSizeClicked ( int );
00054         void fontClicked ( const QFont & );
00055         void bgTypeClicked ( int );
00056         void bgColorClicked ( const QColor & );
00057         void iconColorClicked ( const QColor & );
00058         void bgImageClicked ( );
00059         void bgDefaultClicked ( );
00060 
00061 private:
00062         QWidget *createBgTab ( QWidget *parent );
00063         QWidget *createFontTab ( QWidget *parent );
00064         QWidget *createIconTab ( QWidget *parent );
00065 
00066 
00067 private:
00068         SampleView *m_sample;
00069         QButtonGroup *m_iconsize;
00070         Opie::Ui::OFontSelector *m_fontselect;
00071         Opie::OColorButton *m_solidcolor;
00072         Opie::OColorButton *m_iconcolor;
00073         QSpinBox *m_iconcolumns;
00074         QPushButton *m_imagebrowse;
00075         QString m_bgimage;
00076         QButtonGroup *m_bgtype;
00077         QCheckBox *m_fontuse;
00078 
00079         TabConfig &m_tc;
00080 };
00081 
00082 
00083 #endif

Generated on Sat Nov 5 16:15:57 2005 for OPIE by  doxygen 1.4.2