00001 /*========================================================================= 00002 Program: bbtk 00003 Module: $RCSfile: wxBlackBoxEditionDialog.h,v $ 00004 Language: C++ 00005 Date: $Date: 2012/05/30 17:18:01 $ 00006 Version: $Revision: 1.7 $ 00007 =========================================================================*/ 00008 00009 /* --------------------------------------------------------------------- 00010 00011 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale) 00012 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux 00013 * 00014 * This software is governed by the CeCILL-B license under French law and 00015 * abiding by the rules of distribution of free software. You can use, 00016 * modify and/ or redistribute the software under the terms of the CeCILL-B 00017 * license as circulated by CEA, CNRS and INRIA at the following URL 00018 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 00019 * or in the file LICENSE.txt. 00020 * 00021 * As a counterpart to the access to the source code and rights to copy, 00022 * modify and redistribute granted by the license, users are provided only 00023 * with a limited warranty and the software's author, the holder of the 00024 * economic rights, and the successive licensors have only limited 00025 * liability. 00026 * 00027 * The fact that you are presently reading this means that you have had 00028 * knowledge of the CeCILL-B license and that you accept its terms. 00029 * ------------------------------------------------------------------------ */ 00030 00031 00032 00038 /**** 00039 * Design and Developpement of BBTK GEditor 00040 * Ricardo A Corredor J <ra.corredor67@uniandes.edu.co> 00041 * RaC - 2010 00042 ****/ 00043 00044 #ifndef __wxBlackBoxEditionDialog_h__ 00045 #define __wxBlackBoxEditionDialog_h__ 00046 00047 //Includes same project 00048 #include "bbtkwxGUIEditorGraphicBBS.h" 00049 #include "GPortModel.h" 00050 #include "wxVtkSceneManager.h" 00051 00052 //Includes wxWidgets 00053 #include <wx/wx.h> 00054 #include <wx/aui/aui.h> 00055 00056 //Includes creaMaracasVisu 00057 00058 //Includes std 00059 #include <iostream> 00060 00061 00062 namespace bbtk 00063 { 00064 00065 //RaC: It is important if it exists a double relation 00066 //e.g. wxBlackBoxEditionDialog includes wxGUIEditorGraphicBBS, and wxGUIEditorGraphicBBS includes wxBlackBoxEditionDialog 00067 class wxGUIEditorGraphicBBS; 00068 class wxVtkSceneManager; 00069 00070 class wxBlackBoxEditionDialog : public wxDialog 00071 { 00072 public: 00073 wxBlackBoxEditionDialog(wxGUIEditorGraphicBBS *parent,GBlackBoxModel *model); 00074 ~wxBlackBoxEditionDialog(); 00075 00076 void constructBlackBoxEditionDialog(); 00077 bool isValidNameForABox(std::string boxname); 00078 00079 void onClickOk(wxCommandEvent& event); 00080 void onClickClose(wxCommandEvent& event); 00081 00082 private: 00083 wxAuiManager *_dialogAUIMgr; 00084 wxPanel *_panel; 00085 wxGUIEditorGraphicBBS *_parent; 00086 std::vector<wxTextCtrl*> _lstValues; 00087 std::vector<wxStaticText*> _lstTypes; 00088 std::vector<wxStaticText*> _lstNames; 00089 std::string _initBoxName; 00090 wxTextCtrl* _boxName; 00091 00092 GBlackBoxModel *_model; 00093 00094 00095 void addDoubleQuotes(std::string &text); 00096 void removeDoubleQuotes(std::string &text); 00097 00098 protected: 00099 00100 }; 00101 00102 00103 } 00104 // namespace bbtk 00105 #endif 00106