Browse Source

Ajout de la fenêtre d'options de recherche

+ quelques corrections de GUI pour la fenêtre d'options générales
master
Maxime Wack 11 years ago
parent
commit
a554e3af6b
11 changed files with 2450 additions and 8 deletions
  1. +5
    -0
      CosMoS/CosMoS.project
  2. +6
    -2
      CosMoS/cosmos.cpp
  3. +2
    -0
      CosMoS/cosmos.h
  4. +3
    -3
      CosMoS/options.fbp
  5. +2
    -2
      CosMoS/optionsGUI.cpp
  6. +1
    -1
      CosMoS/optionsGUI.h
  7. +73
    -0
      CosMoS/optionsRche.cpp
  8. +1990
    -0
      CosMoS/optionsRche.fbp
  9. +40
    -0
      CosMoS/optionsRche.h
  10. +229
    -0
      CosMoS/optionsRcheGUI.cpp
  11. +99
    -0
      CosMoS/optionsRcheGUI.h

+ 5
- 0
CosMoS/CosMoS.project View File

@@ -15,10 +15,12 @@
<File Name="optionsGUI.cpp"/>
<File Name="cosmosGUI.cpp"/>
<File Name="correcGUI.cpp"/>
<File Name="optionsRcheGUI.cpp"/>
</VirtualDirectory>
<File Name="config.cpp"/>
<File Name="options.cpp"/>
<File Name="correc.cpp"/>
<File Name="optionsRche.cpp"/>
</VirtualDirectory>
<VirtualDirectory Name="include">
<File Name="bdd.h"/>
@@ -27,10 +29,12 @@
<File Name="optionsGUI.h"/>
<File Name="cosmosGUI.h"/>
<File Name="correcGUI.h"/>
<File Name="optionsRcheGUI.h"/>
</VirtualDirectory>
<File Name="config.h"/>
<File Name="options.h"/>
<File Name="correc.h"/>
<File Name="optionsRche.h"/>
</VirtualDirectory>
<VirtualDirectory Name="resources">
<File Name="cosmos.fbp"/>
@@ -44,6 +48,7 @@
<File Name="icons/play.xpm"/>
</VirtualDirectory>
<File Name="correc.fbp"/>
<File Name="optionsRche.fbp"/>
</VirtualDirectory>
<VirtualDirectory Name="tinyxml">
<File Name="tinyxml2.h"/>


+ 6
- 2
CosMoS/cosmos.cpp View File

@@ -6,16 +6,20 @@ cosmosGUI( parent )
{
configuration = new config();
fenetre_options = new options(this, configuration);
fenetre_optionsRche = new optionsRche(this, configuration);
if (configuration->IsFirstTime())
{
wxMessageBox(_T("Vous lancez CosMoS pour la première fois,\nveuillez configurer le chemin de la base\nainsi que les paramètres de connexion"));
fenetre_options->ShowModal();
wxMessageBox(_T("Vous pouvez également créer des sets d'options de recherche"));
fenetre_optionsRche->ShowModal();
}

bdd = new class_bdd(configuration->GetDbpath(), grid_Consults);
bdd->updategrid();
fenetre_corrections = new correc(this, bdd);
}

void cosmos::OnImport( wxCommandEvent& event )
@@ -51,7 +55,7 @@ void cosmos::OnStart( wxCommandEvent& event )

void cosmos::OnOptionsRche( wxCommandEvent& event )
{
// TODO: Implement OnOptionsRche
fenetre_optionsRche->ShowModal();
}

void cosmos::OnCorrections( wxCommandEvent& event )
@@ -67,7 +71,7 @@ void cosmos::OnSearch( wxCommandEvent& event )

void cosmos::OnOptionsProg( wxCommandEvent& event )
{
fenetre_options->Show(true);
fenetre_options->ShowModal();
}

void cosmos::OnCellChange( wxGridEvent& event )


+ 2
- 0
CosMoS/cosmos.h View File

@@ -11,6 +11,7 @@ Subclass of cosmosGUI, which is generated by wxFormBuilder.
#include "bdd.h"
#include "config.h"
#include "correc.h"
#include "optionsRche.h"

/** Implementing cosmosGUI */
class cosmos : public cosmosGUI
@@ -20,6 +21,7 @@ protected:
options* fenetre_options;
class_bdd* bdd;
correc* fenetre_corrections;
optionsRche* fenetre_optionsRche;
// Handlers for cosmosGUI events.
void OnImport( wxCommandEvent& event );
void OnExport( wxCommandEvent& event );


+ 3
- 3
CosMoS/options.fbp View File

