2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2009-03-02 14:04:03 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2009-03-02 14:04:03 +01:00
|
|
|
|
2015-03-20 16:03:59 +01:00
|
|
|
#include "watchhandler.h"
|
|
|
|
|
|
2012-09-05 10:55:05 +02:00
|
|
|
#include <projectexplorer/kitchooser.h>
|
|
|
|
|
#include <projectexplorer/abi.h>
|
|
|
|
|
|
2012-06-26 15:25:49 +02:00
|
|
|
#include <QDialog>
|
2009-03-02 14:04:03 +01:00
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
2009-03-04 16:48:13 +01:00
|
|
|
class QPushButton;
|
2009-08-19 14:41:51 +02:00
|
|
|
class QLineEdit;
|
|
|
|
|
class QDialogButtonBox;
|
2011-11-24 13:00:01 +01:00
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
2022-07-05 15:37:08 +02:00
|
|
|
namespace Debugger::Internal {
|
2011-11-24 13:00:01 +01:00
|
|
|
|
2012-06-28 13:30:09 +02:00
|
|
|
class AttachToQmlPortDialogPrivate;
|
2015-05-27 13:59:56 +02:00
|
|
|
class DebuggerRunParameters;
|
2012-08-08 13:09:31 +02:00
|
|
|
class StartApplicationParameters;
|
|
|
|
|
class StartApplicationDialogPrivate;
|
2012-06-28 13:30:09 +02:00
|
|
|
class StartRemoteEngineDialogPrivate;
|
2009-03-05 17:30:29 +01:00
|
|
|
|
2012-08-08 13:09:31 +02:00
|
|
|
class StartApplicationDialog : public QDialog
|
2009-05-07 09:35:11 +02:00
|
|
|
{
|
|
|
|
|
public:
|
2012-08-08 13:09:31 +02:00
|
|
|
explicit StartApplicationDialog(QWidget *parent);
|
2018-05-07 15:06:53 +02:00
|
|
|
~StartApplicationDialog() override;
|
2009-03-02 15:14:12 +01:00
|
|
|
|
2017-09-12 12:38:31 +02:00
|
|
|
static void attachToRemoteServer();
|
|
|
|
|
static void startAndDebugApplication();
|
2010-05-12 11:48:00 +02:00
|
|
|
|
2016-04-19 22:49:23 +02:00
|
|
|
private:
|
2012-02-06 15:15:57 +01:00
|
|
|
void historyIndexChanged(int);
|
2012-08-08 13:09:31 +02:00
|
|
|
void updateState();
|
|
|
|
|
StartApplicationParameters parameters() const;
|
|
|
|
|
void setParameters(const StartApplicationParameters &p);
|
|
|
|
|
void setHistory(const QList<StartApplicationParameters> &l);
|
2017-07-17 09:37:34 +02:00
|
|
|
void onChannelOverrideChanged(const QString &channel);
|
2017-09-12 12:38:31 +02:00
|
|
|
static void run(bool);
|
2009-03-02 14:04:03 +01:00
|
|
|
|
2012-08-08 13:09:31 +02:00
|
|
|
StartApplicationDialogPrivate *d;
|
2009-03-02 14:04:03 +01:00
|
|
|
};
|
|
|
|
|
|
2011-09-13 17:26:02 +02:00
|
|
|
class AttachToQmlPortDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit AttachToQmlPortDialog(QWidget *parent);
|
2018-05-07 15:06:53 +02:00
|
|
|
~AttachToQmlPortDialog() override;
|
2011-09-13 17:26:02 +02:00
|
|
|
|
|
|
|
|
int port() const;
|
|
|
|
|
void setPort(const int port);
|
|
|
|
|
|
2012-09-03 18:31:44 +02:00
|
|
|
ProjectExplorer::Kit *kit() const;
|
2020-06-26 13:59:38 +02:00
|
|
|
void setKitId(Utils::Id id);
|
2011-10-11 15:21:00 +02:00
|
|
|
|
2011-09-13 17:26:02 +02:00
|
|
|
private:
|
2012-06-28 10:00:04 +02:00
|
|
|
AttachToQmlPortDialogPrivate *d;
|
2011-09-13 17:26:02 +02:00
|
|
|
};
|
|
|
|
|
|
2010-11-19 16:13:22 +01:00
|
|
|
class StartRemoteCdbDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit StartRemoteCdbDialog(QWidget *parent);
|
2018-05-07 15:06:53 +02:00
|
|
|
~StartRemoteCdbDialog() override;
|
2010-11-19 16:13:22 +01:00
|
|
|
|
|
|
|
|
QString connection() const;
|
|
|
|
|
void setConnection(const QString &);
|
|
|
|
|
|
|
|
|
|
private:
|
2016-04-19 22:49:23 +02:00
|
|
|
void textChanged(const QString &);
|
2018-05-07 15:06:53 +02:00
|
|
|
void accept() override;
|
2012-06-26 15:25:49 +02:00
|
|
|
|
2018-07-23 22:28:49 +02:00
|
|
|
QPushButton *m_okButton = nullptr;
|
2010-11-19 16:13:22 +01:00
|
|
|
QLineEdit *m_lineEdit;
|
|
|
|
|
};
|
|
|
|
|
|
2011-05-30 12:56:26 +02:00
|
|
|
class AddressDialog : public QDialog
|
|
|
|
|
{
|
2009-08-19 14:41:51 +02:00
|
|
|
public:
|
2018-02-01 10:59:24 +01:00
|
|
|
explicit AddressDialog(QWidget *parent = nullptr);
|
2011-05-04 11:58:54 +02:00
|
|
|
|
|
|
|
|
void setAddress(quint64 a);
|
2009-08-19 14:41:51 +02:00
|
|
|
quint64 address() const;
|
|
|
|
|
|
|
|
|
|
private:
|
2016-04-19 22:49:23 +02:00
|
|
|
void textChanged();
|
2018-05-07 15:06:53 +02:00
|
|
|
void accept() override;
|
2012-06-26 15:25:49 +02:00
|
|
|
|
2009-08-19 14:41:51 +02:00
|
|
|
void setOkButtonEnabled(bool v);
|
|
|
|
|
bool isOkButtonEnabled() const;
|
|
|
|
|
|
|
|
|
|
bool isValid() const;
|
|
|
|
|
|
|
|
|
|
QLineEdit *m_lineEdit;
|
|
|
|
|
QDialogButtonBox *m_box;
|
|
|
|
|
};
|
2009-08-12 10:51:25 +02:00
|
|
|
|
2010-12-01 15:41:08 +01:00
|
|
|
class StartRemoteEngineDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit StartRemoteEngineDialog(QWidget *parent);
|
2018-05-07 15:06:53 +02:00
|
|
|
~StartRemoteEngineDialog() override;
|
2010-12-01 15:41:08 +01:00
|
|
|
QString username() const;
|
|
|
|
|
QString host() const;
|
|
|
|
|
QString password() const;
|
|
|
|
|
QString enginePath() const;
|
|
|
|
|
QString inferiorPath() const;
|
|
|
|
|
|
|
|
|
|
private:
|
2012-06-28 13:30:09 +02:00
|
|
|
StartRemoteEngineDialogPrivate *d;
|
2010-12-01 15:41:08 +01:00
|
|
|
};
|
|
|
|
|
|
2011-11-07 20:07:14 +01:00
|
|
|
class TypeFormatsDialogUi;
|
|
|
|
|
|
|
|
|
|
class TypeFormatsDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit TypeFormatsDialog(QWidget *parent);
|
2018-05-07 15:06:53 +02:00
|
|
|
~TypeFormatsDialog() override;
|
2011-11-07 20:07:14 +01:00
|
|
|
|
2015-03-20 16:03:59 +01:00
|
|
|
void addTypeFormats(const QString &type, const DisplayFormats &formats,
|
2011-11-07 20:07:14 +01:00
|
|
|
int currentFormat);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
TypeFormatsDialogUi *m_ui;
|
|
|
|
|
};
|
|
|
|
|
|
2022-07-05 15:37:08 +02:00
|
|
|
} // Debugger::Internal
|