Citation :
// -*- C++ -*- generated by wxGlade 0.3.3 on Tue Jun 22 10:08:31 2004
#include "MyFrame1.h"
MyFrame1::MyFrame1(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size/*, long style*/):
wxFrame(parent, id, title, pos, size, wxDEFAULT_FRAME_STYLE)
{
// begin wxGlade: MyFrame1::MyFrame1
notebook_1 = new wxNotebook(this, -1, wxDefaultPosition, wxDefaultSize, 0);
notebook_simulation = new wxPanel(notebook_1, -1);
notebook_graphe_transition = new wxPanel(notebook_1, -1);
notebook_nouvelle_chaine_corps = new wxPanel(notebook_1, -1);
frame_2_menubar = new wxMenuBar();
SetMenuBar(frame_2_menubar);
wxMenu* wxglade_tmp_menu_1 = new wxMenu();
wxglade_tmp_menu_1->Append(wxNewId(), wxT("nouveau" ), wxT("" ), wxITEM_NORMAL);
frame_2_menubar->Append(wxglade_tmp_menu_1, wxT("menu" ));
static_line_13 = new wxStaticLine(notebook_nouvelle_chaine_corps, -1);
panel_espace_haut = new wxPanel(notebook_nouvelle_chaine_corps, -1);
static_line_11 = new wxStaticLine(notebook_nouvelle_chaine_corps, -1);
label_nb_etat = new wxStaticText(notebook_nouvelle_chaine_corps, -1, wxT("1/ Nombre d'etats : " ));
text_nb_etat = new wxTextCtrl(notebook_nouvelle_chaine_corps, -1, wxT("" ));
static_line_1 = new wxStaticLine(notebook_nouvelle_chaine_corps, -1);
label_modele = new wxStaticText(notebook_nouvelle_chaine_corps, -1, wxT("2/ Modele Homogene ? " ));
checkbox_modele = new wxCheckBox(notebook_nouvelle_chaine_corps, -1, wxT("OUI " ));
static_line_15 = new wxStaticLine(notebook_nouvelle_chaine_corps, -1);
label_iteration = new wxStaticText(notebook_nouvelle_chaine_corps, -1, wxT("- Nombre d'iterations : " ));
text_iteration = new wxTextCtrl(notebook_nouvelle_chaine_corps, -1, wxT("" ));
static_line_3 = new wxStaticLine(notebook_nouvelle_chaine_corps, -1);
label_matrice = new wxStaticText(notebook_nouvelle_chaine_corps, -1, wxT("3/ Matrice de transition : " ));
label_choix_matrice = new wxStaticText(notebook_nouvelle_chaine_corps, -1, wxT("choix de la matrice de transition : " ));
const wxString combo_box_choix_matrice_choices[] = {
};
combo_box_choix_matrice = new wxComboBox(notebook_nouvelle_chaine_corps, -1, wxT("" ), wxDefaultPosition, wxDefaultSize, 0, combo_box_choix_matrice_choices, wxCB_DROPDOWN);
button_test = new wxButton(notebook_nouvelle_chaine_corps, -1, wxT("test agrandissement" ));
static_line_4 = new wxStaticLine(notebook_nouvelle_chaine_corps, -1);
label_validation = new wxStaticText(notebook_nouvelle_chaine_corps, -1, wxT("4/ Validation :" ));
button_valider = new wxButton(notebook_nouvelle_chaine_corps, -1, wxT("Valider " ));
button_effacer = new wxButton(notebook_nouvelle_chaine_corps, -1, wxT("Effacer" ));
static_line_5 = new wxStaticLine(notebook_nouvelle_chaine_corps, -1);
static_line_14 = new wxStaticLine(notebook_graphe_transition, -1);
panel_2 = new wxPanel(notebook_simulation, -1);
static_line_12 = new wxStaticLine(notebook_simulation, -1);
label_vect_init = new wxStaticText(notebook_simulation, -1, wxT(" 1/ Saissisez le vecteur de probabilité initiale :" ));
static_line_8 = new wxStaticLine(notebook_simulation, -1);
label_vect_iteration = new wxStaticText(notebook_simulation, -1, wxT("2/ Pour quelle itération souhaitez-vous effectuer une simulation?" ));
label_iteration_onglet3 = new wxStaticText(notebook_simulation, -1, wxT(" - Itération : " ));
text_iteration_onglet3 = new wxTextCtrl(notebook_simulation, -1, wxT("" ));
button_valider_iteration = new wxButton(notebook_simulation, -1, wxT("Valider" ));
static_line_9 = new wxStaticLine(notebook_simulation, -1);
label_resultat = new wxStaticText(notebook_simulation, -1, wxT("3/ résultat :" ));
static_line_10 = new wxStaticLine(notebook_simulation, -1);
set_properties();
do_layout();
// end wxGlade
}
void MyFrame1::set_properties()
{
// begin wxGlade: MyFrame1::set_properties
SetTitle(wxT("frame_2" ));
text_nb_etat->SetFont(wxFont(14, wxDEFAULT, wxNORMAL, wxNORMAL, 0, "" ));
checkbox_modele->SetValue(1);
combo_box_choix_matrice->SetSelection(-1);
// end wxGlade
}
void MyFrame1::do_layout()
{
// begin wxGlade: MyFrame1::do_layout
wxBoxSizer* sizer_premier = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* sizer_onglet3 = new wxBoxSizer(wxVERTICAL);
wxStaticBoxSizer* sizer_23 = new wxStaticBoxSizer(new wxStaticBox(notebook_simulation, -1, wxT("" )), wxHORIZONTAL);
wxBoxSizer* sizer_onglet3_q3 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_onglet3_q2_iteration = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_onglet3_q2 = new wxBoxSizer(wxHORIZONTAL);
wxStaticBoxSizer* sizer_22 = new wxStaticBoxSizer(new wxStaticBox(notebook_simulation, -1, wxT("" )), wxHORIZONTAL);
wxBoxSizer* sizer_onglet3_q1 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_espace_onglet3 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_onglet2 = new wxBoxSizer(wxVERTICAL);
wxStaticBoxSizer* sizer_28 = new wxStaticBoxSizer(new wxStaticBox(notebook_graphe_transition, -1, wxT("" )), wxHORIZONTAL);
wxBoxSizer* sizer_onglet1 = new wxBoxSizer(wxVERTICAL);
wxBoxSizer* sizer_onglet1_q4_bouton = new wxBoxSizer(wxHORIZONTAL);
wxStaticBoxSizer* atiosizer_bouton = new wxStaticBoxSizer(new wxStaticBox(notebook_nouvelle_chaine_corps, -1, wxT("" )), wxHORIZONTAL);
wxBoxSizer* sizer_onglet1_q4 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_test_agrandi = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_onglet1_q3 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_27 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_onglet1_q2 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_onglet1_q1 = new wxBoxSizer(wxHORIZONTAL);
wxBoxSizer* sizer_espace_onglet1 = new wxBoxSizer(wxHORIZONTAL);
sizer_onglet1->Add(static_line_13, 0, wxEXPAND, 0);
sizer_espace_onglet1->Add(panel_espace_haut, 1, wxEXPAND, 0);
sizer_onglet1->Add(sizer_espace_onglet1, 0, wxALL|wxEXPAND, 5);
sizer_onglet1->Add(static_line_11, 0, wxEXPAND, 0);
sizer_onglet1_q1->Add(label_nb_etat, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5);
sizer_onglet1_q1->Add(text_nb_etat, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxSHAPED, 2);
sizer_onglet1->Add(sizer_onglet1_q1, 0, wxALL|wxEXPAND, 5);
sizer_onglet1->Add(static_line_1, 0, wxEXPAND, 0);
sizer_onglet1_q2->Add(label_modele, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5);
sizer_onglet1_q2->Add(checkbox_modele, 1, wxALIGN_CENTER_VERTICAL, 0);
sizer_onglet1->Add(sizer_onglet1_q2, 0, wxALL|wxEXPAND, 5);
sizer_onglet1->Add(static_line_15, 0, wxEXPAND, 0);
sizer_27->Add(100, 20, 0, 0, 0);
sizer_27->Add(label_iteration, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 3);
sizer_27->Add(text_iteration, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxSHAPED, 3);
sizer_onglet1->Add(sizer_27, 0, wxEXPAND, 0);
sizer_onglet1->Add(static_line_3, 0, wxEXPAND, 0);
sizer_onglet1_q3->Add(label_matrice, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5);
sizer_onglet1_q3->Add(20, 20, 1, 0, 0);
sizer_onglet1_q3->Add(label_choix_matrice, 0, wxALIGN_CENTER_VERTICAL, 0);
sizer_onglet1_q3->Add(combo_box_choix_matrice, 0, 0, 0);
sizer_onglet1->Add(sizer_onglet1_q3, 0, wxALL|wxEXPAND, 5);
sizer_test_agrandi->Add(button_test, 1, wxEXPAND, 0);
sizer_onglet1->Add(sizer_test_agrandi, 1, wxEXPAND, 0);
sizer_onglet1->Add(static_line_4, 0, wxEXPAND, 0);
sizer_onglet1_q4->Add(label_validation, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
sizer_onglet1->Add(sizer_onglet1_q4, 0, wxEXPAND, 0);
sizer_onglet1_q4_bouton->Add(20, 20, 1, 0, 0);
atiosizer_bouton->Add(button_valider, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 20);
atiosizer_bouton->Add(30, 40, 0, 0, 0);
atiosizer_bouton->Add(button_effacer, 0, wxRIGHT|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 20);
sizer_onglet1_q4_bouton->Add(atiosizer_bouton, 0, wxALL|wxEXPAND, 10);
sizer_onglet1_q4_bouton->Add(20, 20, 1, 0, 0);
sizer_onglet1->Add(sizer_onglet1_q4_bouton, 0, wxEXPAND, 0);
sizer_onglet1->Add(static_line_5, 0, wxEXPAND, 0);
notebook_nouvelle_chaine_corps->SetAutoLayout(true);
notebook_nouvelle_chaine_corps->SetSizer(sizer_onglet1);
sizer_onglet1->Fit(notebook_nouvelle_chaine_corps);
sizer_onglet1->SetSizeHints(notebook_nouvelle_chaine_corps);
sizer_onglet2->Add(static_line_14, 0, wxEXPAND, 0);
sizer_onglet2->Add(sizer_28, 1, wxALL|wxEXPAND, 40);
notebook_graphe_transition->SetAutoLayout(true);
notebook_graphe_transition->SetSizer(sizer_onglet2);
sizer_onglet2->Fit(notebook_graphe_transition);
sizer_onglet2->SetSizeHints(notebook_graphe_transition);
sizer_espace_onglet3->Add(panel_2, 1, wxEXPAND, 0);
sizer_onglet3->Add(sizer_espace_onglet3, 0, wxALL|wxEXPAND, 5);
sizer_onglet3->Add(static_line_12, 0, wxEXPAND, 0);
sizer_onglet3_q1->Add(label_vect_init, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5);
sizer_onglet3->Add(sizer_onglet3_q1, 0, wxALL|wxEXPAND, 5);
sizer_onglet3->Add(sizer_22, 1, wxALL|wxEXPAND, 10);
sizer_onglet3->Add(static_line_8, 0, wxEXPAND, 0);
sizer_onglet3_q2->Add(label_vect_iteration, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5);
sizer_onglet3->Add(sizer_onglet3_q2, 0, wxALL|wxEXPAND, 5);
sizer_onglet3_q2_iteration->Add(90, 20, 0, 0, 0);
sizer_onglet3_q2_iteration->Add(label_iteration_onglet3, 0, wxALIGN_CENTER_VERTICAL, 0);
sizer_onglet3_q2_iteration->Add(text_iteration_onglet3, 0, wxALIGN_CENTER_VERTICAL|wxSHAPED, 0);
sizer_onglet3_q2_iteration->Add(20, 20, 0, 0, 0);
sizer_onglet3_q2_iteration->Add(button_valider_iteration, 0, wxALL, 5);
sizer_onglet3->Add(sizer_onglet3_q2_iteration, 0, wxEXPAND, 0);
sizer_onglet3->Add(static_line_9, 0, wxEXPAND, 0);
sizer_onglet3_q3->Add(label_resultat, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5);
sizer_onglet3->Add(sizer_onglet3_q3, 0, wxALL|wxEXPAND, 5);
sizer_onglet3->Add(sizer_23, 1, wxALL|wxEXPAND, 10);
sizer_onglet3->Add(static_line_10, 0, wxEXPAND, 0);
notebook_simulation->SetAutoLayout(true);
notebook_simulation->SetSizer(sizer_onglet3);
sizer_onglet3->Fit(notebook_simulation);
sizer_onglet3->SetSizeHints(notebook_simulation);
notebook_1->AddPage(notebook_nouvelle_chaine_corps, wxT("Nouvelle chaine" ));
notebook_1->AddPage(notebook_graphe_transition, wxT("Graphe de transition" ));
notebook_1->AddPage(notebook_simulation, wxT("Simulation" ));
sizer_premier->Add(new wxNotebookSizer(notebook_1), 1, wxEXPAND, 0);
SetAutoLayout(true);
SetSizer(sizer_premier);
sizer_premier->Fit(this);
sizer_premier->SetSizeHints(this);
Layout();
// end wxGlade
}
|