]> Creatis software - bbtk.git/blob - packages/wx/src/bbwxHtmlWindow.cxx
#3191 BBTK Feature New Normal - HtmlWindow Box
[bbtk.git] / packages / wx / src / bbwxHtmlWindow.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 "bbwxHtmlWindow.h"
5 #include "bbwxPackage.h"
6 #include <wx/html/htmlwin.h>
7
8 namespace bbwx
9 {
10
11 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,HtmlWindow)
12 BBTK_BLACK_BOX_IMPLEMENTATION(HtmlWindow,bbtk::WxBlackBox);
13 //===== 
14 // 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)
15
16 //===== 
17
18
19 void HtmlWindow::Process()
20 {
21         wxHtmlWindow* html = (wxHtmlWindow*)bbGetOutputWidget();
22         html->LoadPage( bbtk::std2wx( bbGetInputFileName() ));
23
24 }
25 //===== 
26 // 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)
27 //===== 
28 void HtmlWindow::CreateWidget(wxWindow* parent)
29 {
30    bbSetOutputWidget( new wxHtmlWindow(parent, -1, wxDefaultPosition, wxSize(380, 160), wxHW_SCROLLBAR_AUTO) );
31 }
32 //===== 
33 // 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)
34 //===== 
35 void HtmlWindow::bbUserSetDefaultValues()
36 {
37
38 }
39 //===== 
40 // 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)
41 //===== 
42 void HtmlWindow::bbUserInitializeProcessing()
43 {
44
45 }
46 //===== 
47 // 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)
48 //===== 
49 void HtmlWindow::bbUserFinalizeProcessing()
50 {
51
52 }
53 }
54 // EO namespace bbwx
55
56