1 /*=========================================================================
3 Module: $RCSfile: bbtkWidgetBlackBoxWindow.h,v $
5 Date: $Date: 2009/06/10 11:36:51 $
6 Version: $Revision: 1.3 $
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
48 #ifndef __bbtkWidgetBlackBoxWindow_h__
49 #define __bbtkWidgetBlackBoxWindow_h__
52 #include "bbtkWidgetBlackBox.h"
58 //==================================================================
59 // The base of the hierarchy of windows associated to a WidgetBlackBox
60 //EED 10/06/2009 /*BBTK_EXPORT*/
62 class /*BBTK_EXPORT*/ WidgetBlackBoxWindow
65 typedef typename WidgetBlackBox<W>::Pointer WidgetBlackBoxPointer;
66 typedef typename WidgetBlackBox<W>::WeakPointer WidgetBlackBoxWeakPointer;
68 WidgetBlackBoxWindow(WidgetBlackBoxPointer box);
69 virtual ~WidgetBlackBoxWindow();
70 virtual void bbShow();
71 virtual void bbHide();
72 virtual void bbDestroy();
73 bool bbIsShown() { return mShown; }
74 virtual WidgetBlackBoxPointer bbGetBlackBox() { return mBox.lock(); }
75 //virtual wxDialog* bbGetDialog() { return 0; }
76 //virtual wxFrame* bbGetFrame() { return 0; }
77 virtual bool bbIsDialog() { return false; }
78 virtual bool bbIsFrame() { return false; }
80 WidgetBlackBoxWeakPointer mBox;
83 //==================================================================
88 #include "bbtkWidgetBlackBoxWindow.txx"
90 #endif //__bbtkWidgetBlackBoxWindow_h__