Changeset View
Changeset View
Standalone View
Standalone View
kcms/cursortheme/xcursor/xcursortheme.h
Show All 40 Lines | 40 | public: | |||
---|---|---|---|---|---|
41 | /** | 41 | /** | ||
42 | * Initializes itself from the @p dir information, and parses the | 42 | * Initializes itself from the @p dir information, and parses the | ||
43 | * index.theme file if the dir has one. | 43 | * index.theme file if the dir has one. | ||
44 | */ | 44 | */ | ||
45 | XCursorTheme(const QDir &dir); | 45 | XCursorTheme(const QDir &dir); | ||
46 | virtual ~XCursorTheme() {} | 46 | virtual ~XCursorTheme() {} | ||
47 | 47 | | |||
48 | const QStringList inherits() const { return m_inherits; } | 48 | const QStringList inherits() const { return m_inherits; } | ||
49 | QImage loadImage(const QString &name, int size = 0) const Q_DECL_OVERRIDE; | 49 | QImage loadImage(const QString &name, int size = 0) const; | ||
50 | qulonglong loadCursor(const QString &name, int size = 0) const Q_DECL_OVERRIDE; | 50 | qulonglong loadCursor(const QString &name, int size = 0) const; | ||
51 | | ||||
52 | /** Returns the size that the XCursor library would use if no | ||||
53 | cursor size is given. This depends mainly on Xft.dpi. */ | ||||
54 | int defaultCursorSize() const; | ||||
51 | 55 | | |||
52 | protected: | 56 | protected: | ||
53 | XCursorTheme(const QString &title, const QString &desc) | 57 | XCursorTheme(const QString &title, const QString &desc) | ||
54 | : CursorTheme(title, desc) {} | 58 | : CursorTheme(title, desc) {} | ||
55 | void setInherits(const QStringList &val) { m_inherits = val; } | 59 | void setInherits(const QStringList &val) { m_inherits = val; } | ||
56 | 60 | | |||
57 | private: | 61 | private: | ||
58 | XcursorImage *xcLoadImage(const QString &name, int size) const; | 62 | XcursorImage *xcLoadImage(const QString &name, int size) const; | ||
59 | XcursorImages *xcLoadImages(const QString &name, int size) const; | 63 | XcursorImages *xcLoadImages(const QString &name, int size) const; | ||
60 | void parseIndexFile(); | 64 | void parseIndexFile(); | ||
61 | QString findAlternative(const QString &name) const; | 65 | QString findAlternative(const QString &name) const; | ||
62 | /** Returns the size that the XCursor library would use if no | 66 | | ||
63 | cursor size is given. This depends mainly on Xft.dpi. */ | | |||
64 | int autodetectCursorSize() const; | | |||
65 | 67 | | |||
66 | QStringList m_inherits; | 68 | QStringList m_inherits; | ||
67 | static QHash<QString, QString> alternatives; | 69 | static QHash<QString, QString> alternatives; | ||
68 | }; | 70 | }; | ||
69 | 71 | | |||
70 | #endif // XCURSORTHEME_H | 72 | #endif // XCURSORTHEME_H | ||
71 | 73 | |