diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-18 17:15:35 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-18 17:15:35 -0200 |
commit | 46115e4326fc679fe6f1f2c32164b95420e689eb (patch) | |
tree | c5c60bad223bd8e3c97252b31ab8ed2b5e3e2a25 /Project/MainFrame.cpp | |
parent | 44a7475053ea042bfca9cd31998ddb5b16910688 (diff) | |
download | PSP.git-46115e4326fc679fe6f1f2c32164b95420e689eb.tar.gz PSP.git-46115e4326fc679fe6f1f2c32164b95420e689eb.tar.xz PSP.git-46115e4326fc679fe6f1f2c32164b95420e689eb.zip |
Some doc, class restruct and SC power implemented
Diffstat (limited to 'Project/MainFrame.cpp')
-rw-r--r-- | Project/MainFrame.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp index 254c081..bb180a3 100644 --- a/Project/MainFrame.cpp +++ b/Project/MainFrame.cpp @@ -249,7 +249,13 @@ void MainFrame::OnProjectSettingsClick(wxRibbonButtonBarEvent& event) {} void MainFrame::OnRedoClick(wxRibbonButtonBarEvent& event) {} void MainFrame::OnResetVoltagesClick(wxRibbonButtonBarEvent& event) {} void MainFrame::OnRunStabilityClick(wxRibbonButtonBarEvent& event) {} -void MainFrame::OnSCPowerClick(wxRibbonButtonBarEvent& event) {} +void MainFrame::OnSCPowerClick(wxRibbonButtonBarEvent& event) +{ + Workspace* workspace = static_cast<Workspace*>(m_auiNotebook->GetCurrentPage()); + if(workspace) { + workspace->RunSCPower(); + } +} void MainFrame::OnSaveAsClick(wxRibbonButtonBarEvent& event) { Workspace* workspace = static_cast<Workspace*>(m_auiNotebook->GetCurrentPage()); |