@@ -37,7 +37,7 @@
<property name="minimum_size"></property>
<property name="name">dialog_Options</property>
<property name="pos"></property>
<property name="size">441,238</property>
<property name="size">-1,-1</property>
<property name="style">wxDEFAULT_DIALOG_STYLE|wxSTAY_ON_TOP</property>
<property name="subclass"></property>
<property name="title">Options</property>
@@ -86,7 +86,7 @@
<property name="permission">none</property>
<object class="sizeritem" expanded="1">
<property name="border">5</property>
<property name="flag">wxEXPAND</property>
<property name="flag">wxEXPAND|wxALL</property>
<property name="proportion">1</property>
<object class="wxStaticBoxSizer" expanded="1">
<property name="id">wxID_ANY</property>
@@ -213,7 +213,7 @@
</object>
<object class="sizeritem" expanded="1">
<property name="border">5</property>
<property name="flag">wxEXPAND</property>
<property name="flag">wxEXPAND|wxALL</property>
<property name="proportion">1</property>
<object class="wxStaticBoxSizer" expanded="1">
<property name="id">wxID_ANY</property>


+ 2
- 2
CosMoS/optionsGUI.cpp View File

@@ -26,7 +26,7 @@ dialog_Options::dialog_Options( wxWindow* parent, wxWindowID id, const wxString&
dirpicker_dbpath = new wxDirPickerCtrl( this, wxID_ANY, wxEmptyString, wxT("Choisir le répertoire"), wxDefaultPosition, wxDefaultSize, wxDIRP_DEFAULT_STYLE|wxDIRP_USE_TEXTCTRL );
sizer_db->Add( dirpicker_dbpath, 0, wxALL|wxEXPAND, 5 );
verticalsizer->Add( sizer_db, 1, wxEXPAND, 5 );
verticalsizer->Add( sizer_db, 1, wxEXPAND|wxALL, 5 );
wxStaticBoxSizer* sizer_connexion;
sizer_connexion = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Connexion") ), wxVERTICAL );
@@ -54,7 +54,7 @@ dialog_Options::dialog_Options( wxWindow* parent, wxWindowID id, const wxString&
sizer_connexion->Add( horizontalsizer_proxy, 1, wxALIGN_CENTER|wxEXPAND, 5 );
verticalsizer->Add( sizer_connexion, 1, wxEXPAND, 5 );
verticalsizer->Add( sizer_connexion, 1, wxEXPAND|wxALL, 5 );
wxBoxSizer* horizontalsizer_boutons;
horizontalsizer_boutons = new wxBoxSizer( wxHORIZONTAL );


+ 1
- 1
CosMoS/optionsGUI.h View File

@@ -53,7 +53,7 @@ class dialog_Options : public wxDialog
public:
dialog_Options( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 441,238 ), long style = wxDEFAULT_DIALOG_STYLE|wxSTAY_ON_TOP );
dialog_Options( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1, -1 ), long style = wxDEFAULT_DIALOG_STYLE|wxSTAY_ON_TOP );
~dialog_Options();
};


+ 73
- 0
CosMoS/optionsRche.cpp View File

@@ -0,0 +1,73 @@
#include "optionsRche.h"

optionsRche::optionsRche( wxWindow* parent, config* configuration )
:
dialog_optionsRche( parent )
{
this->configuration = configuration;
}

void optionsRche::OnChecklistSelect( wxCommandEvent& event )
{
// TODO: Implement OnChecklistSelect
}

void optionsRche::OnAdd( wxCommandEvent& event )
{
// TODO: Implement OnAdd
}

void optionsRche::OnUp( wxCommandEvent& event )
{
// TODO: Implement OnUp
}

void optionsRche::OnDown( wxCommandEvent& event )
{
// TODO: Implement OnDown
}

void optionsRche::OnDel( wxCommandEvent& event )
{
// TODO: Implement OnDel
}

void optionsRche::OnRadioDelai( wxCommandEvent& event )
{
// TODO: Implement OnRadioDelai
}

void optionsRche::OnRadioDates( wxCommandEvent& event )
{
// TODO: Implement OnRadioDates
}

void optionsRche::OnCheckDebut( wxCommandEvent& event )
{
// TODO: Implement OnCheckDebut
}

void optionsRche::OnCheckFin( wxCommandEvent& event )
{
// TODO: Implement OnCheckFin
}

void optionsRche::OnCheckVille( wxCommandEvent& event )
{
// TODO: Implement OnCheckVille
}

void optionsRche::OnCheckPerso( wxCommandEvent& event )
{
// TODO: Implement OnCheckPerso
}

void optionsRche::OnUpdate( wxCommandEvent& event )
{
// TODO: Implement OnUpdate
}

void optionsRche::OnOk( wxCommandEvent& event )
{
// TODO: Implement OnOk
}

+ 1990
- 0
CosMoS/optionsRche.fbp
File diff suppressed because it is too large
View File


