dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
coreconstants.h
Go to the documentation of this file.
1 
15 /*
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful, but
22  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24  * for more details.
25  *
26  * You should have received a copy of the GNU General Public License along
27  * with this program; if not, see <http://www.gnu.org/licenses/>
28  */
29 
30 #ifndef CORECONSTANTS_H
31 #define CORECONSTANTS_H
32 
33 #include "../../../../../build/ground/gcs/gcsversioninfo.h"
34 
35 namespace Core {
36 namespace Constants {
37 
38  const char *const GCS_NAME = GCS_PROJECT_BRANDING_PRETTY " GCS";
39  const char *const GCS_AUTHOR = GCS_PROJECT_BRANDING_PRETTY;
40  const char t[] = __DATE__;
41  const char *const GCS_YEAR = t + 7;
42 
43  const char *const GCS_HELP = GCS_PROJECT_BRANDING_HELP;
44 #ifdef GCS_REVISION
45  const char *const GCS_REVISION_STR = GCS_REVISION;
46  const char *const UAVOSHA1_STR = UAVO_HASH_STR;
47 #else
48  const char *const GCS_REVISION_STR = "";
49  const char *const UAVOSHA1_STR = "";
50 #endif
51  const char *const GCS_VERSION_LONG = GCS_REVISION_STR;
52 #ifdef GCS_REVISION_PRETTY
53  const char *const GCS_REVISION_PRETTY_STR = GCS_REVISION_PRETTY;
54 #else
55  const char *const GCS_REVISION_PRETTY_STR = "";
56 #endif
57 #ifdef GCS_REVISION_SHORT
58  const char *const GCS_REVISION_SHORT_STR = GCS_REVISION_SHORT;
59 #else
60  const char *const GCS_REVISION_SHORT_STR = "";
61 #endif
62 
63 #undef GCS_VERSION
64 #undef STRINGIFY
65 #undef STRINGIFY_INTERNAL
66 
67  // modes
68  const char *const MODE_WELCOME = "Welcome";
69  const char *const MODE_UAVGADGET = "Mode 1";
70  const int P_MODE_WELCOME = 100;
71  const int P_MODE_UAVGADGET = 90;
72 
73  // menubar
74  const char *const MENU_BAR = "GCS.MenuBar";
75 
76  // menus
77  const char *const M_FILE = "GCS.Menu.File";
78  const char *const M_FILE_OPEN = "GCS.Menu.File.Open";
79  const char *const M_FILE_NEW = "GCS.Menu.File.New";
80  const char *const M_FILE_RECENTFILES = "GCS.Menu.File.RecentFiles";
81  const char *const M_EDIT = "GCS.Menu.Edit";
82  const char *const M_EDIT_ADVANCED = "GCS.Menu.Edit.Advanced";
83  const char *const M_TOOLS = "GCS.Menu.Tools";
84  const char *const M_WINDOW = "GCS.Menu.Window";
85  const char *const M_WINDOW_PANES = "GCS.Menu.Window.Panes";
86  const char *const M_HELP = "GCS.Menu.Help";
87 
88  // contexts
89  const char *const C_GLOBAL = "Global Context";
90  const int C_GLOBAL_ID = 0;
91  const char *const C_WELCOME_MODE = "Core.WelcomeMode";
92  const char *const C_UAVGADGET_MODE = "Core.UAVGadgetMode";
93  const char *const C_UAVGADGETMANAGER = "Core.UAVGadgetManager";
94  const char *const C_NAVIGATION_PANE = "Core.NavigationPane";
95  const char *const C_PROBLEM_PANE = "Core.ProblemPane";
96 
97  // default editor kind
98  const char *const K_DEFAULT_TEXT_EDITOR =
99  QT_TRANSLATE_NOOP("OpenWith::Editors", "Plain Text Editor");
100  const char *const K_DEFAULT_BINARY_EDITOR =
101  QT_TRANSLATE_NOOP("OpenWith::Editors", "Binary Editor");
102 
103  // actions
104  const char *const UNDO = "GCS.Undo";
105  const char *const REDO = "GCS.Redo";
106  const char *const COPY = "GCS.Copy";
107  const char *const PASTE = "GCS.Paste";
108  const char *const CUT = "GCS.Cut";
109  const char *const SELECTALL = "GCS.SelectAll";
110 
111  const char *const NEW = "GCS.New";
112  const char *const OPEN = "GCS.Open";
113  const char *const OPEN_WITH = "GCS.OpenWith";
114  const char *const REVERTTOSAVED = "GCS.RevertToSaved";
115  const char *const SAVE = "GCS.Save";
116  const char *const SAVEAS = "GCS.SaveAs";
117  const char *const SAVEALL = "GCS.SaveAll";
118  const char *const EXIT = "GCS.Exit";
119 
120  const char *const OPTIONS = "GCS.Options";
121  const char *const TOGGLE_SIDEBAR = "GCS.ToggleSidebar";
122  const char *const TOGGLE_FULLSCREEN = "GCS.ToggleFullScreen";
123 
124  const char *const MINIMIZE_WINDOW = "GCS.MinimizeWindow";
125  const char *const ZOOM_WINDOW = "GCS.ZoomWindow";
126 
127  const char *const SPLIT = "GCS.Split";
128  const char *const SPLIT_SIDE_BY_SIDE = "GCS.SplitSideBySide";
129  const char *const REMOVE_CURRENT_SPLIT = "GCS.RemoveCurrentSplit";
130  const char *const REMOVE_ALL_SPLITS = "GCS.RemoveAllSplits";
131  const char *const GOTO_OTHER_SPLIT = "GCS.GotoOtherSplit";
132  const char *const SAVEASDEFAULT = "GCS.SaveAsDefaultLayout";
133  const char *const RESTOREDEFAULT = "GCS.RestoreDefaultLayout";
134  const char *const HIDE_TOOLBARS = "GCS.HideToolbars";
135  const char *const CLOSE = "GCS.Close";
136  const char *const CLOSEALL = "GCS.CloseAll";
137  const char *const CLOSEOTHERS = "GCS.CloseOthers";
138  const char *const GOTONEXT = "GCS.GotoNext";
139  const char *const GOTOPREV = "GCS.GotoPrevious";
140  const char *const GOTONEXTINHISTORY = "GCS.GotoNextInHistory";
141  const char *const GOTOPREVINHISTORY = "GCS.GotoPreviousInHistory";
142  const char *const GO_BACK = "GCS.GoBack";
143  const char *const GO_FORWARD = "GCS.GoForward";
144  const char *const GOTOPREVIOUSGROUP = "GCS.GotoPreviousTabGroup";
145  const char *const GOTONEXTGROUP = "GCS.GotoNextTabGroup";
146  const char *const WINDOWSLIST = "GCS.WindowsList";
147  const char *const ABOUT_GCS = "GCS.AboutGCS";
148  const char *const ABOUT_PLUGINS = "GCS.AboutPlugins";
149  const char *const ABOUT_AUTHORS = "GCS.AboutAuthors";
150  const char *const ABOUT_QT = "GCS.AboutQt";
151  const char *const S_RETURNTOEDITOR = "GCS.ReturnToEditor";
152  const char *const OPEN_IN_EXTERNAL_EDITOR = "GCS.OpenInExternalEditor";
153 
154  // default groups
155  const char *const G_DEFAULT_ONE = "GCS.Group.Default.One";
156  const char *const G_DEFAULT_TWO = "GCS.Group.Default.Two";
157  const char *const G_DEFAULT_THREE = "GCS.Group.Default.Three";
158 
159  // main menu bar groups
160  const char *const G_FILE = "GCS.Group.File";
161  const char *const G_EDIT = "GCS.Group.Edit";
162  const char *const G_VIEW = "GCS.Group.View";
163  const char *const G_TOOLS = "GCS.Group.Tools";
164  const char *const G_WINDOW = "GCS.Group.Window";
165  const char *const G_HELP = "GCS.Group.Help";
166 
167  // file menu groups
168  const char *const G_FILE_NEW = "GCS.Group.File.New";
169  const char *const G_FILE_OPEN = "GCS.Group.File.Open";
170  const char *const G_FILE_PROJECT = "GCS.Group.File.Project";
171  const char *const G_FILE_SAVE = "GCS.Group.File.Save";
172  const char *const G_FILE_CLOSE = "GCS.Group.File.Close";
173  const char *const G_FILE_OTHER = "GCS.Group.File.Other";
174 
175  // edit menu groups
176  const char *const G_EDIT_UNDOREDO = "GCS.Group.Edit.UndoRedo";
177  const char *const G_EDIT_COPYPASTE = "GCS.Group.Edit.CopyPaste";
178  const char *const G_EDIT_SELECTALL = "GCS.Group.Edit.SelectAll";
179  const char *const G_EDIT_ADVANCED = "GCS.Group.Edit.Advanced";
180 
181  const char *const G_EDIT_FIND = "GCS.Group.Edit.Find";
182  const char *const G_EDIT_OTHER = "GCS.Group.Edit.Other";
183 
184  // advanced edit menu groups
185 
186  const char *const G_EDIT_FORMAT = "GCS.Group.Edit.Format";
187  const char *const G_EDIT_COLLAPSING = "GCS.Group.Edit.Collapsing";
188  const char *const G_EDIT_BLOCKS = "GCS.Group.Edit.Blocks";
189  const char *const G_EDIT_FONT = "GCS.Group.Edit.Font";
190  const char *const G_EDIT_EDITOR = "GCS.Group.Edit.Editor";
191 
192  // window menu groups
193  const char *const G_WINDOW_SIZE = "GCS.Group.Window.Size";
194  const char *const G_WINDOW_PANES = "GCS.Group.Window.Panes";
195  const char *const G_WINDOW_SPLIT = "GCS.Group.Window.Split";
196  const char *const G_WINDOW_NAVIGATE = "GCS.Group.Window.Navigate";
197  const char *const G_WINDOW_OTHER = "GCS.Group.Window.Other";
198  const char *const G_WINDOW_HIDE_TOOLBAR = "GCS.Group.Window.Hide";
199 
200  // help groups (global)
201  const char *const G_HELP_HELP = "GCS.Group.Help.Help";
202  const char *const G_HELP_ABOUT = "GCS.Group.Help.About";
203 
204  const char *const ICON_MINUS = ":/core/images/minus.png";
205  const char *const ICON_PLUS = ":/core/images/plus.png";
206  const char *const ICON_NEWFILE = ":/core/images/filenew.png";
207  const char *const ICON_OPENFILE = ":/core/images/fileopen.png";
208  const char *const ICON_SAVEFILE = ":/core/images/filesave.png";
209  const char *const ICON_UNDO = ":/core/images/undo.png";
210  const char *const ICON_REDO = ":/core/images/redo.png";
211  const char *const ICON_COPY = ":/core/images/editcopy.png";
212  const char *const ICON_PASTE = ":/core/images/editpaste.png";
213  const char *const ICON_CUT = ":/core/images/editcut.png";
214  const char *const ICON_NEXT = ":/core/images/next.png";
215  const char *const ICON_PREV = ":/core/images/prev.png";
216  const char *const ICON_DIR = ":/core/images/dir.png";
217  const char *const ICON_CLEAN_PANE = ":/core/images/clean_pane_small.png";
218  const char *const ICON_CLEAR = ":/core/images/clear.png";
219  const char *const ICON_CLOSE = ":/core/images/closebutton.png";
220  const char *const ICON_FIND = ":/core/images/find.png";
221  const char *const ICON_FINDNEXT = ":/core/images/findnext.png";
222  const char *const ICON_REPLACE = ":/core/images/replace.png";
223  const char *const ICON_RESET = ":/core/images/reset.png";
224  const char *const ICON_MAGNIFIER = ":/core/images/magnifier.png";
225  const char *const ICON_TOGGLE_SIDEBAR = ":/core/images/sidebaricon.png";
226  const char *const ICON_PLUGIN = ":/core/images/pluginicon.png";
227  const char *const ICON_EXIT = ":/core/images/exiticon.png";
228  const char *const ICON_OPTIONS = ":/core/images/optionsicon.png";
229  const char *const ICON_HELP = ":/core/images/helpicon.png";
230  const char *const ICON_GCS = ":/core/gcs_nontrans_128";
231 
232  // wizard kind
233  const char *const WIZARD_TYPE_FILE = "GCS::WizardType::File";
234  const char *const WIZARD_TYPE_CLASS = "GCS::WizardType::Class";
235 
236 } // namespace Constants
237 } // namespace Core
238 
239 #endif // CORECONSTANTS_H
const char *const UAVOSHA1_STR
Definition: coreconstants.h:46
const char *const GCS_REVISION_PRETTY_STR
Definition: coreconstants.h:53
const char *const MINIMIZE_WINDOW
const char *const G_FILE_OPEN
const char *const M_HELP
Definition: coreconstants.h:86
const char *const PASTE
const char *const G_EDIT_UNDOREDO
const char *const M_WINDOW
Definition: coreconstants.h:84
const char *const CLOSEOTHERS
const char *const ICON_PASTE
const char *const GCS_HELP
Definition: coreconstants.h:43
const char *const M_EDIT
Definition: coreconstants.h:81
const char *const G_EDIT_FONT
const char *const COPY
const char *const ICON_CUT
const char *const G_WINDOW_HIDE_TOOLBAR
const char *const G_TOOLS
const char *const C_NAVIGATION_PANE
Definition: coreconstants.h:94
const char *const ICON_PREV
const char *const OPTIONS
const char *const ICON_SAVEFILE
const char *const M_EDIT_ADVANCED
Definition: coreconstants.h:82
const char t[]
Definition: coreconstants.h:40
const char *const G_WINDOW
const char *const GOTOPREVINHISTORY
const char *const GOTO_OTHER_SPLIT
const char *const CLOSE
const char *const M_TOOLS
Definition: coreconstants.h:83
const char *const M_FILE_OPEN
Definition: coreconstants.h:78
const char *const GOTOPREV
const char *const ICON_OPTIONS
const char *const GOTONEXT
const char *const G_WINDOW_OTHER
const char *const ICON_CLOSE
const char *const SPLIT_SIDE_BY_SIDE
const char *const G_EDIT_ADVANCED
const char *const ICON_RESET
const char *const MENU_BAR
Definition: coreconstants.h:74
const char *const G_HELP_HELP
const char *const GCS_YEAR
Definition: coreconstants.h:41
const char *const SAVEALL
const char *const SAVEAS
const char *const G_EDIT
const char *const G_EDIT_BLOCKS
const char *const REMOVE_ALL_SPLITS
const char *const G_FILE_CLOSE
const char *const ICON_HELP
const char *const G_EDIT_OTHER
const char *const G_FILE_PROJECT
const char *const GCS_AUTHOR
Definition: coreconstants.h:39
const char *const REDO
const char *const C_WELCOME_MODE
Definition: coreconstants.h:91
const char *const G_FILE_SAVE
const char *const ABOUT_AUTHORS
QT_TRANSLATE_NOOP("Utils::PathChooser","Browse...")
const char *const G_EDIT_FIND
const char *const M_FILE_NEW
Definition: coreconstants.h:79
const char *const GCS_REVISION_SHORT_STR
Definition: coreconstants.h:58
const char *const M_FILE_RECENTFILES
Definition: coreconstants.h:80
const char *const M_WINDOW_PANES
Definition: coreconstants.h:85
const int C_GLOBAL_ID
Definition: coreconstants.h:90
const char *const WINDOWSLIST
const char *const K_DEFAULT_TEXT_EDITOR
Definition: coreconstants.h:98
const char *const C_GLOBAL
Definition: coreconstants.h:89
const char *const CUT
const char *const G_WINDOW_PANES
const char *const MODE_WELCOME
Definition: coreconstants.h:68
const char *const OPEN_IN_EXTERNAL_EDITOR
const char *const G_EDIT_FORMAT
const char *const G_WINDOW_SPLIT
const char *const G_EDIT_SELECTALL
const char *const GOTONEXTGROUP
const char *const GCS_VERSION_LONG
Definition: coreconstants.h:51
const char *const ICON_FIND
const char *const G_VIEW
const char *const M_FILE
Definition: coreconstants.h:77
const char *const ICON_FINDNEXT
const char *const G_FILE_OTHER
const char *const ICON_GCS
const char *const K_DEFAULT_BINARY_EDITOR
const char *const ICON_OPENFILE
const char *const ICON_CLEAR
const char *const ABOUT_QT
const char *const ICON_COPY
const char *const G_EDIT_COLLAPSING
const char *const G_WINDOW_NAVIGATE
const char *const ICON_TOGGLE_SIDEBAR
const char *const G_HELP
const char *const OPEN
const char *const SAVE
const char *const ICON_UNDO
const char *const ICON_EXIT
const char *const OPEN_WITH
const char *const TOGGLE_FULLSCREEN
const char *const ICON_PLUS
const char *const HIDE_TOOLBARS
const char *const GCS_REVISION_STR
Definition: coreconstants.h:45
const char *const S_RETURNTOEDITOR
const char *const TOGGLE_SIDEBAR
const char *const SAVEASDEFAULT
const char *const ICON_DIR
const char *const C_UAVGADGET_MODE
Definition: coreconstants.h:92
const char *const GOTOPREVIOUSGROUP
const char *const REVERTTOSAVED
const char *const GCS_NAME
Definition: coreconstants.h:38
const char *const G_FILE
const char *const G_FILE_NEW
const char *const RESTOREDEFAULT
const char *const SPLIT
const char *const G_DEFAULT_ONE
const char *const G_WINDOW_SIZE
const char *const G_EDIT_EDITOR
const char *const C_UAVGADGETMANAGER
Definition: coreconstants.h:93
const char *const ICON_REPLACE
const char *const ABOUT_GCS
const char *const ICON_NEXT
const char *const ICON_REDO
const char *const GOTONEXTINHISTORY
const int P_MODE_UAVGADGET
Definition: coreconstants.h:71
const char *const G_DEFAULT_TWO
const char *const WIZARD_TYPE_CLASS
const char *const MODE_UAVGADGET
Definition: coreconstants.h:69
const char *const ICON_CLEAN_PANE
const char *const G_EDIT_COPYPASTE
const int P_MODE_WELCOME
Definition: coreconstants.h:70
const char *const ZOOM_WINDOW
const char *const CLOSEALL
const char *const GO_FORWARD
const char *const WIZARD_TYPE_FILE
const char *const EXIT
const char *const REMOVE_CURRENT_SPLIT
const char *const NEW
const char *const ICON_MAGNIFIER
const char *const G_HELP_ABOUT
const char *const ICON_PLUGIN
const char *const UNDO
const char *const ICON_MINUS
const char *const ABOUT_PLUGINS
const char *const ICON_NEWFILE
const char *const SELECTALL
const char *const GO_BACK
const char *const G_DEFAULT_THREE
const char *const C_PROBLEM_PANE
Definition: coreconstants.h:95