1 /*=========================================================================
3 Module: $RCSfile: bbtkWidgetBlackBoxWindow.h,v $
5 Date: $Date: 2009/04/08 07:56:11 $
6 Version: $Revision: 1.1 $
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
61 class BBTK_EXPORT WidgetBlackBoxWindow
64 typedef typename WidgetBlackBox<W>::Pointer WidgetBlackBoxPointer;
65 typedef typename WidgetBlackBox<W>::WeakPointer WidgetBlackBoxWeakPointer;
67 WidgetBlackBoxWindow(WidgetBlackBoxPointer box);
68 virtual ~WidgetBlackBoxWindow();
69 virtual void bbShow();
70 virtual void bbHide();
71 virtual void bbClose();
72 bool bbIsShown() { return mShown; }
73 virtual WidgetBlackBoxPointer bbGetBlackBox() { return mBox.lock(); }
74 //virtual wxDialog* bbGetDialog() { return 0; }
75 //virtual wxFrame* bbGetFrame() { return 0; }
76 virtual bool bbIsDialog() { return false; }
77 virtual bool bbIsFrame() { return false; }
79 WidgetBlackBoxWeakPointer mBox;
82 //==================================================================
87 #include "bbtkWidgetBlackBoxWindow.txx"
89 #endif //__bbtkWidgetBlackBoxWindow_h__