00001 /*========================================================================= 00002 Program: bbtk 00003 Module: $RCSfile: bbtkWxBlackBox.h,v $ 00004 Language: C++ 00005 Date: $Date: 2010/01/14 13:17:27 $ 00006 Version: $Revision: 1.32 $ 00007 ========================================================================*/ 00008 00009 00010 /* --------------------------------------------------------------------- 00011 00012 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale) 00013 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux 00014 * 00015 * This software is governed by the CeCILL-B license under French law and 00016 * abiding by the rules of distribution of free software. You can use, 00017 * modify and/ or redistribute the software under the terms of the CeCILL-B 00018 * license as circulated by CEA, CNRS and INRIA at the following URL 00019 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 00020 * or in the file LICENSE.txt. 00021 * 00022 * As a counterpart to the access to the source code and rights to copy, 00023 * modify and redistribute granted by the license, users are provided only 00024 * with a limited warranty and the software's author, the holder of the 00025 * economic rights, and the successive licensors have only limited 00026 * liability. 00027 * 00028 * The fact that you are presently reading this means that you have had 00029 * knowledge of the CeCILL-B license and that you accept its terms. 00030 * ------------------------------------------------------------------------ */ 00031 00048 #ifdef USE_WXWIDGETS 00049 00050 00051 #ifndef __bbtkWxBlackBox_h__ 00052 #define __bbtkWxBlackBox_h__ 00053 00054 00055 00056 #include "bbtkWidgetBlackBox.h" 00057 #include "bbtkWx.h" 00058 00059 00060 namespace bbtk 00061 { 00062 00063 00064 00065 //================================================================== 00067 //EED 10/06/2009 /*BBTK_EXPORT*/ 00068 class BBTK_EXPORT WxBlackBox : public bbtk::WidgetBlackBox<wxWindow> 00069 { 00070 public: 00071 BBTK_BLACK_BOX_INTERFACE(WxBlackBox,bbtk::WidgetBlackBox<wxWindow>); 00072 00073 00074 // protected: 00075 00076 public: 00077 00078 //================================================================== 00081 virtual void bbCreateDialogWindow(); 00082 //================================================================== 00083 00084 //================================================================== 00087 virtual void bbCreateFrameWindow(); 00088 //================================================================== 00089 00090 00091 //================================================================== 00092 wxWindow* bbGetWindow() { return bbmWindow; } 00093 void bbSetWindow(wxWindow*) ; 00094 bool bbWindowIsCreated() { return (bbGetWindow() != 0); } 00095 //================================================================== 00096 00097 00098 //================================================================== 00099 virtual void bbShowWindow(); 00100 //================================================================== 00101 00102 //================================================================== 00103 virtual void bbDestroyWindow(); 00104 //================================================================== 00105 00106 private: 00107 00108 wxWindow* bbmWindow; 00109 00110 }; 00111 //================================================================= 00112 00113 00114 //================================================================= 00115 // WxBlackBoxDescriptor declaration 00116 class WxBlackBoxDescriptor : public WidgetBlackBoxDescriptor<wxWindow> 00117 BBTK_BEGIN_DESCRIBE_BLACK_BOX_BODY(WxBlackBox); 00118 BBTK_NAME("WxBlackBox"); 00119 BBTK_END_DESCRIBE_BLACK_BOX(WxBlackBox); 00120 //================================================================= 00121 00122 00123 } //namespace bbtk 00124 00125 #endif //__bbtkWxBlackBox_h__ 00126 00127 #endif //USE_WXWIDGETS