]> Creatis software - creaWT.git/blobdiff - wt/bbtk_wt_PKG/src/bbwtLayoutTab.cxx
2498 BBTK FeatureNewNormal wt-version PackageWt
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtLayoutTab.cxx
index fb28982a029e39b2b404dd419095bca87fa3fa0a..e0d5947f286bbd8c7d8a26918637400cf277092f 100644 (file)
@@ -15,26 +15,35 @@ BBTK_BLACK_BOX_IMPLEMENTATION(LayoutTab,bbtk::WtBlackBox);
 //===== 
 void LayoutTab::Process()
 {
-
-   std::string msg;
-    if (bbGetInputTitle()!="")
-      {
-       msg = bbGetInputTitle()+": " + bbGetInputIn();
-      }
-    else
-      {
-       msg = bbGetInputIn();
-      }
-   ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) ); 
+       
   
 }
 //===== 
 // 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 LayoutTab::CreateWidget(wxWindow* parent)
+void LayoutTab::CreateWidget(Wt::WContainerWidget* parent)
 {
 
-   bbSetOutputWidget( new wxStaticText ( parent , -1 , _T("") ) );
+       
+       
+       
+       Wt::WContainerWidget *w = new Wt::WContainerWidget(parent);
+       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("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("Widget5",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel5()));}
+       if ((cw=bbCreateWidgetOfInput("Widget6",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel6()));}
+       if ((cw=bbCreateWidgetOfInput("Widget7",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel7()));}
+       if ((cw=bbCreateWidgetOfInput("Widget8",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel8()));}
+       if ((cw=bbCreateWidgetOfInput("Widget9",w)) != 0)  {layout->addTab(cw,bbtk::std2wt(bbGetInputLabel9()));}
+
+       
+    bbSetOutputWidget( w );    
+
   
 }
 //===== 
@@ -42,7 +51,7 @@ void LayoutTab::CreateWidget(wxWindow* parent)
 //===== 
 void LayoutTab::bbUserSetDefaultValues()
 {
-               bbSetInputOrientation("TOP");
+       
                bbSetInputWidget1(NULL);
                bbSetInputWidget2(NULL);
                bbSetInputWidget3(NULL);
@@ -52,6 +61,15 @@ void LayoutTab::bbUserSetDefaultValues()
                bbSetInputWidget7(NULL);
                bbSetInputWidget8(NULL);
                bbSetInputWidget9(NULL);
+               bbSetInputLabel1("Tab 1");
+               bbSetInputLabel2("Tab 2");
+               bbSetInputLabel3("Tab 3");
+               bbSetInputLabel4("Tab 4");
+               bbSetInputLabel5("Tab 5");
+               bbSetInputLabel6("Tab 6");
+               bbSetInputLabel7("Tab 7");
+               bbSetInputLabel8("Tab 8");
+               bbSetInputLabel9("Tab 9");
 }
 //===== 
 // 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)