]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxGUIHtmlBrowser.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkWxGUIHtmlBrowser.h
index bf8b99cede07b26c698561bf8591c69419085013..06dbcc9a8c51f961b3d57851cabbe758388b8437 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxGUIHtmlBrowser.h,v $
   Language:  C++
-  Date:      $Date: 2008/03/21 14:59:39 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/07/23 11:46:11 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -54,14 +54,19 @@ namespace bbtk
                  _T("bbtk::WxGUIHtmlBrowser")),
              mBrowser(browser)
     {
-     
-    }
+     SetBorders(30);
+    };
     //    wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType type,const wxString& url, wxString *redirect);
 //EED    virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
 
+//EED2  void OnSize( wxSizeEvent&);
+
+
   private: 
     WxGUIHtmlBrowser* mBrowser;
 
+   // any class wishing to process wxWidgets events must use this macro
+//EED2    DECLARE_EVENT_TABLE()  
 
   };
 
@@ -71,7 +76,7 @@ namespace bbtk
   {
   public :
     WxGUIHtmlBrowserUser() {}
-    ~WxGUIHtmlBrowserUser() {}
+    virtual ~WxGUIHtmlBrowserUser() {}
     
     virtual bool WxGUIHtmlBrowserUserOnLinkClicked(const std::string& target) 
     { return true; }
@@ -82,7 +87,7 @@ namespace bbtk
   // class WxGUIConsole;
 
   
-  class WxGUIHtmlBrowser : public wxPanel
+  class BBTK_EXPORT WxGUIHtmlBrowser : public wxPanel
   {
   public:
     WxGUIHtmlBrowser ( wxWindow *parent, wxSize size, 
@@ -98,6 +103,8 @@ namespace bbtk
     //   void OnRunButton(wxCommandEvent& );
     void OnLinkClicked(wxHtmlLinkEvent& );
     void OnURLEnter( wxCommandEvent&);
+    void OnSize( wxSizeEvent&);
+
     void UpdateURL();
     //  void OnCell(wxHtmlCellEvent& );