![]() |
wxIScan
|
The program's about dialog. More...
#include <wxiscanabout.h>
Public Member Functions | |
| wxIScanAbout (wxWindow *poParent, wxWindowID nId=wxID_ANY) | |
| Standard constructor. | |
| virtual | ~wxIScanAbout () |
| Virtual destructor. | |
Private Member Functions | |
| void | OnInit (wxInitDialogEvent &event) |
The program's about dialog.
This Dialog shows information on this application and the licenses it is based on. The main part is a wxHtmlWindow (derived from wxHtmlWindow) so you can click on most elements and a browser opens the corresponding link.
Definition at line 47 of file wxiscanabout.h.
| wxIScanAbout::wxIScanAbout | ( | wxWindow * | poParent, |
| wxWindowID | nId = wxID_ANY |
||
| ) |
Standard constructor.
| poParent | a pointer to the parent window |
| nId | the window id, defaults to wxID_ANY |
Definition at line 69 of file wxiscanabout.cpp.
References cstrAppDescription, cstrAppName, cstrStatusCopyRight, and cstrVersionString.
{
//(*Initialize(wxIScanAbout)
wxFlexGridSizer* FlexGridSizer1;
wxLinkInBrowserHtmlWindow* poHtmlWindow;
wxStdDialogButtonSizer* poStdDialogButtonSizer;
Create(parent, id, _("About"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));
SetClientSize(wxSize(460,510));
FlexGridSizer1 = new wxFlexGridSizer(2, 1, 0, 0);
poHtmlWindow = new wxLinkInBrowserHtmlWindow(this, wxID_ANY, wxDefaultPosition, wxSize(450,460), wxHW_SCROLLBAR_AUTO, _T("wxID_ANY"));
FlexGridSizer1->Add(poHtmlWindow, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
poStdDialogButtonSizer = new wxStdDialogButtonSizer();
poStdDialogButtonSizer->AddButton(new wxButton(this, wxID_OK, wxEmptyString));
poStdDialogButtonSizer->Realize();
FlexGridSizer1->Add(poStdDialogButtonSizer, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
SetSizer(FlexGridSizer1);
SetSizer(FlexGridSizer1);
Layout();
Center();
//*)
wxString strHtml= wxString::Format( wxT( "<html>"
"<head>"
"<title>%s - About</title>"
"</head>"
"<body bgcolor=#FAF0E6>"
"<div>"
"<h3 align=\"center\">"
"%s"
"<img src=\"http://%s/pictures/nellresearch.png\">"
"%s"
#if __DEBUG__
" DEBUG"
#endif // __DEBUG__
"</h3>"
"<p align=\"center\"><em>%s</em></p>"
"<p align=\"center\">"
"<a href=\"http://%s\">%s</a>"
"</p>"
"<p align=\"center\">%s. All rights reserved.</p>"
"<p>This program is licensed under the terms of the "
"<a href=\"http://www.nellresearch.de/licenses/gpl.txt\">GPL</a>. "
"Some parts of the source code is licensed under the terms of the "
"<a href=\"http://www.nellresearch.de/licenses/wxl.txt\">wxWindows licence</a>. "
"Please refere to the individual source code file."
"</p>"
"<p>This program was written using:</p>"
"<ul>"
"<li><a href=\"http://www.wxwidgets.org\">%s</a> "
"published under the <a href=\"http://www.nellresearch.de/licenses/wxl.txt\">wxWindows licence</a></li>"
#if wxUSE_PDF
"<li><a href=\"http://poppler.freedesktop.org\">Poppler</a> "
"published under the <a href=\"http://www.nellresearch.de/licenses/gpl-2.0.txt\">GPLv2</a></li>"
#endif // wxUSE_PDF
#if __WXPDFDOC__
"<li><a href=\"http://wxcode.sourceforge.net\">wxPdfDocument</a> "
"published under the <a href=\"http://www.nellresearch.de/licenses/wxl.txt\">wxWindows licence</a></li>"
#endif // __WXPDFDOC__
#if __WXLUASCRIPT__
"<li><a href=\"http://www.lua.org/\">%s</a>"
" published under the <a href=\"http://www.lua.org/license.html\">MIT licence</a></li>"
#endif // __WXLUASCRIPT__
"</ul>"
"<p>"
"<a href=\"http://www.nellresearch.de/licenses/gpl.txt\">"
"<img src=\"http://www.nellresearch.de/licenses/gplv3-127x51.png\">"
"</a>"
"<a href=\"http://www.wxwidgets.org\">"
"<img src=\"http://www.wxwidgets.org/logo9.jpg\">"
"</a>"
"</p>"
"</div>"
"</body>"
"</html>" ),
cstrAppName.c_str(),
cstrAppName.c_str(), cstrWebSite.c_str(), cstrVersionString.c_str(),
cstrAppDescription.c_str(),
cstrWebSite.c_str(), cstrWebSite.c_str(),
cstrStatusCopyRight.c_str(),
cstrWxVersionString.c_str()
#if __WXLUASCRIPT__
, cstrLuaVersion.c_str()
#endif // __WXLUASCRIPT__
);
poHtmlWindow->SetPage( strHtml );
SetTitle( poHtmlWindow->GetOpenedPageTitle() );
}
| wxIScanAbout::~wxIScanAbout | ( | ) | [virtual] |
Virtual destructor.
Definition at line 161 of file wxiscanabout.cpp.
{
//(*Destroy(wxIScanAbout)
//*)
}
| void wxIScanAbout::OnInit | ( | wxInitDialogEvent & | event | ) | [private] |