Convert KActions to QActions.
[kdbg.git] / kdbg / prefmisc.h
blobb7b894671470d31a5eb1f4dafbccef83e4f1573d
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>
14 #include <Q3GridLayout>
16 class PrefMisc : public QWidget
18 public:
19 PrefMisc(QWidget* parent);
21 Q3GridLayout m_grid;
23 protected:
24 QCheckBox m_popForeground;
26 QLabel m_backTimeoutLabel;
27 QLineEdit m_backTimeout;
29 QLabel m_tabWidthLabel;
30 QLineEdit m_tabWidth;
32 QLabel m_sourceFilterLabel;
33 QLineEdit m_sourceFilter;
34 QLabel m_headerFilterLabel;
35 QLineEdit m_headerFilter;
37 void setupEditGroup(const QString& label, QLabel& labWidget, QLineEdit& edit, int row);
39 public:
40 bool popIntoForeground() const { return m_popForeground.isChecked(); }
41 void setPopIntoForeground(bool pop) { m_popForeground.setChecked(pop); }
42 int backTimeout() const;
43 void setBackTimeout(int to);
44 int tabWidth() const;
45 void setTabWidth(int tw);
46 QString sourceFilter() const { return m_sourceFilter.text(); }
47 void setSourceFilter(const QString& f) { m_sourceFilter.setText(f); }
48 QString headerFilter() const { return m_headerFilter.text(); }
49 void setHeaderFilter(const QString& f) { m_headerFilter.setText(f); }
52 #endif // PREFMISC_H