~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kstyles/highcontrast/config/highcontrastconfig.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 2005 Luciano Montanaro <mikelima@cirulla.net>
 
3
 
 
4
based on the Keramick configuration dialog 
 
5
Copyright (c) 2003 Maksim Orlovich <maksim.orlovich@kdemail.net>
 
6
 
 
7
Permission is hereby granted, free of charge, to any person obtaining a
 
8
copy of this software and associated documentation files (the "Software"),
 
9
to deal in the Software without restriction, including without limitation
 
10
the rights to use, copy, modify, merge, publish, distribute, sublicense,
 
11
and/or sell copies of the Software, and to permit persons to whom the
 
12
Software is furnished to do so, subject to the following conditions:
 
13
 
 
14
The above copyright notice and this permission notice shall be included in
 
15
all copies or substantial portions of the Software.
 
16
 
 
17
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
18
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
19
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 
20
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
21
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 
22
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
23
DEALINGS IN THE SOFTWARE.
 
24
 
 
25
*/
 
26
 
 
27
#ifndef HIGHCONTRAST_CONF_H
 
28
#define HIGHCONTRAST_CONF_H
 
29
 
 
30
class QCheckBox;
 
31
 
 
32
class HighContrastStyleConfig: public QWidget
 
33
{
 
34
        Q_OBJECT
 
35
public:
 
36
        HighContrastStyleConfig(QWidget* parent);
 
37
        ~HighContrastStyleConfig();
 
38
 
 
39
        // This signal and the next two slots are the plugin
 
40
        // page interface
 
41
Q_SIGNALS:
 
42
        void changed(bool);
 
43
 
 
44
public Q_SLOTS:
 
45
        void save();
 
46
        void defaults();
 
47
 
 
48
        // Everything below this is internal.
 
49
protected Q_SLOTS:
 
50
        void updateChanged();
 
51
 
 
52
protected:
 
53
        // We store settings directly in widgets to
 
54
        // avoid the hassle of sync'ing things
 
55
        QCheckBox* wideLinesBox;
 
56
 
 
57
        // Original settings, for accurate dirtiness tracking
 
58
        bool       originalWideLinesState;
 
59
};
 
60
 
 
61
#endif // HIGHCONTRAST_CONF_H