File: prefmisc.h

package info (click to toggle)
kdbg 1.2.4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,504 kB
  • ctags: 1,945
  • sloc: cpp: 15,961; sh: 8,183; makefile: 481; perl: 71; ansic: 16
file content (50 lines) | stat: -rw-r--r-- 1,335 bytes parent folder | download | duplicates (2)
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
// $Id: prefmisc.h,v 1.3 2000/06/17 11:52:33 jsixt Exp $

// Copyright by Johannes Sixt
// This file is under GPL, the GNU General Public Licence

#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