Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / kcontrol / input / xcursor / legacytheme.h
blob23c9d5f6a2e2d3fed3856645078da981359bc305
1 /*
2 * Copyright © 2006-2007 Fredrik Höglund <fredrik@kde.org>
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.
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.
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.
20 #ifndef LEGACYTHEME_H
21 #define LEGACYTHEME_H
23 #include "cursortheme.h"
25 /**
26 * The LegacyTheme class is a CursorTheme implementation for the KDE/Qt
27 * bitmap cursors and the X11 cursor font.
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.
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.
35 * Cursors that aren't created from bitmaps are created from the X11 cursor
36 * font.
38 class LegacyTheme : public CursorTheme
40 public:
41 LegacyTheme();
42 virtual ~LegacyTheme();
44 QImage loadImage(const QString &name, int size = -1) const;
45 QCursor loadCursor(const QString &name, int size = - 1) const;
47 protected:
48 LegacyTheme(const QString &title, const QString &description)
49 : CursorTheme(title, description) {}
51 private:
52 class Private;
55 #endif // LEGACYTHEME_H