]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxLayoutSplit.cxx
no message
[bbtk.git] / packages / wx / src / bbwxLayoutSplit.cxx
index c5d6cf907cd4bafa44b40f5f832eefc4081416c3..94c0e48ae9d1745370ec49779b676f148b6c860c 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxLayoutSplit.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/24 15:45:51 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2010/04/08 14:38:00 $
+  Version:   $Revision: 1.13 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -46,14 +46,25 @@ namespace bbwx
   BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,LayoutSplit);
   BBTK_BLACK_BOX_IMPLEMENTATION(LayoutSplit,bbtk::WxBlackBox);
 
-  void LayoutSplit::bbUserConstructor()
-  {
-    bbSetInputOrientation("VERTICAL");
-    bbSetInputProportion(50);
-    bbSetInputWidget1(NULL);
-    bbSetInputWidget2(NULL);
-  }
-
+       //-----------------------------------------------------------------     
+       void LayoutSplit::bbUserSetDefaultValues()
+       {
+               bbSetInputOrientation("VERTICAL");
+               bbSetInputProportion(50);
+               bbSetInputWidget1(NULL);
+               bbSetInputWidget2(NULL);                
+       }
+       
+       //-----------------------------------------------------------------     
+       void LayoutSplit::bbUserInitializeProcessing()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
+       void LayoutSplit::bbUserFinalizeProcessing()
+       {
+       }       
+       
   void LayoutSplit::Process()
   {
   }
@@ -68,6 +79,7 @@ namespace bbwx
                                               wxSP_3D |
                                               wxSP_LIVE_UPDATE );
     w->SetName( bbtk::std2wx( bbGetInputWinTitle() ) );
+       w->SetMinimumPaneSize(2);
 /*
          wxWindow* w1 = bbGetInputWidget1();
     wxWindow* w2 = bbGetInputWidget2();
@@ -85,10 +97,10 @@ namespace bbwx
          
          int orientation=0;
     if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true)  { orientation=0; }
-    if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true)       { orientation=1; }
+    if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true)    { orientation=1; }
     
 
-         if (orientation==1) { w->SplitHorizontally( w1, w2, 100); }
+    if (orientation==1) { w->SplitHorizontally( w1, w2, 100); }
     else                { w->SplitVertically( w1, w2, 100);   }
   
     bbSetOutputWidget( w );
@@ -99,6 +111,7 @@ namespace bbwx
   // when window is shown
   void  LayoutSplit::OnShowWidget()
   {
+    //    std::cout << "LayoutSplit::OnShowWidget()" << std::endl;
     if (bbGetOutputWidget()==0)
       {
        return;
@@ -125,8 +138,7 @@ namespace bbwx
     //    std::cout << "pos = "<<pos<<std::endl;
   
     win->SetSashPosition(pos,true);
-    bbUserOnShowWidget("Widget1");
-    bbUserOnShowWidget("Widget2");
+
   }