Code cleanup of the treatment of display expressions.
[kdbg.git] / kdbg / prefmisc.h
blob45701dbab07c40da2dfdd8d337ac0633c500de68
1 /*
2 * Copyright Johannes Sixt
3 * This file is licensed under the GNU General Public License Version 2.
4 * See the file COPYING in the toplevel directory of the source directory.
5 */
7 #ifndef PREFMISC_H
8 #define PREFMISC_H
10 #include <qlayout.h>
11 #include <qcheckbox.h>
12 #include <qlabel.h>
13 #include <qlineedit.h>
15 class PrefMisc : public QWidget
17 public:
18 PrefMisc(QWidget* parent);
20 QGridLayout m_grid;
22 protected:
23 QCheckBox m_popForeground;
25 QLabel m_backTimeoutLabel;
26 QLineEdit m_backTimeout;
28 QLabel m_tabWidthLabel;
29 QLineEdit m_tabWidth;
31 QLabel m_sourceFilterLabel;
32 QLineEdit m_sourceFilter;
33 QLabel m_headerFilterLabel;
34 QLineEdit m_headerFilter;
36 void setupEditGroup(const QString& label, QLabel& labWidget, QLineEdit& edit, int row);
38 public:
39 bool popIntoForeground() const { return m_popForeground.isChecked(); }
40 void setPopIntoForeground(bool pop) { m_popForeground.setChecked(pop); }
41 int backTimeout() const;
42 void setBackTimeout(int to);
43 int tabWidth() const;
44 void setTabWidth(int tw);
45 QString sourceFilter() const { return m_sourceFilter.text(); }
46 void setSourceFilter(const QString& f) { m_sourceFilter.setText(f); }
47 QString headerFilter() const { return m_headerFilter.text(); }
48 void setHeaderFilter(const QString& f) { m_headerFilter.setText(f); }
51 #endif // PREFMISC_H