/******************************************************************************\
* Copyright (c) 2004-2020
*
* Author(s):
* Volker Fischer
*
******************************************************************************
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
\******************************************************************************/
#include "util.h"
#include "client.h"
/* Implementation *************************************************************/
// Input level meter implementation --------------------------------------------
void CStereoSignalLevelMeter::Update ( const CVector " + tr ( "The " ) + APP_NAME +
tr ( " software enables musicians to perform real-time jam sessions "
"over the internet." ) + " " // GPL header text
"This program is free software; you can redistribute it and/or modify "
"it under the terms of the GNU General Public License as published by "
"the Free Software Foundation; either version 2 of the License, or "
"(at your option) any later version. " + tr ( "Qt cross-platform application framework" ) +
", http://www.qt.io Opus Interactive Audio Codec"
", http://www.opus-codec.org " + tr ( "Audio reverberation code by Perry R. Cook and Gary P. Scavone" ) +
", 1995 - 2004, "
"The Synthesis ToolKit in C++ (STK) " + tr ( "Some pixmaps are from the" ) + " Open Clip Art Library (OCAL), "
"http://openclipart.org " + tr ( "Country flag icons from Mark James" ) +
", http://www.famfamfam.com Peter L. Jones (pljones) Jonathan Baker-Bates (gilgongo) Daniele Masato (doloopuntil) Simon Tomlinson (sthenos) Marc jr. Landolt (braindef) Olivier Humbert (trebmuh) Tarmo Johannes (tarmoj) mirabilos (mirabilos) newlaurent62 (newlaurent62) Emlyn Bolton (emlynmac) Jos van den Oever (vandenoever) Tormod Volden (tormodvolden) Stanislas Michalak (stanislas-m) JP Cimalando (jpcima) " + tr ( "Spanish" ) + " Daryl Hanlon (ignotus666) " + tr ( "French" ) + " Olivier Humbert (trebmuh) " + tr ( "Portuguese" ) + " Miguel de Matos (Snayler) " + tr ( "Dutch" ) + " Jeroen Geertzen (jerogee) " + tr ( "Italian" ) + " dzpex (dzpex) " + tr ( "German" ) + " Volker Fischer (corrados) " + tr (
"By connecting to this server and agreeing to this notice, you agree to the "
"following:" ) + " " + tr (
"You agree that all data, sounds, or other works transmitted to this server "
"are owned and created by you or your licensors, and that you are making these "
"data, sounds or other works available via the following Creative Commons "
"License (for more information on this license, see " ) +
""
"http://creativecommons.org/licenses/by-nc-sa/4.0): " + tr ( "You are free to:" ) +
"
" + tr ( "There is a " ) + APP_NAME + tr ( " "
"server which collects the audio data from each " ) +
APP_NAME + tr ( " client, mixes the audio data and sends the mix back "
"to each client." ) + "
This program is distributed in "
"the hope that it will be useful, but WITHOUT ANY WARRANTY; without "
"even the implied warranty of MERCHANTABILITY or FITNESS FOR A "
"PARTICULAR PURPOSE. See the GNU General Public License for more "
"details.
You should have received a copy of the GNU General Public "
"License along with his program; if not, write to the Free Software "
"Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 "
"USA"
"
" + tr ( "For details on the contributions check out the " ) +
"" + tr ( "Github Contributors list" ) + "." );
// translators
txvTranslation->setText (
"
";
}
else
{
strVersionText += "\n *** ";
}
if ( !bWithHtml )
{
strVersionText += tr ( "Internet Jam Session Software" );
strVersionText += "\n *** ";
}
strVersionText += tr ( "Under the GNU General Public License (GPL)" );
return strVersionText;
}
// Licence dialog --------------------------------------------------------------
CLicenceDlg::CLicenceDlg ( QWidget* parent ) : QDialog ( parent )
{
/*
The licence dialog is structured as follows:
- text box with the licence text on the top
- check box: I &agree to the above licence terms
- Accept button (disabled if check box not checked)
- Decline button
*/
setWindowIcon ( QIcon ( QString::fromUtf8 ( ":/png/main/res/fronticon.png" ) ) );
resize ( 700, 450 );
QVBoxLayout* pLayout = new QVBoxLayout ( this );
QHBoxLayout* pSubLayout = new QHBoxLayout;
QTextBrowser* txvLicence = new QTextBrowser ( this );
QCheckBox* chbAgree = new QCheckBox ( tr ( "I &agree to the above licence terms" ), this );
butAccept = new QPushButton ( tr ( "Accept" ), this );
QPushButton* butDecline = new QPushButton ( tr ( "Decline" ), this );
pSubLayout->addStretch();
pSubLayout->addWidget ( chbAgree );
pSubLayout->addWidget ( butAccept );
pSubLayout->addWidget ( butDecline );
pLayout->addWidget ( txvLicence );
pLayout->addLayout ( pSubLayout );
// set some properties
butAccept->setEnabled ( false );
butAccept->setDefault ( true );
txvLicence->setOpenExternalLinks ( true );
// define the licence text (similar to what we have in Ninjam)
txvLicence->setText (
"Attribution-NonCommercial-ShareAlike 4.0
"
""
"
" + tr ( "The licensor cannot revoke these freedoms as long as you follow the "
"license terms." ) + "
" + tr ( "Under the following terms:" ) + "