]> Creatis software - bbtk.git/blob - packages/wx/src/bbwxStaticBox.cxx
#2696 BBTK Bug New Normal - BoxChange BoxExecute not responding at the second actio...
[bbtk.git] / packages / wx / src / bbwxStaticBox.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 #ifdef _USE_WXWIDGETS_
5
6 #include "bbwxStaticBox.h"
7 #include "bbwxPackage.h"
8 #include "bbtkUtilities.h"
9 namespace bbwx
10 {
11
12   BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,StaticBox)
13   BBTK_BLACK_BOX_IMPLEMENTATION(StaticBox,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 StaticBox::Process()
18   {
19
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 StaticBox::CreateWidget(wxWindow* parent)
25   {
26     wxPanel *w=new wxPanel(
27       parent, //bbGetWxParent(),
28       -1
29       );
30
31     w->SetName(bbtk::std2wx(bbGetInputWinTitle()));
32     
33     wxStaticBoxSizer* boxSizer = new wxStaticBoxSizer(
34       wxVERTICAL, 
35       w, 
36       bbtk::std2wx(bbGetInputBoxTitle())
37       );
38
39     wxWindow* content = bbCreateWidgetOfInput("BoxContent",w);
40     if (content == NULL)
41     {
42       content = new wxPanel(w);
43     }
44
45     boxSizer->Add(content,1,wxEXPAND);
46     w->SetSizer(boxSizer);
47     boxSizer->Fit(w);
48     
49     bbSetOutputWidget(w);
50   }
51 //===== 
52 // 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)
53 //===== 
54   void StaticBox::bbUserSetDefaultValues()
55   {
56     bbSetInputBoxTitle("");
57     bbSetInputBoxContent(NULL);
58   }
59 //===== 
60 // 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)
61 //===== 
62   void StaticBox::bbUserInitializeProcessing()
63   {
64
65   }
66 //===== 
67 // 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)
68 //===== 
69   void StaticBox::bbUserFinalizeProcessing()
70   {
71
72   }
73
74 // This callback is necessary to get actual processing of the view 
75 // when window is shown
76   void  StaticBox::OnShowWidget()
77   {
78   }
79 }
80 // EO namespace bbwx
81
82 #endif // _USE_WXWIDGETS_