summaryrefslogtreecommitdiff
path: root/src/OpenCSGWarningDialog.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-09 02:43:06 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-09 02:43:06 (GMT)
commitf577f91d25071f5ad1a9fdb6ed7c6dd3aa4c1008 (patch)
treecfc834302cc03e520127014faa59d5ecf58d7a06 /src/OpenCSGWarningDialog.cc
parentcc4f6ac1846882adbc5214157e1d7b5a1994a9db (diff)
Better warnings and GL info related to OpenCSG capabilities and OpenGL 1.x
Diffstat (limited to 'src/OpenCSGWarningDialog.cc')
-rw-r--r--src/OpenCSGWarningDialog.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/OpenCSGWarningDialog.cc b/src/OpenCSGWarningDialog.cc
new file mode 100644
index 0000000..fdaaa50
--- /dev/null
+++ b/src/OpenCSGWarningDialog.cc
@@ -0,0 +1,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