")); page.Append(wxString(COPYRIGHT, wxConvUTF8)); page.Append(_T(" ")); page.Append(wxString(PUBLISHER, wxConvUTF8)); page.Append(_T("
")); page.Append(_("If you find this software useful then please consider \ making a small donation to show your appreciation \ and help support the continued development. Thanks!\ ")); page.Append(_T("
")); page.Append(_("Visit website")); page.Append(_T("
\\
\
\
"));
wxTextFile thanksFile(eviacam::GetDataDir() + wxString(_T("/THANKS")));
if (thanksFile.Open())
{
wxString str;
for ( str = thanksFile.GetFirstLine(); !thanksFile.Eof(); str = thanksFile.GetNextLine() )
{ page.Append (str);
page.Append (_T("
"));
}
}
page.Append(_T("
\ ")); page.Append(_("Released under the GNU/GPL v3 license. See COPYING file for details.")); page.Append(_T("
\ \ \ ")); page.Replace (_T("#DATA_PATH#"), eviacam::GetDataDir(), true); page.Replace (_T("#APPVERSION#"), _T(VERSION), true); itemHtmlWindow3->SetPage(page); } /*! * Should we show tooltips? */ bool WAbout::ShowToolTips() { return true; } /*! * Get bitmap resources */ wxBitmap WAbout::GetBitmapResource( const wxString& name ) { // Bitmap retrieval ////@begin WAbout bitmap retrieval wxUnusedVar(name); return wxNullBitmap; ////@end WAbout bitmap retrieval } /*! * Get icon resources */ wxIcon WAbout::GetIconResource( const wxString& name ) { // Icon retrieval ////@begin WAbout icon retrieval wxUnusedVar(name); return wxNullIcon; ////@end WAbout icon retrieval } /*! * wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_CLOSE */ void WAbout::OnButtonCloseClick( wxCommandEvent& WXUNUSED(event) ) { ////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_CLOSE in WAbout. // Before editing this code, remove the block markers. EndModal(ID_BUTTON_CLOSE); ////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_CLOSE in WAbout. } /*! * wxEVT_COMMAND_HTML_LINK_CLICKED event handler for ID_HTMLWINDOW */ void WAbout::OnHtmlwindowLinkClicked( wxHtmlLinkEvent& event ) { if (!event.GetLinkInfo().GetHref().CmpNoCase(_T("donation"))) eviacam::OpenDonationsEViacamWebsiteOnBrowser(); else eviacam::OpenEViacamWebsiteOnBrowser(); event.Skip(false); }