]> Creatis software - bbtk.git/blob - kernel/src/bbtkKWBlackBox.h
470c286040685c6d52424a6fc38718f3d2ae21e0
[bbtk.git] / kernel / src / bbtkKWBlackBox.h
1 /*=========================================================================                                                                               
2   Program:   bbtk
3   Module:    $RCSfile: bbtkKWBlackBox.h,v $
4   Language:  C++
5   Date:      $Date: 2009/04/08 07:56:11 $
6   Version:   $Revision: 1.6 $
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 #ifndef __bbtkKWBlackBox_h_INCLUDED__
46 #define __bbtkKWBlackBox_h_INCLUDED__
47
48
49 #ifdef USE_KWWIDGETS
50
51 #include "bbtkWidgetBlackBox.h"
52
53
54 #include "bbtkKW.h"
55
56
57
58 namespace bbtk
59 {
60
61
62
63   //==================================================================
64   /// Widget black boxes
65   class BBTK_EXPORT KWBlackBox : public bbtk::WidgetBlackBox<vtkKWWidget>
66   { 
67     BBTK_BLACK_BOX_INTERFACE(KWBlackBox,bbtk::WidgetBlackBox<vtkKWWidget>);
68   public:
69    //==================================================================    
70     /// Callback for creating a Dialog window (modal)
71     virtual void bbCreateDialogWindow();
72     //==================================================================    
73
74     //==================================================================    
75     /// Callback for creating a Frame window 
76     virtual void bbCreateFrameWindow();
77     //==================================================================    
78
79     //==================================================================
80     //    virtual void InitWindowManagerIfNeeded();
81     virtual void IncNbWindowsAlive();
82     virtual void DecNbWindowsAlive();
83     virtual int  GetNbWindowsAlive();
84     virtual bool IsSomeWindowAlive();
85     
86     virtual void IncNbWindowsShown();
87     virtual void DecNbWindowsShown();
88     virtual int  GetNbWindowsShown();
89     virtual bool IsSomeWindowShown();
90     //==================================================================
91
92
93  
94     //==================================================================
95     vtkKWWidget* bbCreateWidgetOfInput(const std::string& in, 
96                                        vtkKWFrame* parent);
97     //==================================================================
98
99
100   };
101   //=================================================================
102  
103
104   //=================================================================
105   // KWBlackBoxDescriptor declaration
106   class KWBlackBoxDescriptor : public WidgetBlackBoxDescriptor<vtkKWWidget>
107   BBTK_BEGIN_DESCRIBE_BLACK_BOX_BODY(KWBlackBox);
108   BBTK_NAME("KWBlackBox");
109   BBTK_END_DESCRIBE_BLACK_BOX(KWBlackBox);
110   //=================================================================
111
112
113
114
115
116
117
118
119 } //namespace bbtk
120
121
122
123 #endif  // USE_KWWIDGETS
124 #endif  //__bbtkKWBlackBox_h__