2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2012-06-05 10:25:48 +02:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2012-06-05 10:25:48 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2012-06-05 10:25:48 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2012-06-05 10:25:48 +02:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2012-06-05 10:25:48 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
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
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
2012-06-28 10:00:04 +02:00
|
|
|
namespace Core { class Id; }
|
2012-09-03 18:31:44 +02:00
|
|
|
namespace ProjectExplorer { class Kit; }
|
2012-06-28 10:00:04 +02:00
|
|
|
|
2012-06-05 10:25:48 +02:00
|
|
|
namespace Debugger {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2012-07-24 17:02:42 +02:00
|
|
|
class AttachCoreDialogPrivate;
|
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
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2012-07-24 17:02:42 +02:00
|
|
|
explicit AttachCoreDialog(QWidget *parent);
|
|
|
|
|
~AttachCoreDialog();
|
|
|
|
|
|
2012-10-22 11:14:18 +02:00
|
|
|
int exec();
|
|
|
|
|
|
2012-07-24 17:02:42 +02:00
|
|
|
QString localExecutableFile() const;
|
|
|
|
|
QString localCoreFile() const;
|
|
|
|
|
QString remoteCoreFile() const;
|
|
|
|
|
QString overrideStartScript() 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;
|
2012-07-24 17:02:42 +02:00
|
|
|
void setLocalExecutableFile(const QString &executable);
|
|
|
|
|
void setLocalCoreFile(const QString &core);
|
|
|
|
|
void setRemoteCoreFile(const QString &core);
|
|
|
|
|
void setOverrideStartScript(const QString &scriptName);
|
2014-07-01 11:08:26 +02:00
|
|
|
void setKitId(Core::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();
|
2014-02-10 13:53:24 +01:00
|
|
|
void coreFileChanged(const QString &core);
|
2012-07-24 17:02:42 +02:00
|
|
|
void selectRemoteCoreFile();
|
2012-06-05 10:25:48 +02:00
|
|
|
|
2012-07-24 17:02:42 +02:00
|
|
|
AttachCoreDialogPrivate *d;
|
2012-06-05 10:25:48 +02:00
|
|
|
};
|
|
|
|
|
|
2012-07-24 17:02:42 +02:00
|
|
|
|
2012-06-05 10:25:48 +02:00
|
|
|
} // namespace Debugger
|
|
|
|
|
} // namespace Internal
|