diff options
Diffstat (limited to 'kdbg/prefdebugger.h')
-rw-r--r-- | kdbg/prefdebugger.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/kdbg/prefdebugger.h b/kdbg/prefdebugger.h new file mode 100644 index 0000000..594bfa2 --- /dev/null +++ b/kdbg/prefdebugger.h @@ -0,0 +1,43 @@ +/* + * 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 PREFDEBUGGER_H +#define PREFDEBUGGER_H + +#include <qlayout.h> +#include <qlineedit.h> +#include <qlabel.h> + +class PrefDebugger : public QWidget +{ +public: + PrefDebugger(QWidget* parent); + + QGridLayout m_grid; + + // --- the hint about defaults +protected: + QLabel m_defaultHint; + + // --- the debugger command +protected: + QLabel m_debuggerCCppLabel; + QLineEdit m_debuggerCCpp; +public: + QString debuggerCmd() const { return m_debuggerCCpp.text(); } + void setDebuggerCmd(const QString& cmd) { m_debuggerCCpp.setText(cmd); } + + // --- the output terminal +protected: + QLabel m_terminalHint; + QLabel m_terminalLabel; + QLineEdit m_terminal; +public: + QString terminal() const { return m_terminal.text(); } + void setTerminal(const QString& t) { m_terminal.setText(t); } +}; + +#endif // PREFDEBUGGER_H |