Commit 8731c101 authored by coppro's avatar coppro

Compatibility check - export is still a reserved word.

parent eca74a16
...@@ -149,8 +149,8 @@ StyleSheetSettings& Settings::stylesheetSettingsFor(const StyleSheet& stylesheet ...@@ -149,8 +149,8 @@ StyleSheetSettings& Settings::stylesheetSettingsFor(const StyleSheet& stylesheet
return *ss; return *ss;
} }
IndexMap<FieldP,ValueP>& Settings::exportOptionsFor(const ExportTemplate& export) { IndexMap<FieldP,ValueP>& Settings::exportOptionsFor(const ExportTemplate& export_template) {
return export_options.get(export.name(), export.option_fields); return export_options.get(export_template.name(), export_template.option_fields);
} }
/// Retrieve the directory to use for settings and other data files /// Retrieve the directory to use for settings and other data files
......
...@@ -142,7 +142,7 @@ class Settings { ...@@ -142,7 +142,7 @@ class Settings {
public: public:
/// Get the options for an export template /// Get the options for an export template
IndexMap<FieldP,ValueP>& exportOptionsFor(const ExportTemplate& export); IndexMap<FieldP,ValueP>& exportOptionsFor(const ExportTemplate& export_template);
// --------------------------------------------------- : Special game stuff // --------------------------------------------------- : Special game stuff
String apprentice_location; String apprentice_location;
......
...@@ -213,8 +213,8 @@ ExportOptionsEditor::ExportOptionsEditor(Window* parent, int id, long style) ...@@ -213,8 +213,8 @@ ExportOptionsEditor::ExportOptionsEditor(Window* parent, int id, long style)
: NativeLookEditor(parent, id, style) : NativeLookEditor(parent, id, style)
{} {}
void ExportOptionsEditor::showExport(const ExportTemplateP& export) { void ExportOptionsEditor::showExport(const ExportTemplateP& export_template) {
setStyles(set->stylesheet, export->option_style); setStyles(set->stylesheet, export_template->option_style);
setData(settings.exportOptionsFor(*export)); setData(settings.exportOptionsFor(*export_template));
} }
...@@ -85,7 +85,7 @@ class ExportOptionsEditor : public NativeLookEditor { ...@@ -85,7 +85,7 @@ class ExportOptionsEditor : public NativeLookEditor {
ExportOptionsEditor(Window* parent, int id, long style = 0); ExportOptionsEditor(Window* parent, int id, long style = 0);
/// Show the options for given export template /// Show the options for given export template
void showExport(const ExportTemplateP& export); void showExport(const ExportTemplateP& export_template);
}; };
// ----------------------------------------------------------------------------- : EOF // ----------------------------------------------------------------------------- : EOF
......
...@@ -62,10 +62,10 @@ void HtmlExportWindow::onOk(wxCommandEvent&) { ...@@ -62,10 +62,10 @@ void HtmlExportWindow::onOk(wxCommandEvent&) {
void HtmlExportWindow::onTemplateSelect(wxCommandEvent&) { void HtmlExportWindow::onTemplateSelect(wxCommandEvent&) {
wxBusyCursor wait; wxBusyCursor wait;
ExportTemplateP export = list->getSelection<ExportTemplate>(); ExportTemplateP export_template = list->getSelection<ExportTemplate>();
handle_pending_errors(); handle_pending_errors();
options->showExport(export); options->showExport(export_template);
settings.gameSettingsFor(*set->game).default_export = export->name(); settings.gameSettingsFor(*set->game).default_export = export_template->name();
UpdateWindowUI(wxUPDATE_UI_RECURSE); UpdateWindowUI(wxUPDATE_UI_RECURSE);
} }
......
...@@ -60,7 +60,7 @@ void GetMember::handle(const DelayedIndexMapsData<Key,Value>& d) { ...@@ -60,7 +60,7 @@ void GetMember::handle(const DelayedIndexMapsData<Key,Value>& d) {
handle(d.read_data); handle(d.read_data);
} }
template <typename Key, typename Value> template <typename Key, typename Value>
void GetDefaultMember::handle(const DelayedIndexMapsData<Key,Value>&) { void GetDefaultMember::handle(const DelayedIndexMapsData<Key,Value>& d) {
handle(d.read_data); handle(d.read_data);
} }
......
...@@ -134,7 +134,7 @@ inline void swap(IndexMap<Key,Value>& a, IndexMap<Key,Value>& b) { ...@@ -134,7 +134,7 @@ inline void swap(IndexMap<Key,Value>& a, IndexMap<Key,Value>& b) {
/* Invariant: read_data is initialized <=> unread_data.empty() /* Invariant: read_data is initialized <=> unread_data.empty()
*/ */
template <typename Key, typename Value> template <typename Key, typename Value>
struct DelayedIndexMapsData : public IntrusivePtrBase<DelayedIndexMapsData> { struct DelayedIndexMapsData : public IntrusivePtrBase<DelayedIndexMapsData<Key, Value> > {
String unread_data; String unread_data;
IndexMap<Key,Value> read_data; IndexMap<Key,Value> read_data;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment