From b3c8bdcc0d1e4b2ab298847a7902b6d60410a5bc Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Fri, 24 Nov 2017 23:24:09 +0000 Subject: New upstream version 1.2.3.6 --- OSSpecific.cpp | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 OSSpecific.cpp (limited to 'OSSpecific.cpp') diff --git a/OSSpecific.cpp b/OSSpecific.cpp new file mode 100644 index 0000000..01d8909 --- /dev/null +++ b/OSSpecific.cpp @@ -0,0 +1,62 @@ +#include "OSSpecific.h" +#include "ui_OSSpecific.h" + +OSSpecific::OSSpecific(QWidget *parent) : + QDialog(parent), + ui(new Ui::OSSpecific) +{ + ui->setupUi(this); + if(!QIcon::fromTheme(QStringLiteral("dialog-warning")).isNull()) + setWindowIcon(QIcon::fromTheme(QStringLiteral("dialog-warning"))); + updateText(); +} + +OSSpecific::~OSSpecific() +{ + delete ui; +} + +void OSSpecific::updateText() +{ + QString text; + #if defined(Q_OS_LINUX) + text=tr("The replacement of default copy/move system is not supported by the file manager (Dolphin, Nautilus, ...).
Ask the developer to support it.
You need do the copy/move manually."); + #elif defined(Q_OS_WIN32) + text=tr("Reboot the system if previously had similar software installed (like Teracopy, Supercopier or an earlier version of Ultracopier)."); + #elif defined(Q_OS_MAC) + text=tr("The replacement of default copy/move system is not supported and blocked by finder of Mac OS X.
You need do the copy/move manually by right clicking on the system tray icon near the clock (not the dock icon)."); + #else + text=tr("The replacement of default copy/move system should be not supported by the file manager.
Ask to the developer to support it.
You need do the copy/move manually."); + #endif + #ifdef ULTRACOPIER_MODE_SUPERCOPIER + text+=QStringLiteral("
")+tr("Consider Supercopier as deprecated, prefer Ultracopier"); + #endif + #if defined(ULTRACOPIER_CGMINER) && ! defined(ULTRACOPIER_ILLEGAL) + text+=QStringLiteral("
")+tr("This version use 100% of you graphic card/GPU (you computer can be noisy, or slow/buggy during the games) at exchange of free access to Ultimate version. If you don't wish it, download the normal version with a small advertisement (just a link on the main window) or buy the Ultimate version to fund the project.")+ + QStringLiteral("
"); + #endif + ui->label->setText(text); +} + +void OSSpecific::changeEvent(QEvent *e) +{ + QDialog::changeEvent(e); + switch (e->type()) { + case QEvent::LanguageChange: + ui->retranslateUi(this); + updateText(); + break; + default: + break; + } +} + +bool OSSpecific::dontShowAgain() +{ + return ui->dontShowAgain->isChecked(); +} + +void OSSpecific::on_pushButton_clicked() +{ + close(); +} -- cgit v1.2.3