mirror of
https://github.com/epasveer/seer.git
synced 2026-08-31 01:20:45 +08:00
Finished gdb options dialog.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
#include "SeerGdbConfigPage.h"
|
||||
#include <QtWidgets/QWidget>
|
||||
#include <QtWidgets/QFileDialog>
|
||||
|
||||
SeerGdbConfigPage::SeerGdbConfigPage(QWidget* parent) : QWidget(parent) {
|
||||
|
||||
@@ -10,8 +10,48 @@ SeerGdbConfigPage::SeerGdbConfigPage(QWidget* parent) : QWidget(parent) {
|
||||
// Setup the widgets
|
||||
|
||||
// Connect things.
|
||||
QObject::connect(gdbProgramToolButton, &QToolButton::clicked, this, &SeerGdbConfigPage::handleGdbProgramToolButton);
|
||||
}
|
||||
|
||||
SeerGdbConfigPage::~SeerGdbConfigPage() {
|
||||
}
|
||||
|
||||
QString SeerGdbConfigPage::gdbProgram () const {
|
||||
|
||||
return gdbProgramLineEdit->text();
|
||||
}
|
||||
|
||||
QString SeerGdbConfigPage::gdbArguments () const {
|
||||
|
||||
return gdbArgumentsLineEdit->text();
|
||||
}
|
||||
|
||||
bool SeerGdbConfigPage::gdbAsyncMode () const {
|
||||
|
||||
return gdbAsyncModeCheckBox->isChecked();
|
||||
}
|
||||
|
||||
void SeerGdbConfigPage::setGdbProgram (const QString& program) {
|
||||
|
||||
gdbProgramLineEdit->setText(program);
|
||||
}
|
||||
|
||||
void SeerGdbConfigPage::setGdbArguments (const QString& arguments) {
|
||||
|
||||
gdbArgumentsLineEdit->setText(arguments);
|
||||
}
|
||||
|
||||
void SeerGdbConfigPage::setGdbAsyncMode (bool flag) {
|
||||
|
||||
gdbAsyncModeCheckBox->setChecked(flag);
|
||||
}
|
||||
|
||||
void SeerGdbConfigPage::handleGdbProgramToolButton () {
|
||||
|
||||
QString program = QFileDialog::getOpenFileName(this, "Select a gdb program to use as the debugger.", gdbProgram());
|
||||
|
||||
if (program != "") {
|
||||
setGdbProgram(program);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user