menus: add all the missing menus in the new GtkBuilder format!

I was handling all the problematic cases first. These remaining menus are
working fine otherwise by just implementing them, as far as my tests go.
This commit is contained in:
Jehan 2023-03-02 14:32:18 +01:00
parent 55dc688759
commit 033aa8e71b
12 changed files with 211 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<interface>
<menu id="/brush-editor-popup">
<submenu>
<attribute name="label" translatable="yes" context="brush-editor-action">Brush Editor Menu</attribute>
<attribute name="icon">gimp-tool-paintbrush</attribute>
<item><attribute name="action">app.brush-editor-edit-active</attribute></item>
</submenu>
</menu>
</interface>

11
menus/cursor-info-menu.ui Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<interface>
<menu id="/cursor-info-popup">
<submenu>
<attribute name="label" translatable="yes" context="cursor-info-action">Pointer Information Menu</attribute>
<attribute name="icon">gimp-cursor</attribute>
<item><attribute name="action">app.cursor-info-sample-merged</attribute></item>
</submenu>
</menu>
</interface>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<interface>
<menu id="/dynamics-editor-popup">
<submenu>
<attribute name="label" translatable="yes" context="dynamics-editor-action">Paint Dynamics Editor Menu</attribute>
<attribute name="icon">gimp-dynamics</attribute>
<item><attribute name="action">app.dynamics-editor-edit-active</attribute></item>
</submenu>
</menu>
</interface>

View File

