summaryrefslogtreecommitdiff
path: root/core/settings/launcher/tabdialog.h
Unidiff
Diffstat (limited to 'core/settings/launcher/tabdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/launcher/tabdialog.h38
1 files changed, 36 insertions, 2 deletions
diff --git a/core/settings/launcher/tabdialog.h b/core/settings/launcher/tabdialog.h
index e1935fd..b0afd47 100644
--- a/core/settings/launcher/tabdialog.h
+++ b/core/settings/launcher/tabdialog.h
@@ -1,16 +1,45 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org>
4           .>+-=
5 _;:,     .>    :=|. This file is free software; you can
6.> <`_,   >  .   <= redistribute it and/or modify it under
7:`=1 )Y*s>-.--   : the terms of the GNU General Public
8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version.
11    .%`+i>       _;_.
12    .i_,=:_.      -<s. This file is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
17..}^=.=       =       ; Public License for more details.
18++=   -.     .`     .:
19 :     =  ...= . :.=- You should have received a copy of the GNU
20 -.   .:....=;==+<; General Public License along with this file;
21  -_. . .   )=.  = see the file COPYING. If not, write to the
22    --        :-=` Free Software Foundation, Inc.,
23 59 Temple Place - Suite 330,
24 Boston, MA 02111-1307, USA.
25
26*/
27
1#ifndef __TABDIALOG_H__ 28#ifndef __TABDIALOG_H__
2#define __TABDIALOG_H__ 29#define __TABDIALOG_H__
3 30
4#include <qdialog.h> 31#include <qdialog.h>
5#include "tabconfig.h" 32#include "tabconfig.h"
6 33
7class QButtonGroup; 34class QButtonGroup;
8class OFontSelector; 35class OFontSelector;
9class SampleView; 36class SampleView;
10class OColorButton; 37class OColorButton;
38class QPushButton;
39
11 40
12class TabDialog : public QDialog { 41class TabDialog : public QDialog {
13 Q_OBJECT 42 Q_OBJECT
14public: 43public:
15 TabDialog ( const QPixmap *tabicon, const QString &tabname, TabConfig &cfg, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags = 0 ); 44 TabDialog ( const QPixmap *tabicon, const QString &tabname, TabConfig &cfg, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags = 0 );
16 virtual ~TabDialog ( ); 45 virtual ~TabDialog ( );
@@ -19,26 +48,31 @@ public slots:
19 virtual void accept ( ); 48 virtual void accept ( );
20 49
21protected slots: 50protected slots:
22 void iconSizeClicked ( int ); 51 void iconSizeClicked ( int );
23 void fontClicked ( const QFont & ); 52 void fontClicked ( const QFont & );
24 void bgTypeClicked ( int ); 53 void bgTypeClicked ( int );
25 void colorClicked ( const QColor & ); 54 void bgColorClicked ( const QColor & );
55 void iconColorClicked ( const QColor & );
56 void bgImageClicked ( );
57 void bgDefaultClicked ( );
26 58
27private: 59private:
28 QWidget *createBgTab ( QWidget *parent ); 60 QWidget *createBgTab ( QWidget *parent );
29 QWidget *createFontTab ( QWidget *parent ); 61 QWidget *createFontTab ( QWidget *parent );
30 QWidget *createIconTab ( QWidget *parent ); 62 QWidget *createIconTab ( QWidget *parent );
31 63
32 64
33private: 65private:
34 SampleView *m_sample; 66 SampleView *m_sample;
35 QButtonGroup *m_iconsize; 67 QButtonGroup *m_iconsize;
36 OFontSelector *m_fontselect; 68 OFontSelector *m_fontselect;
37 OColorButton *m_solidcolor; 69 OColorButton *m_solidcolor;
38 70 OColorButton *m_iconcolor;
71 QPushButton *m_imagebrowse;
72 QString m_bgimage;
39 QButtonGroup *m_bgtype; 73 QButtonGroup *m_bgtype;
40 74
41 TabConfig &m_tc; 75 TabConfig &m_tc;
42}; 76};
43 77
44 78