2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2008-12-02 12:01:29 +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.
|
2008-12-02 14:17:16 +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
|
|
|
****************************************************************************/
|
2008-12-02 16:19:05 +01:00
|
|
|
|
2016-02-02 18:26:51 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QtGlobal>
|
2009-11-27 10:33:24 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
namespace ProjectExplorer {
|
|
|
|
|
namespace Constants {
|
|
|
|
|
|
2011-09-02 13:19:50 +02:00
|
|
|
// Modes and their priorities
|
|
|
|
|
const char MODE_SESSION[] = "Project";
|
|
|
|
|
|
|
|
|
|
// Actions
|
|
|
|
|
const char BUILD[] = "ProjectExplorer.Build";
|
|
|
|
|
const char STOP[] = "ProjectExplorer.Stop";
|
2017-11-29 16:18:01 +01:00
|
|
|
const char RENAMEFILE[] = "ProjectExplorer.RenameFile";
|
2017-11-30 16:32:55 +01:00
|
|
|
const char REMOVEFILE[] = "ProjectExplorer.RemoveFile";
|
2011-09-02 13:19:50 +02:00
|
|
|
|
|
|
|
|
// Context
|
|
|
|
|
const char C_PROJECT_TREE[] = "ProjectExplorer.ProjectTreeContext";
|
|
|
|
|
|
|
|
|
|
// Menus
|
|
|
|
|
const char M_BUILDPROJECT[] = "ProjectExplorer.Menu.Build";
|
|
|
|
|
const char M_DEBUG[] = "ProjectExplorer.Menu.Debug";
|
|
|
|
|
const char M_DEBUG_STARTDEBUGGING[] = "ProjectExplorer.Menu.Debug.StartDebugging";
|
|
|
|
|
|
|
|
|
|
// Menu groups
|
2012-04-26 19:28:59 +02:00
|
|
|
const char G_BUILD_BUILD[] = "ProjectExplorer.Group.Build";
|
|
|
|
|
const char G_BUILD_DEPLOY[] = "ProjectExplorer.Group.Deploy";
|
|
|
|
|
const char G_BUILD_REBUILD[] = "ProjectExplorer.Group.Rebuild";
|
|
|
|
|
const char G_BUILD_CLEAN[] = "ProjectExplorer.Group.Clean";
|
2017-09-29 10:49:18 +02:00
|
|
|
const char G_BUILD_RUN[] = "ProjectExplorer.Group.Run";
|
|
|
|
|
const char G_BUILD_CANCEL[] = "ProjectExplorer.Group.BuildCancel";
|
2011-09-02 13:19:50 +02:00
|
|
|
|
|
|
|
|
// Context menus
|
|
|
|
|
const char M_SESSIONCONTEXT[] = "Project.Menu.Session";
|
|
|
|
|
const char M_PROJECTCONTEXT[] = "Project.Menu.Project";
|
|
|
|
|
const char M_SUBPROJECTCONTEXT[] = "Project.Menu.SubProject";
|
|
|
|
|
const char M_FOLDERCONTEXT[] = "Project.Menu.Folder";
|
|
|
|
|
const char M_FILECONTEXT[] = "Project.Menu.File";
|
|
|
|
|
const char M_OPENFILEWITHCONTEXT[] = "Project.Menu.File.OpenWith";
|
|
|
|
|
|
|
|
|
|
// Context menu groups
|
|
|
|
|
const char G_SESSION_BUILD[] = "Session.Group.Build";
|
2012-04-26 19:28:59 +02:00
|
|
|
const char G_SESSION_REBUILD[] = "Session.Group.Rebuild";
|
2011-09-02 13:19:50 +02:00
|
|
|
const char G_SESSION_FILES[] = "Session.Group.Files";
|
|
|
|
|
const char G_SESSION_OTHER[] = "Session.Group.Other";
|
|
|
|
|
|
|
|
|
|
const char G_PROJECT_FIRST[] = "Project.Group.Open";
|
|
|
|
|
const char G_PROJECT_BUILD[] = "Project.Group.Build";
|
2012-04-26 19:28:59 +02:00
|
|
|
const char G_PROJECT_REBUILD[] = "Project.Group.Rebuild";
|
2011-09-02 13:19:50 +02:00
|
|
|
const char G_PROJECT_RUN[] = "Project.Group.Run";
|
|
|
|
|
const char G_PROJECT_FILES[] = "Project.Group.Files";
|
|
|
|
|
const char G_PROJECT_TREE[] = "Project.Group.Tree";
|
|
|
|
|
const char G_PROJECT_LAST[] = "Project.Group.Last";
|
|
|
|
|
|
2017-07-05 16:01:59 +02:00
|
|
|
const char G_FOLDER_LOCATIONS[] = "ProjectFolder.Group.Locations";
|
2011-09-02 13:19:50 +02:00
|
|
|
const char G_FOLDER_FILES[] = "ProjectFolder.Group.Files";
|
|
|
|
|
const char G_FOLDER_OTHER[] = "ProjectFolder.Group.Other";
|
|
|
|
|
const char G_FOLDER_CONFIG[] = "ProjectFolder.Group.Config";
|
|
|
|
|
|
|
|
|
|
const char G_FILE_OPEN[] = "ProjectFile.Group.Open";
|
|
|
|
|
const char G_FILE_OTHER[] = "ProjectFile.Group.Other";
|
|
|
|
|
const char G_FILE_CONFIG[] = "ProjectFile.Group.Config";
|
|
|
|
|
|
|
|
|
|
// Mime types
|
|
|
|
|
const char C_SOURCE_MIMETYPE[] = "text/x-csrc";
|
|
|
|
|
const char C_HEADER_MIMETYPE[] = "text/x-chdr";
|
|
|
|
|
const char CPP_SOURCE_MIMETYPE[] = "text/x-c++src";
|
|
|
|
|
const char CPP_HEADER_MIMETYPE[] = "text/x-c++hdr";
|
2015-02-04 09:32:46 +01:00
|
|
|
const char LINGUIST_MIMETYPE[] = "text/vnd.trolltech.linguist";
|
2011-09-02 13:19:50 +02:00
|
|
|
const char FORM_MIMETYPE[] = "application/x-designer";
|
2015-02-24 09:53:55 +01:00
|
|
|
const char QML_MIMETYPE[] = "text/x-qml"; // separate def also in qmljstoolsconstants.h
|
2017-10-17 18:53:28 +02:00
|
|
|
const char QMLUI_MIMETYPE[] = "application/x-qt.ui+qml";
|
2013-05-21 23:37:47 +03:00
|
|
|
const char RESOURCE_MIMETYPE[] = "application/vnd.qt.xml.resource";
|
2016-07-13 15:10:21 +02:00
|
|
|
const char SCXML_MIMETYPE[] = "application/scxml+xml";
|
2011-09-02 13:19:50 +02:00
|
|
|
|
|
|
|
|
// Settings page
|
|
|
|
|
const char PROJECTEXPLORER_SETTINGS_CATEGORY[] = "K.ProjectExplorer";
|
2011-09-15 19:20:50 +02:00
|
|
|
const char PROJECTEXPLORER_SETTINGS_TR_CATEGORY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Build & Run");
|
2014-06-04 09:50:52 +02:00
|
|
|
const char PROJECTEXPLORER_SETTINGS_CATEGORY_ICON[] = ":/projectexplorer/images/category_buildrun.png";
|
2011-09-15 19:20:50 +02:00
|
|
|
const char PROJECTEXPLORER_SETTINGS_ID[] = "A.ProjectExplorer.ProjectExplorer";
|
2011-09-02 13:19:50 +02:00
|
|
|
const char TOOLCHAIN_SETTINGS_PAGE_ID[] = "M.ProjectExplorer.ToolChainOptions";
|
2013-08-14 18:30:40 +02:00
|
|
|
const char DEBUGGER_SETTINGS_PAGE_ID[] = "N.ProjectExplorer.DebuggerOptions";
|
2012-09-03 18:31:44 +02:00
|
|
|
const char KITS_SETTINGS_PAGE_ID[] = "D.ProjectExplorer.KitsOptions";
|
2011-09-02 13:19:50 +02:00
|
|
|
|
2012-03-06 12:31:42 +01:00
|
|
|
// Device settings page
|
2013-01-23 14:34:01 +01:00
|
|
|
const char DEVICE_SETTINGS_CATEGORY[] = "XW.Devices";
|
2016-09-06 14:21:09 +02:00
|
|
|
const char DEVICE_SETTINGS_TR_CATEGORY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Devices");
|
2012-03-06 12:31:42 +01:00
|
|
|
const char DEVICE_SETTINGS_PAGE_ID[] = "AA.Device Settings";
|
|
|
|
|
|
2011-09-02 13:19:50 +02:00
|
|
|
// Task categories
|
|
|
|
|
const char TASK_CATEGORY_COMPILE[] = "Task.Category.Compile";
|
|
|
|
|
const char TASK_CATEGORY_BUILDSYSTEM[] = "Task.Category.Buildsystem";
|
2013-08-19 15:35:14 +02:00
|
|
|
const char TASK_CATEGORY_DEPLOYMENT[] = "Task.Category.Deploy";
|
2009-11-11 09:54:13 +01:00
|
|
|
|
2011-11-18 12:54:41 +01:00
|
|
|
// Wizard categories
|
2014-08-25 17:07:23 +02:00
|
|
|
const char QT_PROJECT_WIZARD_CATEGORY[] = "H.Project";
|
2012-02-08 17:25:35 +01:00
|
|
|
const char QT_PROJECT_WIZARD_CATEGORY_DISPLAY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Other Project");
|
|
|
|
|
|
2014-08-25 17:07:23 +02:00
|
|
|
const char QT_APPLICATION_WIZARD_CATEGORY[] = "F.Application";
|
|
|
|
|
const char QT_APPLICATION_WIZARD_CATEGORY_DISPLAY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Application");
|
2012-02-08 17:25:35 +01:00
|
|
|
|
2014-08-25 17:07:23 +02:00
|
|
|
const char LIBRARIES_WIZARD_CATEGORY[] = "G.Library";
|
|
|
|
|
const char LIBRARIES_WIZARD_CATEGORY_DISPLAY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Library");
|
2011-11-18 12:54:41 +01:00
|
|
|
|
2012-02-08 17:25:35 +01:00
|
|
|
const char IMPORT_WIZARD_CATEGORY[] = "T.Import";
|
2011-11-18 12:54:41 +01:00
|
|
|
const char IMPORT_WIZARD_CATEGORY_DISPLAY[] = QT_TRANSLATE_NOOP("ProjectExplorer", "Import Project");
|
2009-11-27 10:33:24 +01:00
|
|
|
|
2012-04-02 14:55:56 +02:00
|
|
|
// Wizard extra values
|
2014-03-19 10:07:22 +01:00
|
|
|
const char PREFERRED_PROJECT_NODE[] = "ProjectExplorer.PreferredProjectNode";
|
2017-08-29 14:32:10 +02:00
|
|
|
const char PREFERRED_PROJECT_NODE_PATH[] = "ProjectExplorer.PreferredProjectPath";
|
|
|
|
|
const char PROJECT_POINTER[] = "ProjectExplorer.Project";
|
2012-09-04 15:27:10 +02:00
|
|
|
const char PROJECT_KIT_IDS[] = "ProjectExplorer.Profile.Ids";
|
2012-04-02 14:55:56 +02:00
|
|
|
|
2010-07-16 14:00:41 +02:00
|
|
|
// Build step lists ids:
|
2011-09-02 13:19:50 +02:00
|
|
|
const char BUILDSTEPS_CLEAN[] = "ProjectExplorer.BuildSteps.Clean";
|
|
|
|
|
const char BUILDSTEPS_BUILD[] = "ProjectExplorer.BuildSteps.Build";
|
|
|
|
|
const char BUILDSTEPS_DEPLOY[] = "ProjectExplorer.BuildSteps.Deploy";
|
2010-07-16 14:00:41 +02:00
|
|
|
|
2016-12-16 00:43:14 +01:00
|
|
|
// Language
|
2017-01-23 16:30:06 +01:00
|
|
|
|
|
|
|
|
// Keep these short: These constants are exposed to the MacroExplorer!
|
|
|
|
|
const char C_LANGUAGE_ID[] = "C";
|
|
|
|
|
const char CXX_LANGUAGE_ID[] = "Cxx";
|
2017-01-30 14:59:10 +01:00
|
|
|
const char QMLJS_LANGUAGE_ID[] = "QMLJS";
|
2016-12-16 00:43:14 +01:00
|
|
|
|
2015-07-07 15:37:50 +02:00
|
|
|
// ToolChain TypeIds
|
|
|
|
|
const char CLANG_TOOLCHAIN_TYPEID[] = "ProjectExplorer.ToolChain.Clang";
|
|
|
|
|
const char GCC_TOOLCHAIN_TYPEID[] = "ProjectExplorer.ToolChain.Gcc";
|
|
|
|
|
const char LINUXICC_TOOLCHAIN_TYPEID[] = "ProjectExplorer.ToolChain.LinuxIcc";
|
|
|
|
|
const char MINGW_TOOLCHAIN_TYPEID[] = "ProjectExplorer.ToolChain.Mingw";
|
|
|
|
|
const char MSVC_TOOLCHAIN_TYPEID[] = "ProjectExplorer.ToolChain.Msvc";
|
2016-02-03 13:10:33 +01:00
|
|
|
const char CLANG_CL_TOOLCHAIN_TYPEID[] = "ProjectExplorer.ToolChain.ClangCl";
|
2015-07-07 15:37:50 +02:00
|
|
|
const char CUSTOM_TOOLCHAIN_TYPEID[] = "ProjectExplorer.ToolChain.Custom";
|
2011-02-01 18:36:00 +01:00
|
|
|
|
2011-01-20 14:03:07 +01:00
|
|
|
// Default directory to run custom (build) commands in.
|
2011-09-02 13:19:50 +02:00
|
|
|
const char DEFAULT_WORKING_DIR[] = "%{buildDir}";
|
2013-04-16 14:18:57 +02:00
|
|
|
const char DEFAULT_WORKING_DIR_ALTERNATE[] = "%{sourceDir}";
|
2011-01-20 14:03:07 +01:00
|
|
|
|
2012-05-29 17:00:24 +02:00
|
|
|
// Desktop Device related ids:
|
|
|
|
|
const char DESKTOP_DEVICE_ID[] = "Desktop Device";
|
|
|
|
|
const char DESKTOP_DEVICE_TYPE[] = "Desktop";
|
2013-03-20 13:00:10 +01:00
|
|
|
const int DESKTOP_PORT_START = 30000;
|
|
|
|
|
const int DESKTOP_PORT_END = 31000;
|
2012-05-29 17:00:24 +02:00
|
|
|
|
2012-11-16 19:11:36 +01:00
|
|
|
// Variable Names:
|
2013-03-11 11:05:06 +01:00
|
|
|
const char VAR_CURRENTPROJECT_PREFIX[] = "CurrentProject";
|
2012-11-16 19:11:36 +01:00
|
|
|
const char VAR_CURRENTPROJECT_NAME[] = "CurrentProject:Name";
|
|
|
|
|
const char VAR_CURRENTKIT_NAME[] = "CurrentKit:Name";
|
|
|
|
|
const char VAR_CURRENTKIT_FILESYSTEMNAME[] = "CurrentKit:FileSystemName";
|
|
|
|
|
const char VAR_CURRENTKIT_ID[] = "CurrentKit:Id";
|
|
|
|
|
const char VAR_CURRENTBUILD_NAME[] = "CurrentBuild:Name";
|
|
|
|
|
const char VAR_CURRENTBUILD_TYPE[] = "CurrentBuild:Type";
|
2017-01-25 16:15:54 +01:00
|
|
|
const char VAR_CURRENTBUILD_ENV[] = "CurrentBuild:Env";
|
2016-03-31 17:09:56 +03:00
|
|
|
const char VAR_CURRENTRUN_NAME[] = "CurrentRun:Name";
|
2013-08-24 23:10:17 +02:00
|
|
|
|
2014-08-27 14:16:06 +02:00
|
|
|
// JsonWizard:
|
|
|
|
|
const char PAGE_ID_PREFIX[] = "PE.Wizard.Page.";
|
|
|
|
|
const char GENERATOR_ID_PREFIX[] = "PE.Wizard.Generator.";
|
|
|
|
|
|
2015-06-29 10:36:29 +03:00
|
|
|
// RunMode
|
|
|
|
|
const char NO_RUN_MODE[]="RunConfiguration.NoRunMode";
|
|
|
|
|
const char NORMAL_RUN_MODE[]="RunConfiguration.NormalRunMode";
|
|
|
|
|
const char QML_PROFILER_RUN_MODE[]="RunConfiguration.QmlProfilerRunMode";
|
2016-03-29 16:55:07 +02:00
|
|
|
const char PERFPROFILER_RUN_MODE[]="PerfProfiler.RunMode";
|
2015-06-29 10:36:29 +03:00
|
|
|
const char DEBUG_RUN_MODE[]="RunConfiguration.DebugRunMode";
|
2017-10-06 12:44:48 +02:00
|
|
|
const char QML_PREVIEW_RUN_MODE[]="RunConfiguration.QmlPreviewRunMode";
|
2012-01-10 19:17:24 +01:00
|
|
|
|
2015-08-20 14:47:02 +02:00
|
|
|
// Navigation Widget
|
|
|
|
|
const char PROJECTTREE_ID[] = "Projects";
|
|
|
|
|
|
2016-04-22 15:42:30 +02:00
|
|
|
// File icon overlays
|
|
|
|
|
const char FILEOVERLAY_QT[]=":/projectexplorer/images/fileoverlay_qt.png";
|
|
|
|
|
const char FILEOVERLAY_QML[]=":/projectexplorer/images/fileoverlay_qml.png";
|
|
|
|
|
const char FILEOVERLAY_UI[]=":/projectexplorer/images/fileoverlay_ui.png";
|
|
|
|
|
const char FILEOVERLAY_QRC[]=":/projectexplorer/images/fileoverlay_qrc.png";
|
|
|
|
|
const char FILEOVERLAY_CPP[]=":/projectexplorer/images/fileoverlay_cpp.png";
|
|
|
|
|
const char FILEOVERLAY_H[]=":/projectexplorer/images/fileoverlay_h.png";
|
|
|
|
|
const char FILEOVERLAY_SCXML[]=":/projectexplorer/images/fileoverlay_scxml.png";
|
|
|
|
|
const char FILEOVERLAY_UNKNOWN[]=":/projectexplorer/images/fileoverlay_unknown.png";
|
|
|
|
|
|
2015-06-29 10:36:29 +03:00
|
|
|
} // namespace Constants
|
2008-12-02 16:19:05 +01:00
|
|
|
} // namespace ProjectExplorer
|