]> 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 /*
22    std::string msg;
23     if (bbGetInputTitle()!="")
24       {
25         msg = bbGetInputTitle()+": " + bbGetInputIn();
26       }
27     else
28       {
29         msg = bbGetInputIn();
30       }
31    ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) ); 
32   */
33
34         wxHtmlWindow* html = (wxHtmlWindow*)bbGetOutputWidget();
35         html->LoadPage( bbtk::std2wx( bbGetInputFileName() ));
36
37 }
38 //===== 
39 // 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)
40 //===== 
41 void HtmlWindow::CreateWidget(wxWindow* parent)
42 {
43
44 //   bbSetOutputWidget( new wxStaticText ( parent , -1 , _T("") ) );
45    bbSetOutputWidget( new wxHtmlWindow(parent, -1, wxDefaultPosition, wxSize(380, 160), wxHW_SCROLLBAR_NEVER) );
46 }
47 //===== 
48 // 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)
49 //===== 
50 void HtmlWindow::bbUserSetDefaultValues()
51 {
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 HtmlWindow::bbUserInitializeProcessing()
58 {
59
60 }
61 //===== 
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)
63 //===== 
64 void HtmlWindow::bbUserFinalizeProcessing()
65 {
66
67 }
68 }
69 // EO namespace bbwx
70
71