]> Creatis software - bbtk.git/commitdiff
LayoutSplit
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 15 Feb 2008 12:24:43 +0000 (12:24 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 15 Feb 2008 12:24:43 +0000 (12:24 +0000)
packages/wx/src/bbwxLayoutSplit.cxx [moved from packages/wx/src/bbwxSplit.cxx with 85% similarity]
packages/wx/src/bbwxLayoutSplit.h [moved from packages/wx/src/bbwxSplit.h with 70% similarity]

similarity index 85%
rename from packages/wx/src/bbwxSplit.cxx
rename to packages/wx/src/bbwxLayoutSplit.cxx
index 38627613a9de74d2862bdf1427c73455649cc6be..45750741d263c9d51661e0acd260d1729a6c8442 100644 (file)
@@ -1,10 +1,10 @@
 /*=========================================================================
                                                                                 
   Program:   bbtk
-  Module:    $RCSfile: bbwxSplit.cxx,v $
+  Module:    $RCSfile: bbwxLayoutSplit.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/15 10:23:59 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/02/15 12:24:43 $
+  Version:   $Revision: 1.1 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 
 #ifdef _USE_WXWIDGETS_
 
-#include "bbwxSplit.h"
+#include "bbwxLayoutSplit.h"
 #include "bbwxPackage.h"
 #include "bbtkUtilities.h"
 
 
 namespace bbwx
 {
-  BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,Split);
-  BBTK_USER_BLACK_BOX_IMPLEMENTATION(Split,bbtk::WxBlackBox);
+  BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,LayoutSplit);
+  BBTK_USER_BLACK_BOX_IMPLEMENTATION(LayoutSplit,bbtk::WxBlackBox);
 
-  void Split::bbUserConstructor()
+  void LayoutSplit::bbUserConstructor()
   {
-       bbSetInputWinTitle("Split");
     bbSetInputOrientation("VERTICAL");
     bbSetInputProportion(50);
     bbSetInputWidget1(NULL);
     bbSetInputWidget2(NULL);
   }
 
-  void Split::Process()
+  void LayoutSplit::Process()
   {
   }
 
-  void Split::CreateWidget()
+  void LayoutSplit::CreateWidget()
   {
     wxSplitterWindow* w = new wxSplitterWindow(bbGetWxParent(),
                                               -1,
similarity index 70%
rename from packages/wx/src/bbwxSplit.h
rename to packages/wx/src/bbwxLayoutSplit.h
index 4edb28ea3cb1ebbd8f9ffa600243ce9a17df859b..a1656c177177d8f4c899d231f3f66694de869849 100644 (file)
@@ -1,10 +1,10 @@
 /*=========================================================================
                                                                                 
   Program:   bbtk
-  Module:    $RCSfile: bbwxSplit.h,v $
+  Module:    $RCSfile: bbwxLayoutSplit.h,v $
   Language:  C++
-  Date:      $Date: 2008/02/08 14:58:31 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/02/15 12:24:43 $
+  Version:   $Revision: 1.1 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -21,7 +21,7 @@
  * \brief Widget which splits a window into two parts 
  */
 /**
- * \class bbwx::Split
+ * \class bbwx::LayoutSplit
  * \brief Widget which splits a window into two parts 
  */
 
@@ -29,8 +29,8 @@
 #ifdef _USE_WXWIDGETS_
 
 
-#ifndef __bbWxSplit_h__
-#define __bbWxSplit_h__
+#ifndef __bbWxLayoutSplit_h__
+#define __bbWxLayoutSplit_h__
 
 #include "bbtkWxBlackBox.h"
 #include <wx/splitter.h>
@@ -43,10 +43,10 @@ namespace bbwx
   
   
   
-  class Split : public bbtk::WxBlackBox
+  class LayoutSplit : public bbtk::WxBlackBox
   {
     
-    BBTK_USER_BLACK_BOX_INTERFACE(Split,bbtk::WxBlackBox);
+    BBTK_USER_BLACK_BOX_INTERFACE(LayoutSplit,bbtk::WxBlackBox);
     BBTK_DECLARE_INPUT(Widget1,wxWindow*);
     BBTK_DECLARE_INPUT(Widget2,wxWindow*);
     BBTK_DECLARE_INPUT(Orientation,std::string);
@@ -65,20 +65,20 @@ namespace bbwx
  
 //=================================================================
 // BlackBox description
-  BBTK_BEGIN_DESCRIBE_BLACK_BOX(Split,bbtk::WxBlackBox);
-  BBTK_NAME("Split");
+  BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutSplit,bbtk::WxBlackBox);
+  BBTK_NAME("LayoutSplit");
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
   BBTK_DESCRIPTION("Widget which splits a window in two fixed size parts (wxSplitterWindow)");
   // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
-  BBTK_INPUT(Split,Widget1,"Upper or left widget",wxWindow*);
-  BBTK_INPUT(Split,Widget2,"Lower or right widget",wxWindow*);
-  BBTK_INPUT(Split,Orientation,"Orientation (default H), 0=H=HORIZONTAL , 1=V=VERTICAL",std::string);
-   BBTK_INPUT(Split,Proportion,"Proportion (in percent) of the first children in the window",int);
-  BBTK_END_DESCRIBE_BLACK_BOX(Split);
+  BBTK_INPUT(LayoutSplit,Widget1,"Upper or left widget",wxWindow*);
+  BBTK_INPUT(LayoutSplit,Widget2,"Lower or right widget",wxWindow*);
+  BBTK_INPUT(LayoutSplit,Orientation,"Orientation (default H), 0=H=HORIZONTAL , 1=V=VERTICAL",std::string);
+   BBTK_INPUT(LayoutSplit,Proportion,"Proportion (in percent) of the first children in the window",int);
+  BBTK_END_DESCRIBE_BLACK_BOX(LayoutSplit);
   //=================================================================
 }
 
 //namespace bbtk
-#endif  //__bbtkWxSplit_h__
+#endif  //__bbtkWxLayoutSplit_h__
 
 #endif //_USE_WXWIDGETS_