1 /**************************************************************************
3 ** This file is part of Qt Creator
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
7 ** Contact: Nokia Corporation (qt-info@nokia.com)
11 ** This file contains pre-release code and may not be distributed.
12 ** You may use this file in accordance with the terms and conditions
13 ** contained in the Technology Preview License Agreement accompanying
16 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
25 ** In addition, as a special exception, Nokia gives you certain additional
26 ** rights. These rights are described in the Nokia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
29 ** If you have questions regarding the use of this file, please contact
30 ** Nokia at qt-info@nokia.com.
32 **************************************************************************/
34 #ifndef PROJECTEXPLORERCONSTANTS_H
35 #define PROJECTEXPLORERCONSTANTS_H
37 #include <QtCore/QtGlobal>
39 namespace ProjectExplorer {
42 // modes and their priorities
43 const char * const MODE_SESSION = "Project";
44 const int P_MODE_SESSION = 85;
47 const char * const NEWSESSION = "ProjectExplorer.NewSession";
48 const char * const NEWPROJECT = "ProjectExplorer.NewProject";
49 const char * const LOAD = "ProjectExplorer.Load";
50 const char * const UNLOAD = "ProjectExplorer.Unload";
51 const char * const CLEARSESSION = "ProjectExplorer.ClearSession";
52 const char * const BUILDPROJECTONLY = "ProjectExplorer.BuildProjectOnly";
53 const char * const BUILD = "ProjectExplorer.Build";
54 const char * const BUILDCM = "ProjectExplorer.BuildCM";
55 const char * const BUILDSESSION = "ProjectExplorer.BuildSession";
56 const char * const REBUILDPROJECTONLY = "ProjectExplorer.RebuildProjectOnly";
57 const char * const REBUILD = "ProjectExplorer.Rebuild";
58 const char * const REBUILDCM = "ProjectExplorer.RebuildCM";
59 const char * const REBUILDSESSION = "ProjectExplorer.RebuildSession";
60 const char * const DEPLOYPROJECTONLY = "ProjectExplorer.DeployProjectOnly";
61 const char * const DEPLOY = "ProjectExplorer.Deploy";
62 const char * const DEPLOYCM = "ProjectExplorer.DeployCM";
63 const char * const DEPLOYSESSION = "ProjectExplorer.DeploySession";
64 const char * const PUBLISH = "ProjectExplorer.Publish";
65 const char * const CLEANPROJECTONLY = "ProjectExplorer.CleanProjectOnly";
66 const char * const CLEAN = "ProjectExplorer.Clean";
67 const char * const CLEANCM = "ProjectExplorer.CleanCM";
68 const char * const CLEANSESSION = "ProjectExplorer.CleanSession";
69 const char * const BUILDPROJECTONLYMENU = "ProjectExplorer.BuildProjectOnlyMenu";
70 const char * const BUILDCONFIGURATIONMENU = "ProjectExplorer.BuildConfigurationMenu";
71 const char * const CANCELBUILD = "ProjectExplorer.CancelBuild";
72 const char * const RUNCONFIGURATIONMENU = "ProjectExplorer.RunConfigurationMenu";
73 const char * const RUN = "ProjectExplorer.Run";
74 const char * const RUNCONTEXTMENU = "ProjectExplorer.RunContextMenu";
75 const char * const STOP = "ProjectExplorer.Stop";
76 const char * const DEPENDENCIES = "ProjectExplorer.Dependencies";
77 const char * const FINDINALLPROJECTS = "ProjectExplorer.FindInAllProjects";
78 const char * const SHOWPROPERTIES = "ProjectExplorer.ShowProperties";
79 const char * const ADDNEWFILE = "ProjectExplorer.AddNewFile";
80 const char * const ADDEXISTINGFILES = "ProjectExplorer.AddExistingFiles";
81 const char * const ADDNEWSUBPROJECT = "ProjectExplorer.AddNewSubproject";
82 const char * const REMOVEPROJECT = "ProjectExplorer.RemoveProject";
83 const char * const OPENFILE = "ProjectExplorer.OpenFile";
84 const char * const SHOWINGRAPHICALSHELL = "ProjectExplorer.ShowInGraphicalShell";
85 const char * const OPENTERMIANLHERE = "ProjectExplorer.OpenTerminalHere";
86 const char * const REMOVEFILE = "ProjectExplorer.RemoveFile";
87 const char * const DELETEFILE = "ProjectExplorer.DeleteFile";
88 const char * const RENAMEFILE = "ProjectExplorer.RenameFile";
89 const char * const SETSTARTUP = "ProjectExplorer.SetStartup";
91 const char * const SHOW_TASK_IN_EDITOR = "ProjectExplorer.ShowTaskInEditor";
92 const char * const VCS_ANNOTATE_TASK = "ProjectExplorer.VcsAnnotateTask";
93 const char * const SHOW_TASK_OUTPUT = "ProjectExplorer.ShowTaskOutput";
96 const char * const RUNMODE = "ProjectExplorer.RunMode";
98 const char * const SELECTTARGET = "ProjectExplorer.SelectTarget";
102 const int P_ACTION_RUN = 100;
103 const int P_ACTION_BUILDSESSION = 80;
106 const char * const C_PROJECTEXPLORER = "Project Explorer";
107 const char * const C_PROJECT_TREE = "ProjectExplorer.ProjectTreeContext";
110 const char * const LANG_CXX = "CXX";
111 const char * const LANG_QMLJS = "QMLJS";
114 const char * const M_RECENTPROJECTS = "ProjectExplorer.Menu.Recent";
115 const char * const M_BUILDPROJECT = "ProjectExplorer.Menu.Build";
116 const char * const M_DEBUG = "ProjectExplorer.Menu.Debug";
117 const char * const M_DEBUG_STARTDEBUGGING = "ProjectExplorer.Menu.Debug.StartDebugging";
118 const char * const M_SESSION = "ProjectExplorer.Menu.Session";
121 const char * const T_BUILDPROJECT = "ProjectExplorer.ToolBar.Build";
124 const char * const G_BUILD_SESSION = "ProjectExplorer.Group.BuildSession";
125 const char * const G_BUILD_PROJECT = "ProjectExplorer.Group.Build";
126 const char * const G_BUILD_OTHER = "ProjectExplorer.Group.Other";
127 const char * const G_BUILD_RUN = "ProjectExplorer.Group.Run";
128 const char * const G_BUILD_CANCEL = "ProjectExplorer.Group.BuildCancel";
131 const char * const G_TOOLBAR_CUSTOM = "ProjectExplorer.ToolBarGroup.Custom";
132 const char * const G_TOOLBAR_BUILD = "ProjectExplorer.ToolBarGroup.Build";
133 const char * const G_TOOLBAR_RUN = "ProjectExplorer.ToolBarGroup.Run";
134 const char * const G_TOOLBAR_OTHER = "ProjectExplorer.ToolBarGroup.Other";
137 const char * const M_SESSIONCONTEXT = "Project.Menu.Session";
138 const char * const M_PROJECTCONTEXT = "Project.Menu.Project";
139 const char * const M_SUBPROJECTCONTEXT = "Project.Menu.SubProject";
140 const char * const M_FOLDERCONTEXT = "Project.Menu.Folder";
141 const char * const M_FILECONTEXT = "Project.Menu.File";
142 const char * const M_OPENFILEWITHCONTEXT = "Project.Menu.File.OpenWith";
144 // context menu groups
145 const char * const G_SESSION_BUILD = "Session.Group.Build";
146 const char * const G_SESSION_FILES = "Session.Group.Files";
147 const char * const G_SESSION_OTHER = "Session.Group.Other";
148 const char * const G_SESSION_CONFIG = "Session.Group.Config";
150 const char * const G_PROJECT_FILES = "Project.Group.Files";
151 const char * const G_PROJECT_FIRST = "Project.Group.Open";
152 const char * const G_PROJECT_BUILD = "Project.Group.Build";
153 const char * const G_PROJECT_OTHER = "Project.Group.Other";
154 const char * const G_PROJECT_RUN = "Project.Group.Run";
155 const char * const G_PROJECT_CONFIG = "Project.Group.Config";
157 const char * const G_FOLDER_FILES = "ProjectFolder.Group.Files";
158 const char * const G_FOLDER_OTHER = "ProjectFolder.Group.Other";
159 const char * const G_FOLDER_CONFIG = "ProjectFolder.Group.Config";
161 const char * const G_FILE_OPEN = "ProjectFile.Group.Open";
162 const char * const G_FILE_OTHER = "ProjectFile.Group.Other";
163 const char * const G_FILE_CONFIG = "ProjectFile.Group.Config";
166 const char * const FILE_FACTORY_ID = "ProjectExplorer.FileFactoryId";
169 const char * const WIZARD_TYPE_PROJECT = "ProjectExplorer.WizardType.Project";
172 const char * const ICON_BUILD = ":/projectexplorer/images/build.png";
173 const char * const ICON_BUILD_SMALL = ":/projectexplorer/images/build_small.png";
174 const char * const ICON_CLEAN = ":/projectexplorer/images/clean.png";
175 const char * const ICON_CLEAN_SMALL = ":/projectexplorer/images/clean_small.png";
176 const char * const ICON_REBUILD = ":/projectexplorer/images/rebuild.png";
177 const char * const ICON_REBUILD_SMALL = ":/projectexplorer/images/rebuild_small.png";
178 const char * const ICON_RUN = ":/projectexplorer/images/run.png";
179 const char * const ICON_RUN_SMALL = ":/projectexplorer/images/run_small.png";
180 const char * const ICON_SESSION = ":/projectexplorer/images/session.png";
181 const char * const ICON_DEBUG = ":/projectexplorer/images/debugger_start.png";
182 const char * const ICON_DEBUG_SMALL = ":/projectexplorer/images/debugger_start_small.png";
183 const char * const ICON_CLOSETAB = ":/projectexplorer/images/closetab.png";
184 const char * const ICON_STOP = ":/projectexplorer/images/stop.png";
187 const char * const FIND_CUR_PROJECT = "ProjectExplorer.FindFilter.CurrentProject";
188 const char * const FIND_ALL_PROJECTS = "ProjectExplorer.FindFilter.AllProjects";
190 const char * const TASK_BUILD = "ProjectExplorer.Task.Build";
191 const char * const SESSIONFILE_MIMETYPE = "application/vnd.nokia.xml.qt.creator.session";
194 const char * const PROFILE_MIMETYPE = "application/vnd.nokia.qt.qmakeprofile";
195 const char * const C_SOURCE_MIMETYPE = "text/x-csrc";
196 const char * const C_HEADER_MIMETYPE = "text/x-chdr";
197 const char * const CPP_SOURCE_MIMETYPE = "text/x-c++src";
198 const char * const CPP_HEADER_MIMETYPE = "text/x-c++hdr";
199 const char * const FORM_MIMETYPE = "application/x-designer";
200 const char * const RESOURCE_MIMETYPE = "application/vnd.nokia.xml.qt.resource";
203 const char * const PROJECTEXPLORER_SETTINGS_CATEGORY = "K.ProjectExplorer";
204 const char * const PROJECTEXPLORER_SETTINGS_TR_CATEGORY = QT_TRANSLATE_NOOP("ProjectExplorer", "Projects");
205 const char * const PROJECTEXPLORER_SETTINGS_CATEGORY_ICON = ":/core/images/category_project.png";
206 const char * const PROJECTEXPLORER_SETTINGS_ID = "ProjectExplorer.ProjectExplorer";
209 const char * const TASK_CATEGORY_COMPILE = "Task.Category.Compile";
210 const char * const TASK_CATEGORY_BUILDSYSTEM = "Task.Category.Buildsystem";
213 const char * const PROJECT_WIZARD_CATEGORY = "I.Projects"; // (after Qt)
214 const char * const PROJECT_WIZARD_TR_SCOPE = "ProjectExplorer";
215 const char * const PROJECT_WIZARD_TR_CATEGORY = QT_TRANSLATE_NOOP("ProjectExplorer", "Other Project");
217 // Build step lists ids:
218 const char * const BUILDSTEPS_CLEAN = "ProjectExplorer.BuildSteps.Clean";
219 const char * const BUILDSTEPS_BUILD = "ProjectExplorer.BuildSteps.Build";
220 const char * const BUILDSTEPS_DEPLOY = "ProjectExplorer.BuildSteps.Deploy";
222 // Deploy Configuration id:
223 const char * const DEFAULT_DEPLOYCONFIGURATION_ID = "ProjectExplorer.DefaultDeployConfiguration";
225 // Run Configuration defaults:
226 const int QML_DEFAULT_DEBUG_SERVER_PORT = 3768;
228 } // namespace Constants
229 } // namespace ProjectExplorer
231 #endif // PROJECTEXPLORERCONSTANTS_H