]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/aboutdlginfo.tex
escape underscores introduced by the last change
[wxWidgets.git] / docs / latex / wx / aboutdlginfo.tex
CommitLineData
c2709a3d
VZ
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: aboutdlginfo.tex
3%% Purpose: wxAboutDialogInfo documentation
4%% Author: Vadim Zeitlin
5%% Created: 2006-10-08
6%% RCS-ID: $Id$
7%% Copyright: (c) Vadim Zeitlin
8%% License: wxWindows license
9%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10
11\section{\class{wxAboutDialogInfo}}\label{wxaboutdialoginfo}
12
13wxAboutDialogInfo contains information shown in the standard \textit{About}
14dialog displayed by the \helpref{wxAboutBox()}{wxaboutbox} function.
15
16This class contains the general information about the program, such as its
17name, version, copyright and so on, as well as lists of the program developers,
18documentation writers, artists and translators. The simple properties from the
19former group are represented as a string with the exception of the program icon
20and 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
22using \helpref{SetDevelopers}{wxaboutdialoginfosetdevelopers} and similar
23functions or built one by one using \helpref{AddDeveloper}{wxaboutdialoginfoadddeveloper}
24etc.
25
26Please also notice that while all the main platforms have the native
27implementation of the about dialog, they are often more limited than the
28generic version provided by wxWidgets and so the generic version is used if
29wxAboutDialogInfo has any fields not supported by the native version. Currently
30GTK+ version supports all the possible fields natively but MSW and Mac versions
31don't support URLs, licence text nor custom icons in the about dialog and if
32either of those is used, \helpref{wxAboutBox()}{wxaboutbox} will automatically
33use the generic version so you should avoid specifying these fields to achieve
34more native look and feel.
35
36\wxheading{Derived from}
37
38No base class
39
40\wxheading{Include files}
41
42<wx/aboutdlg.h>
43
a7af285d
VZ
44\wxheading{Library}
45
46\helpref{wxAdv}{librarieslist}
47
c2709a3d
VZ
48
49\latexignore{\rtfignore{\wxheading{Members}}}
50
51
52\membersection{wxAboutDialogInfo::wxAboutDialogInfo}\label{wxaboutdialoginfowxaboutdialoginfo}
53
54\func{}{wxAboutDialogInfo}{\void}
55
56Default constructor leaves all fields are initially uninitialized, in general
57you should call at least \helpref{SetVersion}{wxaboutdialoginfosetversion},
58\helpref{SetCopyright}{wxaboutdialoginfosetcopyright} and
59\helpref{SetDescription}{wxaboutdialoginfosetdescription}.
60
61
62\membersection{wxAboutDialogInfo::AddArtist}\label{wxaboutdialoginfoaddartist}
63
64\func{void}{AddArtist}{\param{const wxString\& }{artist}}
65
66Adds an artist name to be shown in the program credits.
67
68\wxheading{See also}
69
70\helpref{SetArtists}{wxaboutdialoginfosetartists}
71
72
73\membersection{wxAboutDialogInfo::AddDeveloper}\label{wxaboutdialoginfoadddeveloper}
74
75\func{void}{AddDeveloper}{\param{const wxString\& }{developer}}
76
77Adds a developer name to be shown in the program credits.
78
79\wxheading{See also}
80
81\helpref{SetDevelopers}{wxaboutdialoginfosetdevelopers}
82
83
84\membersection{wxAboutDialogInfo::AddDocWriter}\label{wxaboutdialoginfoadddocwriter}
85
86\func{void}{AddDocWriter}{\param{const wxString\& }{docwriter}}
87
88Adds a documentation writer name to be shown in the program credits.
89
90\wxheading{See also}
91
92\helpref{SetDocWriters}{wxaboutdialoginfosetdocwriters}
93
94
95\membersection{wxAboutDialogInfo::AddTranslator}\label{wxaboutdialoginfoaddtranslator}
96
97\func{void}{AddTranslator}{\param{const wxString\& }{translator}}
98
99Adds a translator name to be shown in the program credits. Notice that if no
100translator names are specified explicitely, \helpref{wxAboutBox()}{wxaboutbox}
101will try to use the translation of the string \texttt{translator-credits} from
102the currently used message catalog -- this can be used to show just the name of
103the translator of the program in the current language.
104
105\wxheading{See also}
106
107\helpref{SetTranslators}{wxaboutdialoginfosettranslators}
108
109
110\membersection{wxAboutDialogInfo::SetArtists}\label{wxaboutdialoginfosetartists}
111
112\func{void}{SetArtists}{\param{const wxArrayString\& }{artists}}
113
114Sets the the list of artists to be shown in the program credits.
115
116\wxheading{See also}
117
118\helpref{AddArtist}{wxaboutdialoginfoaddartist}
119
120
121\membersection{wxAboutDialogInfo::SetCopyright}\label{wxaboutdialoginfosetcopyright}
122
123\func{void}{SetCopyright}{\param{const wxString\& }{copyright}}
124
125Set the short string containing the program copyright information. Notice that
126any occurrences of \texttt{"(C)"} in \arg{copyright} will be replaced by the
127copyright symbol (circled C) automatically, which means that you can avoid
128using this symbol in the program source code which can be problematic,
129
130
131\membersection{wxAboutDialogInfo::SetDescription}\label{wxaboutdialoginfosetdescription}
132
133\func{void}{SetDescription}{\param{const wxString\& }{desc}}
134
135Set brief, but possibly multiline, description of the program.
136
137
138\membersection{wxAboutDialogInfo::SetDevelopers}\label{wxaboutdialoginfosetdevelopers}
139
140\func{void}{SetDevelopers}{\param{const wxArrayString\& }{developers}}
141
142Set the list of developers of the program.
143
144\wxheading{See also}
145
146\helpref{AddDeveloper}{wxaboutdialoginfoadddeveloper}
147
148
149\membersection{wxAboutDialogInfo::SetDocWriters}\label{wxaboutdialoginfosetdocwriters}
150
151\func{void}{SetDocWriters}{\param{const wxArrayString\& }{docwriters}}
152
153Set the list of documentation writers.
154
155\wxheading{See also}
156
157\helpref{AddDocWriter}{wxaboutdialoginfoadddocwriter}
158
159
160\membersection{wxAboutDialogInfo::SetIcon}\label{wxaboutdialoginfoseticon}
161
162\func{void}{SetIcon}{\param{const wxIcon\& }{icon}}
163
164Set the icon to be shown in the dialog. By default the icon of the main frame
165will be shown if the native about dialog supports custom icons. If it doesn't
166but a valid icon is specified using this method, the generic about dialog is
167used instead so you should avoid calling this function for maximally native
168look and feel.
169
170
171\membersection{wxAboutDialogInfo::SetLicence}\label{wxaboutdialoginfosetlicence}
172
173\func{void}{SetLicence}{\param{const wxString\& }{licence}}
174
175Set the long, multiline string containing the text of the program licence.
176
177Only GTK+ version supports showing the licence text in the native about dialog
178currently so the generic version will be used under all the other platforms if
179this method is called. To preserve the native look and feel it is advised that
180you 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.
182
183
184\membersection{wxAboutDialogInfo::SetLicense}\label{wxaboutdialoginfosetlicense}
185
186\func{void}{SetLicense}{\param{const wxString\& }{licence}}
187
188This is the same as \helpref{SetLicence}{wxaboutdialoginfosetlicence}.
189
190
191\membersection{wxAboutDialogInfo::SetName}\label{wxaboutdialoginfosetname}
192
193\func{void}{SetName}{\param{const wxString\& }{name}}
194
195Set the name of the program. If this method is not called, the string returned
196by \helpref{wxApp::GetAppName()}{wxappgetappname} will be shown in the dialog.
197
198
199\membersection{wxAboutDialogInfo::SetTranslators}\label{wxaboutdialoginfosettranslators}
200
201\func{void}{SetTranslators}{\param{const wxArrayString\& }{translators}}
202
203Set the list of translators. Please see
204\helpref{AddTranslator}{wxaboutdialoginfoaddtranslator} for additional
205discussion.
206
207
208\membersection{wxAboutDialogInfo::SetVersion}\label{wxaboutdialoginfosetversion}
209
210\func{void}{SetVersion}{\param{const wxString\& }{version}}
211
212Set the version of the program. The version is in free format, i.e. not
213necessarily in the \texttt{x.y.z} form but it shouldn't contain the "version"
214word.
215
216
217\membersection{wxAboutDialogInfo::SetWebSite}\label{wxaboutdialoginfosetwebsite}
218
219\func{void}{SetWebSite}{\param{const wxString\& }{url}, \param{const wxString\& }{desc = wxEmptyString}}
220
221Set the web site for the program and its description (which defaults to URL
222itself if empty).
223
224Please notice that only GTK+ version currently supports showing the link in the
225native about dialog so if this method is called, the generic version will be
226used under all the other platforms.
227
228