| 1 | /* |
|---|
| 2 | * Hydrogen |
|---|
| 3 | * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net] |
|---|
| 4 | * |
|---|
| 5 | * http://www.hydrogen-music.org |
|---|
| 6 | * |
|---|
| 7 | * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | * it under the terms of the GNU General Public License as published by |
|---|
| 9 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 10 | * (at your option) any later version. |
|---|
| 11 | * |
|---|
| 12 | * This program is distributed in the hope that it will be useful, |
|---|
| 13 | * but WITHOUT ANY WARRANTY, without even the implied warranty of |
|---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | * GNU General Public License for more details. |
|---|
| 16 | * |
|---|
| 17 | * You should have received a copy of the GNU General Public License |
|---|
| 18 | * along with this program; if not, write to the Free Software |
|---|
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 20 | * |
|---|
| 21 | */ |
|---|
| 22 | |
|---|
| 23 | #include "config.h" |
|---|
| 24 | #include "version.h" |
|---|
| 25 | #include "AboutDialog.h" |
|---|
| 26 | #include "Skin.h" |
|---|
| 27 | |
|---|
| 28 | #include <hydrogen/globals.h> |
|---|
| 29 | |
|---|
| 30 | #include <vector> |
|---|
| 31 | |
|---|
| 32 | class Author { |
|---|
| 33 | public: |
|---|
| 34 | QString m_sName; |
|---|
| 35 | QString m_sEmail; |
|---|
| 36 | QString m_sInfo; |
|---|
| 37 | |
|---|
| 38 | Author( QString sName, QString sEmail, QString sInfo ) : m_sName( sName ), m_sEmail( sEmail ), m_sInfo( sInfo ) {} |
|---|
| 39 | }; |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | AboutDialog::AboutDialog(QWidget* parent) |
|---|
| 43 | : QDialog( parent ) |
|---|
| 44 | { |
|---|
| 45 | setupUi( this ); |
|---|
| 46 | |
|---|
| 47 | setWindowTitle( tr( "About" ) ); |
|---|
| 48 | setWindowIcon( QPixmap( Skin::getImagePath() + "/icon16.png" ) ); |
|---|
| 49 | |
|---|
| 50 | setMinimumSize( width(), height() ); |
|---|
| 51 | setMaximumSize( width(), height() ); |
|---|
| 52 | move( 240, 100 ); |
|---|
| 53 | |
|---|
| 54 | QString about; |
|---|
| 55 | about += QString("<center><b>Hydrogen Drum Machine %1 [%2] </b><br>").arg(VERSION.c_str()).arg( __DATE__ ); |
|---|
| 56 | about += tr( "<b>Website</b><br>" ); |
|---|
| 57 | about += "http://www.hydrogen-music.org<br><br>"; |
|---|
| 58 | about += tr( "<b>Project page</b><br>"); |
|---|
| 59 | about += "http://sourceforge.net/projects/hydrogen<br><br>"; |
|---|
| 60 | about += tr( "<b>Mailing lists</b><br>"); |
|---|
| 61 | about += "http://lists.sourceforge.net/lists/listinfo/hydrogen-announce<br>"; |
|---|
| 62 | about += "http://lists.sourceforge.net/lists/listinfo/hydrogen-devel<br>"; |
|---|
| 63 | aboutTxt->setText( about ); |
|---|
| 64 | |
|---|
| 65 | std::vector<Author> authorList; |
|---|
| 66 | authorList.push_back( Author( "Antonio Piraino", "", "Italian manual" ) ); |
|---|
| 67 | authorList.push_back( Author( "Artemiy Pavlov (aka Artemio)", "www.artemiolabs.com", "Drum kits, demo patterns, web site" ) ); |
|---|
| 68 | authorList.push_back( Author( "Alexandre Prokoudine", "", "Russian translation" ) ); |
|---|
| 69 | authorList.push_back( Author( "Ben Powers", "", "Docs" ) ); |
|---|
| 70 | authorList.push_back( Author( "Benjamin Flaming", "", "Jack patches, bug fix" ) ); |
|---|
| 71 | authorList.push_back( Author( "Carlo Impagliazzo (aka Truijllo)", "", "Testing, ideas.." ) ); |
|---|
| 72 | authorList.push_back( Author( "Chris Wareham", "", "NetBSD patch" ) ); |
|---|
| 73 | authorList.push_back( Author( "Christian Vorhof", "", "Interface design concept" ) ); |
|---|
| 74 | authorList.push_back( Author( "Daniil Kolpakov", "", "" ) ); |
|---|
| 75 | authorList.push_back( Author( "Daniel Tonda Castillo", "", "Spanish manual" ) ); |
|---|
| 76 | authorList.push_back( Author( "Dave Fancella", "", "" ) ); |
|---|
| 77 | authorList.push_back( Author( "Dave Phillips", "", "Bug reports, ideas" ) ); |
|---|
| 78 | authorList.push_back( Author( "Derrick Karpo", "", "Patches, testing" ) ); |
|---|
| 79 | authorList.push_back( Author( "Dmitry Ivanov", "", "" ) ); |
|---|
| 80 | authorList.push_back( Author( "Ede Wolf", "", "Faq, testing" ) ); |
|---|
| 81 | authorList.push_back( Author( "Elizeu Santos-Neto", "", "Portuguese(Brazil) translation" ) ); |
|---|
| 82 | authorList.push_back( Author( "Emiliano Grilli (aka Emillo)", "www.emillo.net", "Drum kits, demo patterns" ) ); |
|---|
| 83 | authorList.push_back( Author( "Esben Stien", "", "" ) ); |
|---|
| 84 | authorList.push_back( Author( "Francesco Cabras", "", "Patches, testing" ) ); |
|---|
| 85 | authorList.push_back( Author( "Gabriel M. Beddingfield", "gabriel@teuton.org", "Patches, ideas" ) ); |
|---|
| 86 | authorList.push_back( Author( "Gene", "", "Patches, testing" ) ); |
|---|
| 87 | authorList.push_back( Author( "Jakob Lund", "jlund05@imada.sdu.dk", " coding" ) ); |
|---|
| 88 | authorList.push_back( Author( "Jason Schaefer", "schaefer.jason@gmail.com", " Patches, lead/lag feature" ) ); |
|---|
| 89 | authorList.push_back( Author( "Jesse Chappel", "", "Jack patches" ) ); |
|---|
| 90 | authorList.push_back( Author( "Jonas Melzer", "", "German manual" ) ); |
|---|
| 91 | authorList.push_back( Author( "Jonathan Dempsey", "jonathandempsey@fastmail.fm", "Mac OSX port" ) ); |
|---|
| 92 | authorList.push_back( Author( "Journeyman", "jman-@masternet.it", " manual") ); |
|---|
| 93 | authorList.push_back( Author( "Kevin Dahan (aka Unet)", "", "French translation" ) ); |
|---|
| 94 | authorList.push_back( Author( "Lee Revell", "", "Patches" ) ); |
|---|
| 95 | authorList.push_back( Author( "Matt Walker", "", "" ) ); |
|---|
| 96 | authorList.push_back( Author( "Michael Wolkstein", "m.wolkstein@gmx.de", "coding" ) ); |
|---|
| 97 | authorList.push_back( Author( "Paul Dorman", "", "" ) ); |
|---|
| 98 | authorList.push_back( Author( "Pieter Van Isacker (aka aikie)", "", "Dutch manual and translation" ) ); |
|---|
| 99 | authorList.push_back( Author( "Samuel Mimram", "", "Packages" ) ); |
|---|
| 100 | authorList.push_back( Author( "Sebastian Moors (aka mauser)", "mauser@smoors.de", "coding" ) ); |
|---|
| 101 | authorList.push_back( Author( "Sergio Gil Perez de la Manga", "", "Spanish translation" ) ); |
|---|
| 102 | authorList.push_back( Author( "Simon Donike", "", "German translation" ) ); |
|---|
| 103 | authorList.push_back( Author( "Torben Hohn", "", "Bug fix, test" ) ); |
|---|
| 104 | authorList.push_back( Author( "Yamasaki Yutaka", "yamasaki@good-day.co.jp", "Japanese translation" ) ); |
|---|
| 105 | authorList.push_back( Author( "Willie Sippel", "willie@zeitgeistmedia.net", "GUI graphics, coding" ) ); |
|---|
| 106 | |
|---|
| 107 | QString sAuthors; |
|---|
| 108 | sAuthors += tr( "<b>Main coder and mantainer:</b><br>" ); |
|---|
| 109 | sAuthors += "<ul><li><p>Alessandro Cominu (aka Comix)<br>"; |
|---|
| 110 | sAuthors += "<i><comix@users.sourceforge.net></i></p></li></ul>"; |
|---|
| 111 | |
|---|
| 112 | sAuthors += QString( "<b>" ) + trUtf8( "Translator:%1Alessandro Cominu" ).arg( "</b><br><ul><li><p>" ) + QString( "</p></li></ul>" ); |
|---|
| 113 | |
|---|
| 114 | sAuthors += "<b>Thanks to:</b>"; |
|---|
| 115 | |
|---|
| 116 | sAuthors += "<ul>"; |
|---|
| 117 | |
|---|
| 118 | for ( uint i = 0; i < authorList.size(); ++i ) { |
|---|
| 119 | Author a = authorList.at( i ); |
|---|
| 120 | sAuthors += "<li><p>"; |
|---|
| 121 | sAuthors += "<i>" + a.m_sName + "</i>"; |
|---|
| 122 | sAuthors += "</p></li>"; |
|---|
| 123 | } |
|---|
| 124 | sAuthors += "</ul>"; |
|---|
| 125 | |
|---|
| 126 | |
|---|
| 127 | authorsTxt->append( sAuthors ); |
|---|
| 128 | |
|---|
| 129 | logoLabel->setPixmap( QPixmap( Skin::getImagePath() +"/about/aboutLogo.png" ) ); |
|---|
| 130 | } |
|---|
| 131 | |
|---|
| 132 | |
|---|
| 133 | |
|---|
| 134 | |
|---|
| 135 | AboutDialog::~AboutDialog() |
|---|
| 136 | { |
|---|
| 137 | } |
|---|
| 138 | |
|---|
| 139 | |
|---|
| 140 | |
|---|
| 141 | |
|---|
| 142 | /** |
|---|
| 143 | * Close the dialog |
|---|
| 144 | */ |
|---|
| 145 | void AboutDialog::on_okBtn_clicked() |
|---|
| 146 | { |
|---|
| 147 | accept(); |
|---|
| 148 | } |
|---|