3 // Copyright by Johannes Sixt
4 // This file is under GPL, the GNU General Public Licence
6 #include <klocale.h> /* i18n */
8 #include "prefdebugger.h"
10 PrefDebugger::PrefDebugger(QWidget
* parent
) :
11 QWidget(parent
, "debugger"),
12 m_grid(this, 5, 2, 10),
13 m_defaultHint(this, "default_hint"),
14 m_debuggerCCppLabel(this, "debugger_label"),
15 m_debuggerCCpp(this, "debugger"),
16 m_terminalHint(this, "terminal_hint"),
17 m_terminalLabel(this, "terminal_label"),
18 m_terminal(this, "terminal")
20 m_defaultHint
.setText(i18n("To revert to the default settings, clear the entries."));
21 m_defaultHint
.setMinimumHeight(m_defaultHint
.sizeHint().height());
22 m_grid
.addWidget(&m_defaultHint
, 0, 1);
24 m_debuggerCCppLabel
.setText(i18n("How to invoke &GDB:"));
25 m_debuggerCCppLabel
.setMinimumSize(m_debuggerCCppLabel
.sizeHint());
26 m_debuggerCCppLabel
.setBuddy(&m_debuggerCCpp
);
27 m_debuggerCCpp
.setMinimumSize(m_debuggerCCpp
.sizeHint());
28 m_grid
.addWidget(&m_debuggerCCppLabel
, 1, 0);
29 m_grid
.addWidget(&m_debuggerCCpp
, 1, 1);
31 m_terminalHint
.setText(i18n("%T will be replaced with a title string,\n"
32 "%C will be replaced by a Bourne shell script that\n"
33 "keeps the terminal window open."));
34 m_terminalHint
.setMinimumHeight(m_terminalHint
.sizeHint().height());
35 m_grid
.addWidget(&m_terminalHint
, 2, 1);
37 m_terminalLabel
.setText(i18n("&Terminal for program output:"));
38 m_terminalLabel
.setMinimumSize(m_terminalLabel
.sizeHint());
39 m_terminalLabel
.setBuddy(&m_terminal
);
40 m_terminal
.setMinimumSize(m_terminal
.sizeHint());
41 m_grid
.addWidget(&m_terminalLabel
, 3, 0);
42 m_grid
.addWidget(&m_terminal
, 3, 1);
44 m_grid
.setColStretch(1, 10);
45 // last (empty) row gets all the vertical stretch
46 m_grid
.setRowStretch(4, 10);