wxAboutDialogInfo contains information shown in the standard About dialog displayed by the wxAboutBox() function.
This class contains the general information about the program, such as its name, version, copyright and so on, as well as lists of the program developers, documentation writers, artists and translators. The simple properties from the former group are represented as a string with the exception of the program icon and the program web site, while the lists from the latter group are stored as wxArrayString and can be either set entirely at once using SetDevelopers and similar functions or built one by one using AddDeveloper etc.
Please also notice that while all the main platforms have the native implementation of the about dialog, they are often more limited than the generic version provided by wxWidgets and so the generic version is used if wxAboutDialogInfo has any fields not supported by the native version. Currently GTK+ version supports all the possible fields natively but MSW and Mac versions don't support URLs, licence text nor custom icons in the about dialog and if either of those is used, wxAboutBox() will automatically use the generic version so you should avoid specifying these fields to achieve more native look and feel.
Derived from
No base class
Include files
<wx/aboutdlg.h>
Members
wxAboutDialogInfo::wxAboutDialogInfo
wxAboutDialogInfo::AddArtist
wxAboutDialogInfo::AddDeveloper
wxAboutDialogInfo::AddDocWriter
wxAboutDialogInfo::AddTranslator
wxAboutDialogInfo::SetArtists
wxAboutDialogInfo::SetCopyright
wxAboutDialogInfo::SetDescription
wxAboutDialogInfo::SetDevelopers
wxAboutDialogInfo::SetDocWriters
wxAboutDialogInfo::SetIcon
wxAboutDialogInfo::SetLicence
wxAboutDialogInfo::SetLicense
wxAboutDialogInfo::SetName
wxAboutDialogInfo::SetTranslators
wxAboutDialogInfo::SetVersion
wxAboutDialogInfo::SetWebSite
wxAboutDialogInfo()
Default constructor leaves all fields are initially uninitialized, in general you should call at least SetVersion, SetCopyright and SetDescription.
void AddArtist(const wxString& artist)
Adds an artist name to be shown in the program credits.
See also
void AddDeveloper(const wxString& developer)
Adds a developer name to be shown in the program credits.
See also
void AddDocWriter(const wxString& docwriter)
Adds a documentation writer name to be shown in the program credits.
See also
void AddTranslator(const wxString& translator)
Adds a translator name to be shown in the program credits. Notice that if no translator names are specified explicitely, wxAboutBox() will try to use the translation of the string translator-credits from the currently used message catalog -- this can be used to show just the name of the translator of the program in the current language.
See also
void SetArtists(const wxArrayString& artists)
Sets the the list of artists to be shown in the program credits.
See also
void SetCopyright(const wxString& copyright)
Set the short string containing the program copyright information. Notice that any occurrences of "(C)" in copyright will be replaced by the copyright symbol (circled C) automatically, which means that you can avoid using this symbol in the program source code which can be problematic,
void SetDescription(const wxString& desc)
Set brief, but possibly multiline, description of the program.
void SetDevelopers(const wxArrayString& developers)
Set the list of developers of the program.
See also
void SetDocWriters(const wxArrayString& docwriters)
Set the list of documentation writers.
See also
void SetIcon(const wxIcon& icon)
Set the icon to be shown in the dialog. By default the icon of the main frame will be shown if the native about dialog supports custom icons. If it doesn't but a valid icon is specified using this method, the generic about dialog is used instead so you should avoid calling this function for maximally native look and feel.
void SetLicence(const wxString& licence)
Set the long, multiline string containing the text of the program licence.
Only GTK+ version supports showing the licence text in the native about dialog currently so the generic version will be used under all the other platforms if this method is called. To preserve the native look and feel it is advised that you do not call this method but provide a separate menu item in the "Help" menu for displaying the text of your program licence.
void SetLicense(const wxString& licence)
This is the same as SetLicence.
void SetName(const wxString& name)
Set the name of the program. If this method is not called, the string returned by wxApp::GetAppName() will be shown in the dialog.
void SetTranslators(const wxArrayString& translators)
Set the list of translators. Please see AddTranslator for additional discussion.
void SetVersion(const wxString& version)
Set the version of the program. The version is in free format, i.e. not necessarily in the x.y.z form but it shouldn't contain the "version" word.
void SetWebSite(const wxString& url, const wxString& desc = wxEmptyString)
Set the web site for the program and its description (which defaults to URL itself if empty).
Please notice that only GTK+ version currently supports showing the link in the native about dialog so if this method is called, the generic version will be used under all the other platforms.