Add menu item for dynamics dockable (menu bits)

actions/actions.c
   actions/dialogs-actions.c
   dialogs/dialogs-constructors.c
   menus/menus.c
   menus/plug-in-menus.c
   pdb/makefile.msc
   ../etc/ps-menurc
   ../menus/Makefile.am
   ../menus/dialogs-menuitems.xml: add dynamics editor.

   ../menus/dynamics-editor-menu.xml: (new file)
This commit is contained in:
zhenfeng zhao 2009-07-28 16:52:53 -03:00
parent 6a574ab192
commit 03e91b64f4
10 changed files with 50 additions and 1 deletions

View File

@ -103,6 +103,9 @@ static const GimpActionFactoryEntry action_groups[] =
{ "brush-editor", N_("Brush Editor"), GIMP_STOCK_BRUSH,
brush_editor_actions_setup,
brush_editor_actions_update },
{ "dynamics-editor", N_("Dynamics Editor"), GIMP_STOCK_BRUSH,
brush_editor_actions_setup,
brush_editor_actions_update },
{ "brushes", N_("Brushes"), GIMP_STOCK_BRUSH,
brushes_actions_setup,
brushes_actions_update },

View File

@ -123,6 +123,12 @@ const GimpStringActionEntry dialogs_dockable_actions[] =
NC_("dialogs-action", "Open the brush editor"),
"gimp-brush-editor",
GIMP_HELP_BRUSH_EDIT },
{ "dialogs-dynamics-editor", GIMP_STOCK_BRUSH,
NC_("dialogs-action", "Dynamics Editor"), NULL,
NC_("dialogs-action", "Open the dynamics editor"),
"gimp-dynamics-editor",
GIMP_HELP_BRUSH_EDIT },
{ "dialogs-patterns", GIMP_STOCK_PATTERN,
NC_("dialogs-action", "P_atterns"), "<control><shift>P",

View File

@ -669,6 +669,15 @@ dialogs_brush_editor_get (GimpDialogFactory *factory,
factory->menu_factory);
}
GtkWidget *
dialogs_dynamics_editor_get (GimpDialogFactory *factory,
GimpContext *context,
gint view_size)
{
return gimp_brush_editor_new (context,
factory->menu_factory);
}
GtkWidget *
dialogs_gradient_editor_get (GimpDialogFactory *factory,
GimpContext *context,

View File

@ -274,7 +274,19 @@ menus_init (Gimp *gimp,
"/brush-editor-popup",
"brush-editor-menu.xml", NULL,
NULL);
gimp_menu_factory_manager_register (global_menu_factory, "<DynamicsEditor>",
"dynamics-editor",
NULL,
"/dynamics-editor-popup",
"dynamics-editor-menu.xml", NULL,
NULL);
/*
gimp_menu_factory_manager_register (global_menu_factory, "<DynamicsEditor>",
"dynamics",
NULL,
NULL);
*/
gimp_menu_factory_manager_register (global_menu_factory, "<GradientEditor>",
"gradient-editor",
NULL,

View File

@ -317,10 +317,17 @@ plug_in_menus_menu_path_added (GimpPlugInProcedure *plug_in_proc,
plug_in_menus_add_proc (manager, "/colormap-popup",
plug_in_proc, menu_path);
}
else if (! strcmp (manager->name, "<Brushes>"))
{
plug_in_menus_add_proc (manager, "/brushes-popup",
plug_in_proc, menu_path);
}
else if (! strcmp (manager->name, "<Dynamics>"))
{
plug_in_menus_add_proc (manager, "/dynamics-popup",
plug_in_proc, menu_path);
}
else if (! strcmp (manager->name, "<Gradients>"))
{

View File

@ -38,6 +38,7 @@ OBJECTS = \
internal-procs.obj \
brush-cmds.obj \
brushes-cmds.obj \
dynamics-cmds.obj \
buffer-cmds.obj \
channel-cmds.obj \
color-cmds.obj \

View File

@ -18,6 +18,7 @@
(gtk_accel_path "<Actions>/layers/layers-alpha-selection-replace" "<Alt>a")
(gtk_accel_path "<Actions>/dialogs/dialogs-layers" "F7")
(gtk_accel_path "<Actions>/dialogs/dialogs-brushes" "")
(gtk_accel_path "<Actions>/dialogs/dialogs-dynamics" "")
(gtk_accel_path "<Actions>/view/view-info-window" "F8")
(gtk_accel_path "<Actions>/layers/layers-duplicate" "<Control>j")
(gtk_accel_path "<Actions>/dialogs/dialogs-channels" "<Shift>F7")

View File

@ -11,6 +11,7 @@ menudata_built_files = $(menudata_in_files:.xml.in=.xml)
menudata_DATA = \
$(menudata_built_files) \
brush-editor-menu.xml \
dynamics-editor-menu.xml \
brushes-menu.xml \
buffers-menu.xml \
channels-menu.xml \

View File

@ -17,6 +17,7 @@
<separator />
<menuitem action="dialogs-colors" />
<menuitem action="dialogs-brushes" />
<menuitem action="dialogs-dynamics" />
<menuitem action="dialogs-patterns" />
<menuitem action="dialogs-gradients" />
<menuitem action="dialogs-palettes" />

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE ui SYSTEM "gtkuimanager.dtd">
<ui>
<popup action="dynamics-editor-popup">
<menuitem action="dynamics-editor-edit-active" />
</popup>
</ui>