debugger/analyzer: inline the small start dialogs

Easier to refactor.

Change-Id: I151364182df841e7e543f480b1836a1b1897e913
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
hjk
2012-06-28 13:30:09 +02:00
parent 344e11c81e
commit bb0329a319
14 changed files with 707 additions and 1270 deletions

View File

@@ -39,8 +39,5 @@ HEADERS += \
startremotedialog.h \
analyzerruncontrolfactory.h
FORMS += \
startremotedialog.ui
RESOURCES += \
analyzerbase.qrc

View File

@@ -44,7 +44,6 @@ QtcPlugin {
"ianalyzertool.cpp",
"startremotedialog.cpp",
"startremotedialog.h",
"startremotedialog.ui",
"analyzermanager.cpp",
"analyzermanager.h",
"analyzerruncontrol.cpp",

View File

@@ -32,53 +32,143 @@
#include "startremotedialog.h"
#include "ui_startremotedialog.h"
#include <coreplugin/icore.h>
#include <ssh/sshconnection.h>
#include <utils/pathchooser.h>
#include <QDialogButtonBox>
#include <QFormLayout>
#include <QGroupBox>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QSpinBox>
namespace Analyzer {
namespace Internal {
class StartRemoteDialogPrivate
{
public:
QLabel *hostLabel;
QLineEdit *host;
QLabel *userLabel;
QLineEdit *user;
QLabel *portLabel;
QSpinBox *port;
QLabel *passwordLabel;
QLineEdit *password;
QLabel *keyFileLabel;
Utils::PathChooser *keyFile;
QFormLayout *formLayout;
QLabel *executableLabel;
QLineEdit *executable;
QLabel *argumentsLabel;
QLineEdit *arguments;
QLabel *workingDirectoryLabel;
QLineEdit *workingDirectory;
QDialogButtonBox *buttonBox;
};
} // namespace Internal
StartRemoteDialog::StartRemoteDialog(QWidget *parent)
: QDialog(parent)
, m_ui(new Internal::Ui::StartRemoteDialog)
, d(new Internal::StartRemoteDialogPrivate)
{
m_ui->setupUi(this);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setWindowTitle(tr("Start Remote Analysis"));
m_ui->keyFile->setExpectedKind(Utils::PathChooser::File);
QGroupBox *groupBox = new QGroupBox(tr("Remote"), this);
d->host = new QLineEdit(groupBox);
d->hostLabel = new QLabel(tr("Host:"), groupBox);
d->user = new QLineEdit(groupBox);
d->userLabel = new QLabel(tr("User:"), groupBox);
d->port = new QSpinBox(groupBox);
d->port->setMaximum(65535);
d->port->setSingleStep(1);
d->port->setValue(22);
d->portLabel = new QLabel(tr("Port:"), groupBox);
d->passwordLabel = new QLabel(tr("Password:"), groupBox);
d->passwordLabel->setToolTip(tr("You need to pass either a password or an SSH key."));
d->password = new QLineEdit(groupBox);
d->password->setEchoMode(QLineEdit::Password);
d->keyFileLabel = new QLabel(tr("Private key:"), groupBox);
d->keyFileLabel->setToolTip(tr("You need to pass either a password or an SSH key."));
d->keyFile = new Utils::PathChooser(groupBox);
QGroupBox *groupBox2 = new QGroupBox(tr("Target"), this);
d->executable = new QLineEdit(groupBox2);
d->executableLabel = new QLabel(tr("Executable:"), groupBox2);
d->arguments = new QLineEdit(groupBox2);
d->argumentsLabel = new QLabel(tr("Arguments:"), groupBox2);
d->workingDirectory = new QLineEdit(groupBox2);
d->workingDirectoryLabel = new QLabel(tr("Working directory:"), groupBox2);
d->buttonBox = new QDialogButtonBox(this);
d->buttonBox->setOrientation(Qt::Horizontal);
d->buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
QFormLayout *formLayout = new QFormLayout(groupBox);
formLayout->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
formLayout->addRow(d->hostLabel, d->host);
formLayout->addRow(d->userLabel, d->user);
formLayout->addRow(d->portLabel, d->port);
formLayout->addRow(d->passwordLabel, d->password);
formLayout->addRow(d->keyFileLabel, d->keyFile);
QFormLayout *formLayout2 = new QFormLayout(groupBox2);
formLayout2->addRow(d->executableLabel, d->executable);
formLayout2->addRow(d->argumentsLabel, d->arguments);
formLayout2->addRow(d->workingDirectoryLabel, d->workingDirectory);
QVBoxLayout *verticalLayout = new QVBoxLayout(this);
verticalLayout->addWidget(groupBox);
verticalLayout->addWidget(groupBox2);
verticalLayout->addWidget(d->buttonBox);
d->keyFile->setExpectedKind(Utils::PathChooser::File);
QSettings *settings = Core::ICore::settings();
settings->beginGroup(QLatin1String("AnalyzerStartRemoteDialog"));
m_ui->host->setText(settings->value(QLatin1String("host")).toString());
m_ui->port->setValue(settings->value(QLatin1String("port"), 22).toInt());
m_ui->user->setText(settings->value(QLatin1String("user"), qgetenv("USER")).toString());
m_ui->keyFile->setPath(settings->value(QLatin1String("keyFile")).toString());
m_ui->executable->setText(settings->value(QLatin1String("executable")).toString());
m_ui->workingDirectory->setText(settings->value(QLatin1String("workingDirectory")).toString());
m_ui->arguments->setText(settings->value(QLatin1String("arguments")).toString());
d->host->setText(settings->value(QLatin1String("host")).toString());
d->port->setValue(settings->value(QLatin1String("port"), 22).toInt());
d->user->setText(settings->value(QLatin1String("user"), qgetenv("USER")).toString());
d->keyFile->setPath(settings->value(QLatin1String("keyFile")).toString());
d->executable->setText(settings->value(QLatin1String("executable")).toString());
d->workingDirectory->setText(settings->value(QLatin1String("workingDirectory")).toString());
d->arguments->setText(settings->value(QLatin1String("arguments")).toString());
settings->endGroup();
connect(m_ui->host, SIGNAL(textChanged(QString)),
connect(d->host, SIGNAL(textChanged(QString)),
this, SLOT(validate()));
connect(m_ui->port, SIGNAL(valueChanged(int)),
connect(d->port, SIGNAL(valueChanged(int)),
this, SLOT(validate()));
connect(m_ui->password, SIGNAL(textChanged(QString)),
connect(d->password, SIGNAL(textChanged(QString)),
this, SLOT(validate()));
connect(m_ui->keyFile, SIGNAL(changed(QString)),
connect(d->keyFile, SIGNAL(changed(QString)),
this, SLOT(validate()));
connect(m_ui->executable, SIGNAL(textChanged(QString)),
connect(d->executable, SIGNAL(textChanged(QString)),
this, SLOT(validate()));
connect(m_ui->workingDirectory, SIGNAL(textChanged(QString)),
connect(d->workingDirectory, SIGNAL(textChanged(QString)),
this, SLOT(validate()));
connect(m_ui->arguments, SIGNAL(textChanged(QString)),
connect(d->arguments, SIGNAL(textChanged(QString)),
this, SLOT(validate()));
connect(m_ui->buttonBox, SIGNAL(accepted()),
connect(d->buttonBox, SIGNAL(accepted()),
this, SLOT(accept()));
connect(m_ui->buttonBox, SIGNAL(rejected()),
connect(d->buttonBox, SIGNAL(rejected()),
this, SLOT(reject()));
validate();
@@ -86,20 +176,20 @@ StartRemoteDialog::StartRemoteDialog(QWidget *parent)
StartRemoteDialog::~StartRemoteDialog()
{
delete m_ui;
delete d;
}
void StartRemoteDialog::accept()
{
QSettings *settings = Core::ICore::settings();
settings->beginGroup(QLatin1String("AnalyzerStartRemoteDialog"));
settings->setValue(QLatin1String("host"), m_ui->host->text());
settings->setValue(QLatin1String("port"), m_ui->port->value());
settings->setValue(QLatin1String("user"), m_ui->user->text());
settings->setValue(QLatin1String("keyFile"), m_ui->keyFile->path());
settings->setValue(QLatin1String("executable"), m_ui->executable->text());
settings->setValue(QLatin1String("workingDirectory"), m_ui->workingDirectory->text());
settings->setValue(QLatin1String("arguments"), m_ui->arguments->text());
settings->setValue(QLatin1String("host"), d->host->text());
settings->setValue(QLatin1String("port"), d->port->value());
settings->setValue(QLatin1String("user"), d->user->text());
settings->setValue(QLatin1String("keyFile"), d->keyFile->path());
settings->setValue(QLatin1String("executable"), d->executable->text());
settings->setValue(QLatin1String("workingDirectory"), d->workingDirectory->text());
settings->setValue(QLatin1String("arguments"), d->arguments->text());
settings->endGroup();
QDialog::accept();
@@ -107,42 +197,42 @@ void StartRemoteDialog::accept()
void StartRemoteDialog::validate()
{
bool valid = !m_ui->host->text().isEmpty() && !m_ui->user->text().isEmpty()
&& !m_ui->executable->text().isEmpty();
valid = valid && (!m_ui->password->text().isEmpty() || m_ui->keyFile->isValid());
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(valid);
bool valid = !d->host->text().isEmpty() && !d->user->text().isEmpty()
&& !d->executable->text().isEmpty();
valid = valid && (!d->password->text().isEmpty() || d->keyFile->isValid());
d->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(valid);
}
QSsh::SshConnectionParameters StartRemoteDialog::sshParams() const
{
QSsh::SshConnectionParameters params;
params.host = m_ui->host->text();
params.userName = m_ui->user->text();
if (m_ui->keyFile->isValid()) {
params.host = d->host->text();
params.userName = d->user->text();
if (d->keyFile->isValid()) {
params.authenticationType = QSsh::SshConnectionParameters::AuthenticationByKey;
params.privateKeyFile = m_ui->keyFile->path();
params.privateKeyFile = d->keyFile->path();
} else {
params.authenticationType = QSsh::SshConnectionParameters::AuthenticationByPassword;
params.password = m_ui->password->text();
params.password = d->password->text();
}
params.port = m_ui->port->value();
params.port = d->port->value();
params.timeout = 10;
return params;
}
QString StartRemoteDialog::executable() const
{
return m_ui->executable->text();
return d->executable->text();
}
QString StartRemoteDialog::arguments() const
{
return m_ui->arguments->text();
return d->arguments->text();
}
QString StartRemoteDialog::workingDirectory() const
{
return m_ui->workingDirectory->text();
return d->workingDirectory->text();
}
} // namespace Analyzer

View File

@@ -41,8 +41,7 @@ namespace QSsh { class SshConnectionParameters; }
namespace Analyzer {
namespace Internal { namespace Ui { class StartRemoteDialog; } }
namespace Internal { class StartRemoteDialogPrivate; }
class ANALYZER_EXPORT StartRemoteDialog : public QDialog
{
@@ -50,7 +49,7 @@ class ANALYZER_EXPORT StartRemoteDialog : public QDialog
public:
explicit StartRemoteDialog(QWidget *parent = 0);
virtual ~StartRemoteDialog();
~StartRemoteDialog();
QSsh::SshConnectionParameters sshParams() const;
QString executable() const;
@@ -62,7 +61,7 @@ private slots:
virtual void accept();
private:
Internal::Ui::StartRemoteDialog *m_ui;
Internal::StartRemoteDialogPrivate *d;
};
} // namespace Analyzer

View File

@@ -1,176 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Analyzer::Internal::StartRemoteDialog</class>
<widget class="QDialog" name="Analyzer::Internal::StartRemoteDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>446</width>
<height>363</height>
</rect>
</property>
<property name="windowTitle">
<string>Start Remote Analysis</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Remote</string>
</property>
<layout class="QFormLayout" name="formLayout_2">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Host:</string>
</property>
<property name="buddy">
<cstring>host</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="host"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>User:</string>
</property>
<property name="buddy">
<cstring>user</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="user"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Port:</string>
</property>
<property name="buddy">
<cstring>port</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="port">
<property name="maximum">
<number>65535</number>
</property>
<property name="singleStep">
<number>1</number>
</property>
<property name="value">
<number>22</number>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_4">
<property name="toolTip">
<string>You need to pass either a password or an SSH key.</string>
</property>
<property name="text">
<string>Password:</string>
</property>
<property name="buddy">
<cstring>password</cstring>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="password">
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_8">
<property name="toolTip">
<string>You need to pass either a password or an SSH key.</string>
</property>
<property name="text">
<string>Private key:</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="Utils::PathChooser" name="keyFile" native="true"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Target</string>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Executable:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="executable"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Arguments:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="arguments"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Working directory:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="workingDirectory"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>Utils::PathChooser</class>
<extends>QWidget</extends>
<header location="global">utils/pathchooser.h</header>
<container>1</container>
<slots>
<signal>editingFinished()</signal>
<signal>browsingFinished()</signal>
</slots>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@@ -1,139 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Debugger::Internal::AttachCoreDialog</class>
<widget class="QDialog" name="Debugger::Internal::AttachCoreDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>246</width>
<height>183</height>
</rect>
</property>
<property name="windowTitle">
<string>Start Debugger</string>
</property>
<layout class="QVBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>9</number>
</property>
<item>
<layout class="QFormLayout" name="formLayout">
<property name="horizontalSpacing">
<number>6</number>
</property>
<property name="verticalSpacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="execLabel">
<property name="text">
<string>&amp;Executable:</string>
</property>
<property name="buddy">
<cstring>execFileName</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="Utils::PathChooser" name="execFileName" native="true"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="coreLabel">
<property name="text">
<string>&amp;Core file:</string>
</property>
<property name="buddy">
<cstring>coreFileName</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="Utils::PathChooser" name="coreFileName" native="true"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="toolchainLabel">
<property name="text">
<string>&amp;Target:</string>
</property>
<property name="buddy">
<cstring>toolchainComboBox</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="Debugger::ProfileChooser" name="toolchainComboBox"/>
</item>
<item row="3" column="1">
<widget class="Utils::PathChooser" name="overrideStartScriptFileName" native="true"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="overrideStartScriptLabel">
<property name="text">
<string>Override &amp;start script:</string>
</property>
<property name="buddy">
<cstring>overrideStartScriptFileName</cstring>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>Utils::PathChooser</class>
<extends>QWidget</extends>
<header location="global">utils/pathchooser.h</header>
<container>1</container>
<slots>
<signal>editingFinished()</signal>
<signal>browsingFinished()</signal>
</slots>
</customwidget>
<customwidget>
<class>Debugger::ProfileChooser</class>
<extends>QComboBox</extends>
<header>debuggertoolchaincombobox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@@ -1,104 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Debugger::Internal::AttachExternalDialog</class>
<widget class="QDialog" name="Debugger::Internal::AttachExternalDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>650</width>
<height>549</height>
</rect>
</property>
<property name="windowTitle">
<string>Start Debugger</string>
</property>
<layout class="QVBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>9</number>
</property>
<item>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="QLabel" name="pidLabel">
<property name="text">
<string>Attach to &amp;process ID:</string>
</property>
<property name="buddy">
<cstring>pidLineEdit</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="pidLineEdit"/>
</item>
<item row="2" column="0" colspan="2">
<widget class="Utils::FilterLineEdit" name="filterWidget"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="toolchainLabel">
<property name="text">
<string>&amp;Target:</string>
</property>
<property name="buddy">
<cstring>toolchainComboBox</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="Debugger::ProfileChooser" name="toolchainComboBox"/>
</item>
</layout>
</item>
<item>
<widget class="QTreeView" name="procView">
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>Utils::FancyLineEdit</class>
<extends>QLineEdit</extends>
<header location="global">utils/fancylineedit.h</header>
</customwidget>
<customwidget>
<class>Utils::FilterLineEdit</class>
<extends>Utils::FancyLineEdit</extends>
<header location="global">utils/filterlineedit.h</header>
</customwidget>
<customwidget>
<class>Debugger::ProfileChooser</class>
<extends>QComboBox</extends>
<header>debuggertoolchaincombobox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@@ -135,15 +135,11 @@ SOURCES += \
qtmessagelogeditor.cpp \
localsandexpressionswindow.cpp
FORMS += attachexternaldialog.ui \
attachcoredialog.ui \
FORMS += \
breakcondition.ui \
breakpoint.ui \
localsandexpressionsoptionspage.ui \
commonoptionspage.ui \
startexternaldialog.ui \
startremotedialog.ui \
startremoteenginedialog.ui
commonoptionspage.ui
RESOURCES += debugger.qrc

View File

@@ -40,8 +40,6 @@ QtcPlugin {
"debuggerprofileconfigwidget.h",
"debuggerprofileinformation.cpp",
"debuggerprofileinformation.h",
"attachcoredialog.ui",
"attachexternaldialog.ui",
"basewindow.cpp",
"breakhandler.cpp",
"breakhandler.h",
@@ -132,9 +130,6 @@ QtcPlugin {
"stackhandler.h",
"stackwindow.cpp",
"stackwindow.h",
"startexternaldialog.ui",
"startremotedialog.ui",
"startremoteenginedialog.ui",
"threaddata.h",
"threadshandler.cpp",
"threadshandler.h",

File diff suppressed because it is too large Load Diff

View File

@@ -53,18 +53,15 @@ class DebuggerStartParameters;
namespace Internal {
namespace Ui {
class AttachCoreDialog;
class AttachExternalDialog;
class StartExternalDialog;
class StartRemoteDialog;
class StartRemoteEngineDialog;
} // namespace Ui
class ProcessListFilterModel;
class StartExternalParameters;
class StartRemoteParameters;
class AttachCoreDialogPrivate;
class AttachExternalDialogPrivate;
class AttachToQmlPortDialogPrivate;
class ProcessListFilterModel;
class StartExternalDialogPrivate;
class StartExternalParameters;
class StartRemoteDialogPrivate;
class StartRemoteEngineDialogPrivate;
class StartRemoteParameters;
class AttachCoreDialog : public QDialog
{
@@ -93,7 +90,7 @@ private slots:
private:
bool isValid() const;
Ui::AttachCoreDialog *m_ui;
AttachCoreDialogPrivate *d;
};
class AttachExternalDialog : public QDialog
@@ -124,9 +121,7 @@ private:
inline QPushButton *okButton() const;
inline QString attachPIDText() const;
const QString m_selfPid;
Ui::AttachExternalDialog *m_ui;
ProcessListFilterModel *m_model;
AttachExternalDialogPrivate *d;
};
class StartExternalDialog : public QDialog
@@ -146,7 +141,7 @@ private slots:
private:
StartExternalParameters parameters() const;
void setParameters(const StartExternalParameters &p);
void setHistory(const QList<StartExternalParameters> l);
void setHistory(const QList<StartExternalParameters> &l);
QString executableFile() const;
void setExecutableFile(const QString &executable);
@@ -154,7 +149,7 @@ private:
Core::Id profileId() const;
bool isValid() const;
Ui::StartExternalDialog *m_ui;
StartExternalDialogPrivate *d;
};
class StartRemoteDialog : public QDialog
@@ -181,7 +176,7 @@ private:
Core::Id profileId() const;
Ui::StartRemoteDialog *m_ui;
StartRemoteDialogPrivate *d;
};
class AttachToQmlPortDialog : public QDialog
@@ -266,7 +261,7 @@ public:
QString inferiorPath() const;
private:
Ui::StartRemoteEngineDialog *m_ui;
StartRemoteEngineDialogPrivate *d;
};
class TypeFormatsDialogUi;

View File

@@ -1,183 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Debugger::Internal::StartExternalDialog</class>
<widget class="QDialog" name="Debugger::Internal::StartExternalDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>272</width>
<height>251</height>
</rect>
</property>
<property name="windowTitle">
<string>Start Debugger</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QFormLayout" name="formLayout">
<property name="horizontalSpacing">
<number>6</number>
</property>
<property name="verticalSpacing">
<number>6</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="execLabel">
<property name="text">
<string>&amp;Executable:</string>
</property>
<property name="buddy">
<cstring>execFile</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="Utils::PathChooser" name="execFile" native="true"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="argsLabel">
<property name="text">
<string>&amp;Arguments:</string>
</property>
<property name="buddy">
<cstring>argsEdit</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="argsEdit"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="labelRunInTerminal">
<property name="text">
<string>Run in &amp;terminal:</string>
</property>
<property name="buddy">
<cstring>checkBoxRunInTerminal</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="checkBoxRunInTerminal"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="workingDirectoryLabel">
<property name="text">
<string>&amp;Working directory:</string>
</property>
<property name="buddy">
<cstring>workingDirectory</cstring>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="Utils::PathChooser" name="workingDirectory" native="true"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="toolChainLabel">
<property name="text">
<string>&amp;Target:</string>
</property>
<property name="buddy">
<cstring>toolChainComboBox</cstring>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="Debugger::ProfileChooser" name="toolChainComboBox"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="labelBreakAtMain">
<property name="text">
<string>Break at '&amp;main':</string>
</property>
<property name="buddy">
<cstring>checkBoxBreakAtMain</cstring>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QCheckBox" name="checkBoxBreakAtMain">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="historyLabel">
<property name="text">
<string>&amp;Recent:</string>
</property>
<property name="buddy">
<cstring>historyComboBox</cstring>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QComboBox" name="historyComboBox"/>
</item>
<item row="6" column="0" colspan="2">
<widget class="Line" name="historyLine">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>Utils::PathChooser</class>
<extends>QWidget</extends>
<header location="global">utils/pathchooser.h</header>
<container>1</container>
<slots>
<signal>editingFinished()</signal>
<signal>browsingFinished()</signal>
</slots>
</customwidget>
<customwidget>
<class>Debugger::ProfileChooser</class>
<extends>QComboBox</extends>
<header>debuggertoolchaincombobox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@@ -1,220 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Debugger::Internal::StartRemoteDialog</class>
<widget class="QDialog" name="Debugger::Internal::StartRemoteDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>550</width>
<height>350</height>
</rect>
</property>
<property name="windowTitle">
<string>Start Debugger</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="QLabel" name="debuggerLabel">
<property name="text">
<string>Tool &amp;chain:</string>
</property>
<property name="buddy">
<cstring>toolchainComboBox</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="Debugger::ProfileChooser" name="toolchainComboBox"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="executableLabel">
<property name="text">
<string>Local &amp;executable:</string>
</property>
<property name="buddy">
<cstring>executablePathChooser</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="Utils::PathChooser" name="executablePathChooser" native="true"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="channelLabel">
<property name="text">
<string>&amp;Host and port:</string>
</property>
<property name="buddy">
<cstring>channelLineEdit</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="channelLineEdit">
<property name="text">
<string notr="true">localhost:5115</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="architectureLabel">
<property name="text">
<string>&amp;Architecture:</string>
</property>
<property name="buddy">
<cstring>architectureComboBox</cstring>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="architectureComboBox">
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="sysrootLabel">
<property name="text">
<string>Sys&amp;root:</string>
</property>
<property name="buddy">
<cstring>sysrootPathChooser</cstring>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="Utils::PathChooser" name="sysrootPathChooser" native="true"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="debuginfoLabel">
<property name="text">
<string>Location of debugging &amp;information:</string>
</property>
<property name="buddy">
<cstring>debuginfoPathChooser</cstring>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="Utils::PathChooser" name="debuginfoPathChooser" native="true"/>
</item>
<item row="6" column="0">
<widget class="QLabel" name="overrideStartScriptLabel">
<property name="text">
<string>Override host GDB s&amp;tart script:</string>
</property>
<property name="buddy">
<cstring>overrideStartScriptPathChooser</cstring>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="Utils::PathChooser" name="overrideStartScriptPathChooser" native="true"/>
</item>
<item row="7" column="0">
<widget class="QLabel" name="useServerStartScriptLabel">
<property name="text">
<string>&amp;Use server start script:</string>
</property>
<property name="buddy">
<cstring>useServerStartScriptCheckBox</cstring>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QCheckBox" name="useServerStartScriptCheckBox"/>
</item>
<item row="8" column="0">
<widget class="QLabel" name="serverStartScriptLabel">
<property name="text">
<string>&amp;Server start script:</string>
</property>
<property name="buddy">
<cstring>serverStartScriptPathChooser</cstring>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="Utils::PathChooser" name="serverStartScriptPathChooser" native="true"/>
</item>
<item row="9" column="0" colspan="2">
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="historyLabel">
<property name="text">
<string>&amp;Recent:</string>
</property>
<property name="buddy">
<cstring>historyComboBox</cstring>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QComboBox" name="historyComboBox"/>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>Utils::PathChooser</class>
<extends>QWidget</extends>
<header location="global">utils/pathchooser.h</header>
<container>1</container>
<slots>
<signal>editingFinished()</signal>
<signal>browsingFinished()</signal>
</slots>
</customwidget>
<customwidget>
<class>Debugger::ProfileChooser</class>
<extends>QComboBox</extends>
<header>debuggertoolchaincombobox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@@ -1,129 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Debugger::Internal::StartRemoteEngineDialog</class>
<widget class="QDialog" name="Debugger::Internal::StartRemoteEngineDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>233</width>
<height>214</height>
</rect>
</property>
<property name="windowTitle">
<string>Start Remote Engine</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="channelLabel">
<property name="text">
<string>&amp;Host:</string>
</property>
<property name="buddy">
<cstring>host</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="host">
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="userLabel">
<property name="text">
<string>&amp;Username:</string>
</property>
<property name="buddy">
<cstring>username</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="username"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="passwordLabel">
<property name="text">
<string>&amp;Password:</string>
</property>
<property name="buddy">
<cstring>password</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="password">
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="engineLabel">
<property name="text">
<string>&amp;Engine path:</string>
</property>
<property name="buddy">
<cstring>enginepath</cstring>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="enginepath"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="inferiorLabel">
<property name="text">
<string>&amp;Inferior path:</string>
</property>
<property name="buddy">
<cstring>inferiorpath</cstring>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLineEdit" name="inferiorpath"/>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>host</tabstop>
<tabstop>username</tabstop>
<tabstop>password</tabstop>
<tabstop>enginepath</tabstop>
<tabstop>inferiorpath</tabstop>
<tabstop>buttonBox</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>