]> Creatis software - bbtk.git/commitdiff
cosmetics
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 14 Feb 2008 20:55:52 +0000 (20:55 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 14 Feb 2008 20:55:52 +0000 (20:55 +0000)
kernel/src/bbtkExecuter.cxx
packages/wx/src/bbwxSizer.cxx
packages/wx/src/bbwxSplit.cxx

index 144dfcf5e55514b53cf0fcaa93208605886f7fac..7d24b70fa357ac6f29a5847e0ef11ebef1bd38c9 100644 (file)
@@ -1,11 +1,11 @@
 /*=========================================================================
-                                                                                
+         
   Program:   bbtk
   Module:    $RCSfile: bbtkExecuter.cxx,v $ $
   Language:  C++
-  Date:      $Date: 2008/02/14 20:26:54 $
-  Version:   $Revision: 1.11 $
-                                                                                
+  Date:      $Date: 2008/02/14 20:57:27 $
+  Version:   $Revision: 1.12 $
+
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
   http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
@@ -13,7 +13,7 @@
      This software is distributed WITHOUT ANY WARRANTY; without even
      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
      PURPOSE.  See the above copyright notices for more information.
-                                                                                
+
 =========================================================================*/
 /**
  *  \file 
index 86736a9b4da16a2ca0d1db59607da7ec523e39c3..c213d41483b22402ec8d49d8d20fe4fb2e593204 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxSizer.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/08 14:58:31 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2008/02/14 20:55:52 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
                                                                                 
 =========================================================================*/
 /**
- *  \file 
- *  \brief 
+ *  \file
+ *  \brief
  */
 
 
 #ifdef _USE_WXWIDGETS_
 
-
 #include "bbwxSizer.h"
 #include "bbwxPackage.h"
 #include "bbtkUtilities.h"
 
 
-
-
-
 namespace bbwx
 {
-  BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx , Sizer);
-  
-
+  BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx, Sizer);
   BBTK_USER_BLACK_BOX_IMPLEMENTATION(Sizer,bbtk::WxBlackBox);
-  
-       void Sizer::bbUserConstructor() 
-       { 
+
+       void Sizer::bbUserConstructor()
+       {
                bbSetInputOrientation("VERTICAL");
                bbSetInputWidget1(NULL);
                bbSetInputWidget2(NULL);
@@ -53,31 +47,29 @@ namespace bbwx
                bbSetInputWidget9(NULL);
        }
 
+         void Sizer::Process()
+         {
+         }
+
        void Sizer::TryInsertWindow(wxWindow *parent, wxWindow *w,wxBoxSizer *sizer)
        {
                  if (w!=NULL)
                  {
                          w->Reparent(parent);
-                         sizer->Add(w, 1, wxEXPAND, 0);                  
-                 }             
+                         sizer->Add(w, 1, wxEXPAND, 0);
+                 }
        }
 
-
-         void Sizer::Process() 
-         { 
-         }
-
-         
-         void Sizer::CreateWidget() 
-         { 
+         void Sizer::CreateWidget()
+         {
          wxBoxSizer *sizer;
          wxPanel *w=new wxPanel(bbGetWxParent(), -1);
          w->SetName( bbtk::std2wx( bbGetInputWinTitle() ) );
-         
+
          int style=0;
       if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true)  { style=wxHORIZONTAL; }
-         if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true)        { style=wxVERTICAL; }
-         
+         if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true)        { style=wxVERTICAL;   }
+
          sizer = new wxBoxSizer(style);
 
          TryInsertWindow(w,bbGetInputWidget1(),sizer);
@@ -89,16 +81,12 @@ namespace bbwx
          TryInsertWindow(w,bbGetInputWidget7(),sizer);
          TryInsertWindow(w,bbGetInputWidget8(),sizer);
          TryInsertWindow(w,bbGetInputWidget9(),sizer);
-         
-         w     -> SetSizer(sizer); 
+
+         w     -> SetSizer(sizer);
          bbSetOutputWidget( w );
   }
-  
-
-
-
 
 }//namespace bbwx
 
-#endif
+#endif // _USE_WXWIDGETS_
 
index 2e61dc71b4f82cdb46c03e64863976d242ae0dc1..0b5a71f41ae4158db41f0c49bac2d856a3572fbe 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxSplit.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/14 16:55:07 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2008/02/14 20:55:52 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -16,8 +16,8 @@
                                                                                 
 =========================================================================*/
 /**
- *  \file 
- *  \brief 
+ *  \file
+ *  \brief
  */
 
 
 #include "bbtkUtilities.h"
 
 
-//#include "bbtk
-
 namespace bbwx
 {
   BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,Split);
-
-
   BBTK_USER_BLACK_BOX_IMPLEMENTATION(Split,bbtk::WxBlackBox);
-  
 
-  void Split::bbUserConstructor() 
-  { 
+  void Split::bbUserConstructor()
+  {
        bbSetInputWinTitle("Split");
     bbSetInputOrientation("HORIZONTAL");
     bbSetInputProportion(50);
@@ -47,18 +42,18 @@ namespace bbwx
     bbSetInputWidget2(NULL);
   }
 
-  void Split::Process() 
-  { 
+  void Split::Process()
+  {
   }
 
-  void Split::CreateWidget() 
-  { 
+  void Split::CreateWidget()
+  {
     wxSplitterWindow* w = new wxSplitterWindow(bbGetWxParent(),
                                               -1,
                                               wxDefaultPosition,
-                                              wxDefaultSize, 
+                                              wxDefaultSize,
                                               //wxSize(400,200),
-                                              wxSP_3D | 
+                                              wxSP_3D |
                                               wxSP_LIVE_UPDATE );
        w->SetName( bbtk::std2wx( bbGetInputWinTitle() ) );
     wxWindow* w1 = bbGetInputWidget1();
@@ -70,17 +65,15 @@ namespace bbwx
     w2->Reparent(w);
     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==0) { w->SplitHorizontally( w1, w2, 100); }
-       if (orientation==1) { w->SplitVertically( w1, w2, 100); }
-    
-    
+       else                { w->SplitVertically( w1, w2, 100);   }
+
     bbSetOutputWidget( w );
   }
-  
-  
 
-}//namespace bbtk
+}//namespace bbwx
 
-#endif // _USE_WXWIDGETS_ 
+#endif // _USE_WXWIDGETS_