1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Dialogue::Dialogue() : wxDialog(NULL,wxID_ANY,wxT("Dialogue"))
{
wxBoxSizer *main_sizer = new wxBoxSizer(wxVERTICAL);
wxPanel *main_window = new wxPanel(this,wxID_ANY);
wxBoxSizer *main_sub_sizer = new wxBoxSizer(wxVERTICAL);
wxNotebook *noteBookTab = new wxNotebook(main_window, wxID_ANY);
/*creation of the tabs*/
frame_type_options = FrameTypeOptions(noteBookTab);
rate_control = RateControl(noteBookTab);
analysis = Analysis(noteBookTab);
input_output = Output(noteBookTab);
/*adding tabs to the noteBookTab*/
noteBookTab->AddPage(frame_type_options,_T("Frame-Type Optionss"));
noteBookTab->AddPage(rate_control,_T("Rate Control"));
noteBookTab->AddPage(analysis,_T("Analysis"));
noteBookTab->AddPage(input_output,_T("Input/Output"));
/*add noteBookTab in the main panel*/
main_sub_sizer->Add(noteBookTab,1,wxALL|wxEXPAND,5);
main_window->SetSizer( main_sub_sizer );
main_sizer->Add(main_window,1,wxALL|wxEXPAND,5);
this->SetSizer( main_sizer );
this->Layout();
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( Dialogue::OnClose ) );
}
Dialogue::~Dialogue()
{
} |
Partager