#ifndef wxWin1H #define wxWin1H #define ID_APP_QUIT 1 #define ID_EXEC 2 #define ID_Nouveau 3 #define ID_Submit 4 #define ID_Limites 5 #define ID_Param 6 //#define ID_CHECKBOX 3 #include #include #include #include using namespace std; extern bool opened=false; //Verifie si la fenetre conditions limites a été ouverte antérieurement extern bool opened_param=false;//Verifie si la fenetre paramètres a été ouverte antérieurement //Variables externes permettant de stocker les conditions aux limites qui ont été sélectionnées extern bool south_wall= true; extern bool north_wall= true; extern bool bottom_wall= true; extern bool top_surface= true; extern bool P_hydrostat= true; /*****************************************************************/ //------------------------------------------------------------------------------ class TMyApp : public wxApp { public: virtual bool OnInit(); }; //------------------------------------------------------------------------------ class TMyFrame : public wxFrame { public: TMyFrame(const wxString& title, const wxPoint& pos, const wxSize& size, long style = wxDEFAULT_FRAME_STYLE); void OnQuit(wxCommandEvent& event); void OnChgTitre(wxCommandEvent& event); void OnNouveau(wxCommandEvent& event); void OnOuvrir(wxCommandEvent& event); void OnEnregistrer(wxCommandEvent& event); void OnLimites(wxCommandEvent& event); void OnParam(wxCommandEvent& event); //Variables externes permettant de stocker les données qui ont été sélectionnées bool modele_turb; //true si modèle turbulent utilisé double debit; double viscosite; double length; double height; double width; double dx; double dy; double dz; private: wxButton *MonBouton; wxButton *MonBouton2; wxRadioButton *RadioBouton1; wxRadioButton *RadioBouton2; //Construction du menu enum { App_Quit = 1, Nouveau, Ouvrir, Enregister, Limites, Parametres_Simu }; ///////////////////////////// //wxCheckBox CheckBox_turb ; wxStaticText *Label_mod; //Variables définition de l'écoulement wxStaticText *Label_typeFlow; wxTextCtrl *mlTextCtrl_Debit ; wxStaticText *Debit; wxTextCtrl *mlTextCtrl_Viscosite ; wxStaticText *Viscosite; ////////////////////////////////////// //Varaiables géométrie du canal wxStaticText *Label_geomCanal; wxTextCtrl *mlTextCtrl_Length ; wxStaticText *Length; wxTextCtrl *mlTextCtrl_Width ; wxStaticText *Width; wxTextCtrl *mlTextCtrl_Height ; wxStaticText *Height; ////////////////////////////// wxStaticText *Label_geomCellule; wxStaticText *Label_dx; wxStaticText *Label_dy; wxStaticText *Label_dz; wxTextCtrl * mlTextCtrl_dx; wxTextCtrl * mlTextCtrl_dy; wxTextCtrl * mlTextCtrl_dz; //Méthode executée lorsque l'on appuie sur le bouton Executer void OnExecuter(wxCommandEvent& event); DECLARE_EVENT_TABLE() }; class LimitesFrame : public wxFrame { public: LimitesFrame(const wxString& title, const wxPoint& pos, const wxSize& size, long style = wxDEFAULT_FRAME_STYLE); double* getConvParam(){return &ConvParam;}; double* getMaxIterI(){return &MaxIter_I;}; double* getMaxIterJ(){return &MaxIter_J;}; private: wxButton *MonBouton; //Bouton Submit wxRadioButton *RadioBouton1; //Bouton conditions limites Sud wxRadioButton *RadioBouton2;//Bouton conditions limites Sud wxRadioButton *RadioBouton3;//Bouton conditions limites Nord wxRadioButton *RadioBouton4;//Bouton conditions limites Nord wxRadioButton *RadioBouton5;//Bouton conditions limites Bottom wxRadioButton *RadioBouton6;//Bouton conditions limites Bottom wxRadioButton *RadioBouton7;//Bouton conditions limites Surface wxRadioButton *RadioBouton8;//Bouton conditions limites Surface wxRadioButton *RadioBouton9;//Pression Hydrostatique de sortie wxRadioButton *RadioBouton10;//Pression nulle surface et gradient nul ailleur sortie double MaxIter_I; double MaxIter_J; double ConvParam; //wxCheckBox CheckBox_turb ; wxStaticText *Label_Sud; wxStaticText *Label_Nord; wxStaticText *Label_Bottom; wxStaticText *Label_Surface; wxStaticText *Label_P_out; wxStaticText *Label_symetrie; wxTextCtrl *mlTextCtrl_TailleSym ; void OnSubmit(wxCommandEvent& event); DECLARE_EVENT_TABLE() }; class ParametresFrame : public wxFrame { public: ParametresFrame(const wxString& title, const wxPoint& pos, const wxSize& size, long style = wxDEFAULT_FRAME_STYLE); private: wxButton *MonBouton; //Bouton Submit /*wxRadioButton *RadioBouton1; //Bouton conditions limites Sud wxRadioButton *RadioBouton2;//Bouton conditions limites Sud wxRadioButton *RadioBouton3;//Bouton conditions limites Nord wxRadioButton *RadioBouton4;//Bouton conditions limites Nord wxRadioButton *RadioBouton5;//Bouton conditions limites Bottom wxRadioButton *RadioBouton6;//Bouton conditions limites Bottom wxRadioButton *RadioBouton7;//Bouton conditions limites Surface wxRadioButton *RadioBouton8;//Bouton conditions limites Surface wxRadioButton *RadioBouton9;//Pression Hydrostatique de sortie wxRadioButton *RadioBouton10;//Pression nulle surface et gradient nul ailleur sortie*/ //wxCheckBox CheckBox_turb ; wxStaticText *Label_Param; wxStaticText *Label_ConvParam; wxTextCtrl *mlTextCtrl_ConvParam ; wxStaticText *Max_Iter_I; wxTextCtrl *mlTextCtrl_Max_Iter_I ; wxStaticText *Max_Iter_J; wxTextCtrl *mlTextCtrl_Max_Iter_J ; void OnSubmit(wxCommandEvent& event); DECLARE_EVENT_TABLE() }; //------------------------------------------------------------------------------ #endif //wxWin1H