Sorry, a fatal error has occurred " "and the application must now exit.
" "Please " R"(contact us)" " and copy/paste the following error:
" "%3\n\n%4") .arg(kUrlContact, kColorSecondary, message, contextString)); // developers: if you hit this line in your debugger, traverse the stack to // find the cause of the fatal error. // important: crash the app on fatal error to prevent the app being used in // a broken state. abort(); } } void showCloseReminder(QWidget *parent) { QString message = "
Synergy will continue to run in the background and can be accessed " "via the Synergy icon in your system notifications area. This setting " "can be disabled.
"; #if defined(Q_OS_LINUX) message += QString("On some Linux systems such as GNOME 3, the " "notification area might be disabled. " "You may need to " R"(enable an extension)" " to see the Synergy tray icon.
") .arg(kUrlGnomeTrayFix, kStyleLink); #endif QMessageBox::information(parent, "Notification area icon", message); } void showFirstRunMessage( QWidget *parent, bool closeToTray, bool enableService, bool isServer) { auto message = QString("Synergy is now connected!
"); if (isServer) { message += "Try moving your mouse to your other computer. Once there, go ahead " "and type something.
" "Don't forget, you can copy and paste between computers too.
"; } else { message += "Try controlling this computer remotely.
"; } if (!closeToTray && !enableService) { message += "As you do not have the setting enabled to keep Synergy running in " "the background, you'll need to keep this window open or minimized to " "keep Synergy running.
"; } else { message += "You can now close this window and Synergy will continue to run in " "the background. This setting can be disabled.
"; } QMessageBox::information(parent, "Connected", message); } void showDevThanks(QWidget *parent, const QString &productName) { if (productName.isEmpty()) { qFatal("product name not set"); } QMessageBox::information( parent, "Thank you!", QString( "Thanks for using %1.
" "If you enjoy using this app, you can support the developers by " R"(purchasing a license)" " or " R"(contributing code.)" "
" "This message will only appear once.
") .arg( productName, kUrlPurchase, kColorSecondary, kUrlContribute, kColorSecondary)); } } // namespace synergy::gui::messages