Program: bbtk
Module: $RCSfile: bbtkWxGUIHtmlBrowser.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:15 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/11/24 15:45:48 $
+ Version: $Revision: 1.7 $
=========================================================================*/
/* ---------------------------------------------------------------------
class WxGUIHtmlBrowser;
+
class WxHtmlWindow : public virtual wxHtmlWindow
{
public:
_T("bbtk::WxGUIHtmlBrowser")),
mBrowser(browser)
{
+ std::cout << "ctor"<<std::endl;
SetBorders(30);
};
// wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType type,const wxString& url, wxString *redirect);
-//EED virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
+// virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
//EED2 void OnSize( wxSizeEvent&);
};
+// typedef wxHtmlWindow WxHtmlWindow;
+
+#define THE_HTML_WINDOW_CLASS wxHtmlWindow
+
/// Abstract class which defines the callbacks invoked by WxGUIHtmlBrowser
class WxGUIHtmlBrowserUser
{
void OnReloadButton(wxCommandEvent& );
// void OnRunButton(wxCommandEvent& );
void OnLinkClicked(wxHtmlLinkEvent& );
+ void OnLinkClicked2(const wxHtmlLinkInfo& );
void OnURLEnter( wxCommandEvent&);
void OnSize( wxSizeEvent&);
std::string GetCurrentPage();
private:
- WxHtmlWindow* mwxHtmlWindow;
+ THE_HTML_WINDOW_CLASS * mwxHtmlWindow;
wxTextCtrl* mwxURL;
wxButton* mwxBackButton;
wxButton* mwxForwardButton;