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)
4 #include "bbwtLayoutTab.h"
5 #include "bbwtPackage.h"
6 #include "bbtkUtilities.h"
11 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,LayoutTab)
12 BBTK_BLACK_BOX_IMPLEMENTATION(LayoutTab,bbtk::WtBlackBox);
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)
16 void LayoutTab::Process()
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)
24 void LayoutTab::CreateWidget(Wt::WContainerWidget* parent)
30 Wt::WContainerWidget *w = new Wt::WContainerWidget(parent);
31 Wt::WTabWidget* layout = new Wt::WTabWidget(w);
32 Wt::WContainerWidget *cw;
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()));}
45 bbSetOutputWidget( w );
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)
52 void LayoutTab::bbUserSetDefaultValues()
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");
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)
77 void LayoutTab::bbUserInitializeProcessing()
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)
84 void LayoutTab::bbUserFinalizeProcessing()