1
#ifndef oxygen_config_h
2
#define oxygen_config_h
4
//////////////////////////////////////////////////////////////////////////////
8
// Copyright (c) 2009 Hugo Pereira Da Costa <hugo.pereira@free.fr>
9
// Copyright (C) 2008 Lubos Lunak <l.lunak@kde.org>
11
// Based on the Quartz configuration module,
12
// Copyright (c) 2001 Karol Szwed <gallium@kde.org>
14
// Permission is hereby granted, free of charge, to any person obtaining a copy
15
// of this software and associated documentation files (the "Software"), to
16
// deal in the Software without restriction, including without limitation the
17
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18
// sell copies of the Software, and to permit persons to whom the Software is
19
// furnished to do so, subject to the following conditions:
21
// The above copyright notice and this permission notice shall be included in
22
// all copies or substantial portions of the Software.
24
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
31
//////////////////////////////////////////////////////////////////////////////
34
#include <QtGui/QPalette>
36
#include "oxygenconfigurationui.h"
37
#include "../oxygenexceptionlist.h"
42
class ShadowConfiguration;
44
// oxygen configuration object
45
class Config: public QObject
53
Config( KConfig* conf, QWidget* parent );
60
//! emmited whenever configuration is changed
63
//! emmited whenever configuration is changed
68
//! load configuration
69
void load( const KConfigGroup& );
71
//! save configuration
72
void save( KConfigGroup& );
75
void defaults( void );
77
//! toggle expert mode
78
void toggleExpertMode( bool );
82
//! update change state
83
void updateChanged( void );
87
//! load configuration
88
void loadConfiguration( const Configuration& );
90
//! load configuration
91
void loadShadowConfiguration( QPalette::ColorGroup, const ShadowConfiguration& );
93
//! load configuration
94
void saveShadowConfiguration( QPalette::ColorGroup, const ShadowConfigurationUi& ) const;
96
//! returns true if shadow configuration changed
97
bool shadowConfigurationChanged( const ShadowConfiguration&, const ShadowConfigurationUi& ) const;
99
//! returns true if exception list is changed
100
bool exceptionListChanged( void ) const;
105
//! kconfiguration object
106
KConfig *_configuration;