16 :
17 QWizardPage(parent),
18 m_ui(
new Ui::PageBundleSaver)
20{
22
24 QFileInfo fileInfo(
m_bundle->filename());
25 QString directory = fileInfo.path();
26 m_ui->lblSaveLocation->setText(directory);
27
31 #if defined HAVE_SEEXPR
33 #endif
35
37 QSet<QString> set;
39
40 for (const QString &type : resourceTypes) {
42 int count = 0;
43 while (iter->hasNext()) {
44 iter->next();
45 count++;
46 }
48 if (count != 0) {
51 }
52
54 while (tagIter->hasNext()) {
55 tagIter->next();
56 set.insert(tagIter->tag()->name());
58 }
59 }
60
63 }
64
65 if (!set.isEmpty()) {
66 m_tags =
"<b>Tags</b><br>" +
QList(set.begin(), set.end()).join(
", ") +
"<br>";
67 }
68
70
71
72 } else {
74 m_ui->lblSaveLocation->setText(cfg.readEntry<QString>(
"BundleExportLocation", QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)));
75 }
76
78
79}
QList< QString > QStringList
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
QSharedPointer< KisResourceStorage::ResourceIterator > resources(const QString &resourceType) override
QSharedPointer< KisResourceStorage::TagIterator > tags(const QString &resourceType) override
KisBundleStorage * m_bundleStorage
QMap< QString, int > m_count
void selectSaveLocation()
QSet< QString > m_loaded_tags
Ui::PageBundleSaver * m_ui
KoResourceBundleSP m_bundle
QMap< QString, int > m_loaded_count
KRITARESOURCES_EXPORT QString resourceTypeToName(const QString &resourceType)
const QString SeExprScripts
const QString PaintOpPresets