2011-12-09 06:43:06 +04:00
|
|
|
#include "OpenCSGWarningDialog.h"
|
|
|
|
#include "Preferences.h"
|
|
|
|
|
2012-04-24 03:17:21 +04:00
|
|
|
OpenCSGWarningDialog::OpenCSGWarningDialog(QWidget*)
|
2011-12-09 06:43:06 +04:00
|
|
|
{
|
|
|
|
setupUi(this);
|
|
|
|
|
|
|
|
connect(this->showBox, SIGNAL(toggled(bool)),
|
|
|
|
Preferences::inst()->openCSGWarningBox, SLOT(setChecked(bool)));
|
|
|
|
connect(this->showBox, SIGNAL(toggled(bool)),
|
2013-01-14 03:28:13 +04:00
|
|
|
Preferences::inst(), SLOT(on_openCSGWarningBox_toggled(bool)));
|
2011-12-09 06:43:06 +04:00
|
|
|
|
|
|
|
connect(this->enableOpenCSGBox, SIGNAL(toggled(bool)),
|
|
|
|
Preferences::inst()->enableOpenCSGBox, SLOT(setChecked(bool)));
|
|
|
|
connect(this->enableOpenCSGBox, SIGNAL(toggled(bool)),
|
2013-01-14 03:28:13 +04:00
|
|
|
Preferences::inst(), SLOT(on_enableOpenCSGBox_toggled(bool)));
|
2011-12-09 06:43:06 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
void OpenCSGWarningDialog::setText(const QString &text)
|
|
|
|
{
|
|
|
|
this->warningText->setPlainText(text);
|
|
|
|
}
|
|
|
|
|