1 /***************************************************************************
2 glowconfigdialog.h - description
4 begin : Thu Sep 12 2001
5 copyright : (C) 2001 by Henning Burchardt
6 email : h_burchardt@gmx.net
7 ***************************************************************************/
9 /***************************************************************************
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. *
16 ***************************************************************************/
18 #ifndef GLOW_CONFIG_DIALOG_H
19 #define GLOW_CONFIG_DIALOG_H
21 #include <q3valuevector.h>
32 class GlowConfigDialog
: public QObject
37 GlowConfigDialog( KConfig
* conf
, QWidget
* parent
);
44 void load( KConfig
* conf
);
45 void save( KConfig
* conf
);
49 void slotTitleButtonClicked(int);
50 void slotColorButtonChanged(const QColor
&);
51 void slotTitlebarGradientTypeChanged(int);
52 void slotResizeHandleCheckBoxChanged();
53 void slotThemeListViewSelectionChanged ();
56 void slotLoadThemeList ();
59 enum ButtonType
{stickyButton
, helpButton
, iconifyButton
,
60 maximizeButton
, closeButton
};
64 bool _showResizeHandle
;
65 KPixmapEffect::GradientType _titlebarGradientType
;
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
;