More VarObj work.

This commit is contained in:
Ernie Pasveer
2022-08-21 16:54:37 -05:00
parent f575ab921a
commit fa39347f0b
8 changed files with 107 additions and 27 deletions
+25
View File
@@ -2,6 +2,7 @@
#include <QtWidgets/QListWidget>
#include <QtWidgets/QListWidgetItem>
#include <QtWidgets/QStackedWidget>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QMessageBox>
#include <QtCore/QString>
#include <QtCore/QStringList>
@@ -19,6 +20,21 @@ SeerConfigDialog::SeerConfigDialog(QWidget* parent) : QDialog(parent) {
contentsListWidget->setMaximumWidth(128);
contentsListWidget->setSpacing(12);
QPushButton* resetButton = buttonBox->button(QDialogButtonBox::Reset);
if (resetButton) {
resetButton->setToolTip("Reset configuration for the current page to initial settings.");
}
QPushButton* okButton = buttonBox->button(QDialogButtonBox::Ok);
if (okButton) {
okButton->setToolTip("Accept configuration changes to all pages.");
}
QPushButton* cancelButton = buttonBox->button(QDialogButtonBox::Cancel);
if (cancelButton) {
cancelButton->setToolTip("Discard configuration changes to all pages.");
}
// Create pages.
_gdbConfigPage = new SeerGdbConfigPage;
_editorConfigPage = new SeerEditorConfigPage;
@@ -133,6 +149,15 @@ bool SeerConfigDialog::gdbRandomizeStartAddress () const {
return _gdbConfigPage->gdbRandomizeStartAddress();
}
void SeerConfigDialog::setGdbEnablePrettyPrinting (bool flag) {
_gdbConfigPage->setGdbEnablePrettyPrinting(flag);
}
bool SeerConfigDialog::gdbEnablePrettyPrinting () const {
return _gdbConfigPage->gdbEnablePrettyPrinting();
}
void SeerConfigDialog::setDprintfStyle (const QString& style) {