Program: bbtk
Module: $RCSfile: bbwxSplit.cxx,v $
Language: C++
- Date: $Date: 2008/02/14 20:55:52 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/02/15 10:23:59 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void Split::bbUserConstructor()
{
bbSetInputWinTitle("Split");
- bbSetInputOrientation("HORIZONTAL");
+ bbSetInputOrientation("VERTICAL");
bbSetInputProportion(50);
bbSetInputWidget1(NULL);
bbSetInputWidget2(NULL);
if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { orientation=0; }
if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { orientation=1; }
- if (orientation==0) { w->SplitHorizontally( w1, w2, 100); }
+ if (orientation==1) { w->SplitHorizontally( w1, w2, 100); }
else { w->SplitVertically( w1, w2, 100); }
bbSetOutputWidget( w );