]> Creatis software - bbtk.git/blob - kernel/src/bbtkWidgetBlackBoxWindow.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkWidgetBlackBoxWindow.h
1 /*=========================================================================                                                                               
2   Program:   bbtk
3   Module:    $RCSfile: bbtkWidgetBlackBoxWindow.h,v $
4   Language:  C++
5   Date:      $Date: 2009/06/10 11:36:51 $
6   Version:   $Revision: 1.3 $
7 ========================================================================*/
8
9
10 /* ---------------------------------------------------------------------
11
12 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
13 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
14 *
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.
21 *
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
26 *  liability. 
27 *
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 * ------------------------------------------------------------------------ */                                                                         
31 /**
32  * \brief Short description in one line
33  * 
34  * Long description which 
35  * can span multiple lines
36  */
37 /**
38  * \file 
39  * \brief 
40  */
41 /**
42  * \class bbtk::
43  * \brief 
44  */
45
46
47
48 #ifndef __bbtkWidgetBlackBoxWindow_h__
49 #define __bbtkWidgetBlackBoxWindow_h__
50
51
52 #include "bbtkWidgetBlackBox.h"
53
54 namespace bbtk
55 {
56
57
58   //==================================================================
59   // The base of the hierarchy of windows associated to a WidgetBlackBox
60 //EED 10/06/2009  /*BBTK_EXPORT*/
61   template <class W>
62   class /*BBTK_EXPORT*/ WidgetBlackBoxWindow 
63   {
64   public:
65     typedef typename WidgetBlackBox<W>::Pointer WidgetBlackBoxPointer;
66     typedef typename WidgetBlackBox<W>::WeakPointer WidgetBlackBoxWeakPointer;
67
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; }
79   private:
80     WidgetBlackBoxWeakPointer mBox;
81     bool mShown;
82   };
83   //==================================================================
84
85
86 } //namespace bbtk
87
88 #include "bbtkWidgetBlackBoxWindow.txx"
89
90 #endif  //__bbtkWidgetBlackBoxWindow_h__
91