]> Creatis software - bbtk.git/blob - packages/wx/src/bbwxCollapsiblePane.cxx
#3499 Export to JavaScript
[bbtk.git] / packages / wx / src / bbwxCollapsiblePane.cxx
1 //===== 
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)
3 //===== 
4 #include "bbwxCollapsiblePane.h"
5 #include "bbwxPackage.h"
6
7 #include <wx/collpane.h>
8 #include <wx/vscroll.h>
9
10 namespace bbwx
11 {
12 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,CollapsiblePane)
13 BBTK_BLACK_BOX_IMPLEMENTATION(CollapsiblePane,bbtk::WxBlackBox);
14 //===== 
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)
16 //===== 
17 void CollapsiblePane::Process()
18 {
19     printf("CollapsiblePane::CreateWidget    EED Somethin is wrong with the wxCollapsiblePane\n");
20 }
21 //===== 
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)
23 //===== 
24 void CollapsiblePane::CreateWidget(wxWindow* parent)
25 {
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");
32
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);
36
37     wxWindow *winPane   = collpane->GetPane();
38     wxSizer *paneSz     = new wxBoxSizer(wxHORIZONTAL);
39
40     wxWindow* cw;
41     if ((cw=bbCreateWidgetOfInput("Widget",winPane)) != 0)
42     {
43         paneSz->Add( cw , 1, wxGROW|wxALL, 2);
44     }
45     winPane->SetSizer(paneSz);
46
47     mainSizer->Add(collpane, 0, wxGROW|wxALL, 5);
48     mainWidget->SetSizer(mainSizer);
49
50     
51     bbSetOutputWidget( mainWidget );
52 }
53
54 //===== 
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)
56 //===== 
57 void CollapsiblePane::bbUserSetDefaultValues()
58 {
59     bbSetInputLabel("void");
60     bbSetInputWidget(NULL);
61 }
62
63 //===== 
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)
65 //===== 
66 void CollapsiblePane::bbUserInitializeProcessing()
67 {
68 }
69
70 //===== 
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)
72 //===== 
73 void CollapsiblePane::bbUserFinalizeProcessing()
74 {
75 }
76
77 }// EO namespace bbwx
78
79