"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/src/MainWindow.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.

MainWindow.cpp  (synergy-core-1.14.4.37-stable):MainWindow.cpp  (synergy-core-1.14.5.13-stable)
skipping to change at line 1264 skipping to change at line 1264
{ {
QMessageBox::warning(this, tr("Save failed"), tr("Could not save configu ration to file.")); QMessageBox::warning(this, tr("Save failed"), tr("Could not save configu ration to file."));
return true; return true;
} }
return false; return false;
} }
void MainWindow::on_m_pActionAbout_triggered() void MainWindow::on_m_pActionAbout_triggered()
{ {
AboutDialog dlg(this, appPath(appConfig().synergycName())); AboutDialog dlg(this, appConfig());
dlg.exec(); dlg.exec();
} }
void MainWindow::on_m_pActionHelp_triggered() void MainWindow::on_m_pActionHelp_triggered()
{ {
QDesktopServices::openUrl(QUrl(HELP_URL)); QDesktopServices::openUrl(QUrl(HELP_URL));
} }
void MainWindow::updateZeroconfService() void MainWindow::updateZeroconfService()
{ {
skipping to change at line 1478 skipping to change at line 1478
} }
void MainWindow::updateScreenName() void MainWindow::updateScreenName()
{ {
m_pLabelComputerName->setText(tr("This computer's name: %1 (<a href=\"#\" st yle=\"text-decoration: none; color: #4285F4;\">Preferences</a>)").arg(appConfig( ).screenName())); m_pLabelComputerName->setText(tr("This computer's name: %1 (<a href=\"#\" st yle=\"text-decoration: none; color: #4285F4;\">Preferences</a>)").arg(appConfig( ).screenName()));
serverConfig().updateServerName(); serverConfig().updateServerName();
} }
void MainWindow::enableServer(bool enable) void MainWindow::enableServer(bool enable)
{ {
m_AppConfig->setServerGroupChecked(enable);
m_pRadioGroupServer->setChecked(enable); m_pRadioGroupServer->setChecked(enable);
if (enable) if (enable)
{ {
m_pButtonConfigureServer->show(); m_pButtonConfigureServer->show();
m_pLabelServerState->show(); m_pLabelServerState->show();
updateLocalFingerprint(); updateLocalFingerprint();
m_pButtonToggleStart->setEnabled(enable); m_pButtonToggleStart->setEnabled(enable);
} }
else else
{ {
m_pLabelFingerprint->hide(); m_pLabelFingerprint->hide();
m_pButtonConfigureServer->hide(); m_pButtonConfigureServer->hide();
m_pLabelServerState->hide(); m_pLabelServerState->hide();
} }
} }
void MainWindow::enableClient(bool enable) void MainWindow::enableClient(bool enable)
{ {
m_AppConfig->setClientGroupChecked(enable);
m_pRadioGroupClient->setChecked(enable); m_pRadioGroupClient->setChecked(enable);
if (enable) if (enable)
{ {
m_pLabelServerName->show(); m_pLabelServerName->show();
m_pLineEditHostname->show(); m_pLineEditHostname->show();
m_pButtonConnect->show(); m_pButtonConnect->show();
m_pButtonToggleStart->setEnabled(enable); m_pButtonToggleStart->setEnabled(enable);
} }
else else
skipping to change at line 1527 skipping to change at line 1529
#if defined (Q_OS_LINUX) #if defined (Q_OS_LINUX)
QCoreApplication::quit(); QCoreApplication::quit();
#endif #endif
QWidget::closeEvent(event); QWidget::closeEvent(event);
} }
void MainWindow::on_m_pRadioGroupServer_clicked(bool) void MainWindow::on_m_pRadioGroupServer_clicked(bool)
{ {
enableServer(true); enableServer(true);
enableClient(false); enableClient(false);
m_AppConfig->saveSettings();
} }
void MainWindow::on_m_pRadioGroupClient_clicked(bool) void MainWindow::on_m_pRadioGroupClient_clicked(bool)
{ {
enableClient(true); enableClient(true);
enableServer(false); enableServer(false);
m_AppConfig->saveSettings();
} }
void MainWindow::on_m_pButtonConnect_clicked() void MainWindow::on_m_pButtonConnect_clicked()
{ {
on_m_pButtonApply_clicked(); on_m_pButtonApply_clicked();
} }
 End of changes. 5 change blocks. 
1 lines changed or deleted 5 lines changed or added

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