Extend copyright to 2018.
[kdbg.git] / kdbg / prefdebugger.h
blob01a89ec863e9c4f9f1f2cb80d2e030fc2bc17089
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 PREFDEBUGGER_H
8 #define PREFDEBUGGER_H
10 #include <QLineEdit>
11 #include <QLabel>
12 #include <QGridLayout>
14 class PrefDebugger : public QWidget
16 public:
17 PrefDebugger(QWidget* parent);
19 QGridLayout m_grid;
21 // --- the hint about defaults
22 protected:
23 QLabel m_defaultHint;
25 // --- the debugger command
26 protected:
27 QLabel m_debuggerCCppLabel;
28 QLineEdit m_debuggerCCpp;
29 public:
30 QString debuggerCmd() const { return m_debuggerCCpp.text(); }
31 void setDebuggerCmd(const QString& cmd) { m_debuggerCCpp.setText(cmd); }
33 // --- the output terminal
34 protected:
35 QLabel m_terminalHint;
36 QLabel m_terminalLabel;
37 QLineEdit m_terminal;
38 public:
39 QString terminal() const { return m_terminal.text(); }
40 void setTerminal(const QString& t) { m_terminal.setText(t); }
43 #endif // PREFDEBUGGER_H