summaryrefslogtreecommitdiffstats
path: root/Project/MainFrame.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-08-11 18:49:13 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-08-11 18:49:13 -0300
commit1fcb990bd02da945ac0204caaed6a9aa1f6a7d5f (patch)
treebfd5888f0d90d1248260e77ebc46492dc6aab250 /Project/MainFrame.cpp
parente5f19af9a5829a307951785e850e53fc4fcfac90 (diff)
downloadPSP.git-1fcb990bd02da945ac0204caaed6a9aa1f6a7d5f.tar.gz
PSP.git-1fcb990bd02da945ac0204caaed6a9aa1f6a7d5f.tar.xz
PSP.git-1fcb990bd02da945ac0204caaed6a9aa1f6a7d5f.zip
General settings implemented
A lot of pt-br translation Some forms sizes fixes init file fully implemented
Diffstat (limited to 'Project/MainFrame.cpp')
-rw-r--r--Project/MainFrame.cpp10
1 files changed, 3 insertions, 7 deletions
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<Workspace*>(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)