703 : wxPanel(parent,
id, pos, size,
style)
704{
705 m_parent = parent;
706
707 wxWindow* btn_parent = this;
708
714 }
717 }
720 }
723 }
724 }
729 }
732 }
735 }
739 }
742 }
745 }
746 }
747 else {
750 }
753 }
756 }
759 }
760 else {
763 }
764
765 }
766
767 auto top_sizer = new wxBoxSizer(wxHORIZONTAL);
768
769 top_sizer->Add(0, 0, 1, wxEXPAND, 0);
772
774 [this, i](wxCommandEvent& evt) {
775 wxCommandEvent event(EVT_CALI_ACTION);
776 event.SetEventObject(m_parent);
778 wxPostEvent(m_parent, event);
779 });
780 }
781 top_sizer->Add(0, 0, 1, wxEXPAND, 0);
782
783 this->SetSizer(top_sizer);
784 top_sizer->Fit(this);
785}
#define style
Definition WipeTowerDialog.cpp:101
std::vector< CaliPageButton * > m_action_btns
Definition CalibrationWizardPage.hpp:297
@ CALI_ACTION_NEXT
Definition CalibrationWizardPage.hpp:231
@ CALI_ACTION_FLOW_FINE_SAVE
Definition CalibrationWizardPage.hpp:236
@ CALI_ACTION_PA_SAVE
Definition CalibrationWizardPage.hpp:233
@ CALI_ACTION_AUTO_CALI
Definition CalibrationWizardPage.hpp:225
@ CALI_ACTION_PREV
Definition CalibrationWizardPage.hpp:230
@ CALI_ACTION_MANUAL_CALI
Definition CalibrationWizardPage.hpp:224
@ CALI_ACTION_MANAGE_RESULT
Definition CalibrationWizardPage.hpp:223
@ CALI_ACTION_CALI_NEXT
Definition CalibrationWizardPage.hpp:232
@ CALI_ACTION_FLOW_COARSE_SAVE
Definition CalibrationWizardPage.hpp:235
@ CALI_ACTION_CALI
Definition CalibrationWizardPage.hpp:227
@ CALI_ACTION_START
Definition CalibrationWizardPage.hpp:226
@ CALI_ACTION_COMMON_SAVE
Definition CalibrationWizardPage.hpp:237
@ CALI_ACTION_FLOW_SAVE
Definition CalibrationWizardPage.hpp:234
@ CALI_ACTION_FLOW_CALI_STAGE_2
Definition CalibrationWizardPage.hpp:228
@ CALI_PAGE_FINE_SAVE
Definition CalibrationWizardPage.hpp:87
@ CALI_PAGE_COARSE_SAVE
Definition CalibrationWizardPage.hpp:85
@ CALI_PAGE_FLOW_SAVE
Definition CalibrationWizardPage.hpp:89
@ CALI_PAGE_PRESET
Definition CalibrationWizardPage.hpp:83
@ CALI_PAGE_COMMON_SAVE
Definition CalibrationWizardPage.hpp:90
@ CALI_PAGE_START
Definition CalibrationWizardPage.hpp:82
@ CALI_PAGE_CALI
Definition CalibrationWizardPage.hpp:84
@ CALI_PAGE_PA_SAVE
Definition CalibrationWizardPage.hpp:88
@ Calib_PA_Line
Definition calib.hpp:25
@ Calib_Flow_Rate
Definition calib.hpp:29