Back to index

kdeartwork  4.3.2
glowconfigdialog.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           glowconfigdialog.h  -  description
00003                              -------------------
00004     begin                : Thu Sep 12 2001
00005     copyright            : (C) 2001 by Henning Burchardt
00006     email                : h_burchardt@gmx.net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef GLOW_CONFIG_DIALOG_H
00019 #define GLOW_CONFIG_DIALOG_H
00020 
00021 #include <q3valuevector.h>
00022 #include <qobject.h>
00023 
00024 class Q3ListView;
00025 class QPushButton;
00026 class QSignalMapper;
00027 class QCheckBox;
00028 class QComboBox;
00029 class KConfig;
00030 class KColorButton;
00031 
00032 class GlowConfigDialog : public QObject
00033 {
00034        Q_OBJECT
00035 
00036 public:
00037        GlowConfigDialog( KConfig* conf, QWidget* parent );
00038        ~GlowConfigDialog();
00039 
00040 signals:
00041        void changed();
00042 
00043 public slots:
00044        void load( KConfig* conf );
00045        void save( KConfig* conf );
00046        void defaults();
00047 
00048 protected slots:
00049        void slotTitleButtonClicked(int);
00050        void slotColorButtonChanged(const QColor&);
00051        void slotTitlebarGradientTypeChanged(int);
00052        void slotResizeHandleCheckBoxChanged();
00053        void slotThemeListViewSelectionChanged ();
00054 
00055 private slots:
00056        void slotLoadThemeList ();
00057        
00058 private:
00059        enum ButtonType{stickyButton, helpButton, iconifyButton,
00060               maximizeButton, closeButton };
00061 
00062        KConfig *_glowConfig;
00063 
00064        bool _showResizeHandle;
00065        KPixmapEffect::GradientType _titlebarGradientType;
00066        QString _theme_name;
00067 
00068        QWidget *_main_group_box;
00069        Q3GroupBox *_button_glow_color_group_box;
00070        Q3GroupBox *_theme_group_box;
00071 
00072        Q3ListView * _theme_list_view;
00073 
00074        QCheckBox *_showResizeHandleCheckBox;
00075        QComboBox *_titlebarGradientTypeComboBox;
00076 
00077        QPushButton *_stickyButton;
00078        QPushButton *_helpButton;
00079        QPushButton *_iconifyButton;
00080        QPushButton *_maximizeButton;
00081        QPushButton *_closeButton;
00082        QSignalMapper *_titleButtonMapper;
00083 
00084        QColor* _buttonConfigMap;
00085        Q3ValueVector<QPushButton*> _titleButtonList;
00086        
00087        KColorButton *_colorButton;
00088 };
00089 
00090 #endif
00091