summaryrefslogtreecommitdiffstats
path: root/Project/MainFrameBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/MainFrameBase.cpp')
-rw-r--r--Project/MainFrameBase.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Project/MainFrameBase.cpp b/Project/MainFrameBase.cpp
index 6795ca0..3e1da85 100644
--- a/Project/MainFrameBase.cpp
+++ b/Project/MainFrameBase.cpp
@@ -263,7 +263,7 @@ MainFrameBase::MainFrameBase(wxWindow* parent,
m_ribbonButtonBarSimulations->AddButton(ID_RIBBON_RUNSTAB, _("Run Stability"),
wxXmlResource::Get()->LoadBitmap(wxT("playStopped32")),
- _("Run the stability calculations"), wxRIBBON_BUTTON_NORMAL);
+ _("Run the stability calculations"), wxRIBBON_BUTTON_HYBRID);
m_ribbonButtonBarSimulations->AddButton(ID_RIBBON_FAULT, _("Fault"),
wxXmlResource::Get()->LoadBitmap(wxT("fault32")),
@@ -387,6 +387,9 @@ MainFrameBase::MainFrameBase(wxWindow* parent,
m_ribbonButtonBarSimulations->Connect(ID_RIBBON_RUNSTAB, wxEVT_COMMAND_RIBBONBUTTON_CLICKED,
wxRibbonButtonBarEventHandler(MainFrameBase::OnRunStabilityClick), NULL,
this);
+ m_ribbonButtonBarSimulations->Connect(ID_RIBBON_RUNSTAB, wxEVT_COMMAND_RIBBONBUTTON_DROPDOWN_CLICKED,
+ wxRibbonButtonBarEventHandler(MainFrameBase::OnStabilityDropdown), NULL,
+ this);
m_ribbonButtonBarSimulations->Connect(ID_RIBBON_FAULT, wxEVT_COMMAND_RIBBONBUTTON_CLICKED,
wxRibbonButtonBarEventHandler(MainFrameBase::OnFaultClick), NULL, this);
m_ribbonButtonBarSimulations->Connect(ID_RIBBON_SCPOWER, wxEVT_COMMAND_RIBBONBUTTON_CLICKED,
@@ -474,6 +477,9 @@ MainFrameBase::~MainFrameBase()
m_ribbonButtonBarSimulations->Disconnect(ID_RIBBON_RUNSTAB, wxEVT_COMMAND_RIBBONBUTTON_CLICKED,
wxRibbonButtonBarEventHandler(MainFrameBase::OnRunStabilityClick), NULL,
this);
+ m_ribbonButtonBarSimulations->Disconnect(ID_RIBBON_RUNSTAB, wxEVT_COMMAND_RIBBONBUTTON_DROPDOWN_CLICKED,
+ wxRibbonButtonBarEventHandler(MainFrameBase::OnStabilityDropdown), NULL,
+ this);
m_ribbonButtonBarSimulations->Disconnect(ID_RIBBON_FAULT, wxEVT_COMMAND_RIBBONBUTTON_CLICKED,
wxRibbonButtonBarEventHandler(MainFrameBase::OnFaultClick), NULL, this);
m_ribbonButtonBarSimulations->Disconnect(ID_RIBBON_SCPOWER, wxEVT_COMMAND_RIBBONBUTTON_CLICKED,