2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2012-06-05 10:25:48 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2012-06-05 10:25:48 +02:00
|
|
|
|
2020-06-26 13:59:38 +02:00
|
|
|
#include <utils/id.h>
|
2020-06-17 09:14:47 +02:00
|
|
|
|
2012-06-05 10:25:48 +02:00
|
|
|
#include <QDialog>
|
|
|
|
|
|
2012-09-03 18:31:44 +02:00
|
|
|
namespace ProjectExplorer { class Kit; }
|
2019-06-20 17:19:12 +02:00
|
|
|
namespace Utils { class FilePath; }
|
2012-06-28 10:00:04 +02:00
|
|
|
|
2022-07-05 15:37:08 +02:00
|
|
|
namespace Debugger::Internal {
|
2012-06-05 10:25:48 +02:00
|
|
|
|
2012-07-24 17:02:42 +02:00
|
|
|
class AttachCoreDialog : public QDialog
|
2012-06-05 10:25:48 +02:00
|
|
|
{
|
|
|
|
|
public:
|
2012-07-24 17:02:42 +02:00
|
|
|
explicit AttachCoreDialog(QWidget *parent);
|
2018-07-23 22:28:49 +02:00
|
|
|
~AttachCoreDialog() override;
|
2012-07-24 17:02:42 +02:00
|
|
|
|
2018-07-23 22:28:49 +02:00
|
|
|
int exec() override;
|
2012-10-22 11:14:18 +02:00
|
|
|
|
2019-06-20 17:19:12 +02:00
|
|
|
Utils::FilePath symbolFile() const;
|
2021-09-27 15:52:05 +02:00
|
|
|
Utils::FilePath localCoreFile() const;
|
|
|
|
|
Utils::FilePath remoteCoreFile() const;
|
|
|
|
|
Utils::FilePath overrideStartScript() const;
|
2020-06-29 18:14:20 +03:00
|
|
|
Utils::FilePath sysRoot() const;
|
2012-10-22 11:14:18 +02:00
|
|
|
bool useLocalCoreFile() const;
|
|
|
|
|
bool forcesLocalCoreFile() const;
|
|
|
|
|
bool isLocalKit() const;
|
2012-06-05 10:25:48 +02:00
|
|
|
|
2012-07-24 17:02:42 +02:00
|
|
|
// For persistance.
|
2012-09-03 18:31:44 +02:00
|
|
|
ProjectExplorer::Kit *kit() const;
|
2021-09-27 15:52:05 +02:00
|
|
|
void setSymbolFile(const Utils::FilePath &symbolFilePath);
|
|
|
|
|
void setLocalCoreFile(const Utils::FilePath &coreFilePath);
|
|
|
|
|
void setRemoteCoreFile(const Utils::FilePath &coreFilePath);
|
|
|
|
|
void setOverrideStartScript(const Utils::FilePath &scriptName);
|
|
|
|
|
void setSysRoot(const Utils::FilePath &sysRoot);
|
2020-06-26 13:59:38 +02:00
|
|
|
void setKitId(Utils::Id id);
|
2012-10-22 11:14:18 +02:00
|
|
|
void setForceLocalCoreFile(bool on);
|
2012-06-05 10:25:48 +02:00
|
|
|
|
2015-02-26 17:43:41 +01:00
|
|
|
private:
|
2012-07-24 17:02:42 +02:00
|
|
|
void changed();
|
2022-06-29 15:39:04 +02:00
|
|
|
void coreFileChanged(const Utils::FilePath &core);
|
2012-07-24 17:02:42 +02:00
|
|
|
void selectRemoteCoreFile();
|
2012-06-05 10:25:48 +02:00
|
|
|
|
2022-06-22 15:43:33 +02:00
|
|
|
class AttachCoreDialogPrivate *d;
|
2012-06-05 10:25:48 +02:00
|
|
|
};
|
|
|
|
|
|
2022-07-05 15:37:08 +02:00
|
|
|
} // Debugger::Internal
|