X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxBlackBoxEditionDialog.h;h=c6a6b11327b8747dde47d6e0eab506138762d09f;hb=567028f33d052a54225024906cce14dc1558162f;hp=b4e79f936791efbb144d57791e99cb3af373b5df;hpb=8a680b0e68359ef1d8dc810d776a4f354ffb65e5;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.h b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.h index b4e79f9..c6a6b11 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.h +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxBlackBoxEditionDialog.h @@ -35,10 +35,11 @@ Version: $Revision$ * \brief Class bbtk::wxBlackBoxEditionDialog : abstract black-box interface. */ -/** -* \class bbtk::wxBlackBoxEditionDialog -* \brief -*/ +/**** +* Design and Developpement of BBTK GEditor +* Ricardo A Corredor J +* RaC - 2010 +****/ #ifndef __wxBlackBoxEditionDialog_h__ #define __wxBlackBoxEditionDialog_h__ @@ -58,33 +59,41 @@ Version: $Revision$ #include - - namespace bbtk { + //RaC: It is important if it exists a double relation + //e.g. wxBlackBoxEditionDialog includes wxGUIEditorGraphicBBS, and wxGUIEditorGraphicBBS includes wxBlackBoxEditionDialog class wxGUIEditorGraphicBBS; - class wxVtkSceneManager; class wxBlackBoxEditionDialog : public wxDialog { public: - wxBlackBoxEditionDialog(wxGUIEditorGraphicBBS *parent,wxVtkSceneManager* scene); wxBlackBoxEditionDialog(wxGUIEditorGraphicBBS *parent,GBlackBoxModel *model); ~wxBlackBoxEditionDialog(); void constructBlackBoxEditionDialog(); + bool isValidNameForABox(std::string boxname); + void onClickOk(wxCommandEvent& event); void onClickClose(wxCommandEvent& event); private: wxAuiManager *_dialogAUIMgr; wxPanel *_panel; + wxGUIEditorGraphicBBS *_parent; std::vector _lstValues; std::vector _lstTypes; std::vector _lstNames; + std::string _initBoxName; + wxTextCtrl* _boxName; + GBlackBoxModel *_model; + + + void addDoubleQuotes(std::string &text); + void removeDoubleQuotes(std::string &text); protected: