]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtLayoutSplit.cxx~
#2449 creaWeb Feature New Normal wt-version wtLibrary
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtLayoutSplit.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 "bbwtLayoutSplit.h"
5 #include "bbwtPackage.h"
6 #include "bbtkUtilities.h"
7
8
9 namespace bbwt
10 {
11
12 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,LayoutSplit)
13 BBTK_BLACK_BOX_IMPLEMENTATION(LayoutSplit,bbtk::WtBlackBox);
14 //===== 
15 // 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)
16 //===== 
17 void LayoutSplit::Process()
18 {
19
20
21   
22 }
23 //===== 
24 // 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)
25 //===== 
26 /*void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
27 {
28         Wt::WContainerWidget* w = new Wt::WContainerWidget(parent);
29         Wt::WBoxLayout *l;
30         if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true)  { l = new Wt::WHBoxLayout(); }
31         if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true)    { l = new Wt::WVBoxLayout(); }
32
33         Wt::WContainerWidget* w1 = bbCreateWidgetOfInput("Widget1",w);
34         Wt::WContainerWidget* w2 = bbCreateWidgetOfInput("Widget2",w);
35
36         if (w1==NULL) { w1=new Wt::WContainerWidget(); }
37         if (w2==NULL) { w2=new Wt::WContainerWidget(); }
38
39
40         l->addWidget(w1);
41         l->addWidget(w2);
42
43         w->setLayout(l);
44         
45         bbSetOutputWidget( w );
46         
47   
48 }*/
49 void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
50 {
51         Wt::WContainerWidget* w = new Wt::WContainerWidget(parent);
52         Wt::Ext::Splitter *l = new Wt::Ext::Splitter(w);
53 //      if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true)  { l = new Wt::WHBoxLayout(); }
54  //     if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true)    { l = new Wt::WVBoxLayout(); }
55
56         Wt::WContainerWidget* w1 = bbCreateWidgetOfInput("Widget1",w);
57         Wt::WContainerWidget* w2 = bbCreateWidgetOfInput("Widget2",w);
58
59         if (w1==NULL) { w1=new Wt::WContainerWidget(); }
60         if (w2==NULL) { w2=new Wt::WContainerWidget(); }
61
62
63         l->addWidget(w1);
64         l->addWidget(w2);
65
66         //w->setLayout(l);
67         
68         bbSetOutputWidget( w );
69         
70   
71 }
72 //===== 
73 // 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)
74 //===== 
75 void LayoutSplit::bbUserSetDefaultValues()
76 {
77                 bbSetInputOrientation("VERTICAL");
78                 bbSetInputProportion(50);
79                 bbSetInputWidget1(NULL);
80                 bbSetInputWidget2(NULL);
81 }
82 //===== 
83 // 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)
84 //===== 
85 void LayoutSplit::bbUserInitializeProcessing()
86 {
87
88 }
89 //===== 
90 // 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)
91 //===== 
92 void LayoutSplit::bbUserFinalizeProcessing()
93 {
94
95 }
96 }
97 // EO namespace bbwt
98
99