hydrogen 1.2.3
AboutDialog.cpp
Go to the documentation of this file.
1/*
2 * Hydrogen
3 * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4 * Copyright(c) 2008-2024 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
5 *
6 * http://www.hydrogen-music.org
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY, without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see https://www.gnu.org/licenses
20 *
21 */
22
23#include <core/Version.h>
25#include "AboutDialog.h"
26#include "Skin.h"
27
28#include <core/Globals.h>
29
30#include <vector>
31
32
33
35 : QDialog( parent )
36{
37 setupUi( this );
38
39 setWindowTitle( tr( "About" ) );
40
41 setMinimumSize( width(), height() );
42 setMaximumSize( width(), height() );
43 move( 240, 100 );
44
45 QString about;
46 about += QString("<center><b>Hydrogen Drum Machine %1 [%2] </b><br>").arg( H2Core::get_version().c_str() ).arg( __DATE__ );
47 about += "<br><b>" + tr( "Website" ) + "</b><br>";
48 about += "<a href='http://www.hydrogen-music.org' style='color: #EEE;'>http://www.hydrogen-music.org</a><br>";
49 about += "<br><b>" + tr( "Project page") + "</b><br>";
50 about += "<a href='https://github.com/hydrogen-music/hydrogen' style='color: #EEE;'>https://github.com/hydrogen-music/hydrogen</a><br>";
51 about += "<br><b>" + tr( "Forum" ) + "</b><br>";
52 about += "<a href='https://github.com/hydrogen-music/hydrogen/discussions' style='color: #EEE;'>https://github.com/hydrogen-music/hydrogen/discussions</a><br>";
53 about += "<br><b>" + tr( "Development mailing list") + "</b><br>";
54 about += "<a href='https://lists.sourceforge.net/lists/listinfo/hydrogen-devel' style='color: #EEE;'>https://lists.sourceforge.net/lists/listinfo/hydrogen-devel</a>";
55
56 aboutTxt->setText( about );
57 aboutTxt->setOpenExternalLinks( true );
58
59 std::vector<Author> translatorList;
60 translatorList.push_back( Author( "Olivier Humbert", "trebmuh@tuxfamily.org", "French translation" ) );
61 translatorList.push_back( Author( "Daryl Hanlon", "darylo1@hotmail.com", "Spanish translation" ) );
62 translatorList.push_back( Author( "Guocheng Zhu", "aaronbcn@outlook.es", "Chinese (Mainland China) translation" ) );
63 QString sAuthors;
64 sAuthors += "<b>" + tr( "Main coders and maintainers" ) + ":</b>";
65 sAuthors += "<ul><li><p>Sebastian Moors (aka Mauser) [2008-now]</li>";
66 sAuthors += "<li><p>Colin McEwan (aka cme) [2020-now]</p></li>";
67 sAuthors += "<li><p>Philipp Müller (aka theGreatWhiteShark) [2020-now]</p></li></ul></br>";
68
69 sAuthors += "<b>" + tr( "Active translators" ) + ":</b>";
70 sAuthors += "<ul>";
71
72 for ( auto tt : translatorList ) {
73 sAuthors += "<li><p>";
74 sAuthors += tt.m_sName + " (<i>" + tt.m_sEmail + "</i>): " + tt.m_sInfo;
75 sAuthors += "</p></li>";
76 }
77 sAuthors += "</ul></br>";
78
79 AboutDialogContributorList contributors;
80 auto pContributorList = contributors.getContributorList();
81
82 sAuthors += "<b>" + tr( "Recent contributors" ) + ":</b>";
83 sAuthors += "<ul>";
84
85 for ( const auto& tt : *pContributorList ) {
86 sAuthors += "<li><p>";
87 sAuthors += tt;
88 sAuthors += "</p></li>";
89 }
90 sAuthors += "</ul></br>";
91
92 sAuthors += "<p><a href='https://github.com/hydrogen-music/hydrogen/graphs/contributors' style='color: #EEE;'>" + tr( "A full list of all contributors can be found on" ) +
93 " Github</a></p>";
94
95
96 sAuthors += "<b>" + tr( "Former main coders and maintainers" ) + ":</b>";
97 sAuthors += "<ul><li><p>Alessandro Cominu (aka Comix) [2001-2008]</li>";
98 sAuthors += "<li><p>Michael Wolkstein (aka Wolke) [2008-2014]</li></ul></br>";
99
100 authorsText->setText( sAuthors );
101 authorsText->setOpenExternalLinks( true );
102
103 logoLabel->setPixmap( QPixmap( Skin::getImagePath() +"/about/aboutLogo.png" ) );
104}
105
106
107
108
112
113
114
115
120{
121 accept();
122}
std::shared_ptr< std::vector< QString > > getContributorList() const
AboutDialog(QWidget *parent)
void on_okBtn_clicked()
Close the dialog.
static QString getImagePath()
Definition Skin.h:36
std::string get_version()
Returns the current Hydrogen version string.
Definition Version.cpp:30