]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxGUIHtmlBrowser.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkWxGUIHtmlBrowser.h
index 885dad03481f2aada0ca11c2447042269c1e7136..bf8b99cede07b26c698561bf8591c69419085013 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxGUIHtmlBrowser.h,v $
   Language:  C++
-  Date:      $Date: 2008/03/20 09:51:29 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/03/21 14:59:39 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -65,15 +65,18 @@ namespace bbtk
 
   };
 
-  /*
+  
   /// Abstract class which defines the callbacks invoked by WxGUIHtmlBrowser
   class WxGUIHtmlBrowserUser 
   {
   public :
     WxGUIHtmlBrowserUser() {}
     ~WxGUIHtmlBrowserUser() {}
+    
+    virtual bool WxGUIHtmlBrowserUserOnLinkClicked(const std::string& target) 
+    { return true; }
   };
-  */
+  
  
 
   // class WxGUIConsole;
@@ -82,8 +85,8 @@ namespace bbtk
   class WxGUIHtmlBrowser : public wxPanel
   {
   public:
-    WxGUIHtmlBrowser ( wxWindow *parent, wxSize size ); 
-    //                WxGUIHtmlBrowserUser* = 0 );
+    WxGUIHtmlBrowser ( wxWindow *parent, wxSize size, 
+                      WxGUIHtmlBrowserUser* = 0 );
  
     bool GoTo(std::string&);
     void GoHome();
@@ -111,7 +114,7 @@ namespace bbtk
     wxButton* mwxReloadButton;
     //    wxButton* mwxRunButton;
     
-    //  WxGUIHtmlBrowserUser* mUser;
+    WxGUIHtmlBrowserUser* mUser;
     
    // any class wishing to process wxWidgets events must use this macro
     DECLARE_EVENT_TABLE()