2 * This file shows an example for the KDE about dialog.
4 * Copyright 1999 Mirko Boehm <mirko@kde.org>
5 * Licensed under the GNU General Public License version 2
6 * mail to: Mirko Boehm <mirko@kde.org>
7 * requires: recent C++-compiler, at least Qt 1.4
10 #include <QtGui/QImage>
11 #include <QtGui/QPixmap>
13 #include "k3aboutdialog.h"
15 #include <kaboutdata.h>
16 #include <kcmdlineargs.h>
17 #include <k3aboutapplication.h>
18 #include <kapplication.h>
21 int main(int argc
, char** argv
)
23 KAboutData
aboutData("K3AboutDialogTest", 0, ki18n("K3AboutDialogTest"), "version", ki18n("K3AboutDialog Test, Enjoy!"), KAboutData::License_GPL
, ki18n("(c) 1997-2006, The KDE Developers"));
24 aboutData
.addAuthor(ki18n("Bob Dobbs"), ki18n("Current Maintainer"), "bob@subgenius.com");
25 aboutData
.addAuthor(ki18n("Gregory S. Hayes"), ki18n("Developer"), "syncomm@gmail.com");
26 aboutData
.addAuthor(ki18n("Random Authors from KFind"));
27 aboutData
.addAuthor(ki18n("Beppe Grimaldi"), ki18n("UI Design & more search options"), "grimalkin@ciaoweb.it");
28 aboutData
.addAuthor(ki18n("Martin Hartig"));
29 aboutData
.addAuthor(ki18n("Stephan Kulow"), KLocalizedString(), "coolo@kde.org");
30 aboutData
.addAuthor(ki18n("Mario Weilguni"), KLocalizedString(), "mweilguni@sime.com");
31 aboutData
.addAuthor(ki18n("Alex Zepeda"), KLocalizedString(), "zipzippy@sonic.net");
32 aboutData
.addAuthor(ki18n("Miroslav Fl�r"), KLocalizedString(), "flidr@kky.zcu.cz");
33 aboutData
.addAuthor(ki18n("Harri Porten"), KLocalizedString(), "porten@kde.org");
34 aboutData
.addAuthor(ki18n("Dima Rogozin"), KLocalizedString(), "dima@mercury.co.il");
35 aboutData
.addAuthor(ki18n("Carsten Pfeiffer"), KLocalizedString(), "pfeiffer@kde.org");
36 aboutData
.addAuthor(ki18n("Hans Petter Bieker"), KLocalizedString(), "bieker@kde.org");
37 aboutData
.addAuthor(ki18n("Waldo Bastian"), ki18n("UI Design"), "bastian@kde.org");
38 aboutData
.addAuthor(ki18n("Alexander Neundorf"), KLocalizedString(), "neundorf@kde.org");
39 aboutData
.addAuthor(ki18n("Clarence Dang"), KLocalizedString(), "dang@kde.org");
41 KCmdLineArgs::init(argc
, argv
, &aboutData
);
51 if(logo
.load("RayTracedGear.png"))
53 aboutData
.setProgramLogo( logo
);
54 pix
=QPixmap::fromImage(logo
);
57 qDebug("main: No logo loaded.");
59 if(bg
.load("background_1.png"))
61 pix
=QPixmap::fromImage(bg
);
62 //about.setBackgroundTile(&pix);
63 //about.showTile( true );
64 about
.enableLinkedHelp( true );
66 //about.showBaseFrameTile(true);
68 qDebug("main: No tile loaded.");
70 // about.setButtonOKText
71 // ("Cl&ose", "Close this dialog.",
72 // "<b>Close</b> the dialog<br>"
73 // "<i>(there are no settings to save).</i>");
74 about
.setCaption("K3AboutDialog example");
75 about
.setVersion("K3AboutDialog, Draft Study");
76 about
.setHelp("kdehelp/intro.html", "intro");
77 // ----- set the application author:
79 ("Mirko Boehm", "mirko@kde.org", "", "Initial developer.");
80 // ----- set the application maintainer:
81 about
.setMaintainer("Any One", // name
82 "anyone@kde.org", // email address
83 "http://www.anyhere.com", // URL
84 "Current maintainer."); // description
85 // ----- add some contributors:
86 about
.addContributor("Some One", "someone@kde.org", "http://www.somehere.com",
88 about
.addContributor("Another One",
90 "http://www.blablax.com",
92 // ----- contents of the dialog have changed, adapt sizes:
96 K3AboutApplication
aboutApp(&aboutData
, app
.activeWindow(), true);