From 2b7409b5dd3714d14112e40a1ead8776a6da1576 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 11 Apr 2018 20:00:20 -0300 Subject: Some minor improvements --- Project/MainFrame.cpp | 2 ++ Project/SimulationsSettingsForm.cpp | 1 + 2 files changed, 3 insertions(+) (limited to 'Project') diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp index 7d129b4..5afff94 100644 --- a/Project/MainFrame.cpp +++ b/Project/MainFrame.cpp @@ -63,6 +63,7 @@ MainFrame::MainFrame(wxWindow* parent, wxLocale* locale, PropertiesData* initPro m_auiNotebook->Layout(); newWorkspace->Redraw(); newWorkspace->SetJustOpened(true); + newWorkspace->Fit(); m_projectNumber++; } } @@ -299,6 +300,7 @@ void MainFrame::OnOpenClick(wxRibbonButtonBarEvent& event) m_auiNotebook->Layout(); newWorkspace->Redraw(); newWorkspace->SetJustOpened(true); + newWorkspace->Fit(); m_projectNumber++; } else { wxMessageDialog msgDialog(this, _("It was not possible to open the selected file."), _("Error"), diff --git a/Project/SimulationsSettingsForm.cpp b/Project/SimulationsSettingsForm.cpp index 1e32b1d..b7878d5 100644 --- a/Project/SimulationsSettingsForm.cpp +++ b/Project/SimulationsSettingsForm.cpp @@ -56,6 +56,7 @@ SimulationsSettingsForm::SimulationsSettingsForm(wxWindow* parent, PropertiesDat m_textCtrlAccFactor->SetValue(Element::StringFromDouble(data.accFator)); m_textCtrlPFTolerance->SetValue(wxString::Format("%g", data.powerFlowTolerance)); m_textCtrlPFMaxIterations->SetValue(wxString::Format("%d", data.powerFlowMaxIterations)); + m_textCtrlPFSlackBusAngle->SetValue(Element::StringFromDouble(data.initAngle)); m_textCtrlTimeStep->SetValue(wxString::Format("%g", data.timeStep)); m_textCtrlSimTime->SetValue(Element::StringFromDouble(data.stabilitySimulationTime)); m_textCtrlFreq->SetValue(Element::StringFromDouble(data.stabilityFrequency)); -- cgit