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 CORECONSTANTS_H
35 #define CORECONSTANTS_H
37 #include <QtCore/QtGlobal>
42 #include "ide_version.h"
44 #define STRINGIFY_INTERNAL(x) #x
45 #define STRINGIFY(x) STRINGIFY_INTERNAL(x)
47 #define IDE_VERSION STRINGIFY(IDE_VERSION_MAJOR) \
48 "." STRINGIFY(IDE_VERSION_MINOR) \
49 "." STRINGIFY(IDE_VERSION_RELEASE)
51 const char * const IDE_VERSION_LONG = IDE_VERSION;
52 const char * const IDE_AUTHOR = "Nokia Corporation";
53 const char * const IDE_YEAR = "2011";
55 #ifdef IDE_VERSION_DESCRIPTION
56 const char * const IDE_VERSION_DESCRIPTION_STR = STRINGIFY(IDE_VERSION_DESCRIPTION);
58 const char * const IDE_VERSION_DESCRIPTION_STR = "";
62 const char * const IDE_REVISION_STR = STRINGIFY(IDE_REVISION);
64 const char * const IDE_REVISION_STR = "";
69 #undef STRINGIFY_INTERNAL
72 const char * const MODE_WELCOME = "Welcome";
73 const char * const MODE_WELCOME_TYPE = "Type.Welcome";
74 const char * const MODE_EDIT = "Edit";
75 const char * const MODE_EDIT_TYPE = "Type.Edit";
76 const char * const MODE_DESIGN = "Design";
77 const char * const MODE_DESIGN_TYPE = "Type.Design";
78 const int P_MODE_WELCOME = 100;
79 const int P_MODE_EDIT = 90;
80 const int P_MODE_DESIGN = 89;
83 const char * const MENU_BAR = "QtCreator.MenuBar";
86 const char * const M_FILE = "QtCreator.Menu.File";
87 const char * const M_FILE_RECENTFILES = "QtCreator.Menu.File.RecentFiles";
88 const char * const M_EDIT = "QtCreator.Menu.Edit";
89 const char * const M_EDIT_ADVANCED = "QtCreator.Menu.Edit.Advanced";
90 const char * const M_TOOLS = "QtCreator.Menu.Tools";
91 const char * const M_TOOLS_EXTERNAL = "QtCreator.Menu.Tools.External";
92 const char * const M_WINDOW = "QtCreator.Menu.Window";
93 const char * const M_WINDOW_PANES = "QtCreator.Menu.Window.Panes";
94 const char * const M_WINDOW_VIEWS = "QtCreator.Menu.Window.Views";
95 const char * const M_HELP = "QtCreator.Menu.Help";
98 const char * const C_GLOBAL = "Global Context";
99 const char * const C_WELCOME_MODE = "Core.WelcomeMode";
100 const char * const C_EDIT_MODE = "Core.EditMode";
101 const char * const C_DESIGN_MODE = "Core.DesignMode";
102 const char * const C_EDITORMANAGER = "Core.EditorManager";
103 const char * const C_NAVIGATION_PANE = "Core.NavigationPane";
104 const char * const C_PROBLEM_PANE = "Core.ProblemPane";
106 //default editor kind
107 const char * const K_DEFAULT_TEXT_EDITOR_DISPLAY_NAME = QT_TRANSLATE_NOOP("OpenWith::Editors", "Plain Text Editor");
108 const char * const K_DEFAULT_TEXT_EDITOR_ID = "Core.PlainTextEditor";
109 const char * const K_DEFAULT_BINARY_EDITOR_ID = "Core.BinaryEditor";
112 const char * const UNDO = "QtCreator.Undo";
113 const char * const REDO = "QtCreator.Redo";
114 const char * const COPY = "QtCreator.Copy";
115 const char * const PASTE = "QtCreator.Paste";
116 const char * const CUT = "QtCreator.Cut";
117 const char * const SELECTALL = "QtCreator.SelectAll";
119 const char * const GOTO = "QtCreator.Goto";
121 const char * const NEW = "QtCreator.New";
122 const char * const OPEN = "QtCreator.Open";
123 const char * const OPEN_WITH = "QtCreator.OpenWith";
124 const char * const REVERTTOSAVED = "QtCreator.RevertToSaved";
125 const char * const SAVE = "QtCreator.Save";
126 const char * const SAVEAS = "QtCreator.SaveAs";
127 const char * const SAVEALL = "QtCreator.SaveAll";
128 const char * const PRINT = "QtCreator.Print";
129 const char * const EXIT = "QtCreator.Exit";
131 const char * const OPTIONS = "QtCreator.Options";
132 const char * const TOGGLE_SIDEBAR = "QtCreator.ToggleSidebar";
133 const char * const TOGGLE_FULLSCREEN = "QtCreator.ToggleFullScreen";
136 const char * const MINIMIZE_WINDOW = "QtCreator.MinimizeWindow";
137 const char * const ZOOM_WINDOW = "QtCreator.ZoomWindow";
140 const char * const SPLIT = "QtCreator.Split";
141 const char * const SPLIT_SIDE_BY_SIDE = "QtCreator.SplitSideBySide";
142 const char * const REMOVE_CURRENT_SPLIT = "QtCreator.RemoveCurrentSplit";
143 const char * const REMOVE_ALL_SPLITS = "QtCreator.RemoveAllSplits";
144 const char * const GOTO_OTHER_SPLIT = "QtCreator.GotoOtherSplit";
145 const char * const CLOSE = "QtCreator.Close";
147 const char * const CLOSE_ALTERNATIVE = "QtCreator.Close_Alternative"; // temporary, see QTCREATORBUG-72
149 const char * const CLOSEALL = "QtCreator.CloseAll";
150 const char * const CLOSEOTHERS = "QtCreator.CloseOthers";
151 const char * const GOTONEXT = "QtCreator.GotoNext";
152 const char * const GOTOPREV = "QtCreator.GotoPrevious";
153 const char * const GOTONEXTINHISTORY = "QtCreator.GotoNextInHistory";
154 const char * const GOTOPREVINHISTORY = "QtCreator.GotoPreviousInHistory";
155 const char * const GO_BACK = "QtCreator.GoBack";
156 const char * const GO_FORWARD = "QtCreator.GoForward";
157 const char * const ABOUT_QTCREATOR = "QtCreator.AboutQtCreator";
158 const char * const ABOUT_PLUGINS = "QtCreator.AboutPlugins";
159 const char * const S_RETURNTOEDITOR = "QtCreator.ReturnToEditor";
162 const char * const G_DEFAULT_ONE = "QtCreator.Group.Default.One";
163 const char * const G_DEFAULT_TWO = "QtCreator.Group.Default.Two";
164 const char * const G_DEFAULT_THREE = "QtCreator.Group.Default.Three";
166 // main menu bar groups
167 const char * const G_FILE = "QtCreator.Group.File";
168 const char * const G_EDIT = "QtCreator.Group.Edit";
169 const char * const G_VIEW = "QtCreator.Group.View";
170 const char * const G_TOOLS = "QtCreator.Group.Tools";
171 const char * const G_WINDOW = "QtCreator.Group.Window";
172 const char * const G_HELP = "QtCreator.Group.Help";
175 const char * const G_FILE_NEW = "QtCreator.Group.File.New";
176 const char * const G_FILE_OPEN = "QtCreator.Group.File.Open";
177 const char * const G_FILE_PROJECT = "QtCreator.Group.File.Project";
178 const char * const G_FILE_SAVE = "QtCreator.Group.File.Save";
179 const char * const G_FILE_CLOSE = "QtCreator.Group.File.Close";
180 const char * const G_FILE_PRINT = "QtCreator.Group.File.Print";
181 const char * const G_FILE_OTHER = "QtCreator.Group.File.Other";
184 const char * const G_EDIT_UNDOREDO = "QtCreator.Group.Edit.UndoRedo";
185 const char * const G_EDIT_COPYPASTE = "QtCreator.Group.Edit.CopyPaste";
186 const char * const G_EDIT_SELECTALL = "QtCreator.Group.Edit.SelectAll";
187 const char * const G_EDIT_ADVANCED = "QtCreator.Group.Edit.Advanced";
189 const char * const G_EDIT_FIND = "QtCreator.Group.Edit.Find";
190 const char * const G_EDIT_OTHER = "QtCreator.Group.Edit.Other";
192 // advanced edit menu groups
194 const char * const G_EDIT_FORMAT = "QtCreator.Group.Edit.Format";
195 const char * const G_EDIT_COLLAPSING = "QtCreator.Group.Edit.Collapsing";
196 const char * const G_EDIT_BLOCKS = "QtCreator.Group.Edit.Blocks";
197 const char * const G_EDIT_FONT = "QtCreator.Group.Edit.Font";
198 const char * const G_EDIT_EDITOR = "QtCreator.Group.Edit.Editor";
200 const char * const G_TOOLS_OPTIONS = "QtCreator.Group.Tools.Options";
202 // window menu groups
203 const char * const G_WINDOW_SIZE = "QtCreator.Group.Window.Size";
204 const char * const G_WINDOW_PANES = "QtCreator.Group.Window.Panes";
205 const char * const G_WINDOW_VIEWS = "QtCreator.Group.Window.Views";
206 const char * const G_WINDOW_SPLIT = "QtCreator.Group.Window.Split";
207 const char * const G_WINDOW_NAVIGATE = "QtCreator.Group.Window.Navigate";
208 const char * const G_WINDOW_OTHER = "QtCreator.Group.Window.Other";
210 // help groups (global)
211 const char * const G_HELP_HELP = "QtCreator.Group.Help.Help";
212 const char * const G_HELP_ABOUT = "QtCreator.Group.Help.About";
214 const char * const ICON_MINUS = ":/core/images/minus.png";
215 const char * const ICON_PLUS = ":/core/images/plus.png";
216 const char * const ICON_NEWFILE = ":/core/images/filenew.png";
217 const char * const ICON_OPENFILE = ":/core/images/fileopen.png";
218 const char * const ICON_SAVEFILE = ":/core/images/filesave.png";
219 const char * const ICON_UNDO = ":/core/images/undo.png";
220 const char * const ICON_REDO = ":/core/images/redo.png";
221 const char * const ICON_COPY = ":/core/images/editcopy.png";
222 const char * const ICON_PASTE = ":/core/images/editpaste.png";
223 const char * const ICON_CUT = ":/core/images/editcut.png";
224 const char * const ICON_NEXT = ":/core/images/next.png";
225 const char * const ICON_PREV = ":/core/images/prev.png";
226 const char * const ICON_DIR = ":/core/images/dir.png";
227 const char * const ICON_CLEAN_PANE = ":/core/images/clean_pane_small.png";
228 const char * const ICON_CLEAR = ":/core/images/clear.png";
229 const char * const ICON_RESET = ":/core/images/reset.png";
230 const char * const ICON_MAGNIFIER = ":/core/images/magnifier.png";
231 const char * const ICON_TOGGLE_SIDEBAR = ":/core/images/sidebaricon.png";
232 const char * const ICON_CLOSE = ":/core/images/closebutton.png";
233 const char * const ICON_CLOSE_DARK = ":/core/images/darkclosebutton.png";
234 const char * const ICON_SPLIT_HORIZONTAL = ":/core/images/splitbutton_horizontal.png";
235 const char * const ICON_FILTER = ":/core/images/filtericon.png";
236 const char * const ICON_LINK = ":/core/images/linkicon.png";
237 const char * const ICON_QTLOGO_32 = ":/core/images/qtcreator_logo_32.png";
238 const char * const ICON_QTLOGO_128 = ":/core/images/qtcreator_logo_128.png";
240 const char * const WIZARD_CATEGORY_QT = "R.Qt";
241 const char * const WIZARD_TR_CATEGORY_QT = QT_TRANSLATE_NOOP("Core", "Qt");
243 const char * const SETTINGS_CATEGORY_CORE = "A.Core";
244 const char * const SETTINGS_CATEGORY_CORE_ICON = ":/core/images/category_core.png";
245 const char * const SETTINGS_TR_CATEGORY_CORE = QT_TRANSLATE_NOOP("Core", "Environment");
246 const char * const SETTINGS_ID_ENVIRONMENT = "A.General";
247 const char * const SETTINGS_ID_SHORTCUTS = "B.Keyboard";
248 const char * const SETTINGS_ID_TOOLS = "C.ExternalTools";
249 const char * const SETTINGS_ID_MIMETYPES = "D.MimeTypes";
251 const char * const SETTINGS_DEFAULTTEXTENCODING = "General/DefaultFileEncoding";
253 const char * const ALL_FILES_FILTER = QT_TRANSLATE_NOOP("Core", "All Files (*)");
255 const char * const VARIABLE_SUPPORT_PROPERTY = "QtCreator.VariableSupport";
257 const int TARGET_ICON_SIZE = 32;
259 } // namespace Constants
262 #endif // CORECONSTANTS_H