Update settings.cpp

Removed UI elements for graph image generation setting. Part of issue #90 work.
This commit is contained in:
WrinklyNinja
2014-01-29 10:36:46 +00:00
parent d6f167bf4c
commit 879faf9f2e
-10
View File
@@ -62,7 +62,6 @@ SettingsFrame::SettingsFrame(wxWindow *parent, const wxString& title, YAML::Node
UpdateMasterlistBox = new wxCheckBox(this, wxID_ANY, translate("Update masterlist before sorting."));
reportViewBox = new wxCheckBox(this, wxID_ANY, translate("View reports externally in default browser."));
displayGraphImageBox = new wxCheckBox(this, wxID_ANY, translate("Generate and display plugin graph images."));
//Set up list columns.
gamesList->AppendColumn(translate("Name"));
@@ -118,8 +117,6 @@ SettingsFrame::SettingsFrame(wxWindow *parent, const wxString& title, YAML::Node
bigBox->Add(reportViewBox, wholeItem);
bigBox->Add(displayGraphImageBox, wholeItem);
bigBox->AddSpacer(10);
bigBox->Add(new wxStaticText(this, wxID_ANY, translate("Language and game changes will be applied after BOSS is restarted.")), wholeItem);
@@ -178,11 +175,6 @@ void SettingsFrame::SetDefaultValues() {
reportViewBox->SetValue(view);
}
if (_settings["Generate Graph Image"]) {
bool graph = _settings["Generate Graph Image"].as<bool>();
displayGraphImageBox->SetValue(graph);
}
for (size_t i=0, max=_games.size(); i < max; ++i) {
gamesList->InsertItem(i, FromUTF8(_games[i].Name()));
gamesList->SetItem(i, 1, FromUTF8(boss::Game(_games[i].Id()).FolderName()));
@@ -230,8 +222,6 @@ void SettingsFrame::OnQuit(wxCommandEvent& event) {
_settings["View Report Externally"] = reportViewBox->IsChecked();
_settings["Generate Graph Image"] = displayGraphImageBox->IsChecked();
for (size_t i=0,max=gamesList->GetItemCount(); i < max; ++i) {
string name, folder, master, url, path, registry;
unsigned int id;