33
33
#include "gimp-intl.h"
36
static GimpActionEntry dialogs_actions[] =
36
static const GimpActionEntry dialogs_actions[] =
38
38
{ "dialogs-menu", NULL, N_("_Dialogs") },
39
39
{ "dialogs-new-dock-menu", NULL, N_("Create New Doc_k") },
41
41
{ "dialogs-new-dock-lcp", NULL,
42
N_("_Layers, Channels & Paths"), NULL, NULL,
42
N_("_Layers, Channels & Paths"), NULL,
43
N_("Open a Layers, Channels & Paths dock"),
43
44
G_CALLBACK (dialogs_create_lc_cmd_callback),
46
47
{ "dialogs-new-dock-data", NULL,
47
N_("_Brushes, Patterns & Gradients"), NULL, NULL,
48
N_("_Brushes, Patterns & Gradients"), NULL,
49
N_("Open a Brushes, Patterns & Gradients dock"),
48
50
G_CALLBACK (dialogs_create_data_cmd_callback),
51
53
{ "dialogs-new-dock-stuff", NULL,
52
N_("_Misc. Stuff"), NULL, NULL,
54
N_("_Misc. Stuff"), NULL,
55
N_("Open a dock containing miscellaneous dialogs"),
53
56
G_CALLBACK (dialogs_create_stuff_cmd_callback),
56
59
{ "dialogs-toolbox", NULL,
57
N_("Tool_box"), NULL, NULL,
60
N_("Tool_box"), "<control>B",
61
N_("Raise the toolbox"),
58
62
G_CALLBACK (dialogs_show_toolbox_cmd_callback),
59
63
GIMP_HELP_TOOLBOX }
62
GimpStringActionEntry dialogs_dockable_actions[] =
66
const GimpStringActionEntry dialogs_dockable_actions[] =
64
68
{ "dialogs-tool-options", GIMP_STOCK_TOOL_OPTIONS,
65
N_("Tool _Options"), "<control><shift>T", NULL,
69
N_("Tool _Options"), NULL,
70
N_("Open the tool options dialog"),
66
71
"gimp-tool-options",
67
72
GIMP_HELP_TOOL_OPTIONS_DIALOG },
69
74
{ "dialogs-device-status", GIMP_STOCK_DEVICE_STATUS,
70
N_("_Device Status"), NULL, NULL,
75
N_("_Device Status"), NULL,
76
N_("Open the device status dialog"),
71
77
"gimp-device-status",
72
78
GIMP_HELP_DEVICE_STATUS_DIALOG },
74
80
{ "dialogs-layers", GIMP_STOCK_LAYERS,
75
N_("_Layers"), "<control>L", NULL,
81
N_("_Layers"), "<control>L",
82
N_("Open the layers dialog"),
77
84
GIMP_HELP_LAYER_DIALOG },
79
86
{ "dialogs-channels", GIMP_STOCK_CHANNELS,
80
N_("_Channels"), NULL, NULL,
87
N_("_Channels"), NULL,
88
N_("Open the channels dialog"),
81
89
"gimp-channel-list",
82
90
GIMP_HELP_CHANNEL_DIALOG },
84
92
{ "dialogs-vectors", GIMP_STOCK_PATHS,
85
N_("_Paths"), NULL, NULL,
94
N_("Open the paths dialog"),
86
95
"gimp-vectors-list",
87
96
GIMP_HELP_PATH_DIALOG },
89
{ "dialogs-indexed-palette", GIMP_STOCK_INDEXED_PALETTE,
90
N_("Color_map"), NULL, NULL,
98
{ "dialogs-indexed-palette", GIMP_STOCK_COLORMAP,
99
N_("Color_map"), NULL,
100
N_("Open the colormap dialog"),
91
101
"gimp-indexed-palette",
92
102
GIMP_HELP_INDEXED_PALETTE_DIALOG },
94
104
{ "dialogs-histogram", GIMP_STOCK_HISTOGRAM,
95
N_("Histogra_m"), NULL, NULL,
105
N_("Histogra_m"), NULL,
106
N_("Open the histogram dialog"),
96
107
"gimp-histogram-editor",
97
108
GIMP_HELP_HISTOGRAM_DIALOG },
99
110
{ "dialogs-selection-editor", GIMP_STOCK_TOOL_RECT_SELECT,
100
N_("_Selection Editor"), NULL, NULL,
111
N_("_Selection Editor"), NULL,
112
N_("Open the selection editor"),
101
113
"gimp-selection-editor",
102
114
GIMP_HELP_SELECTION_DIALOG },
104
116
{ "dialogs-navigation", GIMP_STOCK_NAVIGATION,
105
N_("Na_vigation"), NULL, NULL,
117
N_("Na_vigation"), NULL,
118
N_("Open the display navigation dialog"),
106
119
"gimp-navigation-view",
107
120
GIMP_HELP_NAVIGATION_DIALOG },
109
122
{ "dialogs-undo-history", GIMP_STOCK_UNDO_HISTORY,
110
N_("Undo _History"), NULL, NULL,
123
N_("Undo _History"), NULL,
124
N_("Open the undo history dialog"),
111
125
"gimp-undo-history",
112
126
GIMP_HELP_UNDO_DIALOG },
128
{ "dialogs-cursor", GIMP_STOCK_CURSOR,
130
N_("Open the pointer information dialog"),
132
GIMP_HELP_POINTER_INFO_DIALOG },
134
{ "dialogs-sample-points", GIMP_STOCK_SAMPLE_POINT,
135
N_("_Sample Points"), NULL,
136
N_("Open the sample points dialog"),
137
"gimp-sample-point-editor",
138
GIMP_HELP_SAMPLE_POINT_DIALOG },
114
140
{ "dialogs-colors", GIMP_STOCK_DEFAULT_COLORS,
115
N_("Colo_rs"), NULL, NULL,
142
N_("Open the FG/BG color dialog"),
116
143
"gimp-color-editor",
117
144
GIMP_HELP_COLOR_DIALOG },
119
146
{ "dialogs-brushes", GIMP_STOCK_BRUSH,
120
N_("_Brushes"), "<control><shift>B", NULL,
147
N_("_Brushes"), "<control><shift>B",
148
N_("Open the brushes dialog"),
121
149
"gimp-brush-grid|gimp-brush-list",
122
150
GIMP_HELP_BRUSH_DIALOG },
124
152
{ "dialogs-patterns", GIMP_STOCK_PATTERN,
125
N_("P_atterns"), "<control><shift>P", NULL,
153
N_("P_atterns"), "<control><shift>P",
154
N_("Open the patterns dialog"),
126
155
"gimp-pattern-grid|gimp-pattern-list",
127
156
GIMP_HELP_PATTERN_DIALOG },
129
158
{ "dialogs-gradients", GIMP_STOCK_GRADIENT,
130
N_("_Gradients"), "<control>G", NULL,
159
N_("_Gradients"), "<control>G",
160
N_("Open the gradients dialog"),
131
161
"gimp-gradient-list|gimp-gradient-grid",
132
162
GIMP_HELP_GRADIENT_DIALOG },
134
164
{ "dialogs-palettes", GIMP_STOCK_PALETTE,
135
N_("Pal_ettes"), "<control>P", NULL,
165
N_("Pal_ettes"), NULL,
166
N_("Open the palettes dialog"),
136
167
"gimp-palette-list|gimp-palette-grid",
137
168
GIMP_HELP_PALETTE_DIALOG },
139
170
{ "dialogs-fonts", GIMP_STOCK_FONT,
140
N_("_Fonts"), NULL, NULL,
172
N_("Open the fonts dialog"),
141
173
"gimp-font-list|gimp-font-grid",
142
174
GIMP_HELP_FONT_DIALOG },
144
176
{ "dialogs-buffers", GIMP_STOCK_BUFFER,
145
N_("B_uffers"), "", NULL,
178
N_("Open the named buffers dialog"),
146
179
"gimp-buffer-list|gimp-buffer-grid",
147
180
GIMP_HELP_BUFFER_DIALOG },
149
182
{ "dialogs-images", GIMP_STOCK_IMAGES,
150
N_("_Images"), NULL, NULL,
184
N_("Open the images dialog"),
151
185
"gimp-image-list|gimp-image-grid",
152
186
GIMP_HELP_IMAGE_DIALOG },
154
188
{ "dialogs-document-history", GTK_STOCK_OPEN,
155
N_("Document Histor_y"), "", NULL,
189
N_("Document Histor_y"), "",
190
N_("Open the document history dialog"),
156
191
"gimp-document-list|gimp-document-grid",
157
192
GIMP_HELP_DOCUMENT_DIALOG },
159
194
{ "dialogs-templates", GIMP_STOCK_TEMPLATE,
160
N_("_Templates"), "", NULL,
195
N_("_Templates"), "",
196
N_("Open the image templates dialog"),
161
197
"gimp-template-list|gimp-template-grid",
162
198
GIMP_HELP_TEMPLATE_DIALOG },
164
200
{ "dialogs-tools", GIMP_STOCK_TOOLS,
165
N_("T_ools"), NULL, NULL,
202
N_("Open the tools dialog"),
166
203
"gimp-tool-list|gimp-tool-grid",
167
204
GIMP_HELP_TOOLS_DIALOG },
169
206
{ "dialogs-error-console", GIMP_STOCK_WARNING,
170
N_("Error Co_nsole"), NULL, NULL,
207
N_("Error Co_nsole"), NULL,
208
N_("Open the error console"),
171
209
"gimp-error-console",
172
210
GIMP_HELP_ERRORS_DIALOG }
175
213
gint n_dialogs_dockable_actions = G_N_ELEMENTS (dialogs_dockable_actions);
177
static GimpStringActionEntry dialogs_toplevel_actions[] =
215
static const GimpStringActionEntry dialogs_toplevel_actions[] =
179
217
{ "dialogs-preferences", GTK_STOCK_PREFERENCES,
180
N_("_Preferences"), NULL, NULL,
218
N_("_Preferences"), NULL,
219
N_("Open the preferences dialog"),
181
220
"gimp-preferences-dialog",
182
221
GIMP_HELP_PREFS_DIALOG },
223
{ "dialogs-keyboard-shortcuts", GIMP_STOCK_CHAR_PICKER,
224
N_("_Keyboard Shortcuts"), NULL,
225
N_("Open the keyboard shortcuts editor"),
226
"gimp-keyboard-shortcuts-dialog",
227
GIMP_HELP_KEYBOARD_SHORTCUTS },
184
229
{ "dialogs-module-dialog", GTK_STOCK_EXECUTE,
185
N_("_Module Manager"), NULL, NULL,
230
N_("_Module Manager"), NULL,
231
N_("Open the module manager dialog"),
186
232
"gimp-module-dialog",
187
233
GIMP_HELP_MODULE_DIALOG },
189
235
{ "dialogs-tips", GIMP_STOCK_INFO,
190
N_("_Tip of the Day"), NULL, NULL,
236
N_("_Tip of the Day"), NULL,
237
N_("Show the tip of the day"),
191
238
"gimp-tips-dialog",
192
239
GIMP_HELP_TIPS_DIALOG },
194
{ "dialogs-about", GIMP_STOCK_WILBER,
195
N_("_About"), NULL, NULL,
241
{ "dialogs-about", GTK_STOCK_ABOUT,
196
244
"gimp-about-dialog",
197
245
GIMP_HELP_ABOUT_DIALOG }