12#include <QScopedPointer>
13#include <QSharedPointer>
17#include "kritaresources_export.h"
50 void setFilename(
const QString &fileName);
54 void setUrl(
const QString &url);
57 QString name(
bool translated =
true)
const;
58 void setName(
const QString &name);
59 QMap<QString, QString> names()
const;
60 void setNames(
const QMap<QString, QString> &names);
63 QString comment(
bool translated =
true)
const;
64 void setComment(
const QString comment);
65 QMap<QString, QString> comments()
const;
66 void setComments(
const QMap<QString, QString> &comments);
68 QString resourceType()
const;
69 void setResourceType(
const QString &resourceType);
72 void setDefaultResources(
const QStringList &defaultResources);
74 bool load(QIODevice &io);
75 bool save(QIODevice &io);
85 friend class TestTagModel;
91 void setActive(
bool active);
92 void setValid(
bool valid);
94 static const QString s_group;
95 static const QString s_type;
96 static const QString s_tag;
97 static const QString s_name;
98 static const QString s_resourceType;
99 static const QString s_url;
100 static const QString s_comment;
101 static const QString s_defaultResources;
102 static const QString s_desktop;
105 QScopedPointer<Private>
d;
112 dbg.space() <<
"[TAG] Name" << tag->name()
113 <<
"Url" << tag->url()
114 <<
"Comment" << tag->comment()
115 <<
"Default resources" << tag->defaultResources().join(
", ");
117 dbg.space() <<
"[TAG] NULL";
QDebug operator<<(QDebug dbg, const KisTagSP tag)
QSharedPointer< KisTag > KisTagSP
static QString currentLocale()
The KisAllresourcesModel class provides access to the cache database for a particular resource type....
The KisResourceModel class provides the main access to resources. It is possible to filter the resour...
The KisTag loads a tag from a .tag file. A .tag file is a .desktop file. The following fields are imp...
QScopedPointer< Private > d
Q_DECLARE_METATYPE(KisPaintopLodLimitations)