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)
4 #include "bbwxCollapsiblePane.h"
5 #include "bbwxPackage.h"
7 #include <wx/collpane.h>
8 #include <wx/vscroll.h>
12 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,CollapsiblePane)
13 BBTK_BLACK_BOX_IMPLEMENTATION(CollapsiblePane,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 CollapsiblePane::Process()
19 printf("CollapsiblePane::CreateWidget EED Somethin is wrong with the wxCollapsiblePane\n");
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 CollapsiblePane::CreateWidget(wxWindow* parent)
26 printf("CollapsiblePane::CreateWidget EED Somethin is wrong with the wxCollapsiblePane\n");
27 printf("CollapsiblePane::CreateWidget EED Somethin is wrong with the wxCollapsiblePane\n");
28 printf("CollapsiblePane::CreateWidget EED Somethin is wrong with the wxCollapsiblePane\n");
29 printf("CollapsiblePane::CreateWidget EED Somethin is wrong with the wxCollapsiblePane\n");
30 printf("CollapsiblePane::CreateWidget EED Somethin is wrong with the wxCollapsiblePane\n");
31 printf("CollapsiblePane::CreateWidget EED Somethin is wrong with the wxCollapsiblePane\n");
33 wxPanel *mainWidget = new wxPanel(parent, -1, wxDefaultPosition, wxSize(40,40) );
34 wxCollapsiblePane *collpane = new wxCollapsiblePane( mainWidget, wxID_ANY, bbtk::std2wx( bbGetInputLabel() ), wxDefaultPosition, wxDefaultSize, wxCP_DEFAULT_STYLE|wxCP_NO_TLW_RESIZE);
35 wxBoxSizer *mainSizer = new wxBoxSizer(wxHORIZONTAL);
37 wxWindow *winPane = collpane->GetPane();
38 wxSizer *paneSz = new wxBoxSizer(wxHORIZONTAL);
41 if ((cw=bbCreateWidgetOfInput("Widget",winPane)) != 0)
43 paneSz->Add( cw , 1, wxGROW|wxALL, 2);
45 winPane->SetSizer(paneSz);
47 mainSizer->Add(collpane, 0, wxGROW|wxALL, 5);
48 mainWidget->SetSizer(mainSizer);
51 bbSetOutputWidget( mainWidget );
55 // 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)
57 void CollapsiblePane::bbUserSetDefaultValues()
59 bbSetInputLabel("void");
60 bbSetInputWidget(NULL);
64 // 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)
66 void CollapsiblePane::bbUserInitializeProcessing()
71 // 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)
73 void CollapsiblePane::bbUserFinalizeProcessing()