| 1 | /****************************************************************************
|
|---|
| 2 | ** ui.h extension file, included from the uic-generated form implementation.
|
|---|
| 3 | **
|
|---|
| 4 | ** If you wish to add, delete or rename functions or slots use
|
|---|
| 5 | ** Qt Designer which will update this file, preserving your code. Create an
|
|---|
| 6 | ** init() function in place of a constructor, and a destroy() function in
|
|---|
| 7 | ** place of a destructor.
|
|---|
| 8 | *****************************************************************************/
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 | void AboutDlg::init()
|
|---|
| 12 | {
|
|---|
| 13 | lb_name->setText ( lb_name->text().arg(PROG_NAME).arg(PROG_VERSION) );
|
|---|
| 14 |
|
|---|
| 15 | te_license->setText ( loadText(g.pathBase + "/COPYING") );
|
|---|
| 16 |
|
|---|
| 17 | QString lang_name = qApp->translate( "@default", "language_name" );
|
|---|
| 18 | if ( lang_name == "language_name" ) // remove the translation tab, if no translation is used
|
|---|
| 19 | tw_tabs->removePage ( tw_tabs->page(3) );
|
|---|
| 20 |
|
|---|
| 21 | // fill in Authors tab...
|
|---|
| 22 | QString authors;
|
|---|
| 23 | authors += details(QString::fromUtf8("Justin Karneges"),
|
|---|
| 24 | "[email protected]", "", "",
|
|---|
| 25 | tr("Founder and Original Author"));
|
|---|
| 26 | authors += details(QString::fromUtf8("Kevin Smith"),
|
|---|
| 27 | "[email protected]", "", "",
|
|---|
| 28 | tr("Project Lead/Maintainer"));
|
|---|
| 29 | authors += details(QString::fromUtf8("Michail Pishchagin"),
|
|---|
| 30 | "[email protected]", "", "",
|
|---|
| 31 | tr("Lead Developer"));
|
|---|
| 32 | authors += details(QString::fromUtf8("Remko Tronçon"),
|
|---|
| 33 | "[email protected]", "", "",
|
|---|
| 34 | tr("Developer"));
|
|---|
| 35 | authors += details(QString::fromUtf8("Akito Nozaki"),
|
|---|
| 36 | "[email protected]", "", "",
|
|---|
| 37 | tr("Miscellaneous Developer"));
|
|---|
| 38 | te_authors->setText( authors );
|
|---|
| 39 |
|
|---|
| 40 | // fill in Thanks To tab...
|
|---|
| 41 | QString thanks;
|
|---|
| 42 | thanks += details(QString::fromUtf8("Jan Niehusmann"),
|
|---|
| 43 | "[email protected]", "", "",
|
|---|
| 44 | tr("Build setup, miscellaneous assistance"));
|
|---|
| 45 | thanks += details(QString::fromUtf8("Everaldo Coelho"),
|
|---|
| 46 | "", "", "http://www.everaldo.com",
|
|---|
| 47 | tr("Many icons are from his Crystal icon theme"));
|
|---|
| 48 | thanks += details(QString::fromUtf8("Jason Kim"),
|
|---|
| 49 | "", "", "",
|
|---|
| 50 | tr("Graphics"));
|
|---|
| 51 | thanks += details(QString::fromUtf8("Hideaki Omuro"),
|
|---|
| 52 | "", "", "",
|
|---|
| 53 | tr("Graphics"));
|
|---|
| 54 | thanks += details(QString::fromUtf8("Bill Myers"),
|
|---|
| 55 | "", "", "",
|
|---|
| 56 | tr("Original Mac Port"));
|
|---|
| 57 | thanks += details(QString::fromUtf8("Eric Smith (Tarkvara Design, Inc.)"),
|
|---|
| 58 | "[email protected]", "", "",
|
|---|
| 59 | tr("Mac OS X Port"));
|
|---|
| 60 | thanks += details(QString::fromUtf8("Tony Collins"),
|
|---|
| 61 | "", "", "",
|
|---|
| 62 | tr("Original End User Documentation"));
|
|---|
| 63 | thanks += details(QString::fromUtf8("Hal Rottenberg"),
|
|---|
| 64 | "", "", "",
|
|---|
| 65 | tr("Webmaster, Marketing"));
|
|---|
| 66 | thanks += details(QString::fromUtf8("Mircea Bardac"),
|
|---|
| 67 | "", "", "",
|
|---|
| 68 | tr("Bug Tracker Management"));
|
|---|
| 69 | thanks += details(QString::fromUtf8("Jacek Tomasiak"),
|
|---|
| 70 | "", "", "",
|
|---|
| 71 | tr("Patches"));
|
|---|
| 72 |
|
|---|
| 73 | //thanks += tr("Thanks to many others.\n"
|
|---|
| 74 | // "The above list only reflects the contributors I managed to keep track of.\n"
|
|---|
| 75 | // "If you're not included but you think that you must be in the list, contact the developers.");
|
|---|
| 76 | te_thanks->setText( thanks );
|
|---|
| 77 | }
|
|---|
| 78 |
|
|---|
| 79 | QString AboutDlg::loadText( const QString & fileName )
|
|---|
| 80 | {
|
|---|
| 81 | QString text;
|
|---|
| 82 |
|
|---|
| 83 | QFile f(fileName);
|
|---|
| 84 | if(f.open(IO_ReadOnly)) {
|
|---|
| 85 | QTextStream t(&f);
|
|---|
| 86 | while(!t.eof())
|
|---|
| 87 | text += t.readLine() + '\n';
|
|---|
| 88 | f.close();
|
|---|
| 89 | }
|
|---|
| 90 |
|
|---|
| 91 | return text;
|
|---|
| 92 | }
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 | QString AboutDlg::details( QString name, QString email, QString jabber, QString www, QString desc )
|
|---|
| 96 | {
|
|---|
| 97 | QString ret;
|
|---|
| 98 | const QString nbsp = " ";
|
|---|
| 99 | ret += name + "<br>\n";
|
|---|
| 100 | if ( !email.isEmpty() )
|
|---|
| 101 | ret += nbsp + "E-mail: " + "<a href=\"mailto:" + email + "\">" + email + "</a><br>\n";
|
|---|
| 102 | if ( !jabber.isEmpty() )
|
|---|
| 103 | ret += nbsp + "Jabber: " + "<a href=\"jabber:" + jabber + "\">" + jabber + "</a><br>\n";
|
|---|
| 104 | if ( !www.isEmpty() )
|
|---|
| 105 | ret += nbsp + "WWW: " + "<a href=\"" + www + "\">" + www + "</a><br>\n";
|
|---|
| 106 | if ( !desc.isEmpty() )
|
|---|
| 107 | ret += nbsp + desc + "<br>\n";
|
|---|
| 108 | ret += "<br>\n";
|
|---|
| 109 |
|
|---|
| 110 | return ret;
|
|---|
| 111 | }
|
|---|