Program: bbtk
Module: $RCSfile: bbwxSplit.h,v $
Language: C++
- Date: $Date: 2008/01/22 15:02:00 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/02/08 14:58:31 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
PURPOSE. See the above copyright notices for more information.
=========================================================================*//**
- * \brief Short description in one line
- *
- * Long description which
- * can span multiple lines
*/
/**
* \file
- * \brief Pattern for the definition of a new type of Node (header)
+ * \brief Widget which splits a window into two parts
*/
/**
- * \class bbtk::NodePatern
- * \brief Pattern for the definition of a new type of Node
+ * \class bbwx::Split
+ * \brief Widget which splits a window into two parts
*/
{
- /*
-
- class Split;
-
- //--------------------------------------------------------------------------
- class SplitWidget : public bbtk::WxBlackBoxWidgetPanel
- {
- public:
-
- SplitWidget(Split* bbtksplit, wxWindow *parent, int orientation);
- ~SplitWidget();
-
- void SetChilds(wxWindow* child1,
- wxWindow* child2,
- int proportion);
-
- wxSplitterWindow *GetWxSplitterWindow();
- // void SetProportion(int prop);
-
- private:
- int mOrientation;
- wxSplitterWindow *mwxSplitterWindow;
- };
-
- //------------------------------------------------------------------------
- //------------------------------------------------------------------------
- //------------------------------------------------------------------------
-
-
- */
class Split : public bbtk::WxBlackBox
BBTK_USER_BLACK_BOX_INTERFACE(Split,bbtk::WxBlackBox);
BBTK_DECLARE_INPUT(Widget1,wxWindow*);
BBTK_DECLARE_INPUT(Widget2,wxWindow*);
- BBTK_DECLARE_INPUT(Orientation,int);
+ BBTK_DECLARE_INPUT(Orientation,std::string);
BBTK_DECLARE_INPUT(Proportion,int);
BBTK_PROCESS(Process);
- // BBTK_CREATE_WIDGET(CreateWidget);
+ BBTK_CREATE_WIDGET(CreateWidget);
void Process();
- // void CreateWidget();
+ void CreateWidget();
protected:
virtual void bbUserConstructor();
//=================================================================
-// UserBlackBox description
+// BlackBox description
BBTK_BEGIN_DESCRIBE_BLACK_BOX(Split,bbtk::WxBlackBox);
BBTK_NAME("Split");
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 0), 0=Horizontal , 1=Vertical",int);
+ 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);
//=================================================================