2010-02-04 00:52:51 +01:00
|
|
|
/**************************************************************************
|
|
|
|
**
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
**
|
|
|
|
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
|
|
**
|
|
|
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
|
|
|
**
|
|
|
|
** Commercial Usage
|
|
|
|
**
|
|
|
|
** 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.
|
|
|
|
**
|
|
|
|
** 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.
|
|
|
|
**
|
|
|
|
** If you are unsure which license is appropriate for your use, please
|
|
|
|
** contact the sales department at http://qt.nokia.com/contact.
|
|
|
|
**
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
#ifndef CORECONSTANTS_H
|
|
|
|
#define CORECONSTANTS_H
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
namespace Constants {
|
|
|
|
|
2010-02-28 11:29:40 +01:00
|
|
|
#define GCS_VERSION_MAJOR 0
|
|
|
|
#define GCS_VERSION_MINOR 0
|
2010-02-04 00:52:51 +01:00
|
|
|
#define GCS_VERSION_RELEASE 1
|
|
|
|
|
|
|
|
#define STRINGIFY_INTERNAL(x) #x
|
|
|
|
#define STRINGIFY(x) STRINGIFY_INTERNAL(x)
|
|
|
|
|
|
|
|
#define GCS_VERSION STRINGIFY(GCS_VERSION_MAJOR) \
|
|
|
|
"." STRINGIFY(GCS_VERSION_MINOR) \
|
|
|
|
"." STRINGIFY(GCS_VERSION_RELEASE)
|
|
|
|
|
|
|
|
const char * const GCS_VERSION_LONG = GCS_VERSION;
|
2010-02-04 05:52:32 +01:00
|
|
|
const char * const GCS_AUTHOR = "OpenPilot Project";
|
|
|
|
const char * const GCS_YEAR = "2010";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
#ifdef GCS_REVISION
|
|
|
|
const char * const GCS_REVISION_STR = STRINGIFY(GCS_REVISION);
|
|
|
|
#else
|
|
|
|
const char * const GCS_REVISION_STR = "";
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#undef GCS_VERSION
|
|
|
|
#undef STRINGIFY
|
|
|
|
#undef STRINGIFY_INTERNAL
|
|
|
|
|
|
|
|
//modes
|
|
|
|
const char * const MODE_WELCOME = "Welcome";
|
|
|
|
const int P_MODE_WELCOME = 100;
|
|
|
|
|
|
|
|
//menubar
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const MENU_BAR = "GCS.MenuBar";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
//menus
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const M_FILE = "GCS.Menu.File";
|
|
|
|
const char * const M_FILE_OPEN = "GCS.Menu.File.Open";
|
|
|
|
const char * const M_FILE_NEW = "GCS.Menu.File.New";
|
|
|
|
const char * const M_FILE_RECENTFILES = "GCS.Menu.File.RecentFiles";
|
|
|
|
const char * const M_EDIT = "GCS.Menu.Edit";
|
|
|
|
const char * const M_EDIT_ADVANCED = "GCS.Menu.Edit.Advanced";
|
|
|
|
const char * const M_TOOLS = "GCS.Menu.Tools";
|
|
|
|
const char * const M_WINDOW = "GCS.Menu.Window";
|
|
|
|
const char * const M_WINDOW_PANES = "GCS.Menu.Window.Panes";
|
|
|
|
const char * const M_HELP = "GCS.Menu.Help";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
//contexts
|
|
|
|
const char * const C_GLOBAL = "Global Context";
|
|
|
|
const int C_GLOBAL_ID = 0;
|
|
|
|
const char * const C_WELCOME_MODE = "Core.WelcomeMode";
|
|
|
|
const char * const C_NAVIGATION_PANE = "Core.NavigationPane";
|
|
|
|
const char * const C_PROBLEM_PANE = "Core.ProblemPane";
|
|
|
|
|
|
|
|
//default editor kind
|
|
|
|
const char * const K_DEFAULT_TEXT_EDITOR = QT_TRANSLATE_NOOP("OpenWith::Editors", "Plain Text Editor");
|
|
|
|
const char * const K_DEFAULT_BINARY_EDITOR = QT_TRANSLATE_NOOP("OpenWith::Editors", "Binary Editor");
|
|
|
|
|
|
|
|
//actions
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const UNDO = "GCS.Undo";
|
|
|
|
const char * const REDO = "GCS.Redo";
|
|
|
|
const char * const COPY = "GCS.Copy";
|
|
|
|
const char * const PASTE = "GCS.Paste";
|
|
|
|
const char * const CUT = "GCS.Cut";
|
|
|
|
const char * const SELECTALL = "GCS.SelectAll";
|
|
|
|
|
|
|
|
const char * const NEW = "GCS.New";
|
|
|
|
const char * const OPEN = "GCS.Open";
|
|
|
|
const char * const OPEN_WITH = "GCS.OpenWith";
|
|
|
|
const char * const REVERTTOSAVED = "GCS.RevertToSaved";
|
|
|
|
const char * const SAVE = "GCS.Save";
|
|
|
|
const char * const SAVEAS = "GCS.SaveAs";
|
|
|
|
const char * const SAVEALL = "GCS.SaveAll";
|
|
|
|
const char * const EXIT = "GCS.Exit";
|
|
|
|
|
|
|
|
const char * const OPTIONS = "GCS.Options";
|
|
|
|
const char * const TOGGLE_SIDEBAR = "GCS.ToggleSidebar";
|
|
|
|
const char * const TOGGLE_FULLSCREEN = "GCS.ToggleFullScreen";
|
|
|
|
|
|
|
|
const char * const MINIMIZE_WINDOW = "GCS.MinimizeWindow";
|
|
|
|
const char * const ZOOM_WINDOW = "GCS.ZoomWindow";
|
|
|
|
|
|
|
|
const char * const SPLIT = "GCS.Split";
|
|
|
|
const char * const SPLIT_SIDE_BY_SIDE = "GCS.SplitSideBySide";
|
|
|
|
const char * const REMOVE_CURRENT_SPLIT = "GCS.RemoveCurrentSplit";
|
|
|
|
const char * const REMOVE_ALL_SPLITS = "GCS.RemoveAllSplits";
|
|
|
|
const char * const GOTO_OTHER_SPLIT = "GCS.GotoOtherSplit";
|
|
|
|
const char * const SAVEASDEFAULT = "GCS.SaveAsDefaultLayout";
|
|
|
|
const char * const RESTOREDEFAULT = "GCS.RestoreDefaultLayout";
|
|
|
|
const char * const CLOSE = "GCS.Close";
|
|
|
|
const char * const CLOSEALL = "GCS.CloseAll";
|
|
|
|
const char * const CLOSEOTHERS = "GCS.CloseOthers";
|
|
|
|
const char * const GOTONEXT = "GCS.GotoNext";
|
|
|
|
const char * const GOTOPREV = "GCS.GotoPrevious";
|
|
|
|
const char * const GOTONEXTINHISTORY = "GCS.GotoNextInHistory";
|
|
|
|
const char * const GOTOPREVINHISTORY = "GCS.GotoPreviousInHistory";
|
|
|
|
const char * const GO_BACK = "GCS.GoBack";
|
|
|
|
const char * const GO_FORWARD = "GCS.GoForward";
|
|
|
|
const char * const GOTOPREVIOUSGROUP = "GCS.GotoPreviousTabGroup";
|
|
|
|
const char * const GOTONEXTGROUP = "GCS.GotoNextTabGroup";
|
|
|
|
const char * const WINDOWSLIST = "GCS.WindowsList";
|
|
|
|
const char * const ABOUT_OPENPILOTGCS = "GCS.AboutOpenPilotGCS";
|
|
|
|
const char * const ABOUT_PLUGINS = "GCS.AboutPlugins";
|
|
|
|
const char * const ABOUT_QT = "GCS.AboutQt";
|
|
|
|
const char * const S_RETURNTOEDITOR = "GCS.ReturnToEditor";
|
|
|
|
const char * const OPEN_IN_EXTERNAL_EDITOR = "GCS.OpenInExternalEditor";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
// default groups
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const G_DEFAULT_ONE = "GCS.Group.Default.One";
|
|
|
|
const char * const G_DEFAULT_TWO = "GCS.Group.Default.Two";
|
|
|
|
const char * const G_DEFAULT_THREE = "GCS.Group.Default.Three";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
// main menu bar groups
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const G_FILE = "GCS.Group.File";
|
|
|
|
const char * const G_EDIT = "GCS.Group.Edit";
|
|
|
|
const char * const G_VIEW = "GCS.Group.View";
|
|
|
|
const char * const G_TOOLS = "GCS.Group.Tools";
|
|
|
|
const char * const G_WINDOW = "GCS.Group.Window";
|
|
|
|
const char * const G_HELP = "GCS.Group.Help";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
// file menu groups
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const G_FILE_NEW = "GCS.Group.File.New";
|
|
|
|
const char * const G_FILE_OPEN = "GCS.Group.File.Open";
|
|
|
|
const char * const G_FILE_PROJECT = "GCS.Group.File.Project";
|
|
|
|
const char * const G_FILE_SAVE = "GCS.Group.File.Save";
|
|
|
|
const char * const G_FILE_CLOSE = "GCS.Group.File.Close";
|
|
|
|
const char * const G_FILE_OTHER = "GCS.Group.File.Other";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
// edit menu groups
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const G_EDIT_UNDOREDO = "GCS.Group.Edit.UndoRedo";
|
|
|
|
const char * const G_EDIT_COPYPASTE = "GCS.Group.Edit.CopyPaste";
|
|
|
|
const char * const G_EDIT_SELECTALL = "GCS.Group.Edit.SelectAll";
|
|
|
|
const char * const G_EDIT_ADVANCED = "GCS.Group.Edit.Advanced";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const G_EDIT_FIND = "GCS.Group.Edit.Find";
|
|
|
|
const char * const G_EDIT_OTHER = "GCS.Group.Edit.Other";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
// advanced edit menu groups
|
|
|
|
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const G_EDIT_FORMAT = "GCS.Group.Edit.Format";
|
|
|
|
const char * const G_EDIT_COLLAPSING = "GCS.Group.Edit.Collapsing";
|
|
|
|
const char * const G_EDIT_BLOCKS = "GCS.Group.Edit.Blocks";
|
|
|
|
const char * const G_EDIT_FONT = "GCS.Group.Edit.Font";
|
|
|
|
const char * const G_EDIT_EDITOR = "GCS.Group.Edit.Editor";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
// window menu groups
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const G_WINDOW_SIZE = "GCS.Group.Window.Size";
|
|
|
|
const char * const G_WINDOW_PANES = "GCS.Group.Window.Panes";
|
|
|
|
const char * const G_WINDOW_SPLIT = "GCS.Group.Window.Split";
|
|
|
|
const char * const G_WINDOW_NAVIGATE = "GCS.Group.Window.Navigate";
|
|
|
|
const char * const G_WINDOW_OTHER = "GCS.Group.Window.Other";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
// help groups (global)
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const G_HELP_HELP = "GCS.Group.Help.Help";
|
|
|
|
const char * const G_HELP_ABOUT = "GCS.Group.Help.About";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
// wizard kind
|
2010-02-28 11:29:40 +01:00
|
|
|
const char * const WIZARD_TYPE_FILE = "GCS::WizardType::File";
|
|
|
|
const char * const WIZARD_TYPE_CLASS = "GCS::WizardType::Class";
|
2010-02-04 00:52:51 +01:00
|
|
|
|
|
|
|
} // namespace Constants
|
|
|
|
} // namespace Core
|
|
|
|
|
|
|
|
#endif // CORECONSTANTS_H
|