~ubuntu-branches/ubuntu/wily/oxygen/wily

« back to all changes in this revision

Viewing changes to kdecoration/config/oxygenconfigwidget.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, Scarlett Clark, Jonathan Riddell
  • Date: 2015-08-10 23:18:51 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20150810231851-wtw33zvkigya4f7t
Tags: 4:5.3.95-0ubuntu1
[ Scarlett Clark ]
* Vivid backport. 

[ Jonathan Riddell ]
* new upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "ui_oxygenconfigurationui.h"
29
29
#include "oxygenexceptionlistwidget.h"
30
30
#include "oxygensettings.h"
 
31
#include "oxygenshadowconfigwidget.h"
31
32
#include "oxygen.h"
32
33
 
 
34
#include <KCModule>
 
35
#include <KSharedConfig>
 
36
 
33
37
#include <QWidget>
34
38
#include <QSharedPointer>
35
39
 
37
41
{
38
42
 
39
43
    //_____________________________________________
40
 
    class ConfigWidget: public QWidget
 
44
    class ConfigWidget: public KCModule
41
45
    {
42
46
 
43
47
        Q_OBJECT
45
49
        public:
46
50
 
47
51
        //* constructor
48
 
        explicit ConfigWidget( QWidget* );
 
52
        explicit ConfigWidget( QWidget*, const QVariantList& );
49
53
 
50
54
        //* destructor
51
 
        virtual ~ConfigWidget( void )
52
 
        {}
 
55
        virtual ~ConfigWidget( void ) = default;
53
56
 
54
 
        //* set configuration
55
 
        void setInternalSettings( InternalSettingsPtr );
 
57
        //* default
 
58
        void defaults() override;
56
59
 
57
60
        //* load configuration
58
 
        void load( void );
 
61
        void load( void ) override;
59
62
 
60
63
        //* save configuration
61
 
        void save( void );
 
64
        void save( void ) override;
62
65
 
63
66
        //* true if changed
64
67
        virtual bool isChanged( void ) const
68
71
        ExceptionListWidget* exceptionListWidget( void ) const
69
72
        { return m_ui.exceptions; }
70
73
 
71
 
        Q_SIGNALS:
72
 
 
73
 
        //* emmited when changed
74
 
        void changed( bool );
75
 
 
76
74
        protected Q_SLOTS:
77
75
 
78
76
        //* update changed state
92
90
        //* ui
93
91
        Ui_OxygenConfigurationUI m_ui;
94
92
 
 
93
        //* kconfiguration object
 
94
        KSharedConfig::Ptr m_configuration;
 
95
 
95
96
        //* internal exception
96
97
        InternalSettingsPtr m_internalSettings;
97
98