]> git.sven.stormbind.net Git - sven/vym.git/blob - src/aboutdialog.cpp
Replace Pierre as the maintainer
[sven/vym.git] / src / aboutdialog.cpp
1 #include <QDate>
2 #include <QFrame>
3 #include <QProcess>
4 #include <QVBoxLayout>
5
6 #include "aboutdialog.h"
7 #include "settings.h"
8
9 extern Settings settings;
10 extern QString iconPath; // FIXME-4 embed vym logo as ressource?
11 extern QString vymVersion;
12 extern QString vymBuildDate;
13 extern QString vymCodeName;
14 extern QString vymCodeQuality;
15
16 extern QColor vymBlue;
17
18 AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent)
19 {
20
21     mainLayout = new QVBoxLayout(this);
22
23     tabs = new QTabWidget(this);
24     credits = new AboutTextBrowser(parent);
25
26     QString version = vymVersion;
27     if (!vymCodeName.isEmpty())
28         version += QString(" - \"%1\"").arg(vymCodeName);
29
30     credits->setHtml(
31         QString(
32             "<style>a:link { color: " + vymBlue.name() + "; background-color: transparent;}</style>"
33             "<center><img src=\"" + iconPath + "vym-128x128.png\"></center>"
34             "<h3><center>VYM - View Your Mind </h3>"
35             "<p align=\"center\"> A tool to put the things you have got in your mind into a map.</p>"
36             "<p align=\"center\"> (c) 2004-%1 by Uwe Drechsel (<a "
37             "href=\"mailto:vym@InSilmaril.de\">vym@InSilmaril.de</a>)</p>"
38             "<p align=\"center\"> Version " + version + "</p>"
39             "<p align=\"center\"> Quality: " + vymCodeQuality + "</p>"
40             "<p align=\"center\"> Build date: " + vymBuildDate + "</p>"
41             "<ul>"
42                 "<li> Contact</li>"
43                     "<ul>"
44                         "<li> Code and issue tracker:<br>"
45                             "<a href=\"https://github.com/insilmaril/vym\">"
46                         "https://github.com/insilmaril/vym</a></li>"
47                         "<li> Project homepage on Sourceforge with Apple and Windows downloads:<br>"
48                             "<a href=\"http://sourceforge.net/projects/vym/\">"
49                             "http://sourceforge.net/projects/vym/</a></li>"
50                         "<li> vym homepage with overview and examples:<br> <a href=\"http://www.InSilmaril.de/vym\">"
51                             "http://www.InSilmaril.de/vym</a></li>"
52                         "<li> Mailinglists are also on Sourceforge:"
53                             "<ul>"
54                                 "<li>Please ask general questions about vym  on "
55                                     "<a href=\"mailto:vym-forum@lists.sourceforge.net\">vym-forum</a></li>"
56                                 "<li>Subscribe/Unsubscribe and archives can be found  "
57                                     "<a href=\"https://sourceforge.net/mail/?group_id=127802\">here</a></li>"
58                             "</ul>"
59                     "</ul>"
60                 "<li> Credits "
61             "<ul>"
62             "<li>Documentation"
63             "  <ul>"
64             "    <li>Peter Adams: documentation proofreading and polishing</li>"
65             "  </ul>"
66             "</li>"
67             "<li>Translations"
68             "  <ul>"
69             "    <li>Brasilian: Amadeu Júnior</li>"
70             "    <li>Chinese (simplified): Moligaloo</li>"
71             "    <li>Chinese (traditional): Wei-Lun Chao </li>"
72             "    <li>Croatian: Damir Brašnić </li>"
73             "    <li>Czech: Vít Pelčák, Pavel Fric</li>"
74             "    <li>French: Marc Sert, Philippe Caillaud and Claude </li>"
75             "    <li>Greek: Yannis Kaskamanidis</li>"
76             "    <li>Interlingua: Giovanni Sora</li>"
77             "    <li>Italian: Albano Battistella, Giovanni Sora, Seyed Puria Nafisi Azizi </li>"
78             "    <li>Japanese: Tsuren Tsuchiya</li>"
79             "    <li>Russian: Anton Olenev</li>"
80             "    <li>Spanish: <a "
81             "href=\"http://ieee.udistrital.edu.co/aclibre\">"
82             "                 ACLibre (Academia y Conocimiento Libre)</a> and "
83             "David Amian</li>"
84             "  </ul>"
85             "</li>"
86             "<li> Patches"
87             "  <ul>"
88             "    <li>Sven H&ouml;xter: Various patches to fix typos and especiall for Debian packaging</li>"
89             "    <li>Edward Wang: adding close tab buttons</li>"
90             "    <li>p0llox (Pierre): various patches for Debian packaging</li>"
91             "    <li>Markus Seilnacht: Markdown improvements</li>"
92             "  </ul>"
93             "</li>"
94             "<li> Patches in previous vym versions"
95             "  <ul>"
96             "    <li>Łukasz Pietrzak, Scott Dillman and Patrick Spendrin, Andrew Ng, "
97             "Juha Ruotsalainen and Thomas Kriener: windows patches</li>"
98             "    <li>Thomas Schraitle for the stylesheet"
99             "        formerly used for XHTML-export and help with XML "
100             "processing in general</li>"
101             "    <li>Matt from <a "
102             "href=\"http://www.satbp.com\">www.satbp.com</a>: "
103             "        <a href=\"http://www.taskjuggler.org\">Taskjuggler</a> "
104             "export</li>"
105             "    <li>Darren Lissimore: Windows compiler patch </li>"
106             "    <li>Konstantin Goudkov: sort branches</li>"
107             "    <li>Jakob Hilmer: image drag and drop in 1.8.1, &quot;About "
108             "vym&quot; window patch </li>"
109             "  </ul>"
110             "</li>"
111             "<li> Icons"
112             "  <p> A number of icons were copied from the KDE project, especially"
113             "      from the Oxygen icon theme. Some of these have been heavily "
114             "      reworked by Uwe Drechsel - Thanks to the KDE team!</p></li>"
115             "<li> Packaging"
116             "</li>"
117             "  <ul>"
118             "    <li>Jon Ciesla: Sourceforge file releases</li>"
119             "    <li>Xavier Oswald, Christoph Thielecke, Pierre, and Steffen "
120             "Joeris: Debian packaging</li>"
121             "  </ul>"
122             "<li> General"
123             "  <ul>"
124             "    <li>Initial CMake setup by Daniel Rossberg, Costantino Giuliodori and Patrick "
125             "Spendrin</li>"
126             "    <li>All the guys at Trolltech (now Qt) for starting Qt </li>"
127             "    <li>All the guys at SUSE Linux for openSUSE Linux and support,"
128             "        e.g. to get Linux running on PowerPC and also "
129             "Macbooks</li>"
130             "  </ul>"
131             "</li>"
132             "</ul>"
133             "</li>")
134             .arg(QDate::currentDate().year()));
135     ;
136     credits->setFrameStyle(QFrame::Panel | QFrame::Plain);
137     tabs->addTab(credits, tr("Credits", "Help->About vym dialog"));
138
139     license = new AboutTextBrowser(parent);
140     license->setText(
141         QString(
142             "<center>"
143             "<h3>VYM - View Your Mind</h3>"
144             "<p>Copyright (C) 2004-%1 Uwe Drechsel</p>"
145             "</center>"
146
147             "<p>This program is free software; you can redistribute it and/or "
148             "modify it under the terms of the GNU General Public License "
149             "version 2 as published by the Free Software Foundation.</p>"
150
151             "<p>This program is distributed in the hope that it will be "
152             "useful, but WITHOUT ANY WARRANTY; without even the implied "
153             "warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  "
154             "See the GNU General Public License below for more details.</p>"
155
156             "<p>In addition, as a special exception, Uwe Drechsel gives "
157             "permission to link the code of this program with the QT libraries "
158             "from trolltech.com (or with modified versions of QT that use the "
159             "same license as QT), and distribute linked combinations including "
160             "the two. You must obey the GNU General Public License in all "
161             "respects for all of the code used other than QT. If you modify "
162             "this file, you may extend this exception to your version of the "
163             "file, but you are not obligated to do so. If you do not wish to "
164             "do so, delete this exception statement from your version.</p> "
165
166             "<p>Uwe Drechsel can be contacted at <a "
167             "href=\"mailto:vym@insilmaril.de\">vym@insilmaril.de</a></p>"
168
169             "<hr>"
170
171             "<p align=\"center\">GNU GENERAL PUBLIC LICENSE<br>"
172             "Version 2, June 1991</p>"
173
174             "<p align=\"center\">Copyright (C) 1989, 1991 Free Software "
175             "Foundation, Inc.  59 Temple Place, Suite 330, Boston, MA  "
176             "02111-1307  USA</p>"
177
178             "<p align=\"center\"> Everyone is permitted to copy and distribute "
179             "verbatim copies of this license document, but changing it is not "
180             "allowed.</p>"
181
182             "<p align=\"center\">Preamble</p>"
183
184             "<p>The licenses for most software are designed to take away your "
185             "freedom to share and change it.  By contrast, the GNU General "
186             "Public License is intended to guarantee your freedom to share and "
187             "change free software--to make sure the software is free for all "
188             "its users.  This General Public License applies to most of the "
189             "Free Software Foundation's software and to any other program "
190             "whose authors commit to using it.  (Some other Free Software "
191             "Foundation software is covered by the GNU Library General Public "
192             "License instead.)  You can apply it to your programs, too.</p>"
193
194             "<p>When we speak of free software, we are referring to freedom, "
195             "not price.  Our General Public Licenses are designed to make sure "
196             "that you have the freedom to distribute copies of free software "
197             "(and charge for this service if you wish), that you receive "
198             "source code or can get it if you want it, that you can change the "
199             "software or use pieces of it in new free programs; and that you "
200             "know you can do these things.</p>"
201
202             "<p>  To protect your rights, we need to make restrictions that "
203             "forbid anyone to deny you these rights or to ask you to surrender "
204             "the rights.  These restrictions translate to certain "
205             "responsibilities for you if you distribute copies of the "
206             "software, or if you modify it.</p>"
207
208             "<p>  For example, if you distribute copies of such a program, "
209             "whether gratis or for a fee, you must give the recipients all the "
210             "rights that you have.  You must make sure that they, too, receive "
211             "or can get the source code.  And you must show them these terms "
212             "so they know their rights.</p>"
213
214             "<p>  We protect your rights with two steps: (1) copyright the "
215             "software, and (2) offer you this license which gives you legal "
216             "permission to copy, distribute and/or modify the software.</p>"
217
218             "<p>  Also, for each author's protection and ours, we want to make "
219             "certain that everyone understands that there is no warranty for "
220             "this free software.  If the software is modified by someone else "
221             "and passed on, we want its recipients to know that what they have "
222             "is not the original, so that any problems introduced by others "
223             "will not reflect on the original authors' reputations.</p>"
224
225             "<p>  Finally, any free program is threatened constantly by "
226             "software patents.  We wish to avoid the danger that "
227             "redistributors of a free program will individually obtain patent "
228             "licenses, in effect making the program proprietary.  To prevent "
229             "this, we have made it clear that any patent must be licensed for "
230             "everyone's free use or not licensed at all.</p>"
231
232             "<p>  The precise terms and conditions for copying, distribution "
233             "and modification follow.</p>"
234
235             "<p align=\"center\">               GNU GENERAL PUBLIC LICENSE</p>"
236             "<p align=\"center\">   TERMS AND CONDITIONS FOR COPYING, "
237             "DISTRIBUTION AND MODIFICATION</p>"
238
239             "<p>  0. This License applies to any program or other work which "
240             "contains a notice placed by the copyright holder saying it may be "
241             "distributed under the terms of this General Public License.  The "
242             "\"Program\", below, refers to any such program or work, and a "
243             "\"work based on the Program\" means either the Program or any "
244             "derivative work under copyright law: that is to say, a work "
245             "containing the Program or a portion of it, either verbatim or "
246             "with modifications and/or translated into another language.  "
247             "(Hereinafter, translation is included without limitation in the "
248             "term \"modification\".)  Each licensee is addressed as "
249             "\"you\".</p>"
250
251             "<p>Activities other than copying, distribution and modification "
252             "are not covered by this License; they are outside its scope.  The "
253             "act of running the Program is not restricted, and the output from "
254             "the Program is covered only if its contents constitute a work "
255             "based on the Program (independent of having been made by running "
256             "the Program).  Whether that is true depends on what the Program "
257             "does.</p>"
258
259             "<p>  1. You may copy and distribute verbatim copies of the "
260             "Program's source code as you receive it, in any medium, provided "
261             "that you conspicuously and appropriately publish on each copy an "
262             "appropriate copyright notice and disclaimer of warranty; keep "
263             "intact all the notices that refer to this License and to the "
264             "absence of any warranty; and give any other recipients of the "
265             "Program a copy of this License along with the Program.</p>"
266
267             "<p>You may charge a fee for the physical act of transferring a "
268             "copy, and you may at your option offer warranty protection in "
269             "exchange for a fee.</p>"
270
271             "<p>  2. You may modify your copy or copies of the Program or any "
272             "portion of it, thus forming a work based on the Program, and copy "
273             "and distribute such modifications or work under the terms of "
274             "Section 1 above, provided that you also meet all of these "
275             "conditions:"
276             "<ol type=\"a\">"
277             "<li> You must cause the modified files to carry prominent notices "
278             "stating that you changed the files and the date of any "
279             "change.</li>"
280
281             "<li> You must cause any work that you distribute or publish, that "
282             "in whole or in part contains or is derived from the Program or "
283             "any part thereof, to be licensed as a whole at no charge to all "
284             "third parties under the terms of this License.</li>"
285
286             "<li> If the modified program normally reads commands "
287             "interactively when run, you must cause it, when started running "
288             "for such interactive use in the most ordinary way, to print or "
289             "display an announcement including an appropriate copyright notice "
290             "and a notice that there is no warranty (or else, saying that you "
291             "provide a warranty) and that users may redistribute the program "
292             "under these conditions, and telling the user how to view a copy "
293             "of this License.  (Exception: if the Program itself is "
294             "interactive but does not normally print such an announcement, "
295             "your work based on the Program is not required to print an "
296             "announcement.)</li>"
297             "</ol>"
298             "</p>"
299
300             "<p>These requirements apply to the modified work as a whole.  If "
301             "identifiable sections of that work are not derived from the "
302             "Program, and can be reasonably considered independent and "
303             "separate works in themselves, then this License, and its terms, "
304             "do not apply to those sections when you distribute them as "
305             "separate works.  But when you distribute the same sections as "
306             "part of a whole which is a work based on the Program, the "
307             "distribution of the whole must be on the terms of this License, "
308             "whose permissions for other licensees extend to the entire whole, "
309             "and thus to each and every part regardless of who wrote it.</p>"
310
311             "<p>Thus, it is not the intent of this section to claim rights or "
312             "contest your rights to work written entirely by you; rather, the "
313             "intent is to exercise the right to control the distribution of "
314             "derivative or collective works based on the Program.</p>"
315
316             "<p>In addition, mere aggregation of another work not based on the "
317             "Program with the Program (or with a work based on the Program) on "
318             "a volume of a storage or distribution medium does not bring the "
319             "other work under the scope of this License.</p>"
320
321             "<p>  3. You may copy and distribute the Program (or a work based "
322             "on it, under Section 2) in object code or executable form under "
323             "the terms of Sections 1 and 2 above provided that you also do one "
324             "of the following:"
325             "<ol type=\"a\">"
326
327             "    <li> Accompany it with the complete corresponding "
328             "machine-readable source code, which must be distributed under the "
329             "terms of Sections 1 and 2 above on a medium customarily used for "
330             "software interchange; or,</li>"
331
332             "    <li> Accompany it with a written offer, valid for at least "
333             "three years, to give any third party, for a charge no more than "
334             "your cost of physically performing source distribution, a "
335             "complete machine-readable copy of the corresponding source code, "
336             "to be distributed under the terms of Sections 1 and 2 above on a "
337             "medium customarily used for software interchange; or,</li>"
338
339             "    <li> Accompany it with the information you received as to the "
340             "offer to distribute corresponding source code.  (This alternative "
341             "is allowed only for noncommercial distribution and only if you "
342             "received the program in object code or executable form with such "
343             "an offer, in accord with Subsection b above.)</li>"
344             "</ol></p>"
345
346             "<p>The source code for a work means the preferred form of the "
347             "work for making modifications to it.  For an executable work, "
348             "complete source code means all the source code for all modules it "
349             "contains, plus any associated interface definition files, plus "
350             "the scripts used to control compilation and installation of the "
351             "executable.  However, as a special exception, the source code "
352             "distributed need not include anything that is normally "
353             "distributed (in either source or binary form) with the major "
354             "components (compiler, kernel, and so on) of the operating system "
355             "on which the executable runs, unless that component itself "
356             "accompanies the executable.</p>"
357
358             "<p>If distribution of executable or object code is made by "
359             "offering access to copy from a designated place, then offering "
360             "equivalent access to copy the source code from the same place "
361             "counts as distribution of the source code, even though third "
362             "parties are not compelled to copy the source along with the "
363             "object code.</p>"
364
365             "<p>  4. You may not copy, modify, sublicense, or distribute the "
366             "Program except as expressly provided under this License.  Any "
367             "attempt otherwise to copy, modify, sublicense or distribute the "
368             "Program is void, and will automatically terminate your rights "
369             "under this License.  However, parties who have received copies, "
370             "or rights, from you under this License will not have their "
371             "licenses terminated so long as such parties remain in full "
372             "compliance.</p>"
373
374             "<p>  5. You are not required to accept this License, since you "
375             "have not signed it.  However, nothing else grants you permission "
376             "to modify or distribute the Program or its derivative works.  "
377             "These actions are prohibited by law if you do not accept this "
378             "License.  Therefore, by modifying or distributing the Program (or "
379             "any work based on the Program), you indicate your acceptance of "
380             "this License to do so, and all its terms and conditions for "
381             "copying, distributing or modifying the Program or works based on "
382             "it.</p>"
383
384             "<p>  6. Each time you redistribute the Program (or any work based "
385             "on the Program), the recipient automatically receives a license "
386             "from the original licensor to copy, distribute or modify the "
387             "Program subject to these terms and conditions.  You may not "
388             "impose any further restrictions on the recipients' exercise of "
389             "the rights granted herein.  You are not responsible for enforcing "
390             "compliance by third parties to this License.</p>"
391
392             "<p>  7. If, as a consequence of a court judgment or allegation of "
393             "patent infringement or for any other reason (not limited to "
394             "patent issues), conditions are imposed on you (whether by court "
395             "order, agreement or otherwise) that contradict the conditions of "
396             "this License, they do not excuse you from the conditions of this "
397             "License.  If you cannot distribute so as to satisfy "
398             "simultaneously your obligations under this License and any other "
399             "pertinent obligations, then as a consequence you may not "
400             "distribute the Program at all.  For example, if a patent license "
401             "would not permit royalty-free redistribution of the Program by "
402             "all those who receive copies directly or indirectly through you, "
403             "then the only way you could satisfy both it and this License "
404             "would be to refrain entirely from distribution of the Program.</p>"
405
406             "<p>If any portion of this section is held invalid or "
407             "unenforceable under any particular circumstance, the balance of "
408             "the section is intended to apply and the section as a whole is "
409             "intended to apply in other circumstances.</p>"
410
411             "<p>It is not the purpose of this section to induce you to "
412             "infringe any patents or other property right claims or to contest "
413             "validity of any such claims; this section has the sole purpose of "
414             "protecting the integrity of the free software distribution "
415             "system, which is implemented by public license practices.  Many "
416             "people have made generous contributions to the wide range of "
417             "software distributed through that system in reliance on "
418             "consistent application of that system; it is up to the "
419             "author/donor to decide if he or she is willing to distribute "
420             "software through any other system and a licensee cannot impose "
421             "that choice.</p>"
422
423             "<p>This section is intended to make thoroughly clear what is "
424             "believed to be a consequence of the rest of this License.</p>"
425
426             "<p>  8. If the distribution and/or use of the Program is "
427             "restricted in certain countries either by patents or by "
428             "copyrighted interfaces, the original copyright holder who places "
429             "the Program under this License may add an explicit geographical "
430             "distribution limitation excluding those countries, so that "
431             "distribution is permitted only in or among countries not thus "
432             "excluded.  In such case, this License incorporates the limitation "
433             "as if written in the body of this License.</p>"
434
435             "<p>  9. The Free Software Foundation may publish revised and/or "
436             "new versions of the General Public License from time to time.  "
437             "Such new versions will be similar in spirit to the present "
438             "version, but may differ in detail to address new problems or "
439             "concerns.</p>"
440
441             "<p>Each version is given a distinguishing version number.  If the "
442             "Program specifies a version number of this License which applies "
443             "to it and \"any later version\", you have the option of following "
444             "the terms and conditions either of that version or of any later "
445             "version published by the Free Software Foundation.  If the "
446             "Program does not specify a version number of this License, you "
447             "may choose any version ever published by the Free Software "
448             "Foundation.</p>"
449
450             "<p>  10. If you wish to incorporate parts of the Program into "
451             "other free programs whose distribution conditions are different, "
452             "write to the author to ask for permission.  For software which is "
453             "copyrighted by the Free Software Foundation, write to the Free "
454             "Software Foundation; we sometimes make exceptions for this.  Our "
455             "decision will be guided by the two goals of preserving the free "
456             "status of all derivatives of our free software and of promoting "
457             "the sharing and reuse of software generally.</p>"
458
459             "<p align=\"center\">NO WARRANTY</p>"
460
461             "<p>  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS "
462             "NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY "
463             "APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE "
464             "COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS "
465             "IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, "
466             "INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF "
467             "MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE "
468             "RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH "
469             "YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF "
470             "ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>"
471
472             "<p>  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED "
473             "TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO "
474             "MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE "
475             "LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, "
476             "INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR "
477             "INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS "
478             "OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY "
479             "YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH "
480             "ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN "
481             "ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>"
482
483             "<p align=\"center\">END OF TERMS AND CONDITIONS</p>")
484             .arg(QDate::currentDate().year()));
485
486     credits->setFrameStyle(QFrame::Panel | QFrame::Plain);
487     tabs->addTab(license, tr("License", "Help->About vym dialog"));
488
489     mainLayout->addWidget(tabs);
490
491     okbutton = new QPushButton(this);
492     okbutton->setText(tr("Ok", "Ok Button"));
493     okbutton->setMaximumSize(QSize(50, 30));
494     okbutton->setAutoDefault(true);
495     mainLayout->addWidget(okbutton);
496
497     connect(okbutton, SIGNAL(clicked()), this, SLOT(accept()));
498 }
499
500 AboutTextBrowser::AboutTextBrowser(QWidget *parent) : QTextBrowser(parent) {}
501
502 void AboutTextBrowser::setSource(const QUrl &url)
503 {
504     QProcess *proc = new QProcess();
505     proc->start(settings.value("/system/readerURL").toString(),
506                 QStringList() << url.toString());
507     // if (!proc->waitForStarted() &&mainWindow->settingsURL() ) setSource(url);
508     if (!proc->waitForStarted())
509         QMessageBox::warning(
510             0, tr("Warning", "About window"),
511             tr("Couldn't find a viewer to open %1.\n", "About window")
512                     .arg(url.toString()) +
513                 tr("Please use Settings->") +
514                 tr("Set application to open an URL..."));
515 }