Program: bbtk
Module: $RCSfile: bbtkKWBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/12/02 10:21:40 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/12/02 13:37:54 $
+ Version: $Revision: 1.4 $
=========================================================================*/
/* ---------------------------------------------------------------------
KW::GetApplication()->AddWindow((vtkKWWindowBase*)win);
win->Create();
win->SetResizable(0,0);
- bbUserCreateWidget(win->GetFrame());
+ bbUserCreateWidget(win->GetFrame());
KW::GetApplication()->Script("place %s -x 0 -y 0 -width %d -height %d",
bbGetOutputWidget()->GetWidgetName(),
bbGetInputWinWidth(),
bbGetInputWinHeight());
+
+
+
+
/*
bbGetOutputWidget()->SetParent(win);
}
//=========================================================================
-
+ /*
+ //=========================================================================
+ void KWBlackBox::bbPlaceWidget()
+ {
+ vtkKWFrame* parent = (vtkKWFrame*)(bbGetOutputWidget()->GetParent());
+ bbGetOutputWidget->GetApplication()->Script("place %s -x 0 -y 0 -width %s -height %s",
+ bbGetOutputWidget()->GetWidgetName(),
+ parent->GetWidth(),
+ parent->GetHeight());
+ }
+ //=========================================================================
+ */
+
/*
// LG 24/11/08 : New widget pipeline
void KWBlackBox::bbCreateWidgetAndEventHandler(vtkKWWidget* parent)
*/
- vtkKWWidget* KWBlackBox::bbCreateWidgetOfInput(const std::string& in, vtkKWWidget* parent)
+ vtkKWWidget* KWBlackBox::bbCreateWidgetOfInput(const std::string& in, vtkKWFrame* parent)
{
vtkKWWidget* w = 0;
// If input is connected