//=====
// 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)
//=====
-void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
+/*void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
{
Wt::WContainerWidget* w = new Wt::WContainerWidget(parent);
Wt::WBoxLayout *l;
bbSetOutputWidget( w );
+}*/
+void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
+{
+ Wt::WContainerWidget* w = new Wt::WContainerWidget(parent);
+ Wt::Ext::Splitter *l = new Wt::Ext::Splitter(w);
+// if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { l = new Wt::WHBoxLayout(); }
+ // if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { l = new Wt::WVBoxLayout(); }
+
+ Wt::WContainerWidget* w1 = bbCreateWidgetOfInput("Widget1",w);
+ Wt::WContainerWidget* w2 = bbCreateWidgetOfInput("Widget2",w);
+
+ if (w1==NULL) { w1=new Wt::WContainerWidget(); }
+ if (w2==NULL) { w2=new Wt::WContainerWidget(); }
+
+ w1->resize(Wt::WLength::Auto,Wt::WLength::Auto) ;
+ w2->resize(Wt::WLength::Auto,Wt::WLength::Auto) ;
+
+ l->addWidget(w1);
+ l->addWidget(w2);
+
+ //w->setLayout(l);
+
+ bbSetOutputWidget( w );
+
+
}
//=====
// 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)
//=====
// 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)
//=====
-void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
+/*void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
{
Wt::WContainerWidget* w = new Wt::WContainerWidget(parent);
Wt::WBoxLayout *l;
- if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { l = new Wt::WHBoxLayout(parent); }
- if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { l = new Wt::WVBoxLayout(parent); }
+ if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { l = new Wt::WHBoxLayout(); }
+ if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { l = new Wt::WVBoxLayout(); }
Wt::WContainerWidget* w1 = bbCreateWidgetOfInput("Widget1",w);
Wt::WContainerWidget* w2 = bbCreateWidgetOfInput("Widget2",w);
bbSetOutputWidget( w );
+}*/
+void LayoutSplit::CreateWidget(Wt::WContainerWidget* parent)
+{
+ Wt::WContainerWidget* w = new Wt::WContainerWidget(parent);
+ Wt::Ext::Splitter *l = new Wt::Ext::Splitter(w);
+// if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { l = new Wt::WHBoxLayout(); }
+ // if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { l = new Wt::WVBoxLayout(); }
+
+ Wt::WContainerWidget* w1 = bbCreateWidgetOfInput("Widget1",w);
+ Wt::WContainerWidget* w2 = bbCreateWidgetOfInput("Widget2",w);
+
+ if (w1==NULL) { w1=new Wt::WContainerWidget(); }
+ if (w2==NULL) { w2=new Wt::WContainerWidget(); }
+
+
+ l->addWidget(w1);
+ l->addWidget(w2);
+
+ //w->setLayout(l);
+
+ bbSetOutputWidget( w );
+
+
}
//=====
// 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)
Wt::WContainerWidget *w = new Wt::WContainerWidget(parent);
- Wt::WTabWidget* layout = new Wt::WTabWidget();
+ Wt::WTabWidget* layout = new Wt::WTabWidget(w);
Wt::WContainerWidget *cw;
- if ((cw=bbCreateWidgetOfInput("Widget1",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel1()));}
+ if ((cw=bbCreateWidgetOfInput("Widget1",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel1()));}
if ((cw=bbCreateWidgetOfInput("Widget2",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel2()));}
if ((cw=bbCreateWidgetOfInput("Widget3",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel3()));}
if ((cw=bbCreateWidgetOfInput("Widget4",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel4()));}
if ((cw=bbCreateWidgetOfInput("Widget8",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel8()));}
if ((cw=bbCreateWidgetOfInput("Widget9",w)) != 0) {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel9()));}
- w->setLayout(layout);
+
bbSetOutputWidget( w );
// 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)
//=====
- BBTK_DECLARE_INPUT(Widget1,Wt:WContainerWidget*);
- BBTK_DECLARE_INPUT(Widget2,Wt:WContainerWidget*);
- BBTK_DECLARE_INPUT(Widget3,Wt:WContainerWidget*);
- BBTK_DECLARE_INPUT(Widget4,Wt:WContainerWidget*);
- BBTK_DECLARE_INPUT(Widget5,Wt:WContainerWidget*);
- BBTK_DECLARE_INPUT(Widget6,Wt:WContainerWidget*);
- BBTK_DECLARE_INPUT(Widget7,Wt:WContainerWidget*);
- BBTK_DECLARE_INPUT(Widget8,Wt:WContainerWidget*);
- BBTK_DECLARE_INPUT(Widget9,Wt:WContainerWidget*);
+ BBTK_DECLARE_INPUT(Widget1,Wt::WContainerWidget*);
+ BBTK_DECLARE_INPUT(Widget2,Wt::WContainerWidget*);
+ BBTK_DECLARE_INPUT(Widget3,Wt::WContainerWidget*);
+ BBTK_DECLARE_INPUT(Widget4,Wt::WContainerWidget*);
+ BBTK_DECLARE_INPUT(Widget5,Wt::WContainerWidget*);
+ BBTK_DECLARE_INPUT(Widget6,Wt::WContainerWidget*);
+ BBTK_DECLARE_INPUT(Widget7,Wt::WContainerWidget*);
+ BBTK_DECLARE_INPUT(Widget8,Wt::WContainerWidget*);
+ BBTK_DECLARE_INPUT(Widget9,Wt::WContainerWidget*);
BBTK_DECLARE_INPUT(Label1,std::string);
BBTK_DECLARE_INPUT(Label2,std::string);
BBTK_DECLARE_INPUT(Label3,std::string);
BBTK_CATEGORY("__CategoryBlackBox__");
BBTK_DESCRIPTION("LayoutTab widget The label of each 'note book' will be the name of the object it contains");
- BBTK_INPUT(LayoutTab,Widget1,"widget 1",Wt:WContainerWidget*,"");
- BBTK_INPUT(LayoutTab,Widget2,"widget 2",Wt:WContainerWidget*,"");
- BBTK_INPUT(LayoutTab,Widget3,"widget 3",Wt:WContainerWidget*,"");
- BBTK_INPUT(LayoutTab,Widget4,"widget 4",Wt:WContainerWidget*,"");
- BBTK_INPUT(LayoutTab,Widget5,"widget 5",Wt:WContainerWidget*,"");
- BBTK_INPUT(LayoutTab,Widget6,"widget 6",Wt:WContainerWidget*,"");
- BBTK_INPUT(LayoutTab,Widget7,"widget 7",Wt:WContainerWidget*,"");
- BBTK_INPUT(LayoutTab,Widget8,"widget 8",Wt:WContainerWidget*,"");
- BBTK_INPUT(LayoutTab,Widget9,"widget 9",Wt:WContainerWidget*,"");
+ BBTK_INPUT(LayoutTab,Widget1,"widget 1",Wt::WContainerWidget*,"");
+ BBTK_INPUT(LayoutTab,Widget2,"widget 2",Wt::WContainerWidget*,"");
+ BBTK_INPUT(LayoutTab,Widget3,"widget 3",Wt::WContainerWidget*,"");
+ BBTK_INPUT(LayoutTab,Widget4,"widget 4",Wt::WContainerWidget*,"");
+ BBTK_INPUT(LayoutTab,Widget5,"widget 5",Wt::WContainerWidget*,"");
+ BBTK_INPUT(LayoutTab,Widget6,"widget 6",Wt::WContainerWidget*,"");
+ BBTK_INPUT(LayoutTab,Widget7,"widget 7",Wt::WContainerWidget*,"");
+ BBTK_INPUT(LayoutTab,Widget8,"widget 8",Wt::WContainerWidget*,"");
+ BBTK_INPUT(LayoutTab,Widget9,"widget 9",Wt::WContainerWidget*,"");
BBTK_INPUT(LayoutTab,Label1,"label 1",std::string,"");
BBTK_INPUT(LayoutTab,Label2,"label 2",std::string,"");
BBTK_INPUT(LayoutTab,Label3,"label 3",std::string,"");