]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxHtmlWindow.cxx
#3212 BBTK Feature New Normal - vtk8itk4wx3-mingw64
[bbtk.git] / packages / wx / src / bbwxHtmlWindow.cxx
diff --git a/packages/wx/src/bbwxHtmlWindow.cxx b/packages/wx/src/bbwxHtmlWindow.cxx
new file mode 100644 (file)
index 0000000..0298362
--- /dev/null
@@ -0,0 +1,56 @@
+//===== 
+// 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)
+//===== 
+#include "bbwxHtmlWindow.h"
+#include "bbwxPackage.h"
+#include <wx/html/htmlwin.h>
+
+namespace bbwx
+{
+
+BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,HtmlWindow)
+BBTK_BLACK_BOX_IMPLEMENTATION(HtmlWindow,bbtk::WxBlackBox);
+//===== 
+// 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)
+
+//===== 
+
+
+void HtmlWindow::Process()
+{
+       wxHtmlWindow* html = (wxHtmlWindow*)bbGetOutputWidget();
+       html->LoadPage( bbtk::std2wx( bbGetInputFileName() ));
+
+}
+//===== 
+// 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)
+//===== 
+void HtmlWindow::CreateWidget(wxWindow* parent)
+{
+   bbSetOutputWidget( new wxHtmlWindow(parent, -1, wxDefaultPosition, wxSize(380, 160), wxHW_SCROLLBAR_AUTO) );
+}
+//===== 
+// 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)
+//===== 
+void HtmlWindow::bbUserSetDefaultValues()
+{
+
+}
+//===== 
+// 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)
+//===== 
+void HtmlWindow::bbUserInitializeProcessing()
+{
+
+}
+//===== 
+// 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)
+//===== 
+void HtmlWindow::bbUserFinalizeProcessing()
+{
+
+}
+}
+// EO namespace bbwx
+
+