Develop and Download Open Source Software

Browse CVS Repository

Annotation of /malonnote/mnHtmlWindow.cpp

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: dev_1_6-0001
Changes since 1.2: +6 -0 lines
File MIME type: text/x-c++src
for webkit, only for mac

1 maloninc 1.3 #include <wx/wx.h>
2 maloninc 1.1 #include "mnHtmlWindow.h"
3    
4     DEFINE_EVENT_TYPE(mnEVT_LINK_CLICK)
5    
6 maloninc 1.2 IMPLEMENT_DYNAMIC_CLASS(mnHtmlWindow, wxHtmlWindow)
7    
8 maloninc 1.1 void mnHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link)
9     {
10     wxCommandEvent event(mnEVT_LINK_CLICK, GetId());
11     event.SetEventObject(this);
12     event.SetString(link.GetHref());
13     GetEventHandler()->ProcessEvent(event);
14     }
15 maloninc 1.3
16     bool mnHtmlWindow::SetPage(const wxString& source)
17     {
18     SetPageSource((wxString&)source);
19     }

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