Michael Natterer
67863dabf9
Bug 637313 - Should be possible to copy/paste whole layers in a single step
...
Use the newly added clipboard for entire images to copy/paste layers
(we only create single-layer clipboard images, and use only the first
layer of any recieved image, the layers can be arbitrarily complex
though):
- change gimp_edit_copy,cut,paste() to return/take a GimpObject
that can be a GimpImage or GimpBuffer
- cut/copy the whole layer if there is no selection
- always paste layers as new layers, not floating selections
- always paste news layers on top of the active layer, where
we would attach a floating selection
- add enum GimpPasteType { FLOATING, FLOATING_INTO, NEW_LAYER }
- add GimpPasteType parameter to gimp_edit_paste() and handle all
three cases there because there is now a lot of common code
involved
- change all callers accordingly, use only legacy buffer pasting
from the PDB for now
2016-09-20 00:20:07 +02:00
Michael Natterer
f0acb3301a
app: factor gimp_edit_get_paste_offset() out of gimp_edit_paste()
...
and also use it for "paste as new layer", so we get the same
positioning logic for both paste variants.
2016-09-19 17:30:41 +02:00
Michael Natterer
08513f50f8
app: paste as new layer if the target layer can't be modified
...
Which happens on layer groups and locked drawables.
2016-09-19 12:36:11 +02:00
Michael Natterer
557965e593
app, menus: rename everything "paste as new" to "paste as new image"
...
Actions, functions, variables, help IDs. Also added user profile
migration code for importing old menurc files.
2016-09-19 12:15:39 +02:00
Michael Natterer
b092a80e51
app: reorder edit_fade_cmd_callback() in edit-commands.c
...
and group the prototypes in edit-commands.h
2016-09-17 19:45:45 +02:00
Michael Natterer
9bb33914bf
app: set tooltips on the tool options' brush, gradient etc edit buttons
...
Also make the tooltips of the edit buttons of the brush, gradient etc
dialogs consistent.
2016-09-17 17:10:20 +02:00
Michael Natterer
20a32d970d
Bug 599573 - Remember dialog defaults between Gimp sessions
...
Add GimpFillOptions and GimpStrokeOptions to GimpDialogConfig and use
them in the Fill/Stroke Selection/Path dialogs and for the "with last
values" commands. Add GUI for them to Preferences -> Dialog Defaults.
This requires most of the stuff in my last few commits, and some
more changes:
GimpFillOptions is a GimpContext which has all sorts of connections to
everything, including a Gimp pointer. Hack around in GimpDialogConfig
to add a Gimp property, and add "gimp" parameters to quite some GimpRC
functions. Treat the Gimp* as a GObject* in all public API because
core/ stuff is not known in config/.
2016-09-14 01:27:42 +02:00
Jehan
5289a25b7c
icons, app: "folder-new" icon used for new layer group.
2016-09-12 22:26:46 +02:00
Michael Natterer
61c260c727
app: add a trivial attach-dialog-to-arbitrary-object utility
...
Namely dialogs_attach_dialog(), _detach_dialog(), _get_dialog()
So we don't create the same dialogs multiple times, but raise the
already existing ones. Port some places that did this manually
to the new functions, and use it for many other dialogs.
2016-09-12 00:07:41 +02:00
Jehan
6c674e973c
app, libgimp*, plug-ins, icons: revert icon names into freedesktop...
...
... standard icon names and GTK+ icon names as second choice.
We should only use GIMP specific icon names as last resort, when there
is no standard or GTK+ names dedicated to the function.
This is made possible thanks to commit 3cc77b0
.
s/gimp-document-recent/document-open-recent/
s/gimp-indent/format-indent-more/
s/gimp-next/go-next/
s/gimp-previous/go-previous/
s/gimp-save/document-save/
s/gimp-save-as/document-save-as/
s/gimp-revert/document-revert/
s/gimp-open/document-open/
s/gimp-document-recent/document-open-recent/
s/gimp-quit/window-close/ ou s/gimp-quit/application-exit/
s/gimp-warning/dialog-warning/
s/gimp-edit-clear/edit-clear/
s/gimp-justify-.*/gtk-justify-.*/
s/gimp-font/gtk-select-font/
s/gimp-color-palette/gtk-select-color/
s/gimp-cancel/gtk-cancel/
2016-09-03 15:49:29 +02:00
Michael Natterer
dfa390fd95
Bug 599573 - Remember dialog defaults between Gimp sessions
...
Remember the "Feather Selection", "Grow Selection", "Shrink Selection"
and "Border Selection" dialog settings in GimpDialogConfig.
2016-08-26 15:43:25 +02:00
Michael Natterer
2ae3393c3b
Bug 599573 - Remember dialog defaults between Gimp sessions
...
Remember the "New Path" dialog settings in GimpDialogConfig.
2016-08-24 19:49:59 +02:00
Michael Natterer
8132d51b29
Bug 599573 - Remember dialog defaults between Gimp sessions
...
Remember the "New Channel" dialog settings in GimpDialogConfig.
2016-08-24 18:28:36 +02:00
Michael Natterer
981a1b9c2e
Bug 599573 - Remember dialog defaults between Gimp sessions
...
Remeber the "New Layer" dialog settings in GimpDialogConfig.
2016-08-24 12:33:56 +02:00
Benoit Touchette
0b7381a822
Bug 759601 - Add/Remove layer masks by clicking the layer preview
...
Quite heavily modified by Mitch to address the more general issues
mentioned in comment 35 of the bug:
- Remember the added mask's type and the invert boolean in
GimpDialogConfig
- Add new prefs page "Dialog Defaults" which will contain
only stuff from GimpDialogConfig and can be reset separately
- Remove static mask variables from layers-commands.c and
use the new config values for both interactive mask adding
with the dialog, and for the shortcut based method
- Add a button to the layers dialog which supports add, add
with last values, delete, apply
- Add modifier-click shortcuts on the layer preview with the
same modifiers as on the button
2016-08-23 19:18:20 +02:00
Jehan
3c76796e11
app: fix various typos and missing commas.
2016-06-10 13:50:47 +02:00
klausstaedtler
1199a7e6fb
icons: Bug 759904
...
add
gimp-document-recent
patch: replace "document-open-recent" by "gimp-document-recent" (or GIMP_STOCK_DOCUMENT_RECENT)
gimp/app/dialogs/dialogs.c: N_("History"), N_("Document History"), "document-open-recent",
gimp/app/actions/documents-actions.c: { "documents-popup", "document-open-recent",
gimp/app/actions/dialogs-actions.c: { "dialogs-document-history", "document-open-recent",
patch
gimpicons.c
gimpicons.h
2016-06-10 13:50:46 +02:00
klausstaedtler
b79e754480
icons: Bug 759904
...
add
gimp-open
patch: replace "document-open" by "gimp-open" (or GIMP_STOCK_OPEN)
gimp/plug-ins/imagemap/imap_browse.c: icon = gtk_image_new_from_icon_name ("document-open", GTK_ICON_SIZE_BUTTON);
gimp/libgimpwidgets/gimpfileentry.c: image = gtk_image_new_from_icon_name ("document-open", GTK_ICON_SIZE_BUTTON);
gimp/app/actions/text-editor-actions.c: { "text-editor-load", "document-open",
gimp/app/actions/vectors-actions.c: { "vectors-import", "document-open",
gimp/app/actions/patterns-actions.c: { "patterns-open-as-image", "document-open",
gimp/app/actions/documents-actions.c: { "documents-open", "document-open",
gimp/app/actions/brushes-actions.c: { "brushes-open-as-image", "document-open",
gimp/app/actions/text-tool-actions.c: { "text-tool-load", "document-open",
gimp/app/actions/file-actions.c: entries[i].icon_name = "document-open";
gimp/app/widgets/gimpsettingsbox.c: "document-open",
gimp/app/widgets/gimpsettingseditor.c: "document-open",
patch
gimpicons.c
gimpicons.h
2016-06-10 13:50:46 +02:00
klausstaedtler
0ae2422c77
icons: Bug 759904
...
patch: replace "edit-copy" by "gimp-clipboard" (or GIMP_STOCK_CLIPBOARD)
gimp/app/actions/palettes-actions.c: { "palettes-copy-location", "edit-copy",
gimp/app/actions/mypaint-brushes-actions.c: { "mypaint-brushes-copy-location", "edit-copy",
gimp/app/actions/vectors-actions.c: { "vectors-copy", "edit-copy",
gimp/app/actions/dynamics-actions.c: { "dynamics-copy-location", "edit-copy",
gimp/app/actions/tool-presets-actions.c: { "tool-presets-copy-location", "edit-copy",
gimp/app/actions/edit-actions.c: { "edit-copy", "edit-copy",
gimp/app/actions/patterns-actions.c: { "patterns-copy-location", "edit-copy",
gimp/app/actions/documents-actions.c: { "documents-copy-location", "edit-copy",
gimp/app/actions/brushes-actions.c: { "brushes-copy-location", "edit-copy",
gimp/app/actions/gradients-actions.c: { "gradients-copy-location", "edit-copy",
patch: replace "edit-copy" by "gimp-duplicate" (or GIMP_STOCK_DUPLICATE)
gimp/app/actions/edit-actions.c: { "edit-named-copy", "edit-copy", duplicate
gimp/app/actions/text-tool-actions.c: { "text-tool-copy", "edit-copy", duplicate
2016-06-10 13:50:46 +02:00
klausstaedtler
312691312d
icons: Bug 759904
...
add
gimp-shred
patch: replace "edit-clear" by "gimp-shred" (or GIMP_STOCK_SHRED)
gimp/app/actions/documents-commands.c: "edit-clear",
gimp/gimp/app/actions/edit-actions.c: { "edit-undo-clear", "edit-clear",
gimp/app/actions/documents-actions.c: { "documents-clear", "edit-clear",
gimp/app/dialogs/preferences-dialog.c: button = prefs_button_add ("edit-clear", shred
add
gimp-edit-clear
patch: replace "edit-clear" by "gimp-edit-clear" (or GIMP_STOCK_EDIT_CLEAR)
gimp/app/actions/text-editor-actions.c: { "text-editor-clear", "edit-clear",
gimp/app/actions/edit-actions.c: { "edit-clear", "edit-clear",
gimp/app/actions/error-console-actions.c: { "error-console-clear", "edit-clear",
gimp/app/actions/text-tool-actions.c: { "text-tool-clear", "edit-clear",
gimp/app/widgets/gimptextstyleeditor.c: image = gtk_image_new_from_icon_name ("edit-clear", GTK_ICON_SIZE_MENU);
gimp/app/dialogs/preferences-dialog.c: button = prefs_button_add ("edit-clear",
patch
gimpicons.c
gimpicons.h
update
icon-list.mk
2016-06-10 13:50:45 +02:00
klausstaedtler
71bedb70f6
icons: Bug 759904
...
patch: replace "window-close" by "gimp-quit" (or GIMP_STOCK_QUIT)
gimp/app/actions/dock-actions.c: { "dock-close", "window-close",
gimp/app/actions/view-actions.c: { "view-close", "window-close",
gimp/app/actions/dockable-actions.c: { "dockable-close-tab", "window-close",
patch: replace "gtk-directory" by "gimp-file-manager" (or GIMP_STOCK_FILE_MANAGER)
gimp/libgimpwidgets/gimpfileentry.c: image = gtk_image_new_from_icon_name ("gtk-directory", GTK_ICON_SIZE_BUTTON);
gimp/app/actions/palettes-actions.c: { "palettes-show-in-file-manager", "gtk-directory",
gimp/app/actions/mypaint-brushes-actions.c: { "mypaint-brushes-show-in-file-manager", "gtk-directory",
gimp/app/actions/dynamics-actions.c: { "dynamics-show-in-file-manager", "gtk-directory",
gimp/app/actions/tool-presets-actions.c: { "tool-presets-show-in-file-manager", "gtk-directory",
gimp/app/actions/patterns-actions.c: { "patterns-show-in-file-manager", "gtk-directory",
gimp/app/actions/documents-actions.c: { "documents-show-in-file-manager", "gtk-directory",
gimp/app/actions/brushes-actions.c: { "brushes-show-in-file-manager", "gtk-directory",
gimp/app/actions/gradients-actions.c: { "gradients-show-in-file-manager", "gtk-directory",
add
gimp-rivert
patch
gimpicons.c
gimpicons.h
patch: replace "document-revert" by "gimp-revert" (or GIMP_STOCK_REVERT)
gimp/app/actions/tool-options-actions.c: { "tool-options-restore-preset-menu", "document-revert",
gimp/app/actions/tool-presets-actions.c: { "tool-presets-restore", "document-revert",
gimp/app/actions/gradient-editor-actions.c: { "gradient-editor-load-left-color", "document-revert",
gimp/app/actions/gradient-editor-actions.c: { "gradient-editor-load-right-color", "document-revert",
gimp/app/widgets/gimptooloptionseditor.c: gimp_editor_add_button (GIMP_EDITOR (editor), "document-revert",
gimp/app/widgets/gimpdataeditor.c: "document-revert",
2016-06-10 13:50:45 +02:00
klausstaedtler
b4463ad22f
icons: Bug 759904
...
patch: replace "document-save" by "gimp-save" (or GIMP_STOCK_SAVE) and "document-save-as" by "gimp-save-as" (or GIMP_STOCK_SAVE_AS)
gimp/plug-ins/gimpressionist/presets.c: gtk_image_new_from_icon_name ("document-save",
gimp/libgimp/gimpexport.c: gtk_image_new_from_icon_name ("document-save",
gimp/app/actions/tool-options-actions.c: { "tool-options-save-preset-menu", "document-save",
gimp/app/actions/vectors-actions.c: { "vectors-export", "document-save",
gimp/app/actions/error-console-actions.c: { "error-console-save-all", "document-save-as",
gimp/app/actions/error-console-actions.c: { "error-console-save-selection", "document-save-as",
gimp/gimp/app/actions/gradient-editor-actions.c: { "gradient-editor-save-left-color", "document-save",
gimp/app/actions/gradient-editor-actions.c: { "gradient-editor-save-right-color", "document-save",
gimp/gimp/app/actions/gradients-actions.c: { "gradients-save-as-pov", "document-save-as",
gimp/gimp/app/widgets/gimptooloptionseditor.c: gimp_editor_add_button (GIMP_EDITOR (editor), "document-save",
gimp/app/widgets/gimpdevicestatus.c: gimp_editor_add_button (GIMP_EDITOR (status), "document-save",
gimp/app/widgets/gimpsettingsbox.c: "document-save",
gimp/app/widgets/gimpsettingseditor.c: "document-save",
gimp/gimp/app/widgets/gimpdataeditor.c: "document-save",
gimp/app/dialogs/preferences-dialog.c: button = prefs_button_add ("document-save",
gimp/app/dialogs/preferences-dialog.c: button = prefs_button_add ("document-save",
gimp/app/dialogs/preferences-dialog.c: button = prefs_button_add ("document-save",
gimp/app/dialogs/preferences-dialog.c: button = prefs_button_add ("document-save",
2016-06-10 13:50:45 +02:00
klausstaedtler
3842c58169
icons: Bug 759904
...
add
gimp-image-open
gimp-image-reload
gimp-close-all
gimp-save-as
gimp-quit
gimp-file-manager
gimp-clipboard
patch
file-actions.c
2016-06-10 13:50:45 +02:00
Alexandre Prokoudine
6eb777a615
Bring soft-proofing consistence to blurbs
2016-06-08 23:46:09 +03:00
Alexandre Prokoudine
3e01419b0c
Introduce consistent use of 'soft-proofing' in user-visible messages
2016-06-08 00:21:51 +03:00
Michael Natterer
8abf1aab5e
libgimpconfig: add getters for all GimpColorConfig members
...
and use them instead of peeking the public object struct.
2016-06-05 23:58:02 +02:00
Michael Natterer
bf9b14e40d
app: tiny indentation fix in view-commands.c
2016-05-31 23:12:42 +02:00
Michael Natterer
ef78897c67
app: set a color config on color areas created from menu actions
...
and set a GimpContext on the actions so they can find the config.
2016-05-28 03:01:37 +02:00
Michael Natterer
dcf5c526e7
Bug 320447 - fast switching between "color managed display" and "softproof"
...
Replace the 3-state "off", "display" and "softproof" radio items by
two toggles "enable" and "softproof". Also add separate controls for
display and softproof options.
2016-05-21 21:38:47 +02:00
Michael Natterer
2ef8719cbe
app: rename more stuff from "floating sel" to "floating selection"
2016-05-20 16:46:26 +02:00
Piotr Drąg
c7bc0b5f07
Fix typos in app/actions/view-actions.c
2016-05-19 15:59:51 +02:00
Michael Natterer
c0fb136203
app: add tooltips that mention that disabling color management == sRGB
...
Also say "better leave this enabled".
2016-05-16 17:41:04 +02:00
Michael Natterer
84d60ad943
app: clean up toggle callbacks in view-commands.c
2016-05-16 13:39:45 +02:00
Michael Natterer
a28778475f
Bug 320447 - fast switching between "color managed display" and "softproof"
...
Add rendering intent, black point compensation and gammut warning menu
items to View -> Color Management. They set the respective values of
the active color management mode, so both "color managed display" and
"print simulation" are almost completely configurable per-display
now. Setting the simulation profile is still missing.
2016-05-16 13:27:59 +02:00
Michael Natterer
406d1b9c65
Bug 320447 - fast switching between "color managed display" and "softproof"
...
Add a View -> Color Management submenu that allows to change
the color management mode per-display.
Internally, keep a GimpColorConfig object around per-display that
is synchronized with the global config except for the properties
that have a per-display GUI (currently the mode).
Also provide an "As in Preferences" menu item to follow the global
settings again.
2016-05-14 23:50:58 +02:00
Michael Natterer
6a9ce551cb
app: rename GimpImageMapTool to GimpFilterTool
2016-05-10 13:52:24 +02:00
Ell
ce27a627e0
app: fix menu icon of "Selection Editor"
...
Was GIMP_STOCK_TOOL_RECT_SELECT; changed to GIMP_STOCK_SELECTION, to
match the actual icon of the dialog.
2016-05-08 20:30:13 +00:00
Ell
60b31cce0f
app: Add "Border style" combo to the "Select -> Border..." dialog
...
instead of the "Feather border" toggle, and pass the selected style
to gimp_channel_border().
The border style defaults to "Smooth", whereas the previous default
behavior corresponds to "Hard".
2016-05-08 19:22:24 +00:00
Ell
15d4908076
app, pdb: Modify gimp_channel_border() to take a style parameter
...
isntead of the feather parameter, and pass it to
gimp_gegl_apply_border().
Make the necessary changes to the rest of the code to maintain the
current behavior.
Mass parameter alignment changes to gimpchannel.h. Sigh #2...
2016-05-08 19:22:24 +00:00
Michael Natterer
cc83d9461c
app: move the image-duplicate action next to image-new
...
Just code rordering.
2016-05-08 19:53:16 +02:00
Michael Natterer
58d17e70be
app: add Image -> Color Management -> Color Management Enabled
...
To enable/disable color management for the image.
2016-05-08 19:53:16 +02:00
Michael Natterer
c3c4387d35
app: add Image -> Color Management -> Save Color Profile to File...
...
using the stuff added in the last few commits.
2016-05-07 03:01:18 +02:00
Michael Natterer
95f7cab96c
app: don't use a NULL profile to create the new "layer from visible"
...
While NULL does the right thing, better not rely on that magic parameter,
pass the right profile and let the profile convert logic do its job.
2016-05-04 00:00:28 +02:00
Michael Natterer
39909b6008
app: replace GimpList's internal GList with a GQueue
...
so we can easily iterate in reverse order, and access the last element
in O(1). Nothing makes use of this yet.
2016-05-01 15:22:44 +02:00
Michael Natterer
5c57885ac3
app: add ellipses to the color mode conversion menu items
...
if they show a dialog.
2016-04-30 19:41:09 +02:00
Michael Natterer
5aff776a8a
app: rename convert-type-dialog.[ch] to convert-indexed-dialog.[ch]
2016-04-30 18:49:02 +02:00
Michael Natterer
182da6d2e9
Bug 765176 - ICC profile conversions between grayscale and RGB images
...
When converting between RGB and GRAY and the image has a profile,
invoke the convert profile dialog with the newly added image type
conversion feature.
2016-04-30 18:35:52 +02:00
Michael Natterer
12f9aa9bd2
Bug 765176 - ICC profile conversions between grayscale and RGB images
...
Add a dest_profile parameter to gimp_image_convert_type() so a profile
can be chosen when converting between RGB and GRAY. Has no GUI yet.
2016-04-30 18:35:52 +02:00
Michael Natterer
1cf04cc4b9
app: prepare the color profile dialog for doing RGB <-> GRAY conversion
...
Get rid of individual constructors for assign and convert, instead
have one constructor that takes a dialog type enum. No new features
yet in this commit.
2016-04-30 18:35:52 +02:00
Michael Natterer
ef8b802032
app: move indexed conversion to gimpimage-convert-indexed.[ch]
...
It's so much code and takes so many additional parameters over RGB and
GRAY conversion, it got its own place and function now.
2016-04-30 18:35:52 +02:00