2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2012-06-05 10:25:48 +02:00
|
|
|
**
|
2014-01-07 13:27:11 +01:00
|
|
|
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
|
2012-10-02 09:12:39 +02:00
|
|
|
** Contact: http://www.qt-project.org/legal
|
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
|
|
|
|
|
** a written agreement between you and Digia. For licensing terms and
|
|
|
|
|
** conditions see http://qt.digia.com/licensing. For further information
|
|
|
|
|
** use the contact form at http://qt.digia.com/contact-us.
|
2012-06-05 10:25:48 +02:00
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
2012-10-02 09:12:39 +02:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
|
|
|
** General Public License version 2.1 as published by the Free Software
|
|
|
|
|
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
|
|
|
** packaging of this file. Please review the following information to
|
|
|
|
|
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
|
|
|
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
|
|
|
**
|
|
|
|
|
** In addition, as a special exception, Digia gives you certain additional
|
|
|
|
|
** rights. These rights are described in the Digia Qt LGPL Exception
|
2012-06-05 10:25:48 +02:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2012-06-05 10:25:48 +02:00
|
|
|
|
2013-03-12 11:48:25 +01:00
|
|
|
#ifndef LOADCOREDIALOG_H
|
|
|
|
|
#define LOADCOREDIALOG_H
|
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
|
|
|
|
|
|
|
|
private slots:
|
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
|
|
|
|
|
|
|
|
private:
|
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
|
|
|
|
|
|
2013-03-12 11:48:25 +01:00
|
|
|
#endif // LOADCOREDIALOG_H
|