+
+ //-----------------------------------------------------------------
+ void LayoutTab::TryInsertWindow(wxNotebook *book, const std::string& input )
+ {
+ wxWindow* w = bbCreateWidgetOfInput(input,book); //panel);
+ if (w!=NULL)
+ {
+ book->AddPage(w,w->GetName());
+ }
+ }
+
+
+ void LayoutTab::SetTitleTabs()
+ {
+
+ std::vector<std::string> vecTitle;
+ std::vector<std::string> vecInputNameWidget;
+ vecInputNameWidget.push_back("Widget1");
+ vecInputNameWidget.push_back("Widget2");
+ vecInputNameWidget.push_back("Widget3");
+ vecInputNameWidget.push_back("Widget4");
+ vecInputNameWidget.push_back("Widget5");
+ vecInputNameWidget.push_back("Widget6");
+ vecInputNameWidget.push_back("Widget7");
+ vecInputNameWidget.push_back("Widget8");
+ vecInputNameWidget.push_back("Widget9");
+ int iWidget,sizeVecInputNameWidget= vecInputNameWidget.size();
+ for (iWidget=0; iWidget<sizeVecInputNameWidget; iWidget++)
+ {
+ bbtk::BlackBoxInputConnector* c = bbGetInputConnectorMap().find( vecInputNameWidget[iWidget] )->second ;
+ if ( c->IsConnected() )
+ {
+ // Get black box from
+ BlackBox::Pointer from = c->GetConnection()->GetBlackBoxFrom();
+ bbtk::WidgetBlackBox<wxWindow>::Pointer wfrom = boost::dynamic_pointer_cast<bbtk::WidgetBlackBox<wxWindow> >(from);
+ vecTitle.push_back( wfrom->bbGetInputWinTitle() );
+ } // if c
+ } // for iWidget
+
+
+ wxNotebook* w = (wxNotebook*)bbGetOutputWidget();
+ if (w!=NULL)
+ {
+ int i,size=vecTitle.size();
+ for (i=0; i<size; i++)
+ {
+ w->SetPageText(i, wxString( vecTitle[i].c_str(),wxConvUTF8 ) );
+ } // for i
+ } //w
+ }
+
+
+ void LayoutTab::Process()
+ {
+ PutWinTitle();
+ SetTitleTabs();
+ }