KStyles
oxygenconf.h
Go to the documentation of this file.00001 /* 00002 Copyright (C) 2003 Sandro Giessl <ceebx@users.sourceforge.net> 00003 00004 based on the Keramik configuration dialog: 00005 Copyright (c) 2003 Maksim Orlovich <maksim.orlovich@kdemail.net> 00006 00007 Permission is hereby granted, free of charge, to any person obtaining a 00008 copy of this software and associated documentation files (the "Software"), 00009 to deal in the Software without restriction, including without limitation 00010 the rights to use, copy, modify, merge, publish, distribute, sublicense, 00011 and/or sell copies of the Software, and to permit persons to whom the 00012 Software is furnished to do so, subject to the following conditions: 00013 00014 The above copyright notice and this permission notice shall be included in 00015 all copies or substantial portions of the Software. 00016 00017 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00018 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00019 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00020 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00021 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00022 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 00023 DEALINGS IN THE SOFTWARE. 00024 00025 */ 00026 00027 #ifndef OXYGENCONF_H 00028 #define OXYGENCONF_H 00029 00030 #ifndef QT3_SUPPORT 00031 #define QT3_SUPPORT 00032 #endif 00033 #include <QtGui/QWidget> 00034 #include <QtGui/QColor> 00035 00036 class QCheckBox; 00037 class KColorButton; 00038 00039 class OxygenStyleConfig: public QWidget 00040 { 00041 Q_OBJECT 00042 public: 00043 OxygenStyleConfig(QWidget* parent); 00044 ~OxygenStyleConfig(); 00045 00046 //This signal and the next two slots are the plugin 00047 //page interface 00048 Q_SIGNALS: 00049 void changed(bool); 00050 00051 public Q_SLOTS: 00052 void save(); 00053 void defaults(); 00054 00055 //Everything below this is internal. 00056 protected Q_SLOTS: 00057 void updateChanged(); 00058 00059 protected: 00060 //We store settings directly in widgets to 00061 //avoid the hassle of sync'ing things 00062 QCheckBox* animateProgressBar; 00063 QCheckBox* drawToolBarItemSeparator; 00064 QCheckBox* drawTriangularExpander; 00065 00066 //Original settings, for accurate dirtiness tracking 00067 bool origAnimProgressBar; 00068 bool origDrawToolBarItemSeparator; 00069 bool origDrawTriangularExpander; 00070 }; 00071 00072 #endif // OXYGENCONF_H
KDE 4.0 API Reference