summaryrefslogtreecommitdiffstats
path: root/kdbg/prefmisc.h
blob: 3e5f57ad1811f761e83815aade2956039e62f132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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 <ntqlayout.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>

class PrefMisc : public TQWidget
{
public:
    PrefMisc(TQWidget* parent);

    TQGridLayout m_grid;

protected:
    TQCheckBox m_popForeground;

    TQLabel m_backTimeoutLabel;
    TQLineEdit m_backTimeout;

    TQLabel m_tabWidthLabel;
    TQLineEdit m_tabWidth;

    TQLabel m_sourceFilterLabel;
    TQLineEdit m_sourceFilter;
    TQLabel m_headerFilterLabel;
    TQLineEdit m_headerFilter;

    void setupEditGroup(const TQString& label, TQLabel& labWidget, TQLineEdit& 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);
    TQString sourceFilter() const { return m_sourceFilter.text(); }
    void setSourceFilter(const TQString& f) { m_sourceFilter.setText(f); }
    TQString headerFilter() const { return m_headerFilter.text(); }
    void setHeaderFilter(const TQString& f) { m_headerFilter.setText(f); }
};

#endif // PREFMISC_H