/*=========================================================================
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,
/*=========================================================================
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
* \brief Widget which splits a window into two parts
*/
/**
- * \class bbwx::Split
+ * \class bbwx::LayoutSplit
* \brief Widget which splits a window into two parts
*/
#ifdef _USE_WXWIDGETS_
-#ifndef __bbWxSplit_h__
-#define __bbWxSplit_h__
+#ifndef __bbWxLayoutSplit_h__
+#define __bbWxLayoutSplit_h__
#include "bbtkWxBlackBox.h"
#include <wx/splitter.h>
- 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);
//=================================================================
// 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_