Changeset View
Changeset View
Standalone View
Standalone View
cuttlefish/src/iconmodel.h
Show All 23 Lines | |||||
24 | 24 | | |||
25 | #include <QAbstractListModel> | 25 | #include <QAbstractListModel> | ||
26 | #include <QJsonArray> | 26 | #include <QJsonArray> | ||
27 | #include <QJsonObject> | 27 | #include <QJsonObject> | ||
28 | #include <QFileInfo> | 28 | #include <QFileInfo> | ||
29 | #include <QVariantMap> | 29 | #include <QVariantMap> | ||
30 | #include <QVariantList> | 30 | #include <QVariantList> | ||
31 | 31 | | |||
32 | class KColorSchemeManager; | ||||
33 | | ||||
32 | namespace CuttleFish { | 34 | namespace CuttleFish { | ||
33 | 35 | | |||
34 | 36 | | |||
35 | class IconModel : public QAbstractListModel | 37 | class IconModel : public QAbstractListModel | ||
36 | { | 38 | { | ||
37 | Q_OBJECT | 39 | Q_OBJECT | ||
38 | 40 | | |||
39 | Q_PROPERTY(QString filter READ filter WRITE setFilter NOTIFY filterChanged) | 41 | Q_PROPERTY(QString filter READ filter WRITE setFilter NOTIFY filterChanged) | ||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 50 | public: | |||
82 | void setTheme(const QString &theme); | 84 | void setTheme(const QString &theme); | ||
83 | QString theme() const; | 85 | QString theme() const; | ||
84 | QStringList themes() const; | 86 | QStringList themes() const; | ||
85 | 87 | | |||
86 | void setPlasmaTheme(const QString &ptheme); | 88 | void setPlasmaTheme(const QString &ptheme); | ||
87 | QString plasmaTheme() const; | 89 | QString plasmaTheme() const; | ||
88 | QStringList plasmathemes() const; | 90 | QStringList plasmathemes() const; | ||
89 | QStringList categories() const; | 91 | QStringList categories() const; | ||
92 | QAbstractItemModel* colorschemes() const; | ||||
90 | 93 | | |||
91 | bool loading(); | 94 | bool loading(); | ||
92 | 95 | | |||
93 | void svgIcons(); | 96 | void svgIcons(); | ||
94 | 97 | | |||
95 | void load(); | 98 | void load(); | ||
96 | 99 | | |||
97 | Q_INVOKABLE void output(const QString &text); | 100 | Q_INVOKABLE void output(const QString &text); | ||
Show All 34 Lines |