This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
idehints.cc
350 lines (347 loc) · 12.8 KB
/
idehints.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
/* Copyright (C) 1996-1998 Robert H”hne, see COPYING.RH for details */
/* This file is part of RHIDE. */
#define Uses_IDEConst
#include "rhide.h"
#define Uses_ideCommands
#include <libide.h>
#define h(ctx,hint) case hc##ctx: return hint;
const char *
IDEHint(ushort ctx)
{
switch (ctx)
{
// Sytem
h(About,
_("show information about RHIDE"))
h(BugReportSmall,
_("Creates a small bug report"))
h(BugReport,
_("Creates a sample bug report"))
h(FSDB,
_("Start the FSDB debugger"))
h(GREP,
_("Running GREP (arguments are prompted)"))
h(GDB,
_("Start the GDB debugger"))
h(Repaint,
_("repaints the desktop"))
h(ShowCalculator,
_("Powerful builtin calculator"))
h(Puzzle,
_("A nice puzzle game"))
h(Calendar,
_("A simple calender"))
h(Ascii, _("A table with all the ASCII characters"))
// File
h(File,
_("Menu entries for handling with files"))
h(OpenEditor,
_("opens a file in the editor"))
h(NewEditor,
_("create a new editor window"))
h(SaveEditor,
_("save the current editor to disk (if modified)"))
h(SaveAs,
_("save the current editor under a different name to disk"))
h(SaveAll,
_("save all opened editors to disk (if modified)"))
h(PrintSetup,
_("konfigure your print settings"))
h(Print, _("print the current editor file"))
#ifdef __DJGPP__
h(DosShell, _("switch to DOS (call of %COMSPEC%, return with EXIT)"))
#else
h(DosShell,
_
("switch to a shell (call of $SHELL or /bin/sh, return with exit)"))
#endif
h(QUIT, _("quits the IDE"))
// Edit
h(Edit,
_("Submenu for things dealing with the editor"))
h(Undo,
_("undoes the last edit command"))
h(Redo,
_("undoes the last undo command"))
h(Cut,
_("move the selected text to the clipboard"))
h(Copy,
_("copy the selected text to the clipboard"))
h(Paste,
_("insert the selected text from the clipboard"))
h(ShowClip,
_("shows the clipboard"))
h(Clear,
_("delete the selected text "))
h(Rectangle,
_("Submenu for handling with rectangular blocks"))
h(SelRectStart,
_("Start selecting rectangular block"))
h(SelRectEnd,
_("End selecting rectangular block"))
h(SelRectHide,
_("Hide selected rectangular block"))
h(SelRectCopy,
_("Copy selected rectangular block"))
h(SelRectPaste,
_("Paste selected rectangular block"))
h(SelRectCut,
_("Cut selected rectangular block"))
h(SelRectDel,
_("Clear selected rectangular block"))
h(SelRectMove,
_("Move selected rectangular block"))
h(CopyClipWin,
_("Copy the selected text to the Windows clipboard"))
h(PasteClipWin,
_("Paste text from the Windows clipboard"))
h(ExpandAllTabs,
_("Expand all tabs to spaces"))
h(CompactBuffer, _("Replace as much as possible spaces with tabs"))
// Edit/Macro
h(Macro,
_("Submenu for handling with macros"))
h(Record,
_("Start the recording for a macro"))
h(Stop,
_("Stop the recording for a macro"))
h(Play,
_("Run the recorded macro"))
h(ChooseMacro,
_("choose a named macro"))
h(RepeatMacro,
_("repeat the last macro"))
h(GenCodeForMacro,
_("write code for recorded macro"))
h(ProfileEditor, _("Check the speed of the editor"))
// Search
h(Search,
_("Submenu for searching/replacing text"))
h(Find,
_("find a string in the current editor"))
h(Replace,
_("find and replace a string in the current editor"))
h(SearchAgain,
_("repeat the last find- or replace-operation"))
h(GotoLine,
_("go to line number (after prompting)"))
h(JumpToFunction,
_("Select a function from the current editor"))
h(NextMessage,
_("select next message"))
h(PrevMessage, _("select previous message"))
// Run
h(RunMenu,
_("Submenu for running your program"))
h(Run,
_("run the project-target (if executable after doing a make)"))
h(Step,
_("Step over function calls"))
h(StepNo,
_("Step over function calls (No display swap)"))
h(Trace,
_("Execute one instruction"))
h(TraceNo,
_("Execute one instruction (No display swap)"))
h(Goto,
_("Stops execution at the cursor"))
h(GotoNo,
_("Stops execution at the cursor (No display swap)"))
h(Reset,
_("Reset the debugged program"))
h(Finish,
_("Execute until end of function"))
h(MainFunction,
_("Enter the name of the 'main'-function"))
h(ProgArgs, _("enter commandline arguments for your program"))
// Compile
h(CompileMenu,
_("Submenu for compiling and/or creating your program/library"))
h(Compile,
_("compile the current editor or the selected project-item"))
h(Make,
_("make the project (with checking auto-dependencies)"))
h(Link,
_("link the project or create the library"))
h(Build, _("build the project completely new"))
// Debug
h(Debug,
_("Submenu for debugging your program"))
h(ToggleBreak,
_("Set/Clear a breakpoint at the current line"))
h(Evaluate,
_("Evaluate or modify an expression"))
h(AddWatchEntry,
_("Add an expression to the watching list"))
h(Inspect,
_("Open an inspector window for an expression"))
h(BreakPoints,
_("Show/Modify the breakpoints"))
h(DisWindow,
_("Show a disassembler window at the current execution point"))
h(CallStack,
_("Shows a window with the function call stack"))
h(FunctionList,
_("Show a list with all functions"))
h(AddDataWindow,
_("Open a window with a memory dump"))
h(ShowStackWindow, _("Open a window showing the dump of the stack"))
// Project
h(ProjectMenu,
_("Submenu for handling your projects"))
h(OpenProject,
_("open a project"))
h(CloseProject,
_("close the current project"))
h(AddProjectItem,
_("add an item to the project"))
h(DelProjectItem,
_("remove the selected item from the project"))
h(LocalOptions,
_("enter local commandline options for compiling this item"))
h(ShowIncludes,
_("show the dependencies for the selected item"))
h(TargetName,
_("change the name of the project-target"))
h(PrimaryFile,
_("Set the primary file (only for GPC with '--automake'!!!)"))
h(ClearDependencies,
_("remove the list of automaticaly generated dependencies"))
h(MakeClear,
_("remove all files, which can be rebuild with this project"))
h(CreateDependencies,
_("Create for all project items the dependencies"))
h(WriteMake, _("write a makefile for this project"))
// Options
h(OptionsMenu, _("Submenu for most of the options of RHIDE"))
// Options/Directories
h(Directories,
_("set various search paths for finding the files"))
h(IncludeDir,
_("set where to search for include files"))
h(LibDir,
_("set where to search for libraries"))
h(ObjDir,
_("set where to search for object files"))
h(SrcDir,
_("set where to search for source files"))
h(StandardIncludeDir, _("Define, where your standard headers are"))
// Options/C/C++-compiler
h(C_CXXCompiler,
_("customize various options for the C/C++-compiler"))
h(WarningFlags,
_("customize the generating of warnings"))
h(OptimizationFlags,
_("customize, how to optimize the code"))
h(DebugFlags,
_("customize the generating of debugging information"))
h(CFlags,
_("customize C-compiler specific flags"))
h(CXXFlags,
_("customize C++-compiler specific flags"))
h(PascalFlags,
_("Flags only when compiling Pascal files"))
h(FortranFlags,
_("Flags only when compiling Fortran files"))
h(AdaFlags,
_("Flags only when compiling ADA files"))
h(Libraries,
_("set which libraries to be linked with the program"))
h(LinkerOptions,
_("set additional flags to the linker"))
h(CompilerOptions,
_("set additional flags to the compiler (defines, ...)"))
// Options/Environment
h(Environment,
_("customize the IDE"))
h(Colors, _("customize the colors of the IDE"))
// Options/Environment/Editor
h(Editor,
_("various options relating to the editor"))
h(SetGlobalOptions,
_("Set the editor options"))
h(EditKeyBind,
_("Customize your key bindings"))
h(SetUpAltKeys,
_("Define the meaning of the Alt-keys"))
h(KbBackDefault,
_("Restore default key bindings"))
h(Preferences,
_("set basic options for the IDE"))
h(MouseDlg,
_("Set some options for the mouse"))
h(EditReserved,
_("edit the list of reserved words"))
h(EditGPCReserved,
_("Edit the list of reserved words for Pascal files"))
h(EditCFlags,
_("edit the list of flags for the C-compiler"))
h(EditCXXFlags,
_("edit the list of flags for the C++-compiler"))
h(EditPascalFlags,
_("Edit the list of pascal options"))
h(EditFortranFlags,
_("Edit the list of fortran options"))
h(EditAdaFlags,
_("Edit the list of ADA options"))
h(EditWarnFlags,
_("edit the list of flags for warnings"))
h(EditDebugFlags,
_("edit the list of flags for debugging"))
h(EditOptFlags,
_("edit the list of optimization flags"))
h(EditUserWords,
_("edit the list of user defined words (for syntaxhighlight)"))
h(SaveOptions,
_("Save all the options to a project file"))
h(LoadOptions, _("Load the options from a project file"))
// Windows
h(Windows,
_("Submenu for dealing with windows"))
h(Resize,
_("resize/move the current window"))
h(Zoom,
_
("toggles between full size and previous size of the current window"))
h(Tile, _("show all editor windows simultaniously")) h(Cascade,
_
("show from each editor the title"))
h(Next, _("switch to the next window on the desktop")) h(Prev,
_
("switch to the previous window on the desktop"))
h(Close, _("close the current window")) h(ShowWindowList,
_
("show a list of all windows on the desktop"))
h(ShowProject, _("show the project window")) h(ShowWatchWindow,
_
("Opens the window with watches"))
h(ShowMessages, _("show the message window")) h(UserScreen,
_
("show the user screen"))
// Help
h(HelpMenu,
_("Several menu entries for getting help"))
h(Help,
_("opens the Info Viewer"))
h(HelpIndex, _("The main index of the RHIDE help"))
// Help/Syntax help
h(Syntax,
_("Submenu for syntax help"))
h(SyntaxHelp,
_("Help for the function under the cursor"))
h(SyntaxFiles,
_("Files to be searched for syntax help"))
h(SyntaxOptions,
_("Options for the syntax help"))
h(SyntaxIndex,
_("Get a list with all available syntax help topics"))
h(LibcHelp,
_("The main index of the libc reference"))
h(HelpHelp,
_("Get help about using the helpsystem"))
h(LastHelp,
_("Shows the last opened help"))
h(ClosedWindows, _("How many closed windows should I remember")) default:
return "";
}
}