summaryrefslogtreecommitdiffstats
path: root/kolf/printdialogpage.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitc90c389a8a8d9d8661e9772ec4144c5cf2039f23 (patch)
tree6d8391395bce9eaea4ad78958617edb20c6a7573 /kolf/printdialogpage.cpp
downloadtdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.tar.gz
tdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolf/printdialogpage.cpp')
-rw-r--r--kolf/printdialogpage.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/kolf/printdialogpage.cpp b/kolf/printdialogpage.cpp
new file mode 100644
index 00000000..1fc6ad37
--- /dev/null
+++ b/kolf/printdialogpage.cpp
@@ -0,0 +1,35 @@
+#include <qcheckbox.h>
+#include <qlayout.h>
+#include <qwidget.h>
+
+#include <klocale.h>
+#include <kdialog.h>
+#include <kdebug.h>
+
+#include "printdialogpage.h"
+
+PrintDialogPage::PrintDialogPage(QWidget *parent, const char *name)
+ : KPrintDialogPage( parent, name )
+{
+ setTitle(i18n("Kolf Options"));
+
+ QVBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+
+ titleCheck = new QCheckBox(i18n("Draw title text"), this);
+ titleCheck->setChecked(true);
+ layout->addWidget(titleCheck);
+}
+
+void PrintDialogPage::getOptions(QMap<QString, QString> &opts, bool /*incldef*/)
+{
+ opts["kde-kolf-title"] = titleCheck->isChecked()? "true" : "false";
+}
+
+void PrintDialogPage::setOptions(const QMap<QString, QString> &opts)
+{
+ QString setting = opts["kde-kolf-title"];
+ if (!!setting)
+ titleCheck->setChecked(setting == "true");
+}
+
+#include "printdialogpage.moc"