From 4858c45a868b9b0071f9980ff6be0debd5d4864c Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Fri, 15 Feb 2008 12:24:43 +0000 Subject: [PATCH] LayoutSplit --- .../{bbwxSplit.cxx => bbwxLayoutSplit.cxx} | 19 ++++++----- .../wx/src/{bbwxSplit.h => bbwxLayoutSplit.h} | 32 +++++++++---------- 2 files changed, 25 insertions(+), 26 deletions(-) rename packages/wx/src/{bbwxSplit.cxx => bbwxLayoutSplit.cxx} (85%) rename packages/wx/src/{bbwxSplit.h => bbwxLayoutSplit.h} (70%) diff --git a/packages/wx/src/bbwxSplit.cxx b/packages/wx/src/bbwxLayoutSplit.cxx similarity index 85% rename from packages/wx/src/bbwxSplit.cxx rename to packages/wx/src/bbwxLayoutSplit.cxx index 3862761..4575074 100644 --- a/packages/wx/src/bbwxSplit.cxx +++ b/packages/wx/src/bbwxLayoutSplit.cxx @@ -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 @@ -23,30 +23,29 @@ #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, diff --git a/packages/wx/src/bbwxSplit.h b/packages/wx/src/bbwxLayoutSplit.h similarity index 70% rename from packages/wx/src/bbwxSplit.h rename to packages/wx/src/bbwxLayoutSplit.h index 4edb28e..a1656c1 100644 --- a/packages/wx/src/bbwxSplit.h +++ b/packages/wx/src/bbwxLayoutSplit.h @@ -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 @@ -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_ -- 2.45.1