#include <bbwxLayoutTab.h>
Protected Member Functions | |
virtual void | bbUserConstructor () |
void | TryInsertWindow (wxNotebook *book, wxWindow *widgetchild) |
Private Member Functions | |
BBTK_BLACK_BOX_INTERFACE (LayoutTab, 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 () |
Definition at line 64 of file bbwxLayoutTab.h.
bbwx::LayoutTab::BBTK_BLACK_BOX_INTERFACE | ( | LayoutTab | , | |
bbtk::WxBlackBox | ||||
) | [private] |
bbwx::LayoutTab::BBTK_DECLARE_INPUT | ( | Widget1 | , | |
wxWindow * | ||||
) | [private] |
bbwx::LayoutTab::BBTK_DECLARE_INPUT | ( | Widget2 | , | |
wxWindow * | ||||
) | [private] |
bbwx::LayoutTab::BBTK_DECLARE_INPUT | ( | Widget3 | , | |
wxWindow * | ||||
) | [private] |
bbwx::LayoutTab::BBTK_DECLARE_INPUT | ( | Widget4 | , | |
wxWindow * | ||||
) | [private] |
bbwx::LayoutTab::BBTK_DECLARE_INPUT | ( | Widget5 | , | |
wxWindow * | ||||
) | [private] |
bbwx::LayoutTab::BBTK_DECLARE_INPUT | ( | Widget6 | , | |
wxWindow * | ||||
) | [private] |
bbwx::LayoutTab::BBTK_DECLARE_INPUT | ( | Widget7 | , | |
wxWindow * | ||||
) | [private] |
bbwx::LayoutTab::BBTK_DECLARE_INPUT | ( | Widget8 | , | |
wxWindow * | ||||
) | [private] |
bbwx::LayoutTab::BBTK_DECLARE_INPUT | ( | Widget9 | , | |
wxWindow * | ||||
) | [private] |
bbwx::LayoutTab::BBTK_DECLARE_INPUT | ( | Orientation | , | |
std::string | ||||
) | [private] |
bbwx::LayoutTab::BBTK_PROCESS | ( | Process | ) | [private] |
bbwx::LayoutTab::BBTK_CREATE_WIDGET | ( | CreateWidget | ) | [private] |
void bbwx::LayoutTab::Process | ( | ) | [private] |
void bbwx::LayoutTab::CreateWidget | ( | ) | [private] |
Definition at line 84 of file bbwxLayoutTab.cxx.
References TryInsertWindow().
00085 { 00086 long style = wxNB_TOP; 00087 if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|T|TOP")==true) { style=wxNB_TOP; } 00088 if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|R|RIGHT")==true) { style=wxNB_RIGHT; } 00089 if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"2|B|BOTTOM")==true) { style=wxNB_BOTTOM; } 00090 if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"3|L|LEFT")==true) { style=wxNB_LEFT; } 00091 wxNotebook *w = new wxNotebook(bbGetWxParent(), -1, wxDefaultPosition,wxDefaultSize,style ); 00092 w->SetName( bbtk::std2wx( bbGetInputWinTitle() ) ); 00093 00094 TryInsertWindow(w,bbGetInputWidget1()); 00095 TryInsertWindow(w,bbGetInputWidget2()); 00096 TryInsertWindow(w,bbGetInputWidget3()); 00097 TryInsertWindow(w,bbGetInputWidget4()); 00098 TryInsertWindow(w,bbGetInputWidget5()); 00099 TryInsertWindow(w,bbGetInputWidget6()); 00100 TryInsertWindow(w,bbGetInputWidget7()); 00101 TryInsertWindow(w,bbGetInputWidget8()); 00102 TryInsertWindow(w,bbGetInputWidget9()); 00103 00104 00105 bbSetOutputWidget( w ); 00106 }
void bbwx::LayoutTab::bbUserOnShow | ( | ) | [private] |
Definition at line 111 of file bbwxLayoutTab.cxx.
00112 { 00113 bbGetOutputWidget()->Show(); 00114 bbUserOnShowWidget("Widget1"); 00115 bbUserOnShowWidget("Widget2"); 00116 bbUserOnShowWidget("Widget3"); 00117 bbUserOnShowWidget("Widget4"); 00118 bbUserOnShowWidget("Widget5"); 00119 bbUserOnShowWidget("Widget6"); 00120 bbUserOnShowWidget("Widget7"); 00121 bbUserOnShowWidget("Widget8"); 00122 bbUserOnShowWidget("Widget9"); 00123 }
void bbwx::LayoutTab::bbUserConstructor | ( | ) | [protected, virtual] |
Definition at line 54 of file bbwxLayoutTab.cxx.
00055 { 00056 bbSetInputOrientation("TOP"); 00057 bbSetInputWidget1(NULL); 00058 bbSetInputWidget2(NULL); 00059 bbSetInputWidget3(NULL); 00060 bbSetInputWidget4(NULL); 00061 bbSetInputWidget5(NULL); 00062 bbSetInputWidget6(NULL); 00063 bbSetInputWidget7(NULL); 00064 bbSetInputWidget8(NULL); 00065 bbSetInputWidget9(NULL); 00066 }
void bbwx::LayoutTab::TryInsertWindow | ( | wxNotebook * | book, | |
wxWindow * | widgetchild | |||
) | [protected] |
Definition at line 68 of file bbwxLayoutTab.cxx.
Referenced by CreateWidget().
00069 { 00070 if (widgetchild!=NULL) 00071 { 00072 widgetchild->Reparent(book); 00073 book->AddPage(widgetchild, widgetchild->GetName() ); 00074 widgetchild->Show(); 00075 } 00076 }