1 /*=========================================================================
3 Module: $RCSfile: bbtkWxBlackBox.h,v $
5 Date: $Date: 2009/05/28 08:24:23 $
6 Version: $Revision: 1.30 $
7 ========================================================================*/
10 /* ---------------------------------------------------------------------
12 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
13 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
15 * This software is governed by the CeCILL-B license under French law and
16 * abiding by the rules of distribution of free software. You can use,
17 * modify and/ or redistribute the software under the terms of the CeCILL-B
18 * license as circulated by CEA, CNRS and INRIA at the following URL
19 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
20 * or in the file LICENSE.txt.
22 * As a counterpart to the access to the source code and rights to copy,
23 * modify and redistribute granted by the license, users are provided only
24 * with a limited warranty and the software's author, the holder of the
25 * economic rights, and the successive licensors have only limited
28 * The fact that you are presently reading this means that you have had
29 * knowledge of the CeCILL-B license and that you accept its terms.
30 * ------------------------------------------------------------------------ */
32 * \brief Short description in one line
34 * Long description which
35 * can span multiple lines
50 #ifndef __bbtkWxBlackBox_h__
51 #define __bbtkWxBlackBox_h__
55 #include "bbtkWidgetBlackBox.h"
64 //==================================================================
65 /// Widget black boxes
66 class BBTK_EXPORT WxBlackBox : public bbtk::WidgetBlackBox<wxWindow>
69 BBTK_BLACK_BOX_INTERFACE(WxBlackBox,bbtk::WidgetBlackBox<wxWindow>);
76 //==================================================================
77 /// Callback for creating a Dialog window (modal)
78 /// ** Must be defined ** in toolkit specific descendants
79 virtual void bbCreateDialogWindow();
80 //==================================================================
82 //==================================================================
83 /// Callback for creating a Frame window
84 /// ** Must be defined ** in toolkit specific descendants
85 virtual void bbCreateFrameWindow();
86 //==================================================================
89 //==================================================================
90 wxWindow* bbGetWindow() { return bbmWindow; }
91 void bbSetWindow(wxWindow*) ;
92 bool bbWindowIsCreated() { return (bbGetWindow() != 0); }
93 //==================================================================
96 //==================================================================
97 virtual void bbShowWindow();
98 //==================================================================
100 //==================================================================
101 virtual void bbDestroyWindow();
102 //==================================================================
109 //=================================================================
112 //=================================================================
113 // WxBlackBoxDescriptor declaration
114 class WxBlackBoxDescriptor : public WidgetBlackBoxDescriptor<wxWindow>
115 BBTK_BEGIN_DESCRIBE_BLACK_BOX_BODY(WxBlackBox);
116 BBTK_NAME("WxBlackBox");
117 BBTK_END_DESCRIBE_BLACK_BOX(WxBlackBox);
118 //=================================================================
123 #endif //__bbtkWxBlackBox_h__
125 #endif //USE_WXWIDGETS