mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add setting to export card notes in meta data
This commit is contained in:
@@ -52,7 +52,7 @@ public:
|
||||
private:
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
||||
wxCheckBox* high_quality, *borders, *draw_editing, *spellcheck_enabled, *non_normal_export;
|
||||
wxCheckBox* high_quality, *borders, *draw_editing, *spellcheck_enabled, *non_normal_export, *notes_export;
|
||||
|
||||
wxComboBox* zoom;
|
||||
int zoom_int;
|
||||
@@ -226,6 +226,7 @@ DisplayPreferencesPage::DisplayPreferencesPage(Window* parent)
|
||||
draw_editing = new wxCheckBox(this, wxID_ANY, _BUTTON_("show editing hints"));
|
||||
spellcheck_enabled = new wxCheckBox(this, wxID_ANY, _BUTTON_("spellcheck enabled"));
|
||||
non_normal_export = new wxCheckBox(this, wxID_ANY, _BUTTON_("zoom export"));
|
||||
notes_export = new wxCheckBox(this, wxID_ANY, _BUTTON_("notes export"));
|
||||
zoom = new wxComboBox(this, ID_ZOOM);
|
||||
export_zoom = new wxComboBox(this, ID_EXPORT_ZOOM);
|
||||
|
||||
@@ -235,7 +236,8 @@ DisplayPreferencesPage::DisplayPreferencesPage(Window* parent)
|
||||
borders-> SetValue( settings.default_stylesheet_settings.card_borders());
|
||||
draw_editing-> SetValue( settings.default_stylesheet_settings.card_draw_editing());
|
||||
spellcheck_enabled->SetValue( settings.default_stylesheet_settings.card_spellcheck_enabled());
|
||||
non_normal_export->SetValue(!settings.default_stylesheet_settings.card_normal_export());
|
||||
non_normal_export-> SetValue(!settings.default_stylesheet_settings.card_normal_export());
|
||||
notes_export-> SetValue( settings.default_stylesheet_settings.card_notes_export());
|
||||
zoom_int = static_cast<int>(settings.default_stylesheet_settings.card_zoom() * 100);
|
||||
zoom->SetValue(String::Format(_("%d%%"),zoom_int));
|
||||
int zoom_choices[] = { 50,66,75,80,100,120,125,150,175,200 };
|
||||
@@ -271,6 +273,7 @@ DisplayPreferencesPage::DisplayPreferencesPage(Window* parent)
|
||||
s2->Add(s3, 0, wxEXPAND | wxALL, 4);
|
||||
s2->Add(s4, 0, wxEXPAND | wxALL, 4);
|
||||
s2->Add(non_normal_export, 0, wxEXPAND | wxALL, 4);
|
||||
s2->Add(notes_export, 0, wxEXPAND | wxALL, 4);
|
||||
|
||||
s->Add(s2, 0, wxEXPAND | wxALL, 8);
|
||||
|
||||
@@ -284,6 +287,7 @@ void DisplayPreferencesPage::store() {
|
||||
settings.default_stylesheet_settings.card_draw_editing = draw_editing->GetValue();
|
||||
settings.default_stylesheet_settings.card_spellcheck_enabled = spellcheck_enabled->GetValue();
|
||||
settings.default_stylesheet_settings.card_normal_export = !non_normal_export->GetValue();
|
||||
settings.default_stylesheet_settings.card_notes_export = notes_export->GetValue();
|
||||
|
||||
updateZoom();
|
||||
settings.default_stylesheet_settings.card_zoom = zoom_int / 100.0;
|
||||
|
||||
Reference in New Issue
Block a user