+++ /dev/null
-//=====
-// 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)
-//=====
-#ifdef _USE_WT_
-#include "bbwtLayoutLine.h"
-#include "bbwtPackage.h"
-#include "bbtkUtilities.h"
-#include <Wt/WGridLayout>
-namespace bbwt
-{
-
-BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,LayoutLine)
-BBTK_BLACK_BOX_IMPLEMENTATION(LayoutLine,bbtk::WtBlackBox);
-//=====
-// 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 LayoutLine::Process()
-{
-
-
-
-}
-//=====
-// 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 LayoutLine::CreateWidget(Wt::WContainerWidget* parent)
-{
-
- Wt::WContainerWidget *w = new Wt::WContainerWidget(parent);
- int count = 0;
- Wt::WLayout *layout;
- Wt::WContainerWidget *cw;
- if (bbtk::Utilities::loosematch(bbGetInputOrientation(),
- "0|H|HORIZONTAL")==true)
- {
- layout = new Wt::WHBoxLayout();
- if ((cw=bbCreateWidgetOfInput("Widget1",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget2",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget3",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget4",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget5",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget6",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget7",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget8",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget9",w)) != 0) {layout->addWidget(cw);}
-
- }
- if (bbtk::Utilities::loosematch(bbGetInputOrientation(),
- "1|V|VERTICAL")==true)
- {
-
- layout = new Wt::WVBoxLayout();
- if ((cw=bbCreateWidgetOfInput("Widget1",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget2",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget3",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget4",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget5",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget6",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget7",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget8",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget9",w)) != 0) {layout->addWidget(cw);}
- }
-
-/*
- Wt::WContainerWidget *w = new Wt::WContainerWidget(parent);
- int count = 0;
- Wt::WGridLayout *layout = new Wt::WGridLayout(0);
- Wt::WContainerWidget *cw;
- if (bbtk::Utilities::loosematch(bbGetInputOrientation(),
- "0|H|HORIZONTAL")==true)
- {
-
- if ((cw=bbCreateWidgetOfInput("Widget1",w)) != 0) {layout->addWidget(cw,0,count++);}
- if ((cw=bbCreateWidgetOfInput("Widget2",w)) != 0) {layout->addWidget(cw,0,count++);}
- if ((cw=bbCreateWidgetOfInput("Widget3",w)) != 0) {layout->addWidget(cw,0,count++);}
- if ((cw=bbCreateWidgetOfInput("Widget4",w)) != 0) {layout->addWidget(cw,0,count++);}
- if ((cw=bbCreateWidgetOfInput("Widget5",w)) != 0) {layout->addWidget(cw,0,count++);}
- if ((cw=bbCreateWidgetOfInput("Widget6",w)) != 0) {layout->addWidget(cw,0,count++);}
- if ((cw=bbCreateWidgetOfInput("Widget7",w)) != 0) {layout->addWidget(cw,0,count++);}
- if ((cw=bbCreateWidgetOfInput("Widget8",w)) != 0) {layout->addWidget(cw,0,count++);}
- if ((cw=bbCreateWidgetOfInput("Widget9",w)) != 0) {layout->addWidget(cw,0,count++);}
-
- }
- if (bbtk::Utilities::loosematch(bbGetInputOrientation(),
- "1|V|VERTICAL")==true)
- {
- if ((cw=bbCreateWidgetOfInput("Widget1",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget2",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget3",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget4",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget5",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget6",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget7",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget8",w)) != 0) {layout->addWidget(cw);}
- if ((cw=bbCreateWidgetOfInput("Widget9",w)) != 0) {layout->addWidget(cw);}
- }
-
-*/
- 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)
-//=====
-void LayoutLine::bbUserSetDefaultValues()
-{
- bbSetInputOrientation("VERTICAL");
- bbSetInputWidget1(NULL);
- bbSetInputWidget2(NULL);
- bbSetInputWidget3(NULL);
- bbSetInputWidget4(NULL);
- bbSetInputWidget5(NULL);
- bbSetInputWidget6(NULL);
- bbSetInputWidget7(NULL);
- bbSetInputWidget8(NULL);
- bbSetInputWidget9(NULL);
-
-}
-//=====
-// 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 LayoutLine::bbUserInitializeProcessing()
-{
-
-}
-//=====
-// 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 LayoutLine::bbUserFinalizeProcessing()
-{
-
-}
-}
-// EO namespace bbwt
-#endif // _USE_WXWIDGETS_
-