forked from qt-creator/qt-creator
Conan: Convert to Tr::tr
Change-Id: Ibeb29c39923db0f1c95e0db41dd7b2a1f8d670db Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -52744,7 +52744,7 @@ in "%2" aus.
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ConanPackageManager::Internal::ConanInstallStep</name>
|
<name>Conan</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Conan install</source>
|
<source>Conan install</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@@ -47854,7 +47854,7 @@ Output:
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ConanPackageManager::Internal::ConanInstallStep</name>
|
<name>Conan</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Additional arguments:</source>
|
<source>Additional arguments:</source>
|
||||||
<translation>追加の引数:</translation>
|
<translation>追加の引数:</translation>
|
||||||
|
@@ -8561,7 +8561,7 @@ Set a valid executable first.</source>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ConanPackageManager::Internal::ConanInstallStep</name>
|
<name>Conan</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Conan install</source>
|
<source>Conan install</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@@ -3,10 +3,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace ConanPackageManager {
|
namespace Conan::Constants {
|
||||||
namespace Constants {
|
|
||||||
|
|
||||||
const char INSTALL_STEP[] = "ConanPackageManager.InstallStep";
|
const char INSTALL_STEP[] = "ConanPackageManager.InstallStep";
|
||||||
|
|
||||||
} // namespace Constants
|
} // Conan::Constants
|
||||||
} // namespace ConanPackageManager
|
|
||||||
|
@@ -1,10 +1,12 @@
|
|||||||
// Copyright (C) 2018 Jochen Seemann
|
// Copyright (C) 2018 Jochen Seemann
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
#include "conanconstants.h"
|
|
||||||
#include "conaninstallstep.h"
|
#include "conaninstallstep.h"
|
||||||
|
|
||||||
|
#include "conanconstants.h"
|
||||||
#include "conanplugin.h"
|
#include "conanplugin.h"
|
||||||
#include "conansettings.h"
|
#include "conansettings.h"
|
||||||
|
#include "conantr.h"
|
||||||
|
|
||||||
#include <projectexplorer/abstractprocessstep.h>
|
#include <projectexplorer/abstractprocessstep.h>
|
||||||
#include <projectexplorer/buildconfiguration.h>
|
#include <projectexplorer/buildconfiguration.h>
|
||||||
@@ -21,15 +23,12 @@
|
|||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace ConanPackageManager {
|
namespace Conan::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
// ConanInstallStep
|
// ConanInstallStep
|
||||||
|
|
||||||
class ConanInstallStep final : public AbstractProcessStep
|
class ConanInstallStep final : public AbstractProcessStep
|
||||||
{
|
{
|
||||||
Q_DECLARE_TR_FUNCTIONS(ConanPackageManager::Internal::ConanInstallStep)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ConanInstallStep(BuildStepList *bsl, Id id);
|
ConanInstallStep(BuildStepList *bsl, Id id);
|
||||||
|
|
||||||
@@ -42,20 +41,20 @@ ConanInstallStep::ConanInstallStep(BuildStepList *bsl, Id id)
|
|||||||
: AbstractProcessStep(bsl, id)
|
: AbstractProcessStep(bsl, id)
|
||||||
{
|
{
|
||||||
setUseEnglishOutput();
|
setUseEnglishOutput();
|
||||||
setDisplayName(ConanInstallStep::tr("Conan install"));
|
setDisplayName(Tr::tr("Conan install"));
|
||||||
|
|
||||||
auto conanFile = addAspect<StringAspect>();
|
auto conanFile = addAspect<StringAspect>();
|
||||||
conanFile->setSettingsKey("ConanPackageManager.InstallStep.ConanFile");
|
conanFile->setSettingsKey("ConanPackageManager.InstallStep.ConanFile");
|
||||||
conanFile->setFilePath(ConanPlugin::conanFilePath(project(),
|
conanFile->setFilePath(ConanPlugin::conanFilePath(project(),
|
||||||
project()->projectDirectory() / "conanfile.txt"));
|
project()->projectDirectory() / "conanfile.txt"));
|
||||||
conanFile->setLabelText(tr("Conan file:"));
|
conanFile->setLabelText(Tr::tr("Conan file:"));
|
||||||
conanFile->setToolTip(tr("Enter location of conanfile.txt or conanfile.py."));
|
conanFile->setToolTip(Tr::tr("Enter location of conanfile.txt or conanfile.py."));
|
||||||
conanFile->setDisplayStyle(StringAspect::PathChooserDisplay);
|
conanFile->setDisplayStyle(StringAspect::PathChooserDisplay);
|
||||||
conanFile->setExpectedKind(PathChooser::File);
|
conanFile->setExpectedKind(PathChooser::File);
|
||||||
|
|
||||||
auto additionalArguments = addAspect<StringAspect>();
|
auto additionalArguments = addAspect<StringAspect>();
|
||||||
additionalArguments->setSettingsKey("ConanPackageManager.InstallStep.AdditionalArguments");
|
additionalArguments->setSettingsKey("ConanPackageManager.InstallStep.AdditionalArguments");
|
||||||
additionalArguments->setLabelText(tr("Additional arguments:"));
|
additionalArguments->setLabelText(Tr::tr("Additional arguments:"));
|
||||||
additionalArguments->setDisplayStyle(StringAspect::LineEditDisplay);
|
additionalArguments->setDisplayStyle(StringAspect::LineEditDisplay);
|
||||||
|
|
||||||
auto buildMissing = addAspect<BoolAspect>();
|
auto buildMissing = addAspect<BoolAspect>();
|
||||||
@@ -116,8 +115,7 @@ void ConanInstallStep::setupOutputFormatter(OutputFormatter *formatter)
|
|||||||
ConanInstallStepFactory::ConanInstallStepFactory()
|
ConanInstallStepFactory::ConanInstallStepFactory()
|
||||||
{
|
{
|
||||||
registerStep<ConanInstallStep>(Constants::INSTALL_STEP);
|
registerStep<ConanInstallStep>(Constants::INSTALL_STEP);
|
||||||
setDisplayName(ConanInstallStep::tr("Run conan install"));
|
setDisplayName(Tr::tr("Run conan install"));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Internal
|
} // Conan::Internal
|
||||||
} // ConanPackageManager
|
|
||||||
|
@@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
#include <projectexplorer/buildstep.h>
|
#include <projectexplorer/buildstep.h>
|
||||||
|
|
||||||
namespace ConanPackageManager {
|
namespace Conan::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class ConanInstallStepFactory final : public ProjectExplorer::BuildStepFactory
|
class ConanInstallStepFactory final : public ProjectExplorer::BuildStepFactory
|
||||||
{
|
{
|
||||||
@@ -14,5 +13,4 @@ public:
|
|||||||
ConanInstallStepFactory();
|
ConanInstallStepFactory();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Conan::Internal
|
||||||
} // namespace ConanPackageManager
|
|
||||||
|
@@ -1,17 +1,18 @@
|
|||||||
// Copyright (C) 2018 Jochen Seemann
|
// Copyright (C) 2018 Jochen Seemann
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
|
#include "conanplugin.h"
|
||||||
|
|
||||||
#include "conanconstants.h"
|
#include "conanconstants.h"
|
||||||
#include "conaninstallstep.h"
|
#include "conaninstallstep.h"
|
||||||
#include "conanplugin.h"
|
|
||||||
#include "conansettings.h"
|
#include "conansettings.h"
|
||||||
|
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
|
|
||||||
#include <projectexplorer/buildconfiguration.h>
|
#include <projectexplorer/buildconfiguration.h>
|
||||||
#include <projectexplorer/buildmanager.h>
|
#include <projectexplorer/buildmanager.h>
|
||||||
#include <projectexplorer/buildsteplist.h>
|
#include <projectexplorer/buildsteplist.h>
|
||||||
#include <projectexplorer/project.h>
|
#include <projectexplorer/project.h>
|
||||||
#include <projectexplorer/projectmanager.h>
|
|
||||||
#include <projectexplorer/projecttree.h>
|
#include <projectexplorer/projecttree.h>
|
||||||
#include <projectexplorer/session.h>
|
#include <projectexplorer/session.h>
|
||||||
#include <projectexplorer/target.h>
|
#include <projectexplorer/target.h>
|
||||||
@@ -20,8 +21,7 @@ using namespace Core;
|
|||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace ConanPackageManager {
|
namespace Conan::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class ConanPluginPrivate
|
class ConanPluginPrivate
|
||||||
{
|
{
|
||||||
@@ -91,6 +91,4 @@ FilePath ConanPlugin::conanFilePath(Project *project, const FilePath &defaultFil
|
|||||||
return defaultFilePath;
|
return defaultFilePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // Conan::Internal
|
||||||
} // namespace Internal
|
|
||||||
} // namespace ConanPackageManager
|
|
||||||
|
@@ -4,12 +4,11 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <extensionsystem/iplugin.h>
|
#include <extensionsystem/iplugin.h>
|
||||||
#include <utils/fileutils.h>
|
#include <utils/filepath.h>
|
||||||
|
|
||||||
namespace ProjectExplorer { class Project; }
|
namespace ProjectExplorer { class Project; }
|
||||||
|
|
||||||
namespace ConanPackageManager {
|
namespace Conan::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class ConanSettings;
|
class ConanSettings;
|
||||||
|
|
||||||
@@ -21,7 +20,7 @@ class ConanPlugin final : public ExtensionSystem::IPlugin
|
|||||||
public:
|
public:
|
||||||
static ConanSettings *conanSettings();
|
static ConanSettings *conanSettings();
|
||||||
static Utils::FilePath conanFilePath(ProjectExplorer::Project *project,
|
static Utils::FilePath conanFilePath(ProjectExplorer::Project *project,
|
||||||
const Utils::FilePath &defaultFilePath = Utils::FilePath());
|
const Utils::FilePath &defaultFilePath = {});
|
||||||
|
|
||||||
private:
|
private:
|
||||||
~ConanPlugin() final;
|
~ConanPlugin() final;
|
||||||
@@ -33,5 +32,4 @@ private:
|
|||||||
class ConanPluginPrivate *d = nullptr;
|
class ConanPluginPrivate *d = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // Conan::Internal
|
||||||
} // namespace ConanPackageManager
|
|
||||||
|
@@ -7,8 +7,7 @@
|
|||||||
|
|
||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace ConanPackageManager {
|
namespace Conan::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
ConanSettings::ConanSettings()
|
ConanSettings::ConanSettings()
|
||||||
{
|
{
|
||||||
@@ -22,5 +21,4 @@ ConanSettings::ConanSettings()
|
|||||||
conanFilePath.setDefaultValue(HostOsInfo::withExecutableSuffix("conan"));
|
conanFilePath.setDefaultValue(HostOsInfo::withExecutableSuffix("conan"));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Internal
|
} // Conan::Internal
|
||||||
} // ConanPackageManager
|
|
||||||
|
@@ -4,12 +4,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <utils/aspects.h>
|
#include <utils/aspects.h>
|
||||||
#include <utils/fileutils.h>
|
|
||||||
|
|
||||||
#include <QSettings>
|
namespace Conan::Internal {
|
||||||
|
|
||||||
namespace ConanPackageManager {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class ConanSettings : public Utils::AspectContainer
|
class ConanSettings : public Utils::AspectContainer
|
||||||
{
|
{
|
||||||
@@ -19,5 +15,4 @@ public:
|
|||||||
Utils::StringAspect conanFilePath;
|
Utils::StringAspect conanFilePath;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Internal
|
} // Conan::Internal
|
||||||
} // ConanPackageManager
|
|
||||||
|
@@ -12,4 +12,4 @@ struct Tr
|
|||||||
Q_DECLARE_TR_FUNCTIONS(Conan)
|
Q_DECLARE_TR_FUNCTIONS(Conan)
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Conan
|
} // Conan
|
||||||
|
Reference in New Issue
Block a user