X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=creaWT.git;a=blobdiff_plain;f=wt%2Fbbtk_wt_PKG%2Fsrc%2FbbwtLayoutLine.cxx~;fp=wt%2Fbbtk_wt_PKG%2Fsrc%2FbbwtLayoutLine.cxx~;h=0000000000000000000000000000000000000000;hp=04250e5c64e527e057b6b936402b55db92c76e9e;hb=5bdd6bc07e285c2dc485dd053aaee47356d8689b;hpb=430578713a572cd83e04ca0f65c6e34e87879cd6 diff --git a/wt/bbtk_wt_PKG/src/bbwtLayoutLine.cxx~ b/wt/bbtk_wt_PKG/src/bbwtLayoutLine.cxx~ deleted file mode 100644 index 04250e5..0000000 --- a/wt/bbtk_wt_PKG/src/bbwtLayoutLine.cxx~ +++ /dev/null @@ -1,138 +0,0 @@ -//===== -// 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 -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_ -