forked from qt-creator/qt-creator
The old dialog was based on local vs. remote file paths. These days we can simply treat them the same. If the selected files are not on the same device as the debuggger they will be copied first. Change-Id: If5ec93d1e1e49c51b3032fec8384682d2a5e35b4 Reviewed-by: hjk <hjk@qt.io>
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#pragma once
|
|
|
|
#include <utils/id.h>
|
|
|
|
#include <QDialog>
|
|
|
|
namespace ProjectExplorer { class Kit; }
|
|
namespace Utils { class FilePath; }
|
|
|
|
namespace Debugger::Internal {
|
|
|
|
class AttachCoreDialog : public QDialog
|
|
{
|
|
public:
|
|
explicit AttachCoreDialog(QWidget *parent);
|
|
~AttachCoreDialog() override;
|
|
|
|
int exec() override;
|
|
|
|
Utils::FilePath symbolFile() const;
|
|
Utils::FilePath coreFile() const;
|
|
Utils::FilePath overrideStartScript() const;
|
|
Utils::FilePath sysRoot() const;
|
|
|
|
// For persistance.
|
|
ProjectExplorer::Kit *kit() const;
|
|
void setSymbolFile(const Utils::FilePath &symbolFilePath);
|
|
void setCoreFile(const Utils::FilePath &coreFilePath);
|
|
void setOverrideStartScript(const Utils::FilePath &scriptName);
|
|
void setSysRoot(const Utils::FilePath &sysRoot);
|
|
void setKitId(Utils::Id id);
|
|
|
|
Utils::FilePath coreFileCopy() const;
|
|
Utils::FilePath symbolFileCopy() const;
|
|
|
|
void accepted();
|
|
|
|
private:
|
|
void changed();
|
|
void coreFileChanged(const Utils::FilePath &core);
|
|
|
|
class AttachCoreDialogPrivate *d;
|
|
};
|
|
|
|
} // Debugger::Internal
|