"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/src/AboutDialog.cpp" between
synergy-core-1.14.4.37-stable.tar.gz and synergy-core-1.14.5.13-stable.tar.gz

About: Synergy is software for sharing one mouse and one keyboard between multiple computers on your desk allowing to seamlessly move the mouse cursor from one screen to another (works on Linux, Windows and Mac OS X). Synergy 1.

AboutDialog.cpp  (synergy-core-1.14.4.37-stable):AboutDialog.cpp  (synergy-core-1.14.5.13-stable)
skipping to change at line 20 skipping to change at line 20
* This package is distributed in the hope that it will be useful, * This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "AboutDialog.h" #include "AboutDialog.h"
#include "CreditsLoader.h"
#include <QtCore> #include <QtCore>
#include <QtGui> #include <QtGui>
#include "OSXHelpers.h" #include "OSXHelpers.h"
AboutDialog::AboutDialog(QWidget* parent, const QString& synergyApp) : AboutDialog::AboutDialog(MainWindow* parent, const AppConfig& config) :
QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint), QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
Ui::AboutDialogBase() Ui::AboutDialogBase(),
credits(*parent, config)
{ {
setupUi(this); setupUi(this);
setupCreditsLoader();
QString aboutText(R"(<p> QString aboutText(R"(<p>
Keyboard and mouse sharing application. Cross platform and open source.<br /><br Keyboard and mouse sharing application. Cross platform and open source since 200
/> 1.<br /><br />
Copyright © 2012-%%YEAR%% Symless Ltd.<br /> Copyright © %%YEAR%% Symless Ltd.<br /><br />
Copyright © 2002-2012 Chris Schoeneman, Nick Bolton, Volker Lanz.<br /><br /> Synergy is released under the GNU General Public License (GPLv2).</p>
Synergy is released under the GNU General Public License (GPLv2).<br /><br /> <p style="font-size: 14px">Key contributors<br>
Synergy is based on CosmoSynergy by Richard Lee and Adam Feder.<br /> <span style="font-size: 11px">Chris Schoeneman, Nick Bolton, Richard Lee, Adam F
The Synergy GUI is based on QSynergy by Volker Lanz.<br /><br /> eder, Volker Lanz,
Visit our website for help and info (symless.com). Ryan Breen, Guido Poschta, Bertrand Landry Hetu, Tom Chadwick, Brent Priddy, Kyl
e Bloom,
Daun Chung, Serhii Hadzhylov, Oleksandr Lysytsia, Olena Kutytska, Francisco Maga
lhães.</span>
</p>)"); </p>)");
m_versionChecker.setApp(synergyApp); m_versionChecker.setApp(parent->appPath(config.synergycName()));
QString version = m_versionChecker.getVersion(); QString version = m_versionChecker.getVersion();
#ifdef SYNERGY_REVISION #ifdef SYNERGY_REVISION
version += '-'; version += '-';
version += SYNERGY_REVISION; version += SYNERGY_REVISION;
#endif #endif
m_pLabelSynergyVersion->setText(version); m_pLabelSynergyVersion->setText(version);
QString buildDateString = QString::fromLocal8Bit(__DATE__).simplified(); QString buildDateString = QString::fromLocal8Bit(__DATE__).simplified();
QDate buildDate = QLocale("en_US").toDate(buildDateString, "MMM d yyyy"); QDate buildDate = QLocale("en_US").toDate(buildDateString, "MMM d yyyy");
m_pLabelBuildDate->setText(buildDate.toString(Qt::SystemLocaleLongDate)); m_pLabelBuildDate->setText(buildDate.toString(Qt::SystemLocaleLongDate));
//Sets the current build year into the copyright text //Sets the current build year into the copyright text
label_3->setText(aboutText.replace(QString("%%YEAR%%"), QString::number(b uildDate.year()))); label_3->setText(aboutText.replace(QString("%%YEAR%%"), QString::number(b uildDate.year())));
// change default size based on os // change default size based on os
#if defined(Q_OS_MAC) #if defined(Q_OS_MAC)
QSize size(600, 380); QSize size(600, 490);
setMaximumSize(size); setMaximumSize(size);
setMinimumSize(size); setMinimumSize(size);
resize(size); resize(size);
if (isOSXInterfaceStyleDark()) { if (isOSXInterfaceStyleDark()) {
QPixmap logo(":/res/image/about-dark.png"); QPixmap logo(":/res/image/about-dark.png");
if (!logo.isNull()) { if (!logo.isNull()) {
label_Logo->setPixmap(logo); label_Logo->setPixmap(logo);
} }
} }
#elif defined(Q_OS_LINUX) #elif defined(Q_OS_LINUX)
QSize size(600, 330); QSize size(600, 420);
setMaximumSize(size); setMaximumSize(size);
setMinimumSize(size); setMinimumSize(size);
resize(size); resize(size);
#endif #endif
} }
void AboutDialog::setupCreditsLoader()
{
this->textEliteBackers->setText("Loading...");
this->textEliteBackers->viewport()->setAutoFillBackground(false);
this->textEliteBackers->document()->setDocumentMargin(0);
connect(&credits, SIGNAL(loaded(const QString&)), this, SLOT(updateEliteB
ackers(const QString&)));
credits.loadEliteBackers();
}
void AboutDialog::updateEliteBackers(const QString& eliteBackers) const
{
this->textEliteBackers->setText(eliteBackers);
}
 End of changes. 9 change blocks. 
13 lines changed or deleted 19 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)