From 1fcb990bd02da945ac0204caaed6a9aa1f6a7d5f Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Fri, 11 Aug 2017 18:49:13 -0300 Subject: General settings implemented A lot of pt-br translation Some forms sizes fixes init file fully implemented --- Project/MainFrame.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Project/MainFrame.cpp') diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp index 89d550a..e3d8ca8 100644 --- a/Project/MainFrame.cpp +++ b/Project/MainFrame.cpp @@ -16,7 +16,6 @@ #include "PropertiesData.h" MainFrame::MainFrame() : MainFrameBase(NULL) {} - MainFrame::MainFrame(wxWindow* parent, wxLocale* locale, PropertiesData* initProperties) : MainFrameBase(parent) { m_locale = locale; @@ -430,12 +429,9 @@ void MainFrame::OnRotCounterClockClick(wxRibbonButtonBarEvent& event) } void MainFrame::OnGeneralSettingsClick(wxRibbonButtonBarEvent& event) { - Workspace* workspace = static_cast(m_auiNotebook->GetCurrentPage()); - if(workspace) { - GeneralPropertiesForm genPropForm(this, workspace->GetProperties()); - genPropForm.SetInitialSize(); - genPropForm.ShowModal(); - } + GeneralPropertiesForm genPropForm(this, m_generalProperties); + genPropForm.SetInitialSize(); + genPropForm.ShowModal(); } void MainFrame::OnSimulationSettingsClick(wxRibbonButtonBarEvent& event) -- cgit