Files
qt-creator/src/plugins/coreplugin/coreconstants.h

272 lines
13 KiB
C
Raw Normal View History

/**************************************************************************
2008-12-02 12:01:29 +01:00
**
** This file is part of Qt Creator
**
2011-01-11 16:28:15 +01:00
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
2008-12-02 12:01:29 +01:00
**
** Contact: Nokia Corporation (qt-info@nokia.com)
2008-12-02 12:01:29 +01:00
**
2010-12-17 16:01:08 +01:00
** No Commercial Usage
**
2010-12-17 16:01:08 +01:00
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Lesser General Public License Usage
**
** 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.
**
2010-12-17 16:01:08 +01:00
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
2008-12-02 12:01:29 +01:00
**
**************************************************************************/
2008-12-02 14:09:21 +01:00
2008-12-02 12:01:29 +01:00
#ifndef CORECONSTANTS_H
#define CORECONSTANTS_H
#include <QtCore/QtGlobal>
2008-12-02 12:01:29 +01:00
namespace Core {
namespace Constants {
#include "ide_version.h"
2008-12-02 12:01:29 +01:00
#define STRINGIFY_INTERNAL(x) #x
#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
#define IDE_VERSION STRINGIFY(IDE_VERSION_MAJOR) \
"." STRINGIFY(IDE_VERSION_MINOR) \
"." STRINGIFY(IDE_VERSION_RELEASE)
const char * const IDE_VERSION_LONG = IDE_VERSION;
const char * const IDE_AUTHOR = "Nokia Corporation";
2011-01-11 16:28:15 +01:00
const char * const IDE_YEAR = "2011";
2008-12-02 12:01:29 +01:00
#ifdef IDE_VERSION_DESCRIPTION
const char * const IDE_VERSION_DESCRIPTION_STR = STRINGIFY(IDE_VERSION_DESCRIPTION);
#else
const char * const IDE_VERSION_DESCRIPTION_STR = "";
#endif
2008-12-02 12:01:29 +01:00
#ifdef IDE_REVISION
const char * const IDE_REVISION_STR = STRINGIFY(IDE_REVISION);
#else
const char * const IDE_REVISION_STR = "";
#endif
#undef IDE_VERSION
#undef STRINGIFY
#undef STRINGIFY_INTERNAL
//modes
const char * const MODE_WELCOME = "Welcome";
const char * const MODE_WELCOME_TYPE = "Type.Welcome";
const char * const MODE_EDIT = "Edit";
const char * const MODE_EDIT_TYPE = "Type.Edit";
const char * const MODE_DESIGN = "Design";
const char * const MODE_DESIGN_TYPE = "Type.Design";
2008-12-02 12:01:29 +01:00
const int P_MODE_WELCOME = 100;
const int P_MODE_EDIT = 90;
const int P_MODE_DESIGN = 89;
2008-12-02 12:01:29 +01:00
const int P_MODE_OUTPUT = 10;
//menubar
const char * const MENU_BAR = "QtCreator.MenuBar";
//menus
const char * const M_FILE = "QtCreator.Menu.File";
const char * const M_FILE_OPEN = "QtCreator.Menu.File.Open";
const char * const M_FILE_NEW = "QtCreator.Menu.File.New";
const char * const M_FILE_RECENTFILES = "QtCreator.Menu.File.RecentFiles";
const char * const M_EDIT = "QtCreator.Menu.Edit";
const char * const M_EDIT_ADVANCED = "QtCreator.Menu.Edit.Advanced";
const char * const M_TOOLS = "QtCreator.Menu.Tools";
const char * const M_TOOLS_EXTERNAL = "QtCreator.Menu.Tools.External";
2008-12-02 12:01:29 +01:00
const char * const M_WINDOW = "QtCreator.Menu.Window";
const char * const M_WINDOW_PANES = "QtCreator.Menu.Window.Panes";
const char * const M_WINDOW_VIEWS = "QtCreator.Menu.Window.Views";
2008-12-02 12:01:29 +01:00
const char * const M_HELP = "QtCreator.Menu.Help";
//contexts
const char * const C_GLOBAL = "Global Context";
const char * const C_WELCOME_MODE = "Core.WelcomeMode";
const char * const C_EDIT_MODE = "Core.EditMode";
const char * const C_DESIGN_MODE = "Core.DesignMode";
2008-12-02 12:01:29 +01:00
const char * const C_EDITORMANAGER = "Core.EditorManager";
const char * const C_NAVIGATION_PANE = "Core.NavigationPane";
const char * const C_PROBLEM_PANE = "Core.ProblemPane";
2008-12-02 12:01:29 +01:00
//default editor kind
const char * const K_DEFAULT_TEXT_EDITOR_DISPLAY_NAME = QT_TRANSLATE_NOOP("OpenWith::Editors", "Plain Text Editor");
const char * const K_DEFAULT_TEXT_EDITOR_ID = "Core.PlainTextEditor";
const char * const K_DEFAULT_BINARY_EDITOR_ID = "Core.BinaryEditor";
2008-12-02 12:01:29 +01:00
//actions
const char * const UNDO = "QtCreator.Undo";
const char * const REDO = "QtCreator.Redo";
const char * const COPY = "QtCreator.Copy";
const char * const PASTE = "QtCreator.Paste";
const char * const CUT = "QtCreator.Cut";
const char * const SELECTALL = "QtCreator.SelectAll";
const char * const GOTO = "QtCreator.Goto";
const char * const NEW = "QtCreator.New";
const char * const OPEN = "QtCreator.Open";
const char * const OPEN_WITH = "QtCreator.OpenWith";
const char * const REVERTTOSAVED = "QtCreator.RevertToSaved";
const char * const SAVE = "QtCreator.Save";
const char * const SAVEAS = "QtCreator.SaveAs";
const char * const SAVEALL = "QtCreator.SaveAll";
const char * const PRINT = "QtCreator.Print";
const char * const EXIT = "QtCreator.Exit";
const char * const OPTIONS = "QtCreator.Options";
const char * const TOGGLE_SIDEBAR = "QtCreator.ToggleSidebar";
2009-01-19 14:12:39 +01:00
const char * const TOGGLE_FULLSCREEN = "QtCreator.ToggleFullScreen";
2008-12-02 12:01:29 +01:00
const char * const MINIMIZE_WINDOW = "QtCreator.MinimizeWindow";
const char * const ZOOM_WINDOW = "QtCreator.ZoomWindow";
const char * const SPLIT = "QtCreator.Split";
const char * const SPLIT_SIDE_BY_SIDE = "QtCreator.SplitSideBySide";
const char * const REMOVE_CURRENT_SPLIT = "QtCreator.RemoveCurrentSplit";
const char * const REMOVE_ALL_SPLITS = "QtCreator.RemoveAllSplits";
const char * const GOTO_OTHER_SPLIT = "QtCreator.GotoOtherSplit";
2008-12-02 12:01:29 +01:00
const char * const SAVEASDEFAULT = "QtCreator.SaveAsDefaultLayout";
const char * const RESTOREDEFAULT = "QtCreator.RestoreDefaultLayout";
const char * const CLOSE = "QtCreator.Close";
const char * const CLOSE_ALTERNATIVE = "QtCreator.Close_Alternative"; // temporary, see QTCREATORBUG-72
2008-12-02 12:01:29 +01:00
const char * const CLOSEALL = "QtCreator.CloseAll";
const char * const CLOSEOTHERS = "QtCreator.CloseOthers";
2008-12-02 12:01:29 +01:00
const char * const GOTONEXT = "QtCreator.GotoNext";
const char * const GOTOPREV = "QtCreator.GotoPrevious";
const char * const GOTONEXTINHISTORY = "QtCreator.GotoNextInHistory";
const char * const GOTOPREVINHISTORY = "QtCreator.GotoPreviousInHistory";
const char * const GO_BACK = "QtCreator.GoBack";
const char * const GO_FORWARD = "QtCreator.GoForward";
const char * const GOTOPREVIOUSGROUP = "QtCreator.GotoPreviousTabGroup";
const char * const GOTONEXTGROUP = "QtCreator.GotoNextTabGroup";
const char * const WINDOWSLIST = "QtCreator.WindowsList";
const char * const ABOUT_QTCREATOR = "QtCreator.AboutQtCreator";
2008-12-02 12:01:29 +01:00
const char * const ABOUT_PLUGINS = "QtCreator.AboutPlugins";
const char * const ABOUT_QT = "QtCreator.AboutQt";
const char * const S_RETURNTOEDITOR = "QtCreator.ReturnToEditor";
2009-01-16 10:38:55 +01:00
const char * const OPEN_IN_EXTERNAL_EDITOR = "QtCreator.OpenInExternalEditor";
2008-12-02 12:01:29 +01:00
// default groups
const char * const G_DEFAULT_ONE = "QtCreator.Group.Default.One";
const char * const G_DEFAULT_TWO = "QtCreator.Group.Default.Two";
const char * const G_DEFAULT_THREE = "QtCreator.Group.Default.Three";
// main menu bar groups
const char * const G_FILE = "QtCreator.Group.File";
const char * const G_EDIT = "QtCreator.Group.Edit";
const char * const G_VIEW = "QtCreator.Group.View";
const char * const G_TOOLS = "QtCreator.Group.Tools";
const char * const G_WINDOW = "QtCreator.Group.Window";
const char * const G_HELP = "QtCreator.Group.Help";
// file menu groups
const char * const G_FILE_NEW = "QtCreator.Group.File.New";
const char * const G_FILE_OPEN = "QtCreator.Group.File.Open";
const char * const G_FILE_PROJECT = "QtCreator.Group.File.Project";
const char * const G_FILE_SAVE = "QtCreator.Group.File.Save";
const char * const G_FILE_CLOSE = "QtCreator.Group.File.Close";
const char * const G_FILE_PRINT = "QtCreator.Group.File.Print";
const char * const G_FILE_OTHER = "QtCreator.Group.File.Other";
// edit menu groups
const char * const G_EDIT_UNDOREDO = "QtCreator.Group.Edit.UndoRedo";
const char * const G_EDIT_COPYPASTE = "QtCreator.Group.Edit.CopyPaste";
const char * const G_EDIT_SELECTALL = "QtCreator.Group.Edit.SelectAll";
const char * const G_EDIT_ADVANCED = "QtCreator.Group.Edit.Advanced";
2008-12-02 12:01:29 +01:00
const char * const G_EDIT_FIND = "QtCreator.Group.Edit.Find";
const char * const G_EDIT_OTHER = "QtCreator.Group.Edit.Other";
// advanced edit menu groups
const char * const G_EDIT_FORMAT = "QtCreator.Group.Edit.Format";
const char * const G_EDIT_COLLAPSING = "QtCreator.Group.Edit.Collapsing";
const char * const G_EDIT_BLOCKS = "QtCreator.Group.Edit.Blocks";
const char * const G_EDIT_FONT = "QtCreator.Group.Edit.Font";
const char * const G_EDIT_EDITOR = "QtCreator.Group.Edit.Editor";
const char * const G_TOOLS_OPTIONS = "QtCreator.Group.Tools.Options";
2008-12-02 12:01:29 +01:00
// window menu groups
const char * const G_WINDOW_SIZE = "QtCreator.Group.Window.Size";
const char * const G_WINDOW_PANES = "QtCreator.Group.Window.Panes";
const char * const G_WINDOW_VIEWS = "QtCreator.Group.Window.Views";
2008-12-02 12:01:29 +01:00
const char * const G_WINDOW_SPLIT = "QtCreator.Group.Window.Split";
const char * const G_WINDOW_NAVIGATE = "QtCreator.Group.Window.Navigate";
const char * const G_WINDOW_OTHER = "QtCreator.Group.Window.Other";
// help groups (global)
const char * const G_HELP_HELP = "QtCreator.Group.Help.Help";
const char * const G_HELP_ABOUT = "QtCreator.Group.Help.About";
const char * const ICON_MINUS = ":/core/images/minus.png";
const char * const ICON_PLUS = ":/core/images/plus.png";
const char * const ICON_NEWFILE = ":/core/images/filenew.png";
const char * const ICON_OPENFILE = ":/core/images/fileopen.png";
const char * const ICON_SAVEFILE = ":/core/images/filesave.png";
const char * const ICON_UNDO = ":/core/images/undo.png";
const char * const ICON_REDO = ":/core/images/redo.png";
const char * const ICON_COPY = ":/core/images/editcopy.png";
const char * const ICON_PASTE = ":/core/images/editpaste.png";
const char * const ICON_CUT = ":/core/images/editcut.png";
const char * const ICON_NEXT = ":/core/images/next.png";
const char * const ICON_PREV = ":/core/images/prev.png";
const char * const ICON_DIR = ":/core/images/dir.png";
const char * const ICON_CLEAN_PANE = ":/core/images/clean_pane_small.png";
const char * const ICON_CLEAR = ":/core/images/clear.png";
const char * const ICON_FIND = ":/core/images/find.png";
const char * const ICON_FINDNEXT = ":/core/images/findnext.png";
const char * const ICON_REPLACE = ":/core/images/replace.png";
const char * const ICON_RESET = ":/core/images/reset.png";
const char * const ICON_MAGNIFIER = ":/core/images/magnifier.png";
const char * const ICON_TOGGLE_SIDEBAR = ":/core/images/sidebaricon.png";
const char * const ICON_CLOSE = ":/core/images/closebutton.png";
const char * const ICON_CLOSE_DARK = ":/core/images/darkclosebutton.png";
const char * const ICON_SPLIT_HORIZONTAL = ":/core/images/splitbutton_horizontal.png";
const char * const ICON_FILTER = ":/core/images/filtericon.png";
const char * const ICON_LINK = ":/core/images/linkicon.png";
const char * const ICON_QTLOGO_32 = ":/core/images/qtcreator_logo_32.png";
const char * const ICON_QTLOGO_128 = ":/core/images/qtcreator_logo_128.png";
2008-12-02 12:01:29 +01:00
2010-01-13 18:44:15 +01:00
const char * const WIZARD_CATEGORY_QT = "R.Qt";
const char * const WIZARD_TR_CATEGORY_QT = QT_TRANSLATE_NOOP("Core", "Qt");
2008-12-02 12:01:29 +01:00
const char * const SETTINGS_CATEGORY_CORE = "A.Core";
const char * const SETTINGS_CATEGORY_CORE_ICON = ":/core/images/category_core.png";
const char * const SETTINGS_TR_CATEGORY_CORE = QT_TRANSLATE_NOOP("Core", "Environment");
const char * const SETTINGS_ID_ENVIRONMENT = "A.General";
const char * const SETTINGS_ID_SHORTCUTS = "B.Keyboard";
const char * const SETTINGS_ID_TOOLS = "C.ExternalTools";
const char * const SETTINGS_ID_MIMETYPES = "D.MimeTypes";
const char * const SETTINGS_DEFAULTTEXTENCODING = "General/DefaultFileEncoding";
const char * const ALL_FILES_FILTER = QT_TRANSLATE_NOOP("Core", "All Files (*)");
const char * const VARIABLE_SUPPORT_PROPERTY = "QtCreator.VariableSupport";
2010-02-24 16:44:23 +01:00
const int TARGET_ICON_SIZE = 32;
2008-12-02 12:01:29 +01:00
} // namespace Constants
} // namespace Core
#endif // CORECONSTANTS_H