summaryrefslogtreecommitdiff
path: root/library/process_xml.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:12:46 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:12:46 +0200
commitb338e29fd3eaf700f8c8360aa0310048ba941d54 (patch)
tree122f8ef3790d12cd10275ef7453a9e8053322d78 /library/process_xml.cpp
parent3.18 (diff)
downloadFreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.gz
FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.bz2
FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.zip
3.19
Diffstat (limited to 'library/process_xml.cpp')
-rw-r--r--library/process_xml.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/library/process_xml.cpp b/library/process_xml.cpp
index 1b5f6360..69dad7f3 100644
--- a/library/process_xml.cpp
+++ b/library/process_xml.cpp
@@ -88,6 +88,7 @@ void xmlAccess::OptionalDialogs::resetDialogs()
warningNotEnoughDiskSpace = true;
warningUnresolvedConflicts = true;
warningSyncDatabase = true;
+ warningRecyclerMissing = true;
popupOnConfigChange = true;
showSummaryBeforeSync = true;
}
@@ -747,6 +748,7 @@ void readConfig(const XmlIn& in, XmlGlobalSettings& config)
inOpt["CheckForFreeDiskSpace"](config.optDialogs.warningNotEnoughDiskSpace);
inOpt["CheckForUnresolvedConflicts"](config.optDialogs.warningUnresolvedConflicts);
inOpt["NotifyDatabaseError"](config.optDialogs.warningSyncDatabase);
+ inOpt["CheckMissingRecycleBin"](config.optDialogs.warningRecyclerMissing);
inOpt["PopupOnConfigChange"](config.optDialogs.popupOnConfigChange);
inOpt["SummaryBeforeSync" ](config.optDialogs.showSummaryBeforeSync);
@@ -761,6 +763,8 @@ void readConfig(const XmlIn& in, XmlGlobalSettings& config)
inWnd["PosY" ](config.gui.dlgPos.y);
inWnd["Maximized"](config.gui.isMaximized);
+ inWnd["MaxFolderPairsVisible"](config.gui.maxFolderPairsVisible);
+
inWnd["ManualDeletionOnBothSides"](config.gui.deleteOnBothSides);
inWnd["ManualDeletionUseRecycler"](config.gui.useRecyclerForManualDeletion);
inWnd["RespectCaseOnSearch" ](config.gui.textSearchRespectCase);
@@ -796,10 +800,8 @@ void readConfig(const XmlIn& in, XmlGlobalSettings& config)
inGui["ExternalApplications"](config.gui.externelApplications);
//load config file history
- XmlIn inHist = inGui["ConfigHistory"];
-
- inHist.attribute("LastUsed", config.gui.lastUsedConfigFile);
- inHist(config.gui.cfgFileHistory);
+ inGui["LastConfigActive"](config.gui.lastUsedConfigFiles);
+ inGui["ConfigHistory"](config.gui.cfgFileHistory);
//last update check
inGui["LastUpdateCheck"](config.gui.lastUpdateCheck);
@@ -812,7 +814,7 @@ void readConfig(const XmlIn& in, XmlGlobalSettings& config)
template <class ConfigType>
void readConfig(const wxString& filename, XmlType type, ConfigType& config)
{
- if (!fileExists(wxToZ(filename)))
+ if (!fileExists(toZ(filename)))
throw FfsXmlError(wxString(_("File does not exist:")) + wxT("\n\"") + filename + wxT("\""));
XmlDoc doc;
@@ -1003,6 +1005,7 @@ void writeConfig(const XmlGlobalSettings& config, XmlOut& out)
outOpt["CheckForFreeDiskSpace"](config.optDialogs.warningNotEnoughDiskSpace);
outOpt["CheckForUnresolvedConflicts"](config.optDialogs.warningUnresolvedConflicts);
outOpt["NotifyDatabaseError"](config.optDialogs.warningSyncDatabase);
+ outOpt["CheckMissingRecycleBin"](config.optDialogs.warningRecyclerMissing);
outOpt["PopupOnConfigChange"](config.optDialogs.popupOnConfigChange);
outOpt["SummaryBeforeSync" ](config.optDialogs.showSummaryBeforeSync);
@@ -1017,6 +1020,8 @@ void writeConfig(const XmlGlobalSettings& config, XmlOut& out)
outWnd["PosY" ](config.gui.dlgPos.y);
outWnd["Maximized"](config.gui.isMaximized);
+ outWnd["MaxFolderPairsVisible"](config.gui.maxFolderPairsVisible);
+
outWnd["ManualDeletionOnBothSides"](config.gui.deleteOnBothSides);
outWnd["ManualDeletionUseRecycler"](config.gui.useRecyclerForManualDeletion);
outWnd["RespectCaseOnSearch" ](config.gui.textSearchRespectCase);
@@ -1048,10 +1053,8 @@ void writeConfig(const XmlGlobalSettings& config, XmlOut& out)
outGui["ExternalApplications"](config.gui.externelApplications);
//load config file history
- XmlOut outHist = outGui["ConfigHistory"];
-
- outHist.attribute("LastUsed", config.gui.lastUsedConfigFile);
- outHist(config.gui.cfgFileHistory);
+ outGui["LastConfigActive"](config.gui.lastUsedConfigFiles);
+ outGui["ConfigHistory"](config.gui.cfgFileHistory);
//last update check
outGui["LastUpdateCheck"](config.gui.lastUpdateCheck);
bgstack15