@ -40,12 +40,15 @@ install_data(menus_files,
)
ui_menus_files = files(
'brush-editor-menu.ui',
'brushes-menu.ui',
'buffers-menu.ui',
'channels-menu.ui',
'colormap-menu.ui',
'cursor-info-menu.ui',
'dashboard-menu.ui',
'documents-menu.ui',
'dynamics-editor-menu.ui',
'dynamics-menu.ui',
'error-console-menu.ui',
'fonts-menu.ui',
@ -54,12 +57,20 @@ ui_menus_files = files(
'images-menu.ui',
'layers-menu.ui',
'mypaint-brushes-menu.ui',
'palette-editor-menu.ui',
'palettes-menu.ui',
'patterns-menu.ui',
'quick-mask-menu.ui',
'sample-points-menu.ui',
'selection-menu.ui',
'templates-menu.ui',
'text-editor-toolbar.ui',
'text-tool-menu.ui',
'tool-options-menu.ui',
'tool-preset-editor-menu.ui',
'tool-presets-menu.ui',
'undo-menu.ui',
'vector-toolpath-menu.ui',
'vectors-menu.ui',
)

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<interface>
<menu id="/palette-editor-popup">
<submenu>
<attribute name="label" translatable="yes" context="palette-editor-action">Palette Editor Menu</attribute>
<attribute name="icon">gtk-select-color</attribute>
<item><attribute name="action">app.palette-editor-edit-color</attribute></item>
<item><attribute name="action">app.palette-editor-new-color-fg</attribute></item>
<item><attribute name="action">app.palette-editor-new-color-bg</attribute></item>
<item><attribute name="action">app.palette-editor-delete-color</attribute></item>
<section>
<item><attribute name="action">app.palette-editor-zoom-out</attribute></item>
<item><attribute name="action">app.palette-editor-zoom-in</attribute></item>
<item><attribute name="action">app.palette-editor-zoom-all</attribute></item>
</section>
<item><attribute name="action">app.palette-editor-edit-active</attribute></item>
</submenu>
</menu>
</interface>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<interface>
<menu id="/sample-points-popup">
<submenu>
<attribute name="label" translatable="yes" context="sample-points-action">Sample Point Menu</attribute>
<attribute name="icon">gimp-sample-point</attribute>
<item><attribute name="action">app.sample-points-sample-merged</attribute></item>
</submenu>
</menu>
</interface>

30
menus/selection-menu.ui Normal file
View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<interface>
<menu id="/selection-popup">
<submenu>
<attribute name="label" translatable="yes" context="select-action">Selection Editor Menu</attribute>
<attribute name="icon">gimp-selection</attribute>
<item><attribute name="action">app.select-all</attribute></item>
<item><attribute name="action">app.select-none</attribute></item>
<item><attribute name="action">app.select-invert</attribute></item>
<item><attribute name="action">app.vectors-selection-from-vectors</attribute></item>
<item><attribute name="action">app.select-float</attribute></item>
<section>
<item><attribute name="action">app.select-feather</attribute></item>
<item><attribute name="action">app.select-sharpen</attribute></item>
<item><attribute name="action">app.select-shrink</attribute></item>
<item><attribute name="action">app.select-grow</attribute></item>
<item><attribute name="action">app.select-border</attribute></item>
<item><attribute name="action">app.select-flood</attribute></item>
</section>
<section>
<item><attribute name="action">app.select-save</attribute></item>
<item><attribute name="action">app.vectors-selection-to-vectors-short</attribute></item>
</section>
<item><attribute name="action">app.select-fill</attribute></item>
<item><attribute name="action">app.select-stroke</attribute></item>
</submenu>
</menu>
</interface>

28
menus/text-tool-menu.ui Normal file
View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<interface>
<menu id="/text-tool-popup">
<submenu>
<attribute name="label" translatable="yes" context="text-tool-action">Text Tool Menu</attribute>
<item><attribute name="action">app.text-tool-cut</attribute></item>
<item><attribute name="action">app.text-tool-copy</attribute></item>
<item><attribute name="action">app.text-tool-paste</attribute></item>
<item><attribute name="action">app.text-tool-delete</attribute></item>
<section>
<item><attribute name="action">app.text-tool-load</attribute></item>
<item><attribute name="action">app.text-tool-clear</attribute></item>
</section>
<section>
<item><attribute name="action">app.text-tool-text-to-path</attribute></item>
<item><attribute name="action">app.text-tool-text-along-path</attribute></item>
</section>
<item><attribute name="action">app.text-tool-direction-ltr</attribute></item>
<item><attribute name="action">app.text-tool-direction-rtl</attribute></item>
<item><attribute name="action">app.text-tool-direction-ttb-rtl</attribute></item>
<item><attribute name="action">app.text-tool-direction-ttb-rtl-upright</attribute></item>
<item><attribute name="action">app.text-tool-direction-ttb-ltr</attribute></item>
<item><attribute name="action">app.text-tool-direction-ttb-ltr-upright</attribute></item>
</submenu>
</menu>
</interface>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<interface>
<menu id="/tool-options-popup">
<submenu>
<attribute name="label" translatable="yes" context="tool-options-action">Tool Options Menu</attribute>
<attribute name="icon">gimp-tool-options</attribute>
<submenu>
<attribute name="label">Save</attribute>
<section>
<item><attribute name="action">app.tool-options-save-new-preset</attribute></item>
</section>
</submenu>
<item><attribute name="action">app.tool-options-restore-preset-menu</attribute></item>
<item><attribute name="action">app.tool-options-edit-preset-menu</attribute></item>
<item><attribute name="action">app.tool-options-delete-preset-menu</attribute></item>
<section>
<item><attribute name="action">app.tool-options-reset</attribute></item>
<item><attribute name="action">app.tool-options-reset-all</attribute></item>
</section>
</submenu>
</menu>
</interface>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<interface>
<menu id="/tool-preset-editor-popup">
<submenu>
<attribute name="label" translatable="yes" context="tool-preset-editor-action">Tool Preset Editor Menu</attribute>
<attribute name="icon">gimp-tool-preset</attribute>
<section>
<item><attribute name="action">app.tool-preset-editor-save</attribute></item>
<item><attribute name="action">app.tool-preset-editor-restore</attribute></item>
</section>
<item><attribute name="action">app.tool-preset-editor-edit-active</attribute></item>
</submenu>
</menu>
</interface>

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<interface>
<menu id="/tool-presets-popup">
<submenu>
<attribute name="label" translatable="yes" context="tool-presets-action">Tool Presets Menu</attribute>
<attribute name="icon">gimp-tool-preset</attribute>
<item><attribute name="action">app.tool-presets-edit</attribute></item>
<section>
<item><attribute name="action">app.tool-presets-new</attribute></item>
<item><attribute name="action">app.tool-presets-duplicate</attribute></item>
<item><attribute name="action">app.tool-presets-copy-location</attribute></item>
<item><attribute name="action">app.tool-presets-show-in-file-manager</attribute></item>
<item><attribute name="action">app.tool-presets-save</attribute></item>
<item><attribute name="action">app.tool-presets-restore</attribute></item>
<item><attribute name="action">app.tool-presets-delete</attribute></item>
</section>
<section>
<item><attribute name="action">app.tool-presets-refresh</attribute></item>
</section>
</submenu>
</menu>
</interface>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<interface>
<menu id="/vector-toolpath-popup">
<section>
<item><attribute name="action">app.vector-toolpath-delete-anchor</attribute></item>
<item><attribute name="action">app.vector-toolpath-shift-start</attribute></item>
</section>
<item><attribute name="action">app.vector-toolpath-insert-anchor</attribute></item>
<item><attribute name="action">app.vector-toolpath-delete-segment</attribute></item>
<item><attribute name="action">app.vector-toolpath-reverse-stroke</attribute></item>
</menu>
</interface>