summaryrefslogtreecommitdiff
path: root/LiteEditor/project_settings_dlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'LiteEditor/project_settings_dlg.cpp')
-rw-r--r--LiteEditor/project_settings_dlg.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/LiteEditor/project_settings_dlg.cpp b/LiteEditor/project_settings_dlg.cpp
index d3b7affa..e86c55e5 100644
--- a/LiteEditor/project_settings_dlg.cpp
+++ b/LiteEditor/project_settings_dlg.cpp
@@ -90,8 +90,9 @@ ProjectSettingsDlg::ProjectSettingsDlg(wxWindow* parent,
GetSizer()->Fit(this);
wxSize sz = GetSize();
- Centre();
- WindowAttrManager::Load(this, wxT("ProjectSettingsDlg"), NULL);
+ CentreOnParent();
+ SetName("ProjectSettingsDlg");
+ WindowAttrManager::Load(this);
// Make sure that all the controls are visible
wxSize newSize = GetSize();
@@ -165,7 +166,6 @@ ProjectSettingsDlg::~ProjectSettingsDlg()
PluginManager::Get()->UnHookProjectSettingsTab(m_treebook, m_projectName, wxEmptyString /* all tabs */);
EditorConfigST::Get()->SetString(wxT("PSSelectedPage"), m_treebook->GetPageText(m_treebook->GetSelection()));
- WindowAttrManager::Save(this, wxT("ProjectSettingsDlg"), NULL);
}
void ProjectSettingsDlg::OnButtonOK(wxCommandEvent& event)
@@ -188,7 +188,6 @@ void ProjectSettingsDlg::OnButtonApply(wxCommandEvent& event)
void ProjectSettingsDlg::SaveValues()
{
-
ProjectSettingsPtr projSettingsPtr = ManagerST::Get()->GetProjectSettings(m_projectName);
BuildConfigPtr buildConf = projSettingsPtr->GetBuildConfiguration(m_configName);
if(!buildConf) {
@@ -240,7 +239,7 @@ void ProjectSettingsDlg::LoadValues(const wxString& configName)
GlobalSettingsPanel* globalPage = dynamic_cast<GlobalSettingsPanel*>(page);
if(globalPage) {
// update the project name
- //globalPage->SetProjectName(m_projectName);
+ // globalPage->SetProjectName(m_projectName);
}
p->Load(buildConf);
}
@@ -280,10 +279,7 @@ void ProjectSettingsDlg::OnButtonHelp(wxCommandEvent& e)
#endif
}
-void ProjectSettingsDlg::OnButtonApplyUI(wxUpdateUIEvent& event)
-{
- event.Enable(GetIsDirty());
-}
+void ProjectSettingsDlg::OnButtonApplyUI(wxUpdateUIEvent& event) { event.Enable(GetIsDirty()); }
void ProjectSettingsDlg::OnConfigurationChanged(wxCommandEvent& event)
{
@@ -532,10 +528,7 @@ void GlobalSettingsPanel::OnCustomEditorClicked(wxCommandEvent& event)
}
}
-void GlobalSettingsPanel::OnValueChanged(wxPropertyGridEvent& event)
-{
- m_dlg->SetIsDirty(true);
-}
+void GlobalSettingsPanel::OnValueChanged(wxPropertyGridEvent& event) { m_dlg->SetIsDirty(true); }
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////