Use wxAboutBox dialog.

This commit is contained in:
Saleem Edah-Tally
2025-07-14 13:10:51 +02:00
parent 0e517799c8
commit b1f4f2d15f
2 changed files with 37 additions and 23 deletions

14
XS7.cpp
View File

@@ -14,6 +14,7 @@
#include "page.xpm"
#include <wx/stdpaths.h>
#include <wx/cmdline.h>
#include <wx/aboutdlg.h>
using namespace std;
@@ -167,11 +168,14 @@ void XS7::OnAbout(wxMouseEvent& evt)
evt.Skip();
return;
}
const wxString msg = wxString(_APPNAME_) + _(" - version ") + to_string((_APPVERSION_))
+ _ (", using InsaneWidget.\n\n")
+ _ ( "Copyright: Saleem Edah-Tally [Surgeon] [Hobbyist developer]\n" )
+ _ ( "License: CeCILL/CeCILL-C per file header." );
wxAboutDialogInfo info;
info.AddDeveloper("Saleem Edah-Tally");
info.SetCopyright(_("Copyright: Saleem Edah-Tally [Surgeon] [Hobbyist developer]"));
info.SetLicence(_ ( "License: CeCILL/CeCILL-C per file header." ));
info.SetVersion(_("version ") + to_string(_APPVERSION_) + _ (", using InsaneWidget."));
info.AddTranslator("Saleem Edah-Tally (FR)");
info.SetIcon(page_xpm);
wxAboutBox(info, this);
MiscTools::MessageBox(msg);
evt.Skip();
}