X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxGUIHtmlBrowser.h;h=bf8b99cede07b26c698561bf8591c69419085013;hb=fc399c5aab38ad24ea5d57552701411b4d805181;hp=885dad03481f2aada0ca11c2447042269c1e7136;hpb=0bfd6ea8a50ca866039ce1eabdb8df2b3a0330b1;p=bbtk.git diff --git a/kernel/src/bbtkWxGUIHtmlBrowser.h b/kernel/src/bbtkWxGUIHtmlBrowser.h index 885dad0..bf8b99c 100644 --- a/kernel/src/bbtkWxGUIHtmlBrowser.h +++ b/kernel/src/bbtkWxGUIHtmlBrowser.h @@ -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()