+ 40
- 0
CosMoS/optionsRche.h View File

@@ -0,0 +1,40 @@
#ifndef __optionsRche__
#define __optionsRche__

/**
@file
Subclass of dialog_optionsRche, which is generated by wxFormBuilder.
*/

#include "optionsRcheGUI.h"
#include "config.h"

//// end generated include

/** Implementing dialog_optionsRche */
class optionsRche : public dialog_optionsRche
{
protected:
config* configuration;
// Handlers for dialog_optionsRche events.
void OnChecklistSelect( wxCommandEvent& event );
void OnAdd( wxCommandEvent& event );
void OnUp( wxCommandEvent& event );
void OnDown( wxCommandEvent& event );
void OnDel( wxCommandEvent& event );
void OnRadioDelai( wxCommandEvent& event );
void OnRadioDates( wxCommandEvent& event );
void OnCheckDebut( wxCommandEvent& event );
void OnCheckFin( wxCommandEvent& event );
void OnCheckVille( wxCommandEvent& event );
void OnCheckPerso( wxCommandEvent& event );
void OnUpdate( wxCommandEvent& event );
void OnOk( wxCommandEvent& event );
public:
/** Constructor */
optionsRche( wxWindow* parent, config* configuration );
//// end generated class members
};

#endif // __optionsRche__

+ 229
- 0
CosMoS/optionsRcheGUI.cpp View File

@@ -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 );
}

+ 99
- 0
CosMoS/optionsRcheGUI.h View File

@@ -0,0 +1,99 @@
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Sep 15 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#ifndef __optionsRcheGUI__
#define __optionsRcheGUI__

#include <wx/string.h>
#include <wx/checklst.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/button.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/statline.h>
#include <wx/radiobox.h>
#include <wx/radiobut.h>
#include <wx/checkbox.h>
#include <wx/spinctrl.h>
#include <wx/datectrl.h>
#include <wx/dateevt.h>
#include <wx/statbox.h>
#include <wx/dialog.h>

///////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////
/// Class dialog_optionsRche
///////////////////////////////////////////////////////////////////////////////
class dialog_optionsRche : public wxDialog
{
private:
protected:
wxCheckListBox* checklist_ruleset;
wxButton* bouton_add;
wxButton* bouton_up;
wxButton* bouton_down;
wxButton* bouton_del;
wxStaticText* statictext_nomset;
wxTextCtrl* textctrl_nomset;
wxStaticLine* staticline1;
wxRadioBox* radio_demandeur;
wxRadioBox* radio_both;
wxRadioBox* radio_responsable;
wxStaticLine* staticline2;
wxRadioButton* radio_delai;
wxRadioButton* radio_dates;
wxCheckBox* checkbox_debut;
wxSpinCtrl* spinctrl_debut;
wxDatePickerCtrl* datepicker_debut;
wxCheckBox* checkbox_fin;
wxSpinCtrl* spinctrl_fin;
wxDatePickerCtrl* datepicker_fin;
wxStaticLine* staticline3;
wxCheckBox* checkbox_ville;
wxTextCtrl* textctrl_ville;
wxStaticLine* staticline4;
wxCheckBox* checkbox_suppl;
wxTextCtrl* textctrl_suppl;
wxStaticLine* staticline5;
wxStaticText* statictext_retmax;
wxSpinCtrl* spinctrl_retmax;
wxButton* bouton_actualiser;
wxButton* bouton_ok;
// Virtual event handlers, overide them in your derived class
virtual void OnChecklistSelect( wxCommandEvent& event ) { event.Skip(); }
virtual void OnAdd( wxCommandEvent& event ) { event.Skip(); }
virtual void OnUp( wxCommandEvent& event ) { event.Skip(); }
virtual void OnDown( wxCommandEvent& event ) { event.Skip(); }
virtual void OnDel( wxCommandEvent& event ) { event.Skip(); }
virtual void OnRadioDelai( wxCommandEvent& event ) { event.Skip(); }
virtual void OnRadioDates( wxCommandEvent& event ) { event.Skip(); }
virtual void OnCheckDebut( wxCommandEvent& event ) { event.Skip(); }
virtual void OnCheckFin( wxCommandEvent& event ) { event.Skip(); }
virtual void OnCheckVille( wxCommandEvent& event ) { event.Skip(); }
virtual void OnCheckPerso( wxCommandEvent& event ) { event.Skip(); }
virtual void OnUpdate( wxCommandEvent& event ) { event.Skip(); }
virtual void OnOk( wxCommandEvent& event ) { event.Skip(); }
public:
dialog_optionsRche( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Options de recherche"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSTAY_ON_TOP );
~dialog_optionsRche();
};

#endif //__optionsRcheGUI__

Loading…
Cancel
Save