2004-04-19 22:54:24 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (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
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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"
|
|
|
|
|
|
|
|
|
|
|
|
static GimpActionEntry dialogs_actions[] =
|
|
|
|
{
|
2004-05-02 16:56:07 +08:00
|
|
|
{ "dialogs-menu", NULL, N_("_Dialogs") },
|
|
|
|
{ "dialogs-new-dock-menu", NULL, N_("Create New Doc_k") },
|
2004-04-19 22:54:24 +08:00
|
|
|
|
|
|
|
{ "dialogs-new-dock-lcp", NULL,
|
|
|
|
N_("_Layers, Channels & Paths"), NULL, NULL,
|
|
|
|
G_CALLBACK (dialogs_create_lc_cmd_callback),
|
2004-05-02 16:56:07 +08:00
|
|
|
GIMP_HELP_DOCK },
|
2004-04-19 22:54:24 +08:00
|
|
|
|
|
|
|
{ "dialogs-new-dock-data", NULL,
|
|
|
|
N_("_Brushes, Patterns & Gradients"), NULL, NULL,
|
|
|
|
G_CALLBACK (dialogs_create_data_cmd_callback),
|
2004-05-02 16:56:07 +08:00
|
|
|
GIMP_HELP_DOCK },
|
2004-04-19 22:54:24 +08:00
|
|
|
|
|
|
|
{ "dialogs-new-dock-stuff", NULL,
|
|
|
|
N_("_Misc. Stuff"), NULL, NULL,
|
|
|
|
G_CALLBACK (dialogs_create_stuff_cmd_callback),
|
2004-05-02 16:56:07 +08:00
|
|
|
GIMP_HELP_DOCK },
|
2004-04-19 22:54:24 +08:00
|
|
|
|
|
|
|
{ "dialogs-toolbox", NULL,
|
2005-01-23 08:16:58 +08:00
|
|
|
N_("Tool_box"), "<control>B", NULL,
|
2004-04-19 22:54:24 +08:00
|
|
|
G_CALLBACK (dialogs_show_toolbox_cmd_callback),
|
|
|
|
GIMP_HELP_TOOLBOX }
|
|
|
|
};
|
|
|
|
|
|
|
|
GimpStringActionEntry dialogs_dockable_actions[] =
|
|
|
|
{
|
|
|
|
{ "dialogs-tool-options", GIMP_STOCK_TOOL_OPTIONS,
|
|
|
|
N_("Tool _Options"), "<control><shift>T", NULL,
|
|
|
|
"gimp-tool-options",
|
|
|
|
GIMP_HELP_TOOL_OPTIONS_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-device-status", GIMP_STOCK_DEVICE_STATUS,
|
|
|
|
N_("_Device Status"), NULL, NULL,
|
|
|
|
"gimp-device-status",
|
|
|
|
GIMP_HELP_DEVICE_STATUS_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-layers", GIMP_STOCK_LAYERS,
|
|
|
|
N_("_Layers"), "<control>L", NULL,
|
|
|
|
"gimp-layer-list",
|
|
|
|
GIMP_HELP_LAYER_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-channels", GIMP_STOCK_CHANNELS,
|
|
|
|
N_("_Channels"), NULL, NULL,
|
|
|
|
"gimp-channel-list",
|
|
|
|
GIMP_HELP_CHANNEL_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-vectors", GIMP_STOCK_PATHS,
|
|
|
|
N_("_Paths"), NULL, NULL,
|
|
|
|
"gimp-vectors-list",
|
|
|
|
GIMP_HELP_PATH_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-indexed-palette", GIMP_STOCK_INDEXED_PALETTE,
|
2004-10-22 22:43:43 +08:00
|
|
|
N_("Color_map"), NULL, NULL,
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-indexed-palette",
|
|
|
|
GIMP_HELP_INDEXED_PALETTE_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-histogram", GIMP_STOCK_HISTOGRAM,
|
|
|
|
N_("Histogra_m"), NULL, NULL,
|
|
|
|
"gimp-histogram-editor",
|
|
|
|
GIMP_HELP_HISTOGRAM_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-selection-editor", GIMP_STOCK_TOOL_RECT_SELECT,
|
|
|
|
N_("_Selection Editor"), NULL, NULL,
|
|
|
|
"gimp-selection-editor",
|
|
|
|
GIMP_HELP_SELECTION_DIALOG },
|
|
|
|
|
2004-04-21 18:55:45 +08:00
|
|
|
{ "dialogs-navigation", GIMP_STOCK_NAVIGATION,
|
2004-04-19 22:54:24 +08:00
|
|
|
N_("Na_vigation"), NULL, NULL,
|
|
|
|
"gimp-navigation-view",
|
|
|
|
GIMP_HELP_NAVIGATION_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-undo-history", GIMP_STOCK_UNDO_HISTORY,
|
2004-10-18 19:29:58 +08:00
|
|
|
N_("Undo _History"), NULL, NULL,
|
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,
|
|
|
|
N_("_Cursor"), NULL, NULL,
|
|
|
|
"gimp-cursor-view",
|
2005-07-09 07:06:35 +08:00
|
|
|
GIMP_HELP_CURSOR_INFO_DIALOG },
|
2005-04-03 23:48:03 +08:00
|
|
|
|
|
|
|
{ "dialogs-sample-points", GIMP_STOCK_SAMPLE_POINT,
|
|
|
|
N_("_Sample Points"), NULL, NULL,
|
|
|
|
"gimp-sample-point-editor",
|
|
|
|
GIMP_HELP_SAMPLE_POINT_DIALOG },
|
|
|
|
|
2004-04-19 22:54:24 +08:00
|
|
|
{ "dialogs-colors", GIMP_STOCK_DEFAULT_COLORS,
|
|
|
|
N_("Colo_rs"), NULL, NULL,
|
|
|
|
"gimp-color-editor",
|
|
|
|
GIMP_HELP_COLOR_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-brushes", GIMP_STOCK_BRUSH,
|
2004-10-18 19:29:58 +08:00
|
|
|
N_("_Brushes"), "<control><shift>B", NULL,
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-brush-grid|gimp-brush-list",
|
|
|
|
GIMP_HELP_BRUSH_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-patterns", GIMP_STOCK_PATTERN,
|
|
|
|
N_("P_atterns"), "<control><shift>P", NULL,
|
|
|
|
"gimp-pattern-grid|gimp-pattern-list",
|
|
|
|
GIMP_HELP_PATTERN_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-gradients", GIMP_STOCK_GRADIENT,
|
|
|
|
N_("_Gradients"), "<control>G", NULL,
|
|
|
|
"gimp-gradient-list|gimp-gradient-grid",
|
|
|
|
GIMP_HELP_GRADIENT_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-palettes", GIMP_STOCK_PALETTE,
|
|
|
|
N_("Pal_ettes"), "<control>P", NULL,
|
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 },
|
|
|
|
|
|
|
|
{ "dialogs-fonts", GIMP_STOCK_FONT,
|
|
|
|
N_("_Fonts"), NULL, NULL,
|
|
|
|
"gimp-font-list|gimp-font-grid",
|
|
|
|
GIMP_HELP_FONT_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-buffers", GIMP_STOCK_BUFFER,
|
2004-10-18 19:29:58 +08:00
|
|
|
N_("B_uffers"), "", NULL,
|
2004-04-19 22:54:24 +08:00
|
|
|
"gimp-buffer-list|gimp-buffer-grid",
|
|
|
|
GIMP_HELP_BUFFER_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-images", GIMP_STOCK_IMAGES,
|
|
|
|
N_("_Images"), NULL, NULL,
|
|
|
|
"gimp-image-list|gimp-image-grid",
|
|
|
|
GIMP_HELP_IMAGE_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-document-history", GTK_STOCK_OPEN,
|
|
|
|
N_("Document Histor_y"), "", NULL,
|
|
|
|
"gimp-document-list|gimp-document-grid",
|
|
|
|
GIMP_HELP_DOCUMENT_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-templates", GIMP_STOCK_TEMPLATE,
|
|
|
|
N_("_Templates"), "", NULL,
|
|
|
|
"gimp-template-list|gimp-template-grid",
|
|
|
|
GIMP_HELP_TEMPLATE_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-tools", GIMP_STOCK_TOOLS,
|
|
|
|
N_("T_ools"), NULL, NULL,
|
|
|
|
"gimp-tool-list|gimp-tool-grid",
|
|
|
|
GIMP_HELP_TOOLS_DIALOG },
|
|
|
|
|
|
|
|
{ "dialogs-error-console", GIMP_STOCK_WARNING,
|
|
|
|
N_("Error Co_nsole"), NULL, NULL,
|
|
|
|
"gimp-error-console",
|
|
|
|
GIMP_HELP_ERRORS_DIALOG }
|
|
|
|
};
|
|
|
|
|
|
|
|
gint n_dialogs_dockable_actions = G_N_ELEMENTS (dialogs_dockable_actions);
|
|
|
|
|
|
|
|
static GimpStringActionEntry dialogs_toplevel_actions[] =
|
|
|
|
{
|
|
|
|
{ "dialogs-preferences", GTK_STOCK_PREFERENCES,
|
|
|
|
N_("_Preferences"), NULL, NULL,
|
|
|
|
"gimp-preferences-dialog",
|
|
|
|
GIMP_HELP_PREFS_DIALOG },
|
|
|
|
|
2005-09-30 08:40:45 +08:00
|
|
|
{ "dialogs-keyboard-shortcuts", NULL,
|
|
|
|
N_("_Keyboard Shortcuts"), NULL, NULL,
|
|
|
|
"gimp-keyboard-shortcuts-dialog",
|
|
|
|
GIMP_HELP_KEYBOARD_SHORTCUTS },
|
|
|
|
|
2004-09-13 23:15:23 +08:00
|
|
|
{ "dialogs-module-dialog", GTK_STOCK_EXECUTE,
|
2004-04-19 22:54:24 +08:00
|
|
|
N_("_Module Manager"), NULL, NULL,
|
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,
|
|
|
|
N_("_Tip of the Day"), NULL, NULL,
|
|
|
|
"gimp-tips-dialog",
|
|
|
|
GIMP_HELP_TIPS_DIALOG },
|
|
|
|
|
2005-09-19 21:07:24 +08:00
|
|
|
{ "dialogs-about", GTK_STOCK_ABOUT,
|
2004-04-19 22:54:24 +08:00
|
|
|
N_("_About"), NULL, NULL,
|
|
|
|
"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
|
|
|
{
|
|
|
|
gimp_action_group_add_actions (group,
|
|
|
|
dialogs_actions,
|
2004-04-27 21:55:26 +08:00
|
|
|
G_N_ELEMENTS (dialogs_actions));
|
2004-04-19 22:54:24 +08:00
|
|
|
|
|
|
|
gimp_action_group_add_string_actions (group,
|
|
|
|
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
|
|
|
|
|
|
|
gimp_action_group_add_string_actions (group,
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
}
|