// Name: aboutdlg.h
// Purpose: interface of wxAboutDialogInfo
// Author: wxWidgets team
-// RCS-ID: $Id$
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/**
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.
+
+ Example of usage:
+ @code
+ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
+ {
+ wxAboutDialogInfo aboutInfo;
+ aboutInfo.SetName("MyApp");
+ aboutInfo.SetVersion(MY_APP_VERSION_STRING);
+ aboutInfo.SetDescription(_("My wxWidgets-based application!"));
+ aboutInfo.SetCopyright("(C) 1992-2010");
+ aboutInfo.SetWebSite("http://myapp.org");
+ aboutInfo.AddDeveloper("My Self");
+
+ wxAboutBox(aboutInfo);
+ }
+ @endcode
@library{wxadv}
@category{cmndlg,data}
/**
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
+ translator names are specified explicitly, wxAboutBox() will try to use the
translation of the string @c 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.
void AddTranslator(const wxString& translator);
/**
- Sets the the list of artists to be shown in the program credits.
+ Get the name of the program.
+
+ @return Name of the program
+ @see SetName()
+ */
+ wxString GetName() const;
+
+ /**
+ Returns @true if a description string has been specified.
+
+ @see GetDescription()
+ */
+ bool HasDescription() const;
+
+ /**
+ Get the description string.
+
+ @return The description string, free-form.
+ */
+ const wxString& GetDescription();
+
+ /**
+ Returns @true if a copyright string has been specified.
+
+ @see GetCopyright()
+ */
+ bool HasCopyright() const;
+
+ /**
+ Get the copyright string.
+
+ @return The copyright string
+ */
+ const wxString& GetCopyright() const;
+
+ /**
+ Sets the list of artists to be shown in the program credits.
@see AddArtist()
*/