Use QXml for export engine
Change import/export engine filter to Qt format Qt doesn't add extension in its file dialog Fix a bug : op was not correctly set by default in OnOperationModified (GridAccount)
This commit is contained in:
@@ -199,8 +199,8 @@ GrisbiImportEngine::GrisbiImportEngine()
|
||||
{
|
||||
KissCount::RegisterImportEngine(this);
|
||||
|
||||
_shortExt = "gsb";
|
||||
_longExt = _("Grisbi files (*.gsb)|*.gsb");
|
||||
_shortExt = ".gsb";
|
||||
_longExt = _("Grisbi files (*.gsb)");
|
||||
|
||||
_sax.startElement = GrisbiStartElement ;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,11 @@ QString ImportEngine::GetFileExt()
|
||||
return _(_longExt.toStdString().c_str());
|
||||
}
|
||||
|
||||
QString ImportEngine::GetShortExt()
|
||||
{
|
||||
return _shortExt;
|
||||
}
|
||||
|
||||
std::vector<QString> ExplodeString(QString& s)
|
||||
{
|
||||
QString tmp = s, cur = "";
|
||||
|
||||
@@ -41,9 +41,11 @@ public:
|
||||
~ImportEngine();
|
||||
|
||||
// Get supported file extension. Example :
|
||||
// "OFX files (*.ofx)|*.ofx"
|
||||
// "OFX files (*.ofx)"
|
||||
virtual QString GetFileExt();
|
||||
|
||||
virtual QString GetShortExt();
|
||||
|
||||
// Handle the file
|
||||
virtual bool HandleFile(const QString& path, User* user, Database* db, KissCount* kiss)=0;
|
||||
|
||||
|
||||
@@ -136,8 +136,8 @@ OFXImportEngine::OFXImportEngine()
|
||||
ofx_set_transaction_cb(_ctx, transaction_cb, this);
|
||||
ofx_set_statement_cb(_ctx, account_balance_cb, this);
|
||||
|
||||
_shortExt = "ofx";
|
||||
_longExt = _("OFX files (*.ofx)|*.ofx");
|
||||
_shortExt = ".ofx";
|
||||
_longExt = _("OFX files (*.ofx)");
|
||||
}
|
||||
|
||||
OFXImportEngine::~OFXImportEngine()
|
||||
|
||||
@@ -263,8 +263,8 @@ XMLImportEngine::XMLImportEngine()
|
||||
{
|
||||
KissCount::RegisterImportEngine(this);
|
||||
|
||||
_shortExt = "xml";
|
||||
_longExt = _("KissCount xml files (*.xml)|*.xml");
|
||||
_shortExt = ".xml";
|
||||
_longExt = _("KissCount xml files (*.xml)");
|
||||
|
||||
_sax.startElement = XmlStartElement ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user