Start to fix some error
[kdeartwork.git] / kwin-styles / glow / config / glowconfigdialog.h
blob7cd3098ad25060545802ad19ba1901e92d2f2a85
1 /***************************************************************************
2 glowconfigdialog.h - description
3 -------------------
4 begin : Thu Sep 12 2001
5 copyright : (C) 2001 by Henning Burchardt
6 email : h_burchardt@gmx.net
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef GLOW_CONFIG_DIALOG_H
19 #define GLOW_CONFIG_DIALOG_H
21 #include <q3valuevector.h>
22 #include <qobject.h>
24 class Q3ListView;
25 class QPushButton;
26 class QSignalMapper;
27 class QCheckBox;
28 class QComboBox;
29 class KConfig;
30 class KColorButton;
32 class GlowConfigDialog : public QObject
34 Q_OBJECT
36 public:
37 GlowConfigDialog( KConfig* conf, QWidget* parent );
38 ~GlowConfigDialog();
40 signals:
41 void changed();
43 public slots:
44 void load( KConfig* conf );
45 void save( KConfig* conf );
46 void defaults();
48 protected slots:
49 void slotTitleButtonClicked(int);
50 void slotColorButtonChanged(const QColor&);
51 void slotTitlebarGradientTypeChanged(int);
52 void slotResizeHandleCheckBoxChanged();
53 void slotThemeListViewSelectionChanged ();
55 private slots:
56 void slotLoadThemeList ();
58 private:
59 enum ButtonType{stickyButton, helpButton, iconifyButton,
60 maximizeButton, closeButton };
62 KConfig *_glowConfig;
64 bool _showResizeHandle;
65 KPixmapEffect::GradientType _titlebarGradientType;
66 QString _theme_name;
68 QWidget *_main_group_box;
69 Q3GroupBox *_button_glow_color_group_box;
70 Q3GroupBox *_theme_group_box;
72 Q3ListView * _theme_list_view;
74 QCheckBox *_showResizeHandleCheckBox;
75 QComboBox *_titlebarGradientTypeComboBox;
77 QPushButton *_stickyButton;
78 QPushButton *_helpButton;
79 QPushButton *_iconifyButton;
80 QPushButton *_maximizeButton;
81 QPushButton *_closeButton;
82 QSignalMapper *_titleButtonMapper;
84 QColor* _buttonConfigMap;
85 Q3ValueVector<QPushButton*> _titleButtonList;
87 KColorButton *_colorButton;
90 #endif