~ubuntu-branches/ubuntu/quantal/kde-runtime/quantal

« back to all changes in this revision

Viewing changes to plasma/declarativeimports/core/theme.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-06-03 21:50:00 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20120603215000-vn7oarsq0ynrydj5
Tags: upstream-4.8.80
Import upstream version 4.8.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
class FontProxy : public QObject
31
31
{
32
32
    Q_OBJECT
 
33
 
 
34
    /**
 
35
     * true if the font is bold
 
36
     */
33
37
    Q_PROPERTY(bool bold READ bold NOTIFY boldChanged)
 
38
 
 
39
    /**
 
40
     * One of
 
41
     * MixedCase: The text is not changed
 
42
     * AllUppercase: the text becomes UPPERCASE
 
43
     * AllLowercase: the text becomes all lowercase
 
44
     * SmallCaps: the lowercase characters becomes smaller uppercase ones
 
45
     * Capitalize: the first letter of all words are uppercase
 
46
     */
34
47
    Q_PROPERTY(Capitalization capitalization READ capitalization  NOTIFY capitalizationChanged )
 
48
 
 
49
    /**
 
50
     * name of the font family
 
51
     */
35
52
    Q_PROPERTY(QString family READ family NOTIFY familyChanged )
 
53
 
 
54
    /**
 
55
     * true if the font is italic
 
56
     */
36
57
    Q_PROPERTY(bool italic READ italic NOTIFY italicChanged )
 
58
 
 
59
    /**
 
60
     * horizontal space between letters
 
61
     */
37
62
    Q_PROPERTY(qreal letterSpacing READ letterSpacing NOTIFY letterSpacingChanged )
 
63
 
 
64
    /**
 
65
     * Size of the font in pixels: settings this is strongly discouraged.
 
66
     * @see pointSize
 
67
     */
38
68
    Q_PROPERTY(int pixelSize READ pixelSize NOTIFY pixelSizeChanged )
 
69
 
 
70
    /**
 
71
     * Size of the font in points
 
72
     */
39
73
    Q_PROPERTY(qreal pointSize READ pointSize NOTIFY pointSizeChanged )
 
74
 
 
75
    /**
 
76
     * True if the text is striked out with an horizontal line
 
77
     */
40
78
    Q_PROPERTY(bool strikeout READ strikeout NOTIFY strikeoutChanged )
 
79
 
 
80
    /**
 
81
     * True if all the text will be underlined
 
82
     */
41
83
    Q_PROPERTY(bool underline READ underline NOTIFY underlineChanged )
 
84
 
 
85
    /**
 
86
     * One of:
 
87
     * Light
 
88
     * Normal
 
89
     * DemiBold
 
90
     * Bold
 
91
     * Black
 
92
     */
42
93
    Q_PROPERTY(Weight weight READ weight NOTIFY weightChanged )
 
94
 
 
95
    /**
 
96
     * Horizontal space between words
 
97
     */
43
98
    Q_PROPERTY(qreal wordSpacing READ wordSpacing NOTIFY wordSpacingChanged )
 
99
 
 
100
    /**
 
101
     * Size in pixels of an uppercase "M" letter
 
102
     */
44
103
    Q_PROPERTY(QSize mSize READ mSize NOTIFY mSizeChanged )
45
104
 
46
105
    Q_ENUMS(Capitalization)
143
202
    Q_PROPERTY(int largeIconSize READ largeIconSize CONSTANT)
144
203
    Q_PROPERTY(int hugeIconSize READ hugeIconSize CONSTANT)
145
204
    Q_PROPERTY(int enormousIconSize READ enormousIconSize CONSTANT)
 
205
    Q_PROPERTY(int defaultIconSize READ defaultIconSize NOTIFY defaultIconSizeChanged)
146
206
 
147
207
public:
148
208
    ThemeProxy(QObject *parent = 0);
179
239
    int largeIconSize() const;
180
240
    int hugeIconSize() const;
181
241
    int enormousIconSize() const;
 
242
    int defaultIconSize() const;
 
243
 
 
244
private Q_SLOTS:
 
245
    void iconLoaderSettingsChanged();
182
246
 
183
247
Q_SIGNALS:
184
248
    void themeChanged();
 
249
    void defaultIconSizeChanged();
 
250
 
 
251
private:
 
252
    int m_defaultIconSize;
185
253
};
186
254
 
187
255
#endif