Add ExportPanel and update Import/Export engines
This commit is contained in:
@@ -31,7 +31,7 @@ XMLExportEngine::XMLExportEngine()
|
||||
KissCount::RegisterExportEngine(this);
|
||||
|
||||
_shortExt = "xml";
|
||||
_longExt = _("XML files (*.xml)|*.xml");
|
||||
_longExt = _("KissCount XML files (*.xml)|*.xml");
|
||||
}
|
||||
|
||||
XMLExportEngine::~XMLExportEngine()
|
||||
@@ -64,6 +64,7 @@ bool XMLExportEngine::SaveAccounts()
|
||||
// xmlTextWriterWriteAttribute(_writer, (const xmlChar*) "default", (const xmlChar*) (account._default ? "1" : "0"));
|
||||
// xmlTextWriterWriteAttribute(_writer, (const xmlChar*) "is_owner", (const xmlChar*) (account.is_owner ? "1" : "0"));
|
||||
xmlTextWriterWriteAttribute(_writer, (const xmlChar*) "virtual", (const xmlChar*) (account._virtual ? "1" : "0"));
|
||||
xmlTextWriterWriteAttribute(_writer, (const xmlChar*) "hidden", (const xmlChar*) (account.hidden ? "1" : "0"));
|
||||
xmlTextWriterEndElement(_writer);
|
||||
}
|
||||
|
||||
@@ -101,6 +102,7 @@ bool XMLExportEngine::SaveCategories()
|
||||
|
||||
xmlTextWriterStartElement(_writer, (const xmlChar*) "category");
|
||||
xmlTextWriterWriteAttribute(_writer, (const xmlChar*) "id", (const xmlChar*) QString::number(category.id).toStdString().c_str());
|
||||
xmlTextWriterWriteAttribute(_writer, (const xmlChar*) "parent", (const xmlChar*) QString::number(category.parent).toStdString().c_str());
|
||||
xmlTextWriterWriteAttribute(_writer, (const xmlChar*) "name", (const xmlChar*) category.name.toStdString().c_str());
|
||||
xmlTextWriterWriteAttribute(_writer, (const xmlChar*) "font", (const xmlChar*) category.font.toStdString().c_str());
|
||||
rgb = category.backcolor.blue();
|
||||
|
Reference in New Issue
Block a user