summaryrefslogtreecommitdiffstats
path: root/kdbg/prefmisc.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-07-03 01:47:30 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-03 01:47:30 +0200
commit239e873a38fa91a3fbd27e134bda015922abbabd (patch)
treed7c79f740bce93768ee78b6b787c83a2115b047f /kdbg/prefmisc.h
downloadkdbg-239e873a38fa91a3fbd27e134bda015922abbabd.tar.gz
kdbg-239e873a38fa91a3fbd27e134bda015922abbabd.zip
Initial import
Diffstat (limited to 'kdbg/prefmisc.h')
-rw-r--r--kdbg/prefmisc.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/kdbg/prefmisc.h b/kdbg/prefmisc.h
new file mode 100644
index 0000000..45701db
--- /dev/null
+++ b/kdbg/prefmisc.h
@@ -0,0 +1,51 @@
+/*
+ * Copyright Johannes Sixt
+ * This file is licensed under the GNU General Public License Version 2.
+ * See the file COPYING in the toplevel directory of the source directory.
+ */
+
+#ifndef PREFMISC_H
+#define PREFMISC_H
+
+#include <qlayout.h>
+#include <qcheckbox.h>
+#include <qlabel.h>
+#include <qlineedit.h>
+
+class PrefMisc : public QWidget
+{
+public:
+ PrefMisc(QWidget* parent);
+
+ QGridLayout m_grid;
+
+protected:
+ QCheckBox m_popForeground;
+
+ QLabel m_backTimeoutLabel;
+ QLineEdit m_backTimeout;
+
+ QLabel m_tabWidthLabel;
+ QLineEdit m_tabWidth;
+
+ QLabel m_sourceFilterLabel;
+ QLineEdit m_sourceFilter;
+ QLabel m_headerFilterLabel;
+ QLineEdit m_headerFilter;
+
+ void setupEditGroup(const QString& label, QLabel& labWidget, QLineEdit& edit, int row);
+
+public:
+ bool popIntoForeground() const { return m_popForeground.isChecked(); }
+ void setPopIntoForeground(bool pop) { m_popForeground.setChecked(pop); }
+ int backTimeout() const;
+ void setBackTimeout(int to);
+ int tabWidth() const;
+ void setTabWidth(int tw);
+ QString sourceFilter() const { return m_sourceFilter.text(); }
+ void setSourceFilter(const QString& f) { m_sourceFilter.setText(f); }
+ QString headerFilter() const { return m_headerFilter.text(); }
+ void setHeaderFilter(const QString& f) { m_headerFilter.setText(f); }
+};
+
+#endif // PREFMISC_H