1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %% Name: aboutdlginfo.tex
3 %% Purpose: wxAboutDialogInfo documentation
4 %% Author: Vadim Zeitlin
7 %% Copyright: (c) Vadim Zeitlin
8 %% License: wxWindows license
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11 \section{\class{wxAboutDialogInfo
}}\label{wxaboutdialoginfo
}
13 wxAboutDialogInfo contains information shown in the standard
\textit{About
}
14 dialog displayed by the
\helpref{wxAboutBox()
}{wxaboutbox
} function.
16 This class contains the general information about the program, such as its
17 name, version, copyright and so on, as well as lists of the program developers,
18 documentation writers, artists and translators. The simple properties from the
19 former group are represented as a string with the exception of the program icon
20 and the program web site, while the lists from the latter group are stored as
21 \helpref{wxArrayString
}{wxarraystring
} and can be either set entirely at once
22 using
\helpref{SetDevelopers
}{wxaboutdialoginfosetdevelopers
} and similar
23 functions or built one by one using
\helpref{AddDeveloper
}{wxaboutdialoginfoadddeveloper
}
26 Please also notice that while all the main platforms have the native
27 implementation of the about dialog, they are often more limited than the
28 generic version provided by wxWidgets and so the generic version is used if
29 wxAboutDialogInfo has any fields not supported by the native version. Currently
30 GTK+ version supports all the possible fields natively but MSW and Mac versions
31 don't support URLs, licence text nor custom icons in the about dialog and if
32 either of those is used,
\helpref{wxAboutBox()
}{wxaboutbox
} will automatically
33 use the generic version so you should avoid specifying these fields to achieve
34 more native look and feel.
36 \wxheading{Derived from
}
40 \wxheading{Include files
}
46 \helpref{wxAdv
}{librarieslist
}
49 \latexignore{\rtfignore{\wxheading{Members
}}}
52 \membersection{wxAboutDialogInfo::wxAboutDialogInfo
}\label{wxaboutdialoginfowxaboutdialoginfo
}
54 \func{}{wxAboutDialogInfo
}{\void}
56 Default constructor leaves all fields are initially uninitialized, in general
57 you should call at least
\helpref{SetVersion
}{wxaboutdialoginfosetversion
},
58 \helpref{SetCopyright
}{wxaboutdialoginfosetcopyright
} and
59 \helpref{SetDescription
}{wxaboutdialoginfosetdescription
}.
62 \membersection{wxAboutDialogInfo::AddArtist
}\label{wxaboutdialoginfoaddartist
}
64 \func{void
}{AddArtist
}{\param{const wxString\&
}{artist
}}
66 Adds an artist name to be shown in the program credits.
70 \helpref{SetArtists
}{wxaboutdialoginfosetartists
}
73 \membersection{wxAboutDialogInfo::AddDeveloper
}\label{wxaboutdialoginfoadddeveloper
}
75 \func{void
}{AddDeveloper
}{\param{const wxString\&
}{developer
}}
77 Adds a developer name to be shown in the program credits.
81 \helpref{SetDevelopers
}{wxaboutdialoginfosetdevelopers
}
84 \membersection{wxAboutDialogInfo::AddDocWriter
}\label{wxaboutdialoginfoadddocwriter
}
86 \func{void
}{AddDocWriter
}{\param{const wxString\&
}{docwriter
}}
88 Adds a documentation writer name to be shown in the program credits.
92 \helpref{SetDocWriters
}{wxaboutdialoginfosetdocwriters
}
95 \membersection{wxAboutDialogInfo::AddTranslator
}\label{wxaboutdialoginfoaddtranslator
}
97 \func{void
}{AddTranslator
}{\param{const wxString\&
}{translator
}}
99 Adds a translator name to be shown in the program credits. Notice that if no
100 translator names are specified explicitely,
\helpref{wxAboutBox()
}{wxaboutbox
}
101 will try to use the translation of the string
\texttt{translator-credits
} from
102 the currently used message catalog -- this can be used to show just the name of
103 the translator of the program in the current language.
107 \helpref{SetTranslators
}{wxaboutdialoginfosettranslators
}
110 \membersection{wxAboutDialogInfo::SetArtists
}\label{wxaboutdialoginfosetartists
}
112 \func{void
}{SetArtists
}{\param{const wxArrayString\&
}{artists
}}
114 Sets the the list of artists to be shown in the program credits.
118 \helpref{AddArtist
}{wxaboutdialoginfoaddartist
}
121 \membersection{wxAboutDialogInfo::SetCopyright
}\label{wxaboutdialoginfosetcopyright
}
123 \func{void
}{SetCopyright
}{\param{const wxString\&
}{copyright
}}
125 Set the short string containing the program copyright information. Notice that
126 any occurrences of
\texttt{"(C)"
} in
\arg{copyright
} will be replaced by the
127 copyright symbol (circled C) automatically, which means that you can avoid
128 using this symbol in the program source code which can be problematic,
131 \membersection{wxAboutDialogInfo::SetDescription
}\label{wxaboutdialoginfosetdescription
}
133 \func{void
}{SetDescription
}{\param{const wxString\&
}{desc
}}
135 Set brief, but possibly multiline, description of the program.
138 \membersection{wxAboutDialogInfo::SetDevelopers
}\label{wxaboutdialoginfosetdevelopers
}
140 \func{void
}{SetDevelopers
}{\param{const wxArrayString\&
}{developers
}}
142 Set the list of developers of the program.
146 \helpref{AddDeveloper
}{wxaboutdialoginfoadddeveloper
}
149 \membersection{wxAboutDialogInfo::SetDocWriters
}\label{wxaboutdialoginfosetdocwriters
}
151 \func{void
}{SetDocWriters
}{\param{const wxArrayString\&
}{docwriters
}}
153 Set the list of documentation writers.
157 \helpref{AddDocWriter
}{wxaboutdialoginfoadddocwriter
}
160 \membersection{wxAboutDialogInfo::SetIcon
}\label{wxaboutdialoginfoseticon
}
162 \func{void
}{SetIcon
}{\param{const wxIcon\&
}{icon
}}
164 Set the icon to be shown in the dialog. By default the icon of the main frame
165 will be shown if the native about dialog supports custom icons. If it doesn't
166 but a valid icon is specified using this method, the generic about dialog is
167 used instead so you should avoid calling this function for maximally native
171 \membersection{wxAboutDialogInfo::SetLicence
}\label{wxaboutdialoginfosetlicence
}
173 \func{void
}{SetLicence
}{\param{const wxString\&
}{licence
}}
175 Set the long, multiline string containing the text of the program licence.
177 Only GTK+ version supports showing the licence text in the native about dialog
178 currently so the generic version will be used under all the other platforms if
179 this method is called. To preserve the native look and feel it is advised that
180 you do not call this method but provide a separate menu item in the
181 \texttt{"Help"
} menu for displaying the text of your program licence.
184 \membersection{wxAboutDialogInfo::SetLicense
}\label{wxaboutdialoginfosetlicense
}
186 \func{void
}{SetLicense
}{\param{const wxString\&
}{licence
}}
188 This is the same as
\helpref{SetLicence
}{wxaboutdialoginfosetlicence
}.
191 \membersection{wxAboutDialogInfo::SetName
}\label{wxaboutdialoginfosetname
}
193 \func{void
}{SetName
}{\param{const wxString\&
}{name
}}
195 Set the name of the program. If this method is not called, the string returned
196 by
\helpref{wxApp::GetAppName()
}{wxappgetappname
} will be shown in the dialog.
199 \membersection{wxAboutDialogInfo::SetTranslators
}\label{wxaboutdialoginfosettranslators
}
201 \func{void
}{SetTranslators
}{\param{const wxArrayString\&
}{translators
}}
203 Set the list of translators. Please see
204 \helpref{AddTranslator
}{wxaboutdialoginfoaddtranslator
} for additional
208 \membersection{wxAboutDialogInfo::SetVersion
}\label{wxaboutdialoginfosetversion
}
210 \func{void
}{SetVersion
}{\param{const wxString\&
}{version
}}
212 Set the version of the program. The version is in free format, i.e. not
213 necessarily in the
\texttt{x.y.z
} form but it shouldn't contain the "version"
217 \membersection{wxAboutDialogInfo::SetWebSite
}\label{wxaboutdialoginfosetwebsite
}
219 \func{void
}{SetWebSite
}{\param{const wxString\&
}{url
},
\param{const wxString\&
}{desc = wxEmptyString
}}
221 Set the web site for the program and its description (which defaults to URL
224 Please notice that only GTK+ version currently supports showing the link in the
225 native about dialog so if this method is called, the generic version will be
226 used under all the other platforms.