summaryrefslogtreecommitdiffstats
path: root/kdbg/pgmsettings.h
blob: 581455d439431b67b45d65465904c69457dfff15 (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
52
53
/*
 * 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 PGMSETTINGS_H
#define PGMSETTINGS_H

#include <tqtabdialog.h>

class TQButtonGroup;
class TQLineEdit;


class ChooseDriver : public TQWidget
{
public:
    ChooseDriver(TQWidget* parent);
    void setDebuggerCmd(const TQString& cmd);
    TQString debuggerCmd() const;
protected:
    TQLineEdit* m_debuggerCmd;
};


class OutputSettings : public TQWidget
{
    Q_OBJECT
public:
    OutputSettings(TQWidget* parent);
    void setTTYLevel(int l);
    int ttyLevel() const { return m_ttyLevel; }
protected:
    int m_ttyLevel;
    TQButtonGroup* m_group;
protected slots:
    void slotLevelChanged(int);
};


class ProgramSettings : public TQTabDialog
{
    Q_OBJECT
public:
    ProgramSettings(TQWidget* parent, TQString exeName, bool modal = true);

public:
    ChooseDriver m_chooseDriver;
    OutputSettings m_output;
};

#endif