]> Creatis software - bbtk.git/blob - packages/wx/src/bbwxNotebook.h
Renamed UserBlackBox into AtomicBlackBox which is a better name (versus ComplexBlackB...
[bbtk.git] / packages / wx / src / bbwxNotebook.h
1 /*=========================================================================
2                                                                                 
3   Program:   bbtk
4   Module:    $RCSfile: bbwxNotebook.h,v $
5   Language:  C++
6   Date:      $Date: 2008/02/07 07:58:56 $
7   Version:   $Revision: 1.4 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*//**
18  * \brief Short description in one line
19  * 
20  * Long description which 
21  * can span multiple lines
22  */
23 /**
24  * \file 
25  * \brief Pattern for the definition of a new type of Node (header)
26  */
27 /**
28  * \class bbtk::NodePatern 
29  * \brief Pattern for the definition of a new type of Node 
30  */
31
32
33 #ifdef _USE_WXWIDGETS_
34
35
36 #ifndef __bbWxNotebook_h__
37 #define __bbWxNotebook_h__
38
39 #include "bbtkWxBlackBox.h"
40 #include <wx/notebook.h>
41
42
43 namespace bbwx
44 {
45   
46
47   
48   
49   class /*BBTK_EXPORT*/ Notebook : public bbtk::WxBlackBox
50   {
51     
52     BBTK_USER_BLACK_BOX_INTERFACE(Notebook,bbtk::WxBlackBox);
53     BBTK_DECLARE_INPUT(Widget1,wxWindow*);
54     BBTK_DECLARE_INPUT(Widget2,wxWindow*);
55     BBTK_DECLARE_INPUT(Widget3,wxWindow*);
56     BBTK_DECLARE_INPUT(Widget4,wxWindow*);
57     BBTK_DECLARE_INPUT(Widget5,wxWindow*);
58     BBTK_DECLARE_INPUT(Widget6,wxWindow*);
59     BBTK_DECLARE_INPUT(Widget7,wxWindow*);
60     BBTK_DECLARE_INPUT(Widget8,wxWindow*);
61     BBTK_DECLARE_INPUT(Widget9,wxWindow*);
62     BBTK_DECLARE_INPUT(Widget10,wxWindow*);
63     BBTK_DECLARE_INPUT(Orientation,int);
64     BBTK_PROCESS(Process);
65     BBTK_CREATE_WIDGET(CreateWidget);
66     
67     void Process();
68     void CreateWidget();
69     
70   protected:
71         virtual void bbUserConstructor();
72         void TryInsertWindow(wxNotebook *book, wxWindow *widgetchild);
73
74   };
75   
76  
77 //=================================================================
78 // BlackBox description
79   BBTK_BEGIN_DESCRIBE_BLACK_BOX(Notebook,bbtk::WxBlackBox);
80   BBTK_NAME("Notebook");
81   BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
82   BBTK_DESCRIPTION("Notebook widget (wxNotebook)");
83   // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
84   BBTK_INPUT(Notebook,Widget1,"widget 1",wxWindow*);
85   BBTK_INPUT(Notebook,Widget2,"widget 2",wxWindow*);
86   BBTK_INPUT(Notebook,Widget3,"widget 3",wxWindow*);
87   BBTK_INPUT(Notebook,Widget4,"widget 4",wxWindow*);
88   BBTK_INPUT(Notebook,Widget5,"widget 5",wxWindow*);
89   BBTK_INPUT(Notebook,Widget6,"widget 6",wxWindow*);
90   BBTK_INPUT(Notebook,Widget7,"widget 7",wxWindow*);
91   BBTK_INPUT(Notebook,Widget8,"widget 8",wxWindow*);
92   BBTK_INPUT(Notebook,Widget9,"widget 9",wxWindow*);
93   BBTK_INPUT(Notebook,Widget10,"widget 10",wxWindow*);
94   BBTK_INPUT(Notebook,Orientation,"Orientation (default 0), 0=Top , 1=Left , 2=Right , 3=Botton",int);
95   BBTK_END_DESCRIBE_BLACK_BOX(Notebook);
96   //=================================================================
97
98
99
100 }
101
102
103
104 //namespace bbtk
105 #endif  //__bbtkWxSizer_h__
106
107 #endif //_USE_WXWIDGETS_