2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
6 #include "bbwxStaticBox.h"
7 #include "bbwxPackage.h"
8 #include "bbtkUtilities.h"
12 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,StaticBox)
13 BBTK_BLACK_BOX_IMPLEMENTATION(StaticBox,bbtk::WxBlackBox);
15 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
17 void StaticBox::Process()
22 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
24 void StaticBox::CreateWidget(wxWindow* parent)
26 std::cout << "creating..." << std::endl;
27 wxPanel *w=new wxPanel(
28 parent, //bbGetWxParent(),
32 w->SetName(bbtk::std2wx(bbGetInputWinTitle()));
34 wxStaticBoxSizer* boxSizer = new wxStaticBoxSizer(
37 bbtk::std2wx(bbGetInputBoxTitle())
40 wxWindow* content = bbCreateWidgetOfInput("BoxContent",w);
43 content = new wxPanel(w);
46 boxSizer->Add(content,1,wxEXPAND);
47 w->SetSizer(boxSizer);
53 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
55 void StaticBox::bbUserSetDefaultValues()
57 bbSetInputBoxTitle("");
58 bbSetInputBoxContent(NULL);
59 std::cout << "initialized"<<std::endl;
62 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
64 void StaticBox::bbUserInitializeProcessing()
69 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
71 void StaticBox::bbUserFinalizeProcessing()
76 // This callback is necessary to get actual processing of the view
77 // when window is shown
78 void StaticBox::OnShowWidget()
84 #endif // _USE_WXWIDGETS_