Commit 46eb49ea authored by hjk's avatar hjk Committed by hjk

projectmanager: re-organize New Project categories

Change-Id: Ie549f9843db985018af380eb6105e136f21989f7
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 9caeccbb
......@@ -41,7 +41,7 @@ leave room for the Qt 4 target page.
<icon>console.png</icon>
<description>Creates a plain C project using CMake, not using the Qt library.</description>
<displayname>Plain C Project (CMake Build)</displayname>;
<displaycategory>Other Project</displaycategory>
<displaycategory>Non-Qt Project</displaycategory>
<files>
<file source="main.c" openeditor="true"/>
<file source="CMakeLists.txt" openproject="true"/>
......
......@@ -43,7 +43,7 @@ leave room for the Qt 4 target page.
<icon>console.png</icon>
<description>Creates a plain C project using qmake, not using the Qt library.</description>
<displayname>Plain C Project</displayname>;
<displaycategory>Other Project</displaycategory>
<displaycategory>Non-Qt Project</displaycategory>
<files>
<file source="main.c" openeditor="true"/>
<file source="project.pro" target="%ProjectName%.pro" openproject="true"/>
......
......@@ -41,7 +41,7 @@ leave room for the Qt 4 target page.
<icon>console.png</icon>
<description>Creates a plain C++ project using CMake, not using the Qt library.</description>
<displayname>Plain C++ Project (CMake Build)</displayname>;
<displaycategory>Other Project</displaycategory>
<displaycategory>Non-Qt Project</displaycategory>
<files>
<file source="main.cpp" openeditor="true"/>
<file source="CMakeLists.txt" openproject="true"/>
......
......@@ -43,7 +43,7 @@ leave room for the Qt 4 target page.
<icon>console.png</icon>
<description>Creates a plain C++ project using qmake, not using the Qt library.</description>
<displayname>Plain C++ Project</displayname>;
<displaycategory>Other Project</displaycategory>
<displaycategory>Non-Qt Project</displaycategory>
<files>
<file source="main.cpp" openeditor="true"/>
<file source="project.pro" target="%ProjectName%.pro" openproject="true"/>
......
......@@ -39,11 +39,11 @@ leave room for the Qt 4 target page.
-->
<wizard version="1" kind="project"
class="qt4project" firstpage="10"
id="R.QtCreatorPlugin" category="I.Projects">
id="R.QtCreatorPlugin" category="F.QtProjects">
<icon>qtcreator_logo_24.png</icon>
<description>Creates a custom Qt Creator plugin.</description>
<displayname>Qt Creator plugin</displayname>;
<displaycategory>Other Project</displaycategory>
<displayname>Qt Creator Plugin</displayname>;
<displaycategory>Other Qt Project</displaycategory>
<files>
<file source="myplugin.pro" target="%PluginName:l%.pro" openproject="true"/>
<file source="MyPlugin.pluginspec.in" target="%PluginName%.pluginspec.in" openeditor="true"/>
......
......@@ -131,8 +131,8 @@ Core::BaseFileWizardParameters GenericProjectWizard::parameters()
parameters.setId(QLatin1String("Z.Makefile"));
parameters.setDescription(tr("Imports existing projects that do not use qmake or CMake. "
"This allows you to use Qt Creator as a code editor."));
parameters.setCategory(QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY));
parameters.setDisplayCategory(QCoreApplication::translate("ProjectExplorer", ProjectExplorer::Constants::PROJECT_WIZARD_TR_CATEGORY));
parameters.setCategory(QLatin1String(ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY));
parameters.setDisplayCategory(QLatin1String(ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY_DISPLAY));
return parameters;
}
......
......@@ -191,10 +191,15 @@ const char TOOLCHAIN_SETTINGS_PAGE_ID[] = "M.ProjectExplorer.ToolChainOptions";
const char TASK_CATEGORY_COMPILE[] = "Task.Category.Compile";
const char TASK_CATEGORY_BUILDSYSTEM[] = "Task.Category.Buildsystem";
// Wizard category
// Wizard categories
const char QT_PROJECT_WIZARD_CATEGORY[] = "F.QtProjects";
const char QT_PROJECT_WIZARD_CATEGORY_DISPLAY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Other Qt Project");
const char PROJECT_WIZARD_CATEGORY[] = "I.Projects"; // (after Qt)
const char PROJECT_WIZARD_TR_SCOPE[] = "ProjectExplorer";
const char PROJECT_WIZARD_TR_CATEGORY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Other Project");
const char PROJECT_WIZARD_CATEGORY_DISPLAY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Non-Qt Project");
const char IMPORT_WIZARD_CATEGORY[] = "J.Import";
const char IMPORT_WIZARD_CATEGORY_DISPLAY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Import Project");
// Build step lists ids:
const char BUILDSTEPS_CLEAN[] = "ProjectExplorer.BuildSteps.Clean";
......
......@@ -45,9 +45,8 @@ namespace Internal {
CustomWidgetWizard::CustomWidgetWizard() :
QtWizard(QLatin1String("P.Qt4CustomWidget"),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_SCOPE),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_CATEGORY),
QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY),
QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY_DISPLAY),
tr("Qt Custom Designer Widget"),
tr("Creates a Qt Custom Designer Widget or a Custom Widget Collection."),
QIcon(QLatin1String(":/wizards/images/gui.png")))
......
......@@ -66,17 +66,6 @@ const char ADDLIBRARY[] = "Qt4.AddLibrary";
const char JUMP_TO_FILE[] = "Qt4.JumpToFile";
const char SEPARATOR[] = "Qt4.Separator";
// C++ wizard categories
const char QT_APP_WIZARD_CATEGORY[] = "F.QtApplicationProjects";
const char QT_APP_WIZARD_TR_SCOPE[] = "Qt4ProjectManager";
const char QT_APP_WIZARD_TR_CATEGORY[] = QT_TRANSLATE_NOOP("Qt4ProjectManager", "Qt Widget Project");
// Html5 wizard categories
const char HTML5_WIZARD_CATEGORY[] = "I.Projects"; // (after Qt)
const char HTML5_WIZARD_TR_SCOPE[] = "Qt4ProjectManager";
const char HTML5_WIZARD_TR_CATEGORY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Other Project");
const char HTML5_WIZARD_ICON[] = ":/qmlproject/images/qml_wizard.png";
// Tasks
const char PROFILE_EVALUATE[] = "Qt4ProjectManager.ProFileEvaluate";
......
......@@ -42,7 +42,7 @@
#include <QtCore/QFileInfo>
#include <QtCore/QTextStream>
static const char *mainCppC =
static const char mainCppC[] =
"#include <QtCore/QCoreApplication>\n\n"
"int main(int argc, char *argv[])\n"
"{\n"
......@@ -57,9 +57,8 @@ namespace Internal {
ConsoleAppWizard::ConsoleAppWizard()
: QtWizard(QLatin1String("E.Qt4Core"),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_SCOPE),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_CATEGORY),
QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY),
QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY_DISPLAY),
tr("Qt Console Application"),
tr("Creates a project containing a single main.cpp file with a stub implementation.\n\n"
"Preselects a desktop Qt for building the application if available."),
......
......@@ -43,9 +43,8 @@ namespace Internal {
EmptyProjectWizard::EmptyProjectWizard()
: QtWizard(QLatin1String("U.Qt4Empty"),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_SCOPE),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_CATEGORY),
QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY),
QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY_DISPLAY),
tr("Empty Qt Project"),
tr("Creates a qmake-based project without any files. This allows you to create "
"an application without any default classes."),
......
......@@ -33,8 +33,8 @@
#include "guiappwizard.h"
#include "guiappwizarddialog.h"
#include "qt4projectmanagerconstants.h"
#include <projectexplorer/projectexplorerconstants.h>
#include <cpptools/abstracteditorsupport.h>
#include <designer/cpp/formclasswizardparameters.h>
#include <coreplugin/icore.h>
......@@ -84,9 +84,8 @@ namespace Internal {
GuiAppWizard::GuiAppWizard()
: QtWizard(QLatin1String("C.Qt4Gui"),
QLatin1String(Constants::QT_APP_WIZARD_CATEGORY),
QLatin1String(Constants::QT_APP_WIZARD_TR_SCOPE),
QLatin1String(Constants::QT_APP_WIZARD_TR_CATEGORY),
QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY),
QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY_DISPLAY),
tr("Qt Gui Application"),
tr("Creates a Qt application for the desktop. "
"Includes a Qt Designer-based main window.\n\n"
......@@ -98,14 +97,12 @@ GuiAppWizard::GuiAppWizard()
GuiAppWizard::GuiAppWizard(const QString &id,
const QString &category,
const QString &categoryTranslationScope,
const QString &displayCategory,
const QString &name,
const QString &description,
const QIcon &icon,
bool createMobile)
: QtWizard(id, category, categoryTranslationScope,
displayCategory, name, description, icon),
: QtWizard(id, category, displayCategory, name, description, icon),
m_createMobileProject(createMobile)
{
}
......
......@@ -50,7 +50,6 @@ public:
protected:
GuiAppWizard(const QString &id,
const QString &category,
const QString &categoryTranslationScope,
const QString &displayCategory,
const QString &name,
const QString &description,
......
......@@ -36,8 +36,9 @@
#include "html5appwizard.h"
#include "html5appwizardpages.h"
#include "targetsetuppage.h"
#include "qt4projectmanagerconstants.h"
#include <projectexplorer/projectexplorerconstants.h>
#include <limits>
#include <QtCore/QCoreApplication>
......@@ -104,9 +105,8 @@ Core::BaseFileWizardParameters Html5AppWizard::parameters()
"mobile target platforms. For example, you can create signed "
"Symbian Installation System (SIS) packages for this type of "
"projects."));
parameters.setCategory(QLatin1String(Constants::HTML5_WIZARD_CATEGORY));
parameters.setDisplayCategory(QCoreApplication::translate(Constants::HTML5_WIZARD_TR_SCOPE,
Constants::HTML5_WIZARD_TR_CATEGORY));
parameters.setCategory(QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY));
parameters.setDisplayCategory(QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY_DISPLAY));
return parameters;
}
......
......@@ -54,8 +54,7 @@ namespace Internal {
LibraryWizard::LibraryWizard()
: QtWizard(QLatin1String("H.Qt4Library"),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_SCOPE),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_CATEGORY),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY_DISPLAY),
tr("C++ Library"),
tr("Creates a C++ library based on qmake. This can be used to create:<ul>"
"<li>a shared C++ library for use with <tt>QPluginLoader</tt> and runtime (Plugins)</li>"
......
......@@ -35,9 +35,9 @@
#include "mobileappwizardpages.h"
#include "mobileapp.h"
#include "targetsetuppage.h"
#include "qt4projectmanagerconstants.h"
#include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/task.h>
#include <QtCore/QCoreApplication>
......@@ -96,9 +96,8 @@ Core::BaseFileWizardParameters MobileAppWizard::parameters()
parameters.setDisplayName(DisplayName);
parameters.setId(QLatin1String("C.Qt4GuiMobile"));
parameters.setDescription(Description);
parameters.setCategory(QLatin1String(Constants::QT_APP_WIZARD_CATEGORY));
parameters.setDisplayCategory(QCoreApplication::translate(Constants::QT_APP_WIZARD_TR_SCOPE,
Constants::QT_APP_WIZARD_TR_CATEGORY));
parameters.setCategory(QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY));
parameters.setDisplayCategory(QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY_DISPLAY));
return parameters;
}
......
......@@ -55,10 +55,9 @@
using namespace Qt4ProjectManager;
using namespace Qt4ProjectManager::Internal;
static inline Core::BaseFileWizardParameters
static Core::BaseFileWizardParameters
wizardParameters(const QString &id,
const QString &category,
const QString &categoryTranslationScope,
const QString &displayCategory,
const QString &name,
const QString &description,
......@@ -66,7 +65,7 @@ static inline Core::BaseFileWizardParameters
{
Core::BaseFileWizardParameters rc(Core::IWizard::ProjectWizard);
rc.setCategory(category);
rc.setDisplayCategory(QCoreApplication::translate(categoryTranslationScope.toLatin1(),
rc.setDisplayCategory(QCoreApplication::translate("ProjectExplorer",
displayCategory.toLatin1()));
rc.setIcon(icon);
rc.setDisplayName(name);
......@@ -78,13 +77,11 @@ static inline Core::BaseFileWizardParameters
// -------------------- QtWizard
QtWizard::QtWizard(const QString &id,
const QString &category,
const QString &categoryTranslationScope,
const QString &displayCategory,
const QString &name,
const QString &description, const QIcon &icon) :
Core::BaseFileWizard(wizardParameters(id,
category,
categoryTranslationScope,
displayCategory,
name,
description,
......
......@@ -65,7 +65,6 @@ class QtWizard : public Core::BaseFileWizard
protected:
QtWizard(const QString &id,
const QString &category,
const QString &categoryTranslationScope,
const QString &displayCategory,
const QString &name,
const QString &description,
......
......@@ -45,8 +45,7 @@ namespace Internal {
SubdirsProjectWizard::SubdirsProjectWizard()
: QtWizard(QLatin1String("U.Qt4Subdirs"),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_SCOPE),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_CATEGORY),
QLatin1String("Non-Qt Project"),
tr("Subdirs Project"),
tr("Creates a qmake-based subdirs project. This allows you to group "
"your projects in a tree structure."),
......
......@@ -48,9 +48,8 @@ namespace Internal {
TestWizard::TestWizard() :
QtWizard(QLatin1String("L.Qt4Test"),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_CATEGORY),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_SCOPE),
QLatin1String(ProjectExplorer::Constants::PROJECT_WIZARD_TR_CATEGORY),
QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY),
QLatin1String(ProjectExplorer::Constants::QT_PROJECT_WIZARD_CATEGORY_DISPLAY),
tr("Qt Unit Test"),
tr("Creates a QTestLib-based unit test for a feature or a class. "
"Unit tests allow you to verify that the code is fit for use "
......
......@@ -36,6 +36,7 @@
#include "checkoutjobs.h"
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/projectexplorerconstants.h>
#include <QtCore/QCoreApplication>
#include <QtCore/QFileInfo>
......@@ -100,12 +101,12 @@ Core::IWizard::WizardKind BaseCheckoutWizard::kind() const
QString BaseCheckoutWizard::category() const
{
return QLatin1String(VCSBase::Constants::VCS_WIZARD_CATEGORY);
return QLatin1String(ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY);
}
QString BaseCheckoutWizard::displayCategory() const
{
return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_WIZARD_TR_CATEGORY);
return QCoreApplication::translate("ProjectExplorer", ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY_DISPLAY);
}
QString BaseCheckoutWizard::id() const
......
......@@ -44,9 +44,6 @@ const char SETTINGS_CATEGORY_VCS_ICON[] = ":/core/images/category_vcs.png";
const char VCS_COMMON_SETTINGS_ID[] = "A.Common";
const char VCS_COMMON_SETTINGS_NAME[] = QT_TRANSLATE_NOOP("VCSBase", "Common");
const char VCS_WIZARD_TR_CATEGORY[] = QT_TRANSLATE_NOOP("VCSBase", "Project from Version Control");
const char VCS_WIZARD_CATEGORY[] = "L.Version Control";
// Ids for sort order (wizards and preferences)
const char VCS_ID_BAZAAR[] = "B.Bazaar";
const char VCS_ID_GIT[] = "G.Git";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment