2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2014-10-07 12:30:54 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2014-10-07 12:30:54 +02:00
|
|
|
|
2023-02-06 14:29:24 +01:00
|
|
|
#include "itestframework.h"
|
2014-10-07 12:30:54 +02:00
|
|
|
|
2022-09-22 17:23:20 +02:00
|
|
|
#include <utils/filepath.h>
|
|
|
|
|
|
2019-08-05 15:47:10 +02:00
|
|
|
namespace ProjectExplorer {
|
|
|
|
|
class Project;
|
|
|
|
|
class RunConfiguration;
|
|
|
|
|
}
|
2018-08-08 12:40:03 +02:00
|
|
|
|
2024-01-12 08:51:08 +01:00
|
|
|
namespace Autotest::Internal {
|
2014-10-07 12:30:54 +02:00
|
|
|
|
2019-08-05 15:47:10 +02:00
|
|
|
class TestProjectSettings;
|
2014-12-04 14:05:19 +01:00
|
|
|
|
2018-08-08 12:40:03 +02:00
|
|
|
struct ChoicePair
|
|
|
|
|
{
|
2022-09-22 17:23:20 +02:00
|
|
|
explicit ChoicePair(const QString &name = {}, const Utils::FilePath &exe = {})
|
2018-08-08 12:40:03 +02:00
|
|
|
: displayName(name), executable(exe) {}
|
|
|
|
|
bool matches(const ProjectExplorer::RunConfiguration *rc) const;
|
|
|
|
|
|
|
|
|
|
QString displayName;
|
2022-09-22 17:23:20 +02:00
|
|
|
Utils::FilePath executable;
|
2018-08-08 12:40:03 +02:00
|
|
|
};
|
|
|
|
|
|
2024-01-12 08:51:08 +01:00
|
|
|
TestProjectSettings *projectSettings(ProjectExplorer::Project *project);
|
|
|
|
|
TestFrameworks activeTestFrameworks();
|
|
|
|
|
void updateMenuItemsEnabledState();
|
|
|
|
|
void cacheRunConfigChoice(const QString &buildTargetKey, const ChoicePair &choice);
|
|
|
|
|
ChoicePair cachedChoiceFor(const QString &buildTargetKey);
|
|
|
|
|
void clearChoiceCache();
|
|
|
|
|
void popupResultsPane();
|
|
|
|
|
|
2014-10-07 12:30:54 +02:00
|
|
|
|
2024-01-12 08:51:08 +01:00
|
|
|
} // Autotest::Internal
|