2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2010-02-16 13:39:13 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2010-02-16 13:39:13 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2010-02-16 13:39:13 +01: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.
|
2010-02-16 13:39:13 +01: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.
|
2010-12-17 16:01:08 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2010-02-16 13:39:13 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2010-02-16 13:39:13 +01:00
|
|
|
|
|
|
|
|
#include "qmlprojectmanager_global.h"
|
2011-01-20 14:03:07 +01:00
|
|
|
|
2018-05-16 15:42:03 +02:00
|
|
|
#include <projectexplorer/runconfiguration.h>
|
2011-01-20 14:03:07 +01:00
|
|
|
|
2020-01-06 14:48:51 +01:00
|
|
|
namespace ProjectExplorer {
|
|
|
|
|
class BaseStringAspect;
|
|
|
|
|
}
|
2010-02-16 13:39:13 +01:00
|
|
|
namespace QmlProjectManager {
|
|
|
|
|
|
2020-01-06 14:48:51 +01:00
|
|
|
class QmlMainFileAspect;
|
2010-02-16 13:39:13 +01:00
|
|
|
|
2016-01-25 15:00:20 +01:00
|
|
|
class QMLPROJECTMANAGER_EXPORT QmlProjectRunConfiguration : public ProjectExplorer::RunConfiguration
|
2010-02-16 13:39:13 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2018-04-25 10:26:08 +02:00
|
|
|
QmlProjectRunConfiguration(ProjectExplorer::Target *target, Core::Id id);
|
2010-02-16 13:39:13 +01:00
|
|
|
|
|
|
|
|
private:
|
2018-09-07 08:27:44 +02:00
|
|
|
ProjectExplorer::Runnable runnable() const final;
|
|
|
|
|
QString disabledReason() const final;
|
2019-10-25 09:55:32 +02:00
|
|
|
bool isEnabled() const final;
|
2016-07-01 12:19:37 +03:00
|
|
|
|
2018-09-07 08:27:44 +02:00
|
|
|
QString mainScript() const;
|
2019-11-15 17:32:29 +01:00
|
|
|
Utils::FilePath qmlScenePath() const;
|
2016-01-25 15:00:20 +01:00
|
|
|
QString commandLineArguments() const;
|
|
|
|
|
|
2020-01-06 14:48:51 +01:00
|
|
|
ProjectExplorer::BaseStringAspect *m_qmlViewerAspect = nullptr;
|
|
|
|
|
QmlMainFileAspect *m_qmlMainFileAspect = nullptr;
|
2010-02-16 13:39:13 +01:00
|
|
|
};
|
|
|
|
|
|
2018-04-06 14:55:56 +02:00
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class QmlProjectRunConfigurationFactory : public ProjectExplorer::FixedRunConfigurationFactory
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
QmlProjectRunConfigurationFactory();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2010-02-16 13:39:13 +01:00
|
|
|
} // namespace QmlProjectManager
|