Commit Graph

3543 Commits

Author SHA1 Message Date
a7234d68ce Revert "Only didive if the number of inputs is > 1 (/ 1 makes little sense)"
This reverts commit 793be22da9.

This commit makes single factor dynamics not work.
The result of a no-factor mixing needs to be 1.0,
result of all other cases needs to be value of total divided by factors.
Adding extra logic for the case whe factors=1 makes less sense than
allowing for occational division by 1 to happen.
2009-10-15 18:39:42 +03:00
793be22da9 Only didive if the number of inputs is > 1 (/ 1 makes little sense) 2009-10-14 18:52:04 +02:00
15b912c66d Change "factors" variables to integer because it's a counter; formatting 2009-10-14 10:33:11 +02:00
135090c57f Actually use the paint option's "use-fade" property again
...and remove gimp_dynamics_input_fade_enabled(). Looks cleaner
now so must be right ;)
2009-10-13 19:33:38 +02:00
7bae9c0827 Merge commit 'origin/master' into soc-2009-dynamics 2009-10-13 20:23:34 +03:00
8fed74777d Rename boolean properties of GimpDynamicsOutput from "foo" to "use-foo" 2009-10-12 19:06:11 +02:00
77faffe4b7 Rename the output members of GimpDynamics from foo_dynamics to foo_output 2009-10-12 14:45:12 +02:00
5a145ae4c3 Whitespace cleanup that reduces the diff against master 2009-10-12 13:00:16 +02:00
b6dd77ab84 Whitespace fix 2009-10-12 12:23:36 +02:00
c8db734932 Make sure changes dynamics are properly saved to disk
Implement GObject::dispatch_properties_changed() and call
gimp_data_dirty() if a serializable property changed.
2009-10-11 21:39:46 +02:00
8df73b9323 Switch to using GimpDynamicsOutput's properties
* app/core/gimpdynamics.c: remove all boolean properties and add the
  outputs as properties instead. Make sure changes on the outputs get
  notified on the dynamics object.

* app/widgets/gimpdynamicseditor.c: change widget creation accordingly,
  also copy around the properties correctly when copying between
  dynamics objects (fixes NULL filenames on GimpData).
2009-10-11 21:25:28 +02:00
c794fe0af2 Implement the GimpConfigInterface 2009-10-11 16:25:30 +02:00
dab5f9e691 Rename all GimpDynamicsOutput functions to gimp_dynamics_output_foo() 2009-10-11 15:54:59 +02:00
cad2218b6a Move GimpDynamicsOutput to its own class
...but use it only as struct to keep GimpDynamics' properties
for now. More refactoring later.
2009-10-11 13:53:59 +02:00
4e124c983b Only call gimp_channel_combine_span() if the value actually changed 2009-10-11 13:49:14 +02:00
3438287f03 Remove member "name" from the GimpDynamics struct
...and use GimpObject's name in GimpContext. Might be the last
bit to make the context's dynamics work completely.
2009-10-11 13:18:23 +02:00
892f43fe98 Move GimpDynamicsOutput typedef to core-types.h, some cleanup 2009-10-11 13:16:31 +02:00
d69b4f49e3 Fixing style I think 2009-10-11 13:54:40 +03:00
e5ad18cba5 Fixing the scale thing right and in the right place 2009-10-11 13:43:28 +03:00
04bad5609a Move scale limit so it does not bother generated brushes. 2009-10-11 12:17:29 +03:00
424294b738 Remove the special method for mixing scale thats absolete now with limist gone. 2009-10-11 11:26:44 +03:00
2656875953 Remove the silly ratio limit from scale and just make sure that transformation result is at least 1px 2009-10-11 10:57:13 +03:00
42b66678f5 Honor the "global-dynamics" setting 2009-10-11 01:44:38 +02:00
3aa8db4cea Use the configured default_dynamics from the config object 2009-10-11 01:36:24 +02:00
8be598e029 Create the dynamics directory 2009-10-11 01:34:48 +02:00
b550fc9f65 Use the newly added dynamics paths 2009-10-11 01:33:14 +02:00
ba355321cf Various cleanups in the GimpDynamics object 2009-10-11 01:19:40 +02:00
26bda5a2e2 Some more cleanup
- move the GimpDynamics typedef to core-types.h
- related changes
- clean up gimpcontext.c
2009-10-11 00:20:06 +02:00
5c1a9497f0 Some formatting cleanup 2009-10-11 00:20:06 +02:00
0ca81896e9 Merge commit 'origin/master' into soc-2009-dynamics 2009-10-11 01:05:40 +03:00
aa9538a81a Optimize gimp_channel_combine_ellipse_rect()
The actual algorithm is still the same sick algorithm that was used
before. But instead of iterating the mask row-by-row and filling
it in small spans, we now use one pixel_regions_process() loop to
process the whole mask. Makes a significant difference for large
elliptical selections.

Remove gimp_channel_add_segment() and gimp_channel_sub_segment()
as they are not needed any longer and were responsible for the
bad performance.
2009-10-10 23:09:54 +02:00
bcfce95a5e minor cleanups 2009-10-10 23:09:46 +02:00
4c0f1a2d54 app: minor optimization and cleanups
gimp_channel_add_segment() and gimp_channel_sub_segment() can just
write directly if the value is 255, which it is quite commonly.
2009-10-10 23:09:46 +02:00
90abaf1a73 app: Document GimpContext 2009-10-10 22:06:55 +02:00
9b0f6ae5e2 Make saves work a bit more. 2009-10-10 22:29:04 +03:00
4a5f070217 Fixing dynamics extension on save 2009-10-10 22:05:50 +03:00
0ffcad4688 Several small fixes. 2009-10-10 21:43:58 +03:00
7f8b347677 Several small fixes. 2009-10-10 21:43:57 +03:00
cbcf46506c Fix up dynamics loading/saving 2009-10-10 20:39:11 +02:00
72e976cca6 Make saving work. sortof. 2009-10-10 20:46:06 +03:00
5adeb6ee25 Obsolete comment removed 2009-10-10 20:23:08 +03:00
430a796904 Fixes 2009-10-10 20:22:31 +03:00
ac111be15d Added dynamics list and some infrastructure. still ont 100% tho 2009-10-09 20:25:07 +03:00
860c952416 Inverted maping matrix and fixes to jitter 2009-10-07 23:32:17 +03:00
7a2acf8811 Merge commit 'origin/master' into soc-2009-dynamics 2009-10-04 11:41:30 +03:00
212ea4cc66 Start of dynamic jitter 2009-10-04 11:40:26 +03:00
301e5c2c34 app: Maintain a list of GimpImageWindow:s on an app instance level 2009-10-04 02:10:11 +02:00
3a041ad252 Lots of improvements on dynamics 2009-10-03 18:53:25 +03:00
6581893616 Fix color dynamic 2009-10-03 16:54:10 +03:00
26e7b5f0e2 Fix ennum ordering 2009-10-03 16:08:15 +03:00