1
#ifndef oxygenconfigdialog_h
2
#define oxygenconfigdialog_h
4
//////////////////////////////////////////////////////////////////////////////
5
// oxygenconfigdialog.h
6
// oxygen configuration dialog
9
// Copyright (c) 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr>
11
// Permission is hereby granted, free of charge, to any person obtaining a copy
12
// of this software and associated documentation files (the "Software"), to
13
// deal in the Software without restriction, including without limitation the
14
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15
// sell copies of the Software, and to permit persons to whom the Software is
16
// furnished to do so, subject to the following conditions:
18
// The above copyright notice and this permission notice shall be included in
19
// all copies or substantial portions of the Software.
21
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
28
//////////////////////////////////////////////////////////////////////////////
30
#include "ui_oxygenconfigdialog.h"
35
class ConfigDialog: public QDialog, Ui::OxygenConfigDialog
42
explicit ConfigDialog( QWidget* parent = 0 );
45
virtual ~ConfigDialog( void )
50
//! save local changes
51
void pluginSave( void );
54
void pluginToggleExpertMode( bool );
58
//! save local changes
59
virtual void save( void );
63
// update decoration changed state
64
void updateStyleChanged( bool state = true )
65
{ _styleChanged = state; }
67
// update decoration changed state
68
void updateDecorationChanged( bool state = true )
69
{ _decorationChanged = state; }
71
// handle configuration modifications
72
virtual void updateChanged( void );
74
// update window title based on selected page
75
virtual void updateWindowTitle( KPageWidgetItem* = 0 );
79
//! true if configuration changed
80
bool changed( void ) const
81
{ return _styleChanged || _decorationChanged; }
83
//! load style config widget from plugin
84
KPageWidgetItem* loadStyleConfig( void );
86
//! load decoration config widget from plugin
87
KPageWidgetItem* loadDecorationConfig( void );
89
//! style plugin widget
90
QObject *_stylePluginObject;
92
//! decoration plugin widget
93
QObject *_decorationPluginObject;
96
bool _decorationChanged;