int height = parent->GetHeight();
int orientation = 0;
if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true)
- {
- orientation = 0;
- }
- else if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true)
- {
- orientation = 1;
- }
- else
- {
- bbtkWarning("Unrecognized value '"<<bbGetInputOrientation()<<"' for input 'Orientation' of LayoutSplit "<<bbGetName()<<std::endl);
- }
+ {
+ orientation = 0;
+ } else if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) {
+ orientation = 1;
+ } else {
+ bbtkWarning("Unrecognized value '"<<bbGetInputOrientation()<<"' for input 'Orientation' of LayoutSplit "<<bbGetName()<<std::endl);
+ }
if (orientation==0)
- {
- splitframe->SetOrientationToHorizontal ();
- width = width / 2;
- }
- else
- {
- splitframe->SetOrientationToVertical ();
- height = height / 2 ;
- }
-
- width = width - 5;
- height = height - 5 ;
+ {
+ splitframe->SetOrientationToHorizontal ();
+ width = width / 2;
+ } else {
+ splitframe->SetOrientationToVertical ();
+ height = height / 2 ;
+ }
+
+ width = width - 5;
+ height = height - 5 ;
/*
bbGetOutputWidget()->GetApplication()->Script("place %s -x 0 -y 0 -width %d -height %d",
parent->GetWidth(),
parent->GetHeight() );
*/
- bbGetOutputWidget()->GetApplication()->Script
- ("pack %s -expand yes -fill both",
- bbGetOutputWidget()->GetWidgetName());
-
- splitframe->SetReliefToGroove();
- splitframe->SetBorderWidth(2);
-
-
- vtkKWWidget* w1 = bbCreateWidgetOfInput("Widget1",splitframe->GetFrame1());
-
- vtkKWWidget* w2 = bbCreateWidgetOfInput("Widget2",splitframe->GetFrame2());
-
- splitframe->GetApplication()->Script
- ("pack %s -expand yes -fill both",
- w1->GetWidgetName()) ;
- splitframe->GetApplication()->Script
- ("pack %s -expand yes -fill both",
- w2->GetWidgetName()) ;
+ bbGetOutputWidget()->GetApplication()->Script("pack %s -expand yes -fill both", bbGetOutputWidget()->GetWidgetName());
+ splitframe->SetReliefToGroove();
+ splitframe->SetBorderWidth(2);
+ vtkKWWidget* w1 = bbCreateWidgetOfInput("Widget1",splitframe->GetFrame1());
+ vtkKWWidget* w2 = bbCreateWidgetOfInput("Widget2",splitframe->GetFrame2());
+ splitframe->GetApplication()->Script("pack %s -expand yes -fill both",w1->GetWidgetName()) ;
+ splitframe->GetApplication()->Script("pack %s -expand yes -fill both",w2->GetWidgetName()) ;
/*
splitframe->GetApplication()->Script("pack %s -expand yes -fill x -fill y", w2->GetWidgetName());