1
#ifndef oxygenstyleconfig_h
2
#define oxygenstyleconfig_h
4
Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
5
Copyright (C) 2003 Sandro Giessl <ceebx@users.sourceforge.net>
7
based on the Keramik configuration dialog:
8
Copyright (c) 2003 Maksim Orlovich <maksim.orlovich@kdemail.net>
10
Permission is hereby granted, free of charge, to any person obtaining a
11
copy of this software and associated documentation files (the "Software"),
12
to deal in the Software without restriction, including without limitation
13
the rights to use, copy, modify, merge, publish, distribute, sublicense,
14
and/or sell copies of the Software, and to permit persons to whom the
15
Software is furnished to do so, subject to the following conditions:
17
The above copyright notice and this permission notice shall be included in
18
all copies or substantial portions of the Software.
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26
DEALINGS IN THE SOFTWARE.
30
#include "ui_oxygenstyleconfig.h"
34
class AnimationConfigWidget;
36
class StyleConfig: public QWidget, Ui::OxygenStyleConfig
44
StyleConfig(QWidget* parent);
47
virtual ~StyleConfig( void )
52
//! emmited whenever one option is changed.
57
//! save current state
60
//! restore all default values
61
void defaults( void );
63
//Everything below this is internal.
65
//! reset to saved configuration
68
//! toggle expert mode
69
virtual void toggleExpertMode( bool );
72
virtual void showEvent( QShowEvent* );
77
/*! needed in expert mode to accommodate with animations config widget size changes */
78
void updateLayout( void );
80
//! update modified state when option is checked/unchecked
81
void updateChanged( void );
83
//! update options enable state based on selected drag mode
84
void windowDragModeChanged( int );
88
//! load setup from config data
91
int menuMode( void ) const;
92
int tabStyle( void ) const;
93
int windowDragMode( void ) const;
94
int triangularExpanderSize( void ) const;
100
//! animation config (expert mode only)
101
AnimationConfigWidget* _animationConfigWidget;