]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtLayoutTab.cxx
#2498 creaWt Feature New Normal wt-version kernel
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtLayoutTab.cxx
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #include "bbwtLayoutTab.h"
5 #include "bbwtPackage.h"
6 #include "bbtkUtilities.h"
7
8 namespace bbwt
9 {
10
11 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,LayoutTab)
12 BBTK_BLACK_BOX_IMPLEMENTATION(LayoutTab,bbtk::WtBlackBox);
13 //===== 
14 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
15 //===== 
16 void LayoutTab::Process()
17 {
18         
19   
20 }
21 //===== 
22 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
23 //===== 
24 void LayoutTab::CreateWidget(Wt::WContainerWidget* parent)
25 {
26
27         
28         
29         
30         Wt::WContainerWidget *w = new Wt::WContainerWidget(parent);
31         Wt::WTabWidget* layout = new Wt::WTabWidget(w);
32         Wt::WContainerWidget *cw;
33
34         if ((cw=bbCreateWidgetOfInput("Widget1",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel1()));}
35         if ((cw=bbCreateWidgetOfInput("Widget2",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel2()));}
36         if ((cw=bbCreateWidgetOfInput("Widget3",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel3()));}
37         if ((cw=bbCreateWidgetOfInput("Widget4",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel4()));}
38         if ((cw=bbCreateWidgetOfInput("Widget5",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel5()));}
39         if ((cw=bbCreateWidgetOfInput("Widget6",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel6()));}
40         if ((cw=bbCreateWidgetOfInput("Widget7",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel7()));}
41         if ((cw=bbCreateWidgetOfInput("Widget8",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel8()));}
42         if ((cw=bbCreateWidgetOfInput("Widget9",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel9()));}
43
44         
45     bbSetOutputWidget( w );     
46
47   
48 }
49 //===== 
50 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
51 //===== 
52 void LayoutTab::bbUserSetDefaultValues()
53 {
54         
55                 bbSetInputWidget1(NULL);
56                 bbSetInputWidget2(NULL);
57                 bbSetInputWidget3(NULL);
58                 bbSetInputWidget4(NULL);
59                 bbSetInputWidget5(NULL);
60                 bbSetInputWidget6(NULL);
61                 bbSetInputWidget7(NULL);
62                 bbSetInputWidget8(NULL);
63                 bbSetInputWidget9(NULL);
64                 bbSetInputLabel1("Tab 1");
65                 bbSetInputLabel2("Tab 2");
66                 bbSetInputLabel3("Tab 3");
67                 bbSetInputLabel4("Tab 4");
68                 bbSetInputLabel5("Tab 5");
69                 bbSetInputLabel6("Tab 6");
70                 bbSetInputLabel7("Tab 7");
71                 bbSetInputLabel8("Tab 8");
72                 bbSetInputLabel9("Tab 9");
73 }
74 //===== 
75 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
76 //===== 
77 void LayoutTab::bbUserInitializeProcessing()
78 {
79
80 }
81 //===== 
82 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
83 //===== 
84 void LayoutTab::bbUserFinalizeProcessing()
85 {
86
87 }
88 }
89 // EO namespace bbwt
90
91