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