|
|
@@ -0,0 +1,229 @@ |
|
|
|
/////////////////////////////////////////////////////////////////////////// |
|
|
|
// C++ code generated with wxFormBuilder (version Sep 15 2010) |
|
|
|
// http://www.wxformbuilder.org/ |
|
|
|
// |
|
|
|
// PLEASE DO "NOT" EDIT THIS FILE! |
|
|
|
/////////////////////////////////////////////////////////////////////////// |
|
|
|
|
|
|
|
#include "optionsRcheGUI.h" |
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////// |
|
|
|
|
|
|
|
dialog_optionsRche::dialog_optionsRche( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
|
|
|
{ |
|
|
|
this->SetSizeHints( wxSize( 650,480 ), wxDefaultSize ); |
|
|
|
|
|
|
|
wxBoxSizer* verticalsizer; |
|
|
|
verticalsizer = new wxBoxSizer( wxVERTICAL ); |
|
|
|
|
|
|
|
wxBoxSizer* horizontalsizer; |
|
|
|
horizontalsizer = new wxBoxSizer( wxHORIZONTAL ); |
|
|
|
|
|
|
|
wxString checklist_rulesetChoices[] = { wxT("defaut") }; |
|
|
|
int checklist_rulesetNChoices = sizeof( checklist_rulesetChoices ) / sizeof( wxString ); |
|
|
|
checklist_ruleset = new wxCheckListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, checklist_rulesetNChoices, checklist_rulesetChoices, wxLB_NEEDED_SB|wxLB_SINGLE ); |
|
|
|
horizontalsizer->Add( checklist_ruleset, 1, wxEXPAND|wxALL, 5 ); |
|
|
|
|
|
|
|
wxBoxSizer* sizer_rulesetorder; |
|
|
|
sizer_rulesetorder = new wxBoxSizer( wxVERTICAL ); |
|
|
|
|
|
|
|
bouton_add = new wxButton( this, wxID_ANY, wxT("+"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT ); |
|
|
|
sizer_rulesetorder->Add( bouton_add, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
bouton_up = new wxButton( this, wxID_ANY, wxT("^"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT ); |
|
|
|
sizer_rulesetorder->Add( bouton_up, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
bouton_down = new wxButton( this, wxID_ANY, wxT("v"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT ); |
|
|
|
sizer_rulesetorder->Add( bouton_down, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
bouton_del = new wxButton( this, wxID_ANY, wxT("X"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT ); |
|
|
|
sizer_rulesetorder->Add( bouton_del, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
horizontalsizer->Add( sizer_rulesetorder, 0, wxEXPAND, 5 ); |
|
|
|
|
|
|
|
wxStaticBoxSizer* sizer_set; |
|
|
|
sizer_set = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Set") ), wxVERTICAL ); |
|
|
|
|
|
|
|
wxBoxSizer* sizer_nomset; |
|
|
|
sizer_nomset = new wxBoxSizer( wxHORIZONTAL ); |
|
|
|
|
|
|
|
statictext_nomset = new wxStaticText( this, wxID_ANY, wxT("Nom :"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
statictext_nomset->Wrap( -1 ); |
|
|
|
sizer_nomset->Add( statictext_nomset, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
textctrl_nomset = new wxTextCtrl( this, wxID_ANY, wxT("defaut"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
sizer_nomset->Add( textctrl_nomset, 1, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
sizer_set->Add( sizer_nomset, 0, wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5 ); |
|
|
|
|
|
|
|
staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); |
|
|
|
sizer_set->Add( staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 ); |
|
|
|
|
|
|
|
wxBoxSizer* sizer_noms; |
|
|
|
sizer_noms = new wxBoxSizer( wxHORIZONTAL ); |
|
|
|
|
|
|
|
wxString radio_demandeurChoices[] = { wxT("AND"), wxT("OR") }; |
|
|
|
int radio_demandeurNChoices = sizeof( radio_demandeurChoices ) / sizeof( wxString ); |
|
|
|
radio_demandeur = new wxRadioBox( this, wxID_ANY, wxT("Nom(s) demandeur(s)"), wxDefaultPosition, wxDefaultSize, radio_demandeurNChoices, radio_demandeurChoices, 1, wxRA_SPECIFY_COLS ); |
|
|
|
radio_demandeur->SetSelection( 0 ); |
|
|
|
sizer_noms->Add( radio_demandeur, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
wxString radio_bothChoices[] = { wxT("AND"), wxT("OR") }; |
|
|
|
int radio_bothNChoices = sizeof( radio_bothChoices ) / sizeof( wxString ); |
|
|
|
radio_both = new wxRadioBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, radio_bothNChoices, radio_bothChoices, 1, wxRA_SPECIFY_COLS ); |
|
|
|
radio_both->SetSelection( 0 ); |
|
|
|
sizer_noms->Add( radio_both, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
wxString radio_responsableChoices[] = { wxT("AND"), wxT("OR") }; |
|
|
|
int radio_responsableNChoices = sizeof( radio_responsableChoices ) / sizeof( wxString ); |
|
|
|
radio_responsable = new wxRadioBox( this, wxID_ANY, wxT("Nom(s) responsable(s)"), wxDefaultPosition, wxDefaultSize, radio_responsableNChoices, radio_responsableChoices, 1, wxRA_SPECIFY_COLS ); |
|
|
|
radio_responsable->SetSelection( 0 ); |
|
|
|
sizer_noms->Add( radio_responsable, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
sizer_set->Add( sizer_noms, 0, wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5 ); |
|
|
|
|
|
|
|
staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); |
|
|
|
sizer_set->Add( staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 ); |
|
|
|
|
|
|
|
wxFlexGridSizer* sizer_dates; |
|
|
|
sizer_dates = new wxFlexGridSizer( 3, 3, 0, 0 ); |
|
|
|
sizer_dates->AddGrowableCol( 1 ); |
|
|
|
sizer_dates->AddGrowableCol( 2 ); |
|
|
|
sizer_dates->SetFlexibleDirection( wxBOTH ); |
|
|
|
sizer_dates->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
|
|
|
|
|
|
|
|
|
|
|
sizer_dates->Add( 0, 0, 1, wxEXPAND, 5 ); |
|
|
|
|
|
|
|
radio_delai = new wxRadioButton( this, wxID_ANY, wxT("Delai"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP ); |
|
|
|
radio_delai->SetValue( true ); |
|
|
|
sizer_dates->Add( radio_delai, 1, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
radio_dates = new wxRadioButton( this, wxID_ANY, wxT("Dates"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
sizer_dates->Add( radio_dates, 1, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
checkbox_debut = new wxCheckBox( this, wxID_ANY, wxT("Date début"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
checkbox_debut->SetValue(true); |
|
|
|
sizer_dates->Add( checkbox_debut, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
spinctrl_debut = new wxSpinCtrl( this, wxID_ANY, wxT("5"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 5 ); |
|
|
|
sizer_dates->Add( spinctrl_debut, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
datepicker_debut = new wxDatePickerCtrl( this, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DEFAULT ); |
|
|
|
datepicker_debut->Enable( false ); |
|
|
|
|
|
|
|
sizer_dates->Add( datepicker_debut, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
checkbox_fin = new wxCheckBox( this, wxID_ANY, wxT("Date fin"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
checkbox_fin->SetValue(true); |
|
|
|
sizer_dates->Add( checkbox_fin, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
spinctrl_fin = new wxSpinCtrl( this, wxID_ANY, wxT("2"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 2 ); |
|
|
|
sizer_dates->Add( spinctrl_fin, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
datepicker_fin = new wxDatePickerCtrl( this, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DEFAULT ); |
|
|
|
datepicker_fin->Enable( false ); |
|
|
|
|
|
|
|
sizer_dates->Add( datepicker_fin, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
sizer_set->Add( sizer_dates, 0, wxEXPAND, 5 ); |
|
|
|
|
|
|
|
staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); |
|
|
|
sizer_set->Add( staticline3, 0, wxTOP|wxBOTTOM|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
wxBoxSizer* sizer_ville; |
|
|
|
sizer_ville = new wxBoxSizer( wxHORIZONTAL ); |
|
|
|
|
|
|
|
checkbox_ville = new wxCheckBox( this, wxID_ANY, wxT("Ville :"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
checkbox_ville->SetValue(true); |
|
|
|
sizer_ville->Add( checkbox_ville, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
textctrl_ville = new wxTextCtrl( this, wxID_ANY, wxT("Nancy"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
sizer_ville->Add( textctrl_ville, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
sizer_set->Add( sizer_ville, 0, wxEXPAND, 5 ); |
|
|
|
|
|
|
|
staticline4 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); |
|
|
|
sizer_set->Add( staticline4, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 ); |
|
|
|
|
|
|
|
wxBoxSizer* sizer_suppl; |
|
|
|
sizer_suppl = new wxBoxSizer( wxHORIZONTAL ); |
|
|
|
|
|
|
|
checkbox_suppl = new wxCheckBox( this, wxID_ANY, wxT("Perso :"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
sizer_suppl->Add( checkbox_suppl, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
textctrl_suppl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
textctrl_suppl->Enable( false ); |
|
|
|
|
|
|
|
sizer_suppl->Add( textctrl_suppl, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
sizer_set->Add( sizer_suppl, 0, wxEXPAND, 5 ); |
|
|
|
|
|
|
|
staticline5 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); |
|
|
|
sizer_set->Add( staticline5, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 ); |
|
|
|
|
|
|
|
wxBoxSizer* sizer_retmax; |
|
|
|
sizer_retmax = new wxBoxSizer( wxHORIZONTAL ); |
|
|
|
|
|
|
|
statictext_retmax = new wxStaticText( this, wxID_ANY, wxT("Nombre maximal de résultats :"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
statictext_retmax->Wrap( -1 ); |
|
|
|
sizer_retmax->Add( statictext_retmax, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
spinctrl_retmax = new wxSpinCtrl( this, wxID_ANY, wxT("20"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 10000000, 20 ); |
|
|
|
sizer_retmax->Add( spinctrl_retmax, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
|
|
|
|
sizer_retmax->Add( 0, 0, 1, wxEXPAND, 5 ); |
|
|
|
|
|
|
|
bouton_actualiser = new wxButton( this, wxID_ANY, wxT("Actualiser"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
sizer_retmax->Add( bouton_actualiser, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|
|
|
|
|
|
|
sizer_set->Add( sizer_retmax, 0, wxEXPAND, 5 ); |
|
|
|
|
|
|
|
horizontalsizer->Add( sizer_set, 3, wxALL|wxEXPAND, 5 ); |
|
|
|
|
|
|
|
verticalsizer->Add( horizontalsizer, 1, wxEXPAND, 5 ); |
|
|
|
|
|
|
|
bouton_ok = new wxButton( this, wxID_ANY, wxT("Ok"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
verticalsizer->Add( bouton_ok, 0, wxALL|wxALIGN_RIGHT, 5 ); |
|
|
|
|
|
|
|
this->SetSizer( verticalsizer ); |
|
|
|
this->Layout(); |
|
|
|
verticalsizer->Fit( this ); |
|
|
|
|
|
|
|
this->Centre( wxBOTH ); |
|
|
|
|
|
|
|
// Connect Events |
|
|
|
checklist_ruleset->Connect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( dialog_optionsRche::OnChecklistSelect ), NULL, this ); |
|
|
|
bouton_add->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnAdd ), NULL, this ); |
|
|
|
bouton_up->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnUp ), NULL, this ); |
|
|
|
bouton_down->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnDown ), NULL, this ); |
|
|
|
bouton_del->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnDel ), NULL, this ); |
|
|
|
radio_delai->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( dialog_optionsRche::OnRadioDelai ), NULL, this ); |
|
|
|
radio_dates->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( dialog_optionsRche::OnRadioDates ), NULL, this ); |
|
|
|
checkbox_debut->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnCheckDebut ), NULL, this ); |
|
|
|
checkbox_fin->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnCheckFin ), NULL, this ); |
|
|
|
checkbox_ville->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnCheckVille ), NULL, this ); |
|
|
|
checkbox_suppl->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnCheckPerso ), NULL, this ); |
|
|
|
bouton_actualiser->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnUpdate ), NULL, this ); |
|
|
|
bouton_ok->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnOk ), NULL, this ); |
|
|
|
} |
|
|
|
|
|
|
|
dialog_optionsRche::~dialog_optionsRche() |
|
|
|
{ |
|
|
|
// Disconnect Events |
|
|
|
checklist_ruleset->Disconnect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( dialog_optionsRche::OnChecklistSelect ), NULL, this ); |
|
|
|
bouton_add->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnAdd ), NULL, this ); |
|
|
|
bouton_up->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnUp ), NULL, this ); |
|
|
|
bouton_down->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnDown ), NULL, this ); |
|
|
|
bouton_del->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnDel ), NULL, this ); |
|
|
|
radio_delai->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( dialog_optionsRche::OnRadioDelai ), NULL, this ); |
|
|
|
radio_dates->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( dialog_optionsRche::OnRadioDates ), NULL, this ); |
|
|
|
checkbox_debut->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnCheckDebut ), NULL, this ); |
|
|
|
checkbox_fin->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnCheckFin ), NULL, this ); |
|
|
|
checkbox_ville->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnCheckVille ), NULL, this ); |
|
|
|
checkbox_suppl->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnCheckPerso ), NULL, this ); |
|
|
|
bouton_actualiser->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnUpdate ), NULL, this ); |
|
|
|
bouton_ok->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( dialog_optionsRche::OnOk ), NULL, this ); |
|
|
|
|
|
|
|
} |