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

« back to all changes in this revision

Viewing changes to kcontrol/input/xcursor/legacytheme.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 © 2006-2007 Fredrik Höglund <fredrik@kde.org>
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public
 
6
 * License version 2 or at your option version 3 as published
 
7
 * by the Free Software Foundation.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; see the file COPYING.  If not, write to
 
16
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
 * Boston, MA 02110-1301, USA.
 
18
 */
 
19
 
 
20
#ifndef LEGACYTHEME_H
 
21
#define LEGACYTHEME_H
 
22
 
 
23
#include "cursortheme.h"
 
24
 
 
25
/**
 
26
 * The LegacyTheme class is a CursorTheme implementation for the KDE/Qt
 
27
 * bitmap cursors and the X11 cursor font.
 
28
 *
 
29
 * The cursors returned by loadImage() and loadCursor() are created from
 
30
 * copies of the bitmaps used to create cursors in the Qt and KDE libs.
 
31
 *
 
32
 * If any of those bitmaps are changed in either Qt or KDE, or new bitmaps
 
33
 * are added, those changes won't automatically be reflected here.
 
34
 *
 
35
 * Cursors that aren't created from bitmaps are created from the X11 cursor
 
36
 * font.
 
37
 */
 
38
class LegacyTheme : public CursorTheme
 
39
{
 
40
    public:
 
41
        LegacyTheme();
 
42
        virtual ~LegacyTheme();
 
43
 
 
44
        QImage loadImage(const QString &name, int size = -1) const;
 
45
        QCursor loadCursor(const QString &name, int size = - 1) const;
 
46
 
 
47
    protected:
 
48
        LegacyTheme(const QString &title, const QString &description)
 
49
            : CursorTheme(title, description) {}
 
50
 
 
51
    private:
 
52
        class Private;
 
53
};
 
54
 
 
55
#endif // LEGACYTHEME_H
 
56