2009-02-25 09:15:00 +01:00
|
|
|
/**************************************************************************
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2010-03-05 11:25:49 +01:00
|
|
|
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2009-06-17 00:01:27 +10:00
|
|
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
** Commercial Usage
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
** Licensees holding valid Qt Commercial licenses may use this file in
|
|
|
|
|
** accordance with the Qt Commercial License Agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and Nokia.
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
** GNU Lesser General Public License Usage
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
|
|
|
** General Public License version 2.1 as published by the Free Software
|
|
|
|
|
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
|
|
|
** packaging of this file. Please review the following information to
|
|
|
|
|
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
|
|
|
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
** If you are unsure which license is appropriate for your use, please
|
2009-08-14 09:30:56 +02:00
|
|
|
** contact the sales department at http://qt.nokia.com/contact.
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
**************************************************************************/
|
2008-12-02 16:19:05 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
#ifndef PROJECTEXPLORERCONSTANTS_H
|
|
|
|
|
#define PROJECTEXPLORERCONSTANTS_H
|
|
|
|
|
|
2009-11-27 10:33:24 +01:00
|
|
|
#include <QtCore/QtGlobal>
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
namespace ProjectExplorer {
|
|
|
|
|
namespace Constants {
|
|
|
|
|
|
|
|
|
|
// modes and their priorities
|
2009-02-20 17:22:16 +01:00
|
|
|
const char * const MODE_SESSION = "Project";
|
2008-12-02 12:01:29 +01:00
|
|
|
const int P_MODE_SESSION = 85;
|
|
|
|
|
|
|
|
|
|
// actions
|
|
|
|
|
const char * const NEWSESSION = "ProjectExplorer.NewSession";
|
|
|
|
|
const char * const NEWPROJECT = "ProjectExplorer.NewProject";
|
|
|
|
|
const char * const LOAD = "ProjectExplorer.Load";
|
|
|
|
|
const char * const UNLOAD = "ProjectExplorer.Unload";
|
|
|
|
|
const char * const CLEARSESSION = "ProjectExplorer.ClearSession";
|
2009-05-13 12:18:26 +02:00
|
|
|
const char * const BUILDPROJECTONLY = "ProjectExplorer.BuildProjectOnly";
|
2008-12-02 12:01:29 +01:00
|
|
|
const char * const BUILD = "ProjectExplorer.Build";
|
2010-03-26 16:10:35 +01:00
|
|
|
const char * const BUILDCM = "ProjectExplorer.BuildCM";
|
2008-12-02 12:01:29 +01:00
|
|
|
const char * const BUILDSESSION = "ProjectExplorer.BuildSession";
|
2009-05-13 12:18:26 +02:00
|
|
|
const char * const REBUILDPROJECTONLY = "ProjectExplorer.RebuildProjectOnly";
|
2008-12-02 12:01:29 +01:00
|
|
|
const char * const REBUILD = "ProjectExplorer.Rebuild";
|
2010-03-26 16:10:35 +01:00
|
|
|
const char * const REBUILDCM = "ProjectExplorer.RebuildCM";
|
2008-12-02 12:01:29 +01:00
|
|
|
const char * const REBUILDSESSION = "ProjectExplorer.RebuildSession";
|
2009-05-13 12:18:26 +02:00
|
|
|
const char * const CLEANPROJECTONLY = "ProjectExplorer.CleanProjectOnly";
|
2008-12-02 12:01:29 +01:00
|
|
|
const char * const CLEAN = "ProjectExplorer.Clean";
|
2010-03-26 16:10:35 +01:00
|
|
|
const char * const CLEANCM = "ProjectExplorer.CleanCM";
|
2008-12-02 12:01:29 +01:00
|
|
|
const char * const CLEANSESSION = "ProjectExplorer.CleanSession";
|
2009-05-13 12:18:26 +02:00
|
|
|
const char * const BUILDPROJECTONLYMENU = "ProjectExplorer.BuildProjectOnlyMenu";
|
2008-12-02 12:01:29 +01:00
|
|
|
const char * const BUILDCONFIGURATIONMENU = "ProjectExplorer.BuildConfigurationMenu";
|
|
|
|
|
const char * const CANCELBUILD = "ProjectExplorer.CancelBuild";
|
|
|
|
|
const char * const RUNCONFIGURATIONMENU = "ProjectExplorer.RunConfigurationMenu";
|
2009-01-09 12:58:02 +01:00
|
|
|
const char * const RUN = "ProjectExplorer.Run";
|
2009-01-16 12:22:43 +01:00
|
|
|
const char * const RUNCONTEXTMENU = "ProjectExplorer.RunContextMenu";
|
2009-01-09 12:58:02 +01:00
|
|
|
const char * const STOP = "ProjectExplorer.Stop";
|
2008-12-02 12:01:29 +01:00
|
|
|
const char * const DEBUG = "ProjectExplorer.Debug";
|
|
|
|
|
const char * const DEPENDENCIES = "ProjectExplorer.Dependencies";
|
|
|
|
|
const char * const FINDINALLPROJECTS = "ProjectExplorer.FindInAllProjects";
|
|
|
|
|
const char * const SHOWPROPERTIES = "ProjectExplorer.ShowProperties";
|
|
|
|
|
const char * const ADDNEWFILE = "ProjectExplorer.AddNewFile";
|
|
|
|
|
const char * const ADDEXISTINGFILES = "ProjectExplorer.AddExistingFiles";
|
|
|
|
|
const char * const OPENFILE = "ProjectExplorer.OpenFile";
|
2009-09-02 11:05:33 +02:00
|
|
|
const char * const SHOWINGRAPHICALSHELL = "ProjectExplorer.ShowInGraphicalShell";
|
2010-01-04 16:31:28 +01:00
|
|
|
const char * const OPENTERMIANLHERE = "ProjectExplorer.OpenTerminalHere";
|
2008-12-02 12:01:29 +01:00
|
|
|
const char * const REMOVEFILE = "ProjectExplorer.RemoveFile";
|
|
|
|
|
const char * const RENAMEFILE = "ProjectExplorer.RenameFile";
|
|
|
|
|
|
2010-06-18 11:09:00 +02:00
|
|
|
const char * const SHOW_TASK_IN_EDITOR = "ProjectExplorer.ShowTaskInEditor";
|
2010-06-18 11:18:13 +02:00
|
|
|
const char * const VCS_ANNOTATE_TASK = "ProjectExplorer.VcsAnnotateTask";
|
2010-06-18 11:09:00 +02:00
|
|
|
|
2009-01-09 12:58:02 +01:00
|
|
|
// Run modes
|
2008-12-02 12:01:29 +01:00
|
|
|
const char * const RUNMODE = "ProjectExplorer.RunMode";
|
|
|
|
|
const char * const DEBUGMODE = "ProjectExplorer.DebugMode";
|
|
|
|
|
|
2010-02-08 15:50:06 +01:00
|
|
|
const char * const SELECTTARGET = "ProjectExplorer.SelectTarget";
|
|
|
|
|
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
// action priorities
|
|
|
|
|
const int P_ACTION_RUN = 100;
|
|
|
|
|
const int P_ACTION_DEBUG = 90;
|
|
|
|
|
const int P_ACTION_BUILDSESSION = 80;
|
|
|
|
|
|
|
|
|
|
// context
|
|
|
|
|
const char * const C_PROJECTEXPLORER = "Project Explorer";
|
|
|
|
|
|
|
|
|
|
// languages
|
|
|
|
|
const char * const LANG_CXX = "CXX";
|
|
|
|
|
|
|
|
|
|
// menus
|
|
|
|
|
const char * const M_RECENTPROJECTS = "ProjectExplorer.Menu.Recent";
|
|
|
|
|
const char * const M_BUILDPROJECT = "ProjectExplorer.Menu.Build";
|
|
|
|
|
const char * const M_DEBUG = "ProjectExplorer.Menu.Debug";
|
2009-06-08 19:28:28 +02:00
|
|
|
const char * const M_DEBUG_STARTDEBUGGING = "ProjectExplorer.Menu.Debug.StartDebugging";
|
2008-12-02 12:01:29 +01:00
|
|
|
const char * const M_SESSION = "ProjectExplorer.Menu.Session";
|
|
|
|
|
|
|
|
|
|
// toolbars
|
|
|
|
|
const char * const T_BUILDPROJECT = "ProjectExplorer.ToolBar.Build";
|
|
|
|
|
|
|
|
|
|
// menu groups
|
|
|
|
|
const char * const G_BUILD_SESSION = "ProjectExplorer.Group.BuildSession";
|
|
|
|
|
const char * const G_BUILD_PROJECT = "ProjectExplorer.Group.Build";
|
|
|
|
|
const char * const G_BUILD_OTHER = "ProjectExplorer.Group.Other";
|
|
|
|
|
const char * const G_BUILD_RUN = "ProjectExplorer.Group.Run";
|
|
|
|
|
const char * const G_BUILD_CANCEL = "ProjectExplorer.Group.BuildCancel";
|
|
|
|
|
|
|
|
|
|
// toolbar groups
|
|
|
|
|
const char * const G_TOOLBAR_CUSTOM = "ProjectExplorer.ToolBarGroup.Custom";
|
|
|
|
|
const char * const G_TOOLBAR_BUILD = "ProjectExplorer.ToolBarGroup.Build";
|
|
|
|
|
const char * const G_TOOLBAR_RUN = "ProjectExplorer.ToolBarGroup.Run";
|
|
|
|
|
const char * const G_TOOLBAR_OTHER = "ProjectExplorer.ToolBarGroup.Other";
|
|
|
|
|
|
|
|
|
|
// context menus
|
|
|
|
|
const char * const M_SESSIONCONTEXT = "Project.Menu.Session";
|
|
|
|
|
const char * const M_PROJECTCONTEXT = "Project.Menu.Project";
|
|
|
|
|
const char * const M_SUBPROJECTCONTEXT = "Project.Menu.SubProject";
|
|
|
|
|
const char * const M_FOLDERCONTEXT = "Project.Menu.Folder";
|
|
|
|
|
const char * const M_FILECONTEXT = "Project.Menu.File";
|
|
|
|
|
const char * const M_OPENFILEWITHCONTEXT = "Project.Menu.File.OpenWith";
|
|
|
|
|
|
|
|
|
|
// context menu groups
|
|
|
|
|
const char * const G_SESSION_BUILD = "Session.Group.Build";
|
|
|
|
|
const char * const G_SESSION_FILES = "Session.Group.Files";
|
|
|
|
|
const char * const G_SESSION_OTHER = "Session.Group.Other";
|
|
|
|
|
const char * const G_SESSION_CONFIG = "Session.Group.Config";
|
|
|
|
|
|
|
|
|
|
const char * const G_PROJECT_OPEN = "Project.Group.Open";
|
|
|
|
|
const char * const G_PROJECT_NEW = "Project.Group.New";
|
|
|
|
|
const char * const G_PROJECT_FILES = "Project.Group.Files";
|
|
|
|
|
const char * const G_PROJECT_BUILD = "Project.Group.Build";
|
|
|
|
|
const char * const G_PROJECT_OTHER = "Project.Group.Other";
|
|
|
|
|
const char * const G_PROJECT_RUN = "Project.Group.Run";
|
|
|
|
|
const char * const G_PROJECT_CONFIG = "Project.Group.Config";
|
|
|
|
|
|
|
|
|
|
const char * const G_FOLDER_FILES = "ProjectFolder.Group.Files";
|
|
|
|
|
const char * const G_FOLDER_OTHER = "ProjectFolder.Group.Other";
|
|
|
|
|
const char * const G_FOLDER_CONFIG = "ProjectFolder.Group.Config";
|
|
|
|
|
|
|
|
|
|
const char * const G_FILE_OPEN = "ProjectFile.Group.Open";
|
|
|
|
|
const char * const G_FILE_OTHER = "ProjectFile.Group.Other";
|
|
|
|
|
const char * const G_FILE_CONFIG = "ProjectFile.Group.Config";
|
|
|
|
|
|
2010-01-07 18:17:24 +01:00
|
|
|
// file id
|
|
|
|
|
const char * const FILE_FACTORY_ID = "ProjectExplorer.FileFactoryId";
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
// wizard kind
|
|
|
|
|
const char * const WIZARD_TYPE_PROJECT = "ProjectExplorer.WizardType.Project";
|
|
|
|
|
|
|
|
|
|
// icons
|
|
|
|
|
const char * const ICON_BUILD = ":/projectexplorer/images/build.png";
|
|
|
|
|
const char * const ICON_BUILD_SMALL = ":/projectexplorer/images/build_small.png";
|
|
|
|
|
const char * const ICON_CLEAN = ":/projectexplorer/images/clean.png";
|
|
|
|
|
const char * const ICON_CLEAN_SMALL = ":/projectexplorer/images/clean_small.png";
|
|
|
|
|
const char * const ICON_REBUILD = ":/projectexplorer/images/rebuild.png";
|
|
|
|
|
const char * const ICON_REBUILD_SMALL = ":/projectexplorer/images/rebuild_small.png";
|
|
|
|
|
const char * const ICON_RUN = ":/projectexplorer/images/run.png";
|
|
|
|
|
const char * const ICON_RUN_SMALL = ":/projectexplorer/images/run_small.png";
|
|
|
|
|
const char * const ICON_SESSION = ":/projectexplorer/images/session.png";
|
|
|
|
|
const char * const ICON_DEBUG = ":/projectexplorer/images/debugger_start.png";
|
|
|
|
|
const char * const ICON_DEBUG_SMALL = ":/projectexplorer/images/debugger_start_small.png";
|
|
|
|
|
const char * const ICON_CLOSETAB = ":/projectexplorer/images/closetab.png";
|
|
|
|
|
const char * const ICON_STOP = ":/projectexplorer/images/stop.png";
|
|
|
|
|
|
|
|
|
|
// find filters
|
|
|
|
|
const char * const FIND_CUR_PROJECT = "ProjectExplorer.FindFilter.CurrentProject";
|
|
|
|
|
const char * const FIND_ALL_PROJECTS = "ProjectExplorer.FindFilter.AllProjects";
|
|
|
|
|
|
|
|
|
|
const char * const TASK_BUILD = "ProjectExplorer.Task.Build";
|
|
|
|
|
const char * const SESSIONFILE_MIMETYPE = "application/vnd.nokia.xml.qt.creator.session";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const char * const PROFILE_MIMETYPE = "application/vnd.nokia.qt.qmakeprofile";
|
|
|
|
|
const char * const C_SOURCE_MIMETYPE = "text/x-csrc";
|
|
|
|
|
const char * const C_HEADER_MIMETYPE = "text/x-chdr";
|
|
|
|
|
const char * const CPP_SOURCE_MIMETYPE = "text/x-c++src";
|
|
|
|
|
const char * const CPP_HEADER_MIMETYPE = "text/x-c++hdr";
|
|
|
|
|
const char * const FORM_MIMETYPE = "application/x-designer";
|
|
|
|
|
const char * const RESOURCE_MIMETYPE = "application/vnd.nokia.xml.qt.resource";
|
|
|
|
|
|
2009-05-05 18:21:40 +02:00
|
|
|
// settings page
|
2009-11-27 16:12:12 +01:00
|
|
|
const char * const PROJECTEXPLORER_SETTINGS_CATEGORY = "K.ProjectExplorer";
|
2010-03-26 17:41:10 +01:00
|
|
|
const char * const PROJECTEXPLORER_SETTINGS_TR_CATEGORY = QT_TRANSLATE_NOOP("ProjectExplorer", "Projects");
|
2010-03-26 17:34:10 +01:00
|
|
|
const char * const PROJECTEXPLORER_SETTINGS_CATEGORY_ICON = ":/core/images/category_project.png";
|
2009-11-27 16:12:12 +01:00
|
|
|
const char * const PROJECTEXPLORER_SETTINGS_ID = "ProjectExplorer.ProjectExplorer";
|
2009-05-05 18:21:40 +02:00
|
|
|
|
2009-11-11 09:54:13 +01:00
|
|
|
// task categories
|
|
|
|
|
const char * const TASK_CATEGORY_COMPILE = "Task.Category.Compile";
|
2009-11-12 15:54:45 +01:00
|
|
|
const char * const TASK_CATEGORY_BUILDSYSTEM = "Task.Category.Buildsystem";
|
2009-11-11 09:54:13 +01:00
|
|
|
|
2009-11-27 10:33:24 +01:00
|
|
|
// Wizard category
|
2010-01-13 18:44:15 +01:00
|
|
|
const char * const PROJECT_WIZARD_CATEGORY = "I.Projects"; // (after Qt)
|
|
|
|
|
const char * const PROJECT_WIZARD_TR_SCOPE = "ProjectExplorer";
|
|
|
|
|
const char * const PROJECT_WIZARD_TR_CATEGORY = QT_TRANSLATE_NOOP("ProjectExplorer", "Other Project");
|
2009-11-27 10:33:24 +01:00
|
|
|
|
2008-12-02 16:19:05 +01:00
|
|
|
} // namespace Constants
|
|
|
|
|
} // namespace ProjectExplorer
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2008-12-02 16:19:05 +01:00
|
|
|
#endif // PROJECTEXPLORERCONSTANTS_H
|