Develop and Download Open Source Software

Browse CVS Repository

Annotation of /malonnote/mnHtmlWindow.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download) (as text)
Thu Dec 22 10:48:29 2005 UTC (18 years, 3 months ago) by maloninc
Branch: MAIN
CVS Tags: rel_1_7_1, dev_1_6-0005, dev_1_6-0004, dev_1_6-0003, dev_1_6-0002, dev_1_6-0001, HEAD
Changes since 1.2: +17 -0 lines
File MIME type: text/x-chdr
for webkit, only for mac

1 maloninc 1.1 #ifndef MNHTMLWINDOW_H
2     #define MNHTMLWINDOW_H
3    
4     #include <wx/wxhtml.h>
5    
6 maloninc 1.3
7     #ifdef __WXMAC__
8     #include <wx/html/webkit.h>
9     #endif
10    
11 maloninc 1.1 DECLARE_EVENT_TYPE(mnEVT_LINK_CLICK, -1)
12    
13 maloninc 1.3 #ifdef __WXMAC__
14     class mnHtmlWindow : public wxWebKitCtrl {
15     #else
16 maloninc 1.1 class mnHtmlWindow : public wxHtmlWindow {
17 maloninc 1.3 #endif
18 maloninc 1.1
19 maloninc 1.2 DECLARE_DYNAMIC_CLASS(mnHtmlWindow)
20 maloninc 1.1 public:
21 maloninc 1.3 #ifdef __WXMAC__
22     mnHtmlWindow() : wxWebKitCtrl() {}
23     mnHtmlWindow(wxWindow *parent) : wxWebKitCtrl(parent, wxID_HIGHEST + 1, wxT("")) {}
24     mnHtmlWindow(wxWindow *parent, wxWindowID id, const wxString& url, const wxPoint& pos, const wxSize& size) : wxWebKitCtrl(parent, id, url, pos, size) {}
25     bool SetPage(const wxString& source);
26     #else
27 maloninc 1.2 mnHtmlWindow() : wxHtmlWindow() {}
28 maloninc 1.1 mnHtmlWindow(wxWindow *parent) : wxHtmlWindow(parent) {}
29     mnHtmlWindow(wxWindow *parent, wxWindowID id) : wxHtmlWindow(parent, id) {}
30 maloninc 1.3 #endif
31    
32 maloninc 1.1 virtual void mnHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link);
33     };
34    
35 maloninc 1.2
36 maloninc 1.1 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26