summaryrefslogtreecommitdiff
path: root/src/OpenCSGWarningDialog.cc
blob: fdaaa508b5da7b09347923279a53880dcc25b403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "OpenCSGWarningDialog.h"
#include "Preferences.h"

OpenCSGWarningDialog::OpenCSGWarningDialog(QWidget *parent)
{
  setupUi(this);

	connect(this->showBox, SIGNAL(toggled(bool)),
					Preferences::inst()->openCSGWarningBox, SLOT(setChecked(bool)));
	connect(this->showBox, SIGNAL(toggled(bool)),
					Preferences::inst(), SLOT(openCSGWarningChanged(bool)));

	connect(this->enableOpenCSGBox, SIGNAL(toggled(bool)),
					Preferences::inst()->enableOpenCSGBox, SLOT(setChecked(bool)));
	connect(this->enableOpenCSGBox, SIGNAL(toggled(bool)),
					Preferences::inst(), SLOT(enableOpenCSGChanged(bool)));
}

void OpenCSGWarningDialog::setText(const QString &text)
{
  this->warningText->setPlainText(text);
}

contact: Jan Huwald // Impressum