bbwx::LayoutLine Class Reference

#include <bbwxLayoutLine.h>

List of all members.

Protected Member Functions

virtual void bbUserConstructor ()
void TryInsertWindow (wxWindow *parent, wxWindow *w, wxBoxSizer *sizer)

Private Member Functions

 BBTK_BLACK_BOX_INTERFACE (LayoutLine, bbtk::WxBlackBox)
 BBTK_DECLARE_INPUT (Widget1, wxWindow *)
 BBTK_DECLARE_INPUT (Widget2, wxWindow *)
 BBTK_DECLARE_INPUT (Widget3, wxWindow *)
 BBTK_DECLARE_INPUT (Widget4, wxWindow *)
 BBTK_DECLARE_INPUT (Widget5, wxWindow *)
 BBTK_DECLARE_INPUT (Widget6, wxWindow *)
 BBTK_DECLARE_INPUT (Widget7, wxWindow *)
 BBTK_DECLARE_INPUT (Widget8, wxWindow *)
 BBTK_DECLARE_INPUT (Widget9, wxWindow *)
 BBTK_DECLARE_INPUT (Orientation, std::string)
 BBTK_PROCESS (Process)
 BBTK_CREATE_WIDGET (CreateWidget)
void Process ()
void CreateWidget ()
void bbUserOnShow ()


Detailed Description

Definition at line 64 of file bbwxLayoutLine.h.


Member Function Documentation

bbwx::LayoutLine::BBTK_BLACK_BOX_INTERFACE ( LayoutLine  ,
bbtk::WxBlackBox   
) [private]

bbwx::LayoutLine::BBTK_DECLARE_INPUT ( Widget1  ,
wxWindow *   
) [private]

bbwx::LayoutLine::BBTK_DECLARE_INPUT ( Widget2  ,
wxWindow *   
) [private]

bbwx::LayoutLine::BBTK_DECLARE_INPUT ( Widget3  ,
wxWindow *   
) [private]

bbwx::LayoutLine::BBTK_DECLARE_INPUT ( Widget4  ,
wxWindow *   
) [private]

bbwx::LayoutLine::BBTK_DECLARE_INPUT ( Widget5  ,
wxWindow *   
) [private]

bbwx::LayoutLine::BBTK_DECLARE_INPUT ( Widget6  ,
wxWindow *   
) [private]

bbwx::LayoutLine::BBTK_DECLARE_INPUT ( Widget7  ,
wxWindow *   
) [private]

bbwx::LayoutLine::BBTK_DECLARE_INPUT ( Widget8  ,
wxWindow *   
) [private]

bbwx::LayoutLine::BBTK_DECLARE_INPUT ( Widget9  ,
wxWindow *   
) [private]

bbwx::LayoutLine::BBTK_DECLARE_INPUT ( Orientation  ,
std::string   
) [private]

bbwx::LayoutLine::BBTK_PROCESS ( Process   )  [private]

bbwx::LayoutLine::BBTK_CREATE_WIDGET ( CreateWidget   )  [private]

void bbwx::LayoutLine::Process (  )  [private]

Definition at line 64 of file bbwxLayoutLine.cxx.

00065   {
00066   }

void bbwx::LayoutLine::CreateWidget (  )  [private]

Definition at line 77 of file bbwxLayoutLine.cxx.

References TryInsertWindow().

00078   {
00079     wxBoxSizer *sizer;
00080     wxPanel *w=new wxPanel(bbGetWxParent(), -1);
00081     w->SetName( bbtk::std2wx( bbGetInputWinTitle() ) );
00082     
00083     int style=0;
00084     if (bbtk::Utilities::loosematch(bbGetInputOrientation(),
00085                                     "0|H|HORIZONTAL")==true)  
00086       { style=wxHORIZONTAL; }
00087     if (bbtk::Utilities::loosematch(bbGetInputOrientation(),
00088                                     "1|V|VERTICAL")==true)      
00089       { style=wxVERTICAL;   }
00090     
00091     sizer       = new wxBoxSizer(style);
00092     
00093     TryInsertWindow(w,bbGetInputWidget1(),sizer);
00094     TryInsertWindow(w,bbGetInputWidget2(),sizer);
00095     TryInsertWindow(w,bbGetInputWidget3(),sizer);
00096     TryInsertWindow(w,bbGetInputWidget4(),sizer);
00097     TryInsertWindow(w,bbGetInputWidget5(),sizer);
00098     TryInsertWindow(w,bbGetInputWidget6(),sizer);
00099     TryInsertWindow(w,bbGetInputWidget7(),sizer);
00100     TryInsertWindow(w,bbGetInputWidget8(),sizer);
00101     TryInsertWindow(w,bbGetInputWidget9(),sizer);
00102     
00103     w   -> SetSizer(sizer);
00104     bbSetOutputWidget( w );
00105   }

void bbwx::LayoutLine::bbUserOnShow (  )  [private]

Definition at line 109 of file bbwxLayoutLine.cxx.

00110   {
00111           bbUserOnShowWidget("Widget1");
00112           bbUserOnShowWidget("Widget2");
00113           bbUserOnShowWidget("Widget3");
00114           bbUserOnShowWidget("Widget4");
00115           bbUserOnShowWidget("Widget5");
00116           bbUserOnShowWidget("Widget6");
00117           bbUserOnShowWidget("Widget7");
00118           bbUserOnShowWidget("Widget8");
00119           bbUserOnShowWidget("Widget9");
00120   }

void bbwx::LayoutLine::bbUserConstructor (  )  [protected, virtual]

Definition at line 50 of file bbwxLayoutLine.cxx.

00051   {
00052     bbSetInputOrientation("VERTICAL");
00053     bbSetInputWidget1(NULL);
00054     bbSetInputWidget2(NULL);
00055     bbSetInputWidget3(NULL);
00056     bbSetInputWidget4(NULL);
00057     bbSetInputWidget5(NULL);
00058     bbSetInputWidget6(NULL);
00059     bbSetInputWidget7(NULL);
00060     bbSetInputWidget8(NULL);
00061     bbSetInputWidget9(NULL);
00062   }

void bbwx::LayoutLine::TryInsertWindow ( wxWindow *  parent,
wxWindow *  w,
wxBoxSizer *  sizer 
) [protected]

Definition at line 68 of file bbwxLayoutLine.cxx.

Referenced by CreateWidget().

00069   {
00070     if (w!=NULL)
00071       {
00072         w->Reparent(parent);
00073         sizer->Add(w, 1, wxEXPAND, 0);
00074       }
00075   }


The documentation for this class was generated from the following files:

Generated on Tue Oct 21 16:06:53 2008 for wx by  doxygen 1.5.6