2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2004-04-19 22:54:24 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2004-04-19 22:54:24 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-04-19 22:54:24 +08:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2004-04-19 22:54:24 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include "libgimpwidgets/gimpwidgets.h"
|
|
|
|
|
|
|
|
#include "actions-types.h"
|
|
|
|
|
|
|
|
#include "widgets/gimpactiongroup.h"
|
|
|
|
#include "widgets/gimphelp-ids.h"
|
|
|
|
|
|
|
|
#include "dialogs-actions.h"
|
2004-04-20 21:25:55 +08:00
|
|
|
#include "dialogs-commands.h"
|
2004-04-19 22:54:24 +08:00
|
|
|
|
|
|
|
#include "gimp-intl.h"
|
|
|
|
|
|
|
|
|
2006-04-10 16:06:18 +08:00
|
|
|
const GimpStringActionEntry dialogs_dockable_actions[] =
|
2004-04-19 22:54:24 +08:00
|
|
|
{
|
|
|
|
{ "dialogs-tool-options", GIMP_STOCK_TOOL_OPTIONS,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Tool _Options"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the tool options dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-tool-options",
|
|
|
|
GIMP_HELP_TOOL_OPTIONS_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-device-status", GIMP_STOCK_DEVICE_STATUS,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Device Status"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the device status dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-device-status",
|
|
|
|
GIMP_HELP_DEVICE_STATUS_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-layers", GIMP_STOCK_LAYERS,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Layers"), "<control>L",
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the layers dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-layer-list",
|
|
|
|
GIMP_HELP_LAYER_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-channels", GIMP_STOCK_CHANNELS,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Channels"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the channels dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-channel-list",
|
|
|
|
GIMP_HELP_CHANNEL_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-vectors", GIMP_STOCK_PATHS,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Paths"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the paths dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-vectors-list",
|
|
|
|
GIMP_HELP_PATH_DIALOG },
|
|
|
|
|
2006-06-16 23:06:57 +08:00
|
|
|
{ "dialogs-indexed-palette", GIMP_STOCK_COLORMAP,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Color_map"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the colormap dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-indexed-palette",
|
|
|
|
GIMP_HELP_INDEXED_PALETTE_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-histogram", GIMP_STOCK_HISTOGRAM,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Histogra_m"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the histogram dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-histogram-editor",
|
|
|
|
GIMP_HELP_HISTOGRAM_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-selection-editor", GIMP_STOCK_TOOL_RECT_SELECT,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Selection Editor"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the selection editor"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-selection-editor",
|
|
|
|
GIMP_HELP_SELECTION_DIALOG },
|
|
|
|
|
2004-04-21 18:55:45 +08:00
|
|
|
{ "dialogs-navigation", GIMP_STOCK_NAVIGATION,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Na_vigation"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the display navigation dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-navigation-view",
|
|
|
|
GIMP_HELP_NAVIGATION_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-undo-history", GIMP_STOCK_UNDO_HISTORY,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Undo _History"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the undo history dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-undo-history",
|
|
|
|
GIMP_HELP_UNDO_DIALOG },
|
|
|
|
|
2005-04-03 23:48:03 +08:00
|
|
|
{ "dialogs-cursor", GIMP_STOCK_CURSOR,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Pointer"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the pointer information dialog"),
|
2005-04-03 23:48:03 +08:00
|
|
|
"gimp-cursor-view",
|
2006-01-12 18:31:13 +08:00
|
|
|
GIMP_HELP_POINTER_INFO_DIALOG },
|
2005-04-03 23:48:03 +08:00
|
|
|
|
|
|
|
{ "dialogs-sample-points", GIMP_STOCK_SAMPLE_POINT,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Sample Points"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the sample points dialog"),
|
2005-04-03 23:48:03 +08:00
|
|
|
"gimp-sample-point-editor",
|
|
|
|
GIMP_HELP_SAMPLE_POINT_DIALOG },
|
|
|
|
|
2004-04-19 22:54:24 +08:00
|
|
|
{ "dialogs-colors", GIMP_STOCK_DEFAULT_COLORS,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Colo_rs"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the FG/BG color dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-color-editor",
|
|
|
|
GIMP_HELP_COLOR_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-brushes", GIMP_STOCK_BRUSH,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Brushes"), "<control><shift>B",
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the brushes dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-brush-grid|gimp-brush-list",
|
|
|
|
GIMP_HELP_BRUSH_DIALOG },
|
|
|
|
|
2008-09-16 16:38:09 +08:00
|
|
|
{ "dialogs-brush-editor", GIMP_STOCK_BRUSH,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Brush Editor"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the brush editor"),
|
2008-06-05 14:58:10 +08:00
|
|
|
"gimp-brush-editor",
|
|
|
|
GIMP_HELP_BRUSH_EDIT },
|
|
|
|
|
2004-04-19 22:54:24 +08:00
|
|
|
{ "dialogs-patterns", GIMP_STOCK_PATTERN,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "P_atterns"), "<control><shift>P",
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the patterns dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-pattern-grid|gimp-pattern-list",
|
|
|
|
GIMP_HELP_PATTERN_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-gradients", GIMP_STOCK_GRADIENT,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Gradients"), "<control>G",
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the gradients dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-gradient-list|gimp-gradient-grid",
|
|
|
|
GIMP_HELP_GRADIENT_DIALOG },
|
|
|
|
|
2008-09-16 16:38:09 +08:00
|
|
|
{ "dialogs-gradient-editor", GIMP_STOCK_GRADIENT,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Gradient Editor"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the gradient editor"),
|
2008-06-05 14:58:10 +08:00
|
|
|
"gimp-gradient-editor",
|
|
|
|
GIMP_HELP_GRADIENT_EDIT },
|
|
|
|
|
2004-04-19 22:54:24 +08:00
|
|
|
{ "dialogs-palettes", GIMP_STOCK_PALETTE,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Pal_ettes"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the palettes dialog"),
|
2005-09-29 05:14:02 +08:00
|
|
|
"gimp-palette-list|gimp-palette-grid",
|
2004-04-19 22:54:24 +08:00
|
|
|
GIMP_HELP_PALETTE_DIALOG },
|
|
|
|
|
2008-09-16 16:38:09 +08:00
|
|
|
{ "dialogs-palette-editor", GIMP_STOCK_PALETTE,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Palette Editor"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the palette editor"),
|
2008-06-05 14:58:10 +08:00
|
|
|
"gimp-palette-editor",
|
|
|
|
GIMP_HELP_PALETTE_EDIT },
|
|
|
|
|
2004-04-19 22:54:24 +08:00
|
|
|
{ "dialogs-fonts", GIMP_STOCK_FONT,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Fonts"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the fonts dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-font-list|gimp-font-grid",
|
|
|
|
GIMP_HELP_FONT_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-buffers", GIMP_STOCK_BUFFER,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "B_uffers"), "",
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the named buffers dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-buffer-list|gimp-buffer-grid",
|
|
|
|
GIMP_HELP_BUFFER_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-images", GIMP_STOCK_IMAGES,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Images"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the images dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-image-list|gimp-image-grid",
|
|
|
|
GIMP_HELP_IMAGE_DIALOG },
|
|
|
|
|
2008-08-22 16:57:11 +08:00
|
|
|
{ "dialogs-document-history", "document-open-recent",
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Document Histor_y"), "",
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the document history dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-document-list|gimp-document-grid",
|
|
|
|
GIMP_HELP_DOCUMENT_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-templates", GIMP_STOCK_TEMPLATE,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Templates"), "",
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the image templates dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-template-list|gimp-template-grid",
|
|
|
|
GIMP_HELP_TEMPLATE_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-error-console", GIMP_STOCK_WARNING,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "Error Co_nsole"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the error console"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-error-console",
|
|
|
|
GIMP_HELP_ERRORS_DIALOG }
|
|
|
|
};
|
|
|
|
|
|
|
|
gint n_dialogs_dockable_actions = G_N_ELEMENTS (dialogs_dockable_actions);
|
|
|
|
|
2006-04-10 16:06:18 +08:00
|
|
|
static const GimpStringActionEntry dialogs_toplevel_actions[] =
|
2004-04-19 22:54:24 +08:00
|
|
|
{
|
|
|
|
{ "dialogs-preferences", GTK_STOCK_PREFERENCES,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Preferences"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the preferences dialog"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-preferences-dialog",
|
|
|
|
GIMP_HELP_PREFS_DIALOG },
|
|
|
|
|
2005-09-30 16:27:57 +08:00
|
|
|
{ "dialogs-keyboard-shortcuts", GIMP_STOCK_CHAR_PICKER,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Keyboard Shortcuts"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the keyboard shortcuts editor"),
|
2005-09-30 08:40:45 +08:00
|
|
|
"gimp-keyboard-shortcuts-dialog",
|
|
|
|
GIMP_HELP_KEYBOARD_SHORTCUTS },
|
|
|
|
|
2004-09-13 23:15:23 +08:00
|
|
|
{ "dialogs-module-dialog", GTK_STOCK_EXECUTE,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Modules"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Open the module manager dialog"),
|
2004-09-13 23:15:23 +08:00
|
|
|
"gimp-module-dialog",
|
2004-04-19 22:54:24 +08:00
|
|
|
GIMP_HELP_MODULE_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-tips", GIMP_STOCK_INFO,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_Tip of the Day"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "Show some helpful tips on using GIMP"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-tips-dialog",
|
|
|
|
GIMP_HELP_TIPS_DIALOG },
|
|
|
|
|
2005-09-19 21:07:24 +08:00
|
|
|
{ "dialogs-about", GTK_STOCK_ABOUT,
|
2008-12-03 23:27:42 +08:00
|
|
|
NC_("dialogs-action", "_About"), NULL,
|
2008-12-04 18:32:20 +08:00
|
|
|
NC_("dialogs-action", "About GIMP"),
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-about-dialog",
|
|
|
|
GIMP_HELP_ABOUT_DIALOG }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
void
|
2004-04-27 21:55:26 +08:00
|
|
|
dialogs_actions_setup (GimpActionGroup *group)
|
2004-04-19 22:54:24 +08:00
|
|
|
{
|
2008-12-03 23:27:42 +08:00
|
|
|
gimp_action_group_add_string_actions (group, "dialogs-action",
|
2004-04-19 22:54:24 +08:00
|
|
|
dialogs_dockable_actions,
|
|
|
|
G_N_ELEMENTS (dialogs_dockable_actions),
|
2004-04-27 21:55:26 +08:00
|
|
|
G_CALLBACK (dialogs_create_dockable_cmd_callback));
|
2004-04-19 22:54:24 +08:00
|
|
|
|
2008-12-03 23:27:42 +08:00
|
|
|
gimp_action_group_add_string_actions (group, "dialogs-action",
|
2004-04-19 22:54:24 +08:00
|
|
|
dialogs_toplevel_actions,
|
|
|
|
G_N_ELEMENTS (dialogs_toplevel_actions),
|
2004-04-27 21:55:26 +08:00
|
|
|
G_CALLBACK (dialogs_create_toplevel_cmd_callback));
|
2004-04-19 22:54:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
dialogs_actions_update (GimpActionGroup *group,
|
|
|
|
gpointer data)
|
|
|
|
{
|
|
|
|
}
|