Commit Graph

25791 Commits

Author SHA1 Message Date
Alexia Death 0a90a75705 Make the dynamics editor build and move the commented out mess to the end of the file. 2009-08-21 21:14:23 +03:00
zhenfeng zhao 6655f1b04f Merge commit 'origin/soc-2009-dynamics' into soc-2009-dynamics 2009-08-21 13:33:19 -03:00
Alexia Death d2143b8886 Merging master to current state 2009-08-21 19:26:05 +03:00
Michael Natterer b929a7a67c Don't allow to drop stuff to locked drawables 2009-08-21 14:10:22 +02:00
Michael Natterer a7efe42870 Use a GtkToggleButton instead of GtkCheckButton for "Grab event"
A GtkToggleButton doesn't have to be told that it has no indicator,
because it doesn't have one in the first place.
2009-08-21 13:53:34 +02:00
Michael Natterer b793146bde Remove redundant call to gtk_toggle_button_set_mode()
No need to call that function on an actual GtkToggleButton, because
they never have check indicators anyway.
2009-08-21 13:52:29 +02:00
Michael Natterer b277454760 Don't allow to drop stuff to locked drawables 2009-08-21 13:50:07 +02:00
Michael Natterer cca194ed04 Don't transform the item if it was locked while using the tool
Add additional check to gimp_transform_tool_doit() so it won't
transform an item that was locked while we were adjusting the
transform.
2009-08-21 12:07:55 +02:00
Michael Natterer 7b5e176eee Really don't paint on locked drawables
Remove GimpTool::initialize() implementation again and check for the
drawable being locked in GimpTool::button_press() so we can't paint if
the tool has been used before on the same drawable when it was
unlocked.
2009-08-21 11:55:18 +02:00
Mads Lundby 2d93091463 Updated Danish translation 2009-08-21 01:25:06 +02:00
Marco Ciampa d196e12da4 Updated italian translation 2009-08-20 23:26:15 +02:00
Michael Natterer e95b5d9f72 When cropping the active layer, error out if there is none or it is locked 2009-08-20 22:43:01 +02:00
Michael Natterer 0953146be1 Check if there is an active layer if active_layer_only is TRUE 2009-08-20 22:41:49 +02:00
Michael Natterer de409ea52a Fix sensitivity of the "Merge down" action
The command doesn't simply need the next layer in the stack, it
needs the next *visible* layer.
2009-08-20 22:22:17 +02:00
Michael Natterer 3309c35f18 Fix typo: defualt -> default (spotted by Alexia) 2009-08-20 22:11:33 +02:00
zhenfeng zhao 6c496f7d69 Merge commit 'origin/soc-2009-dynamics' into soc-2009-dynamics 2009-08-20 17:11:21 -03:00
Alexia Death db8aa6cb21 Make dynamics object have an effect on the paintpbrush. Currently pressure and velocity only. 2009-08-20 22:46:17 +03:00
Michael Natterer f42f0e16a9 Add the "drawable-lock-content" action to the layer properties section 2009-08-20 21:20:20 +02:00
Michael Natterer 35a7052b8d Add actions and callbacks to toggle "lock-content" on drawables and vectors 2009-08-20 21:19:43 +02:00
Michael Natterer 28061c23f1 Don't modify locked items from PDB wrappers
* app/pdb/gimppdb-utils.[ch]: add "gboolean writable" parameter to
  gimp_pdb_item_is_attached() because this function is called on
  almost all items where a check for locked is needed.

