|
- #include "cosmos.h"
-
- cosmos::cosmos( wxWindow* parent )
- :
- cosmosGUI( parent )
- {
- fenetre_options = new options(this);
- if (fenetre_options->GetConfiguration()->IsFirstTime())
- fenetre_options->ShowModal();
- bdd = new class_bdd(fenetre_options->GetConfiguration()->GetDbpath());
- }
-
- void cosmos::OnImport( wxCommandEvent& event )
- {
- wxFileDialog * opendialog = new wxFileDialog(this, "Importer", "", "", "*.csv", wxFD_OPEN | wxFD_FILE_MUST_EXIST);
-
- if (opendialog->ShowModal() == wxID_CANCEL)
- return;
- else
- bdd->import(opendialog->GetPath());
-
- delete opendialog;
- }
-
- void cosmos::OnExport( wxCommandEvent& event )
- {
- // TODO: Implement OnExport
- }
-
- void cosmos::OnQuit( wxCommandEvent& event )
- {
- delete bdd;
- delete fenetre_options;
- this->Close();
- }
-
- void cosmos::OnStart( wxCommandEvent& event )
- {
- // TODO: Implement OnStart
- }
-
- void cosmos::OnOptionsRche( wxCommandEvent& event )
- {
- // TODO: Implement OnOptionsRche
- }
-
- void cosmos::OnCorrections( wxCommandEvent& event )
- {
- // TODO: Implement OnCorrections
- }
-
- void cosmos::OnSearch( wxCommandEvent& event )
- {
- // TODO: Implement OnSearch
- }
-
- void cosmos::OnOptionsProg( wxCommandEvent& event )
- {
- fenetre_options->Show(true);
- }
|