* tools/pdbgen/pdb/*.pdb: pass writable = TRUE in all checks for items
  that are modified. Add explicit calls to gimp_pdb_item_is_writable()
  in some rare cases.

* app/pdb/*-cmds.c: regenerated.
2009-08-20 20:47:01 +02:00
Michael Natterer b5c3e5a6b6 Also copy "lock_content" when duplicating an item 2009-08-20 19:34:30 +02:00
Michael Natterer 774850c46f Add gimp_pdb_item_is_writable() which sets an error if the item is locked 2009-08-20 18:50:55 +02:00
zhenfeng zhao 54e0b15b46 Merge commit 'origin/soc-2009-dynamics' into soc-2009-dynamics 2009-08-20 12:52:21 -03:00
zhenfeng zhao d73330e3fa Add UI to dynamics editor. 2009-08-20 12:51:07 -03:00
Alexia Death e04a7617d5 Cleaning up the dynamics init a little bit more 2009-08-20 18:24:50 +03:00
Michael Natterer 7262e45df9 Made modifying actions insensitive when the active item is locked
Use the term "writable" in the code as a shortcut for "there is an
active item and it is not locked".
2009-08-20 17:11:31 +02:00
Michael Natterer ec6600a0b3 Refuse to edit locked drawables
Check whether the drawable to edit is locked in GimpTool::initialize()
and bail out with an appropriate error if it is. This currently
prevents cloning from locked drawables, will fix that later.
2009-08-20 17:05:23 +02:00
Alexia Death 4af5324d58 Cleaning up the dynamics init a little bit 2009-08-20 15:53:40 +03:00
Michael Natterer ee5b8c6552 Make the appearance of the "lock content" toggle configurable
* app/widgets/gimpitemtreeview.[ch]: add class members for the lock
  content button's icon, tooltip and help_id and use them when
  creating the button. Create the button in constructor() instead of
  init() so we have access to our real class structure without the
  need for a custom get_type() function.

* app/widgets/gimpdrawabletreeview.c: configure the button as "Lock pixels".

* app/widgets/gimpvectorstreeview.c: configure it as "Lock path strokes".
2009-08-20 12:50:40 +02:00
Michael Natterer ff31975305 Keep the lock buttons at the end of the options vbox 2009-08-20 12:33:01 +02:00
Alexia Death 455e5239cb Adding the sub files for dynamics save and load 2009-08-20 12:34:45 +03:00
Alexia Death 569a64d2c9 Created stubs for saving and loading dynamics 2009-08-20 12:26:02 +03:00
Alexia Death 93f8216881 Renaming GimpDynamicsOptions to GimpDynamics and moving from paint/ to core/. A BIG change. 2009-08-20 04:25:26 +03:00
Alexia Death 9fa9f41106 Taking out unimplemented gimp_dynamics_load for now 2009-08-20 03:25:14 +03:00
Alexia Death 460bf0ecdd Fixing some more props errors in context 2009-08-20 03:20:17 +03:00
Alexia Death 17a377a553 Fixing props errors in context 2009-08-20 02:31:59 +03:00
Alexia Death ae10bd5778 Placeholder for quering dynamics values and a tesstpoint in brush core. 2009-08-20 02:16:09 +03:00
Alexia Death 56f59eab97 Wiring the new dynamics object to brush core. Just a start for now. 2009-08-20 01:40:33 +03:00
Alexia Death f57d3ad02d Cleaning up the dynamics object 2009-08-19 23:03:08 +03:00
Alexia Death 6e1d5ad83e Giving shape to the new dynamics object 2009-08-19 22:41:28 +03:00
Michael Natterer 86ad1ff70e Add a "lock content" toggle that needs some more refinement hacking 2009-08-19 21:30:48 +02:00
Michael Natterer a16bfe749f Fix a comment 2009-08-19 21:30:48 +02:00
Michael Natterer fb1a672546 Bug 61019 - add a 'lock' flag per layer to protect it
Took patch from Martin Nordholts and ported it to add a "lock-content"
property, signal and API in the same way as it's done for "visible"
and "linked".
2009-08-19 21:30:48 +02:00
Michael Natterer f7ba1d1f2e Add missing blank line after the vectors group of functions 2009-08-19 21:30:47 +02:00
Michael Natterer 7f94f3213b Pack boolean members into a bitfield to save two integers per item 2009-08-19 21:30:47 +02:00
Michael Natterer 5260a535e5 Use the new option box API of GimpItemTreeView, remove own code for it 2009-08-19 21:30:47 +02:00
Michael Natterer 36530dd8be Add generic code for boxes of options to GimpItemTreeView
- new API to add widgets to a box of options, for stuff like the paint
  mode menu and opacity scale. Set it sensitive automatically and
  update its spacings in GtkWidget::style_set().
- new API to get a hbox for "lock" toggles, for stuff like lock
  pixels and lock alpha.
2009-08-19 21:30:47 +02:00
zhenfeng zhao 822e394981 Fix seg fault for gimpcontext 2009-08-19 13:29:06 -03:00
Kevin Cozens 728b1c6847 Eliminated some warnings when compiling TinyScheme. 2009-08-19 12:28:30 -04:00
Sven Neumann d655f03607 correct a comment 2009-08-19 16:59:15 +02:00