Michael Natterer
e23073a382
Clean up widget creation in gimp_dynamics_editor_init()
2009-10-11 22:32:14 +02:00
Michael Natterer
6a47c2a4b8
Get rid of unused cruft and reorder functions and includes
2009-10-11 22:06:54 +02:00
Michael Natterer
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
Michael Natterer
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
Michael Natterer
c794fe0af2
Implement the GimpConfigInterface
2009-10-11 16:25:30 +02:00
Michael Natterer
37967edd80
Fill the dynamis popup menu with items and install it
2009-10-11 16:00:35 +02:00
Michael Natterer
bc271a3906
Fix typo in menu label
2009-10-11 16:00:14 +02:00
Michael Natterer
dab5f9e691
Rename all GimpDynamicsOutput functions to gimp_dynamics_output_foo()
2009-10-11 15:54:59 +02:00
Michael Natterer
330d406acc
Move dynamics includes to the .c files where they belong
2009-10-11 15:41:54 +02:00
Michael Natterer
09964b5f7a
Remove duplicate commented-out code
2009-10-11 15:37:14 +02:00
Michael Natterer
c856c16d17
There is this concept called alphabetic order...
2009-10-11 15:35:52 +02:00
Michael Natterer
d543de8663
Don't make the "dynamics-edit" action permanently insensitive
2009-10-11 15:32:47 +02:00
Michael Natterer
66215fcb56
Remove the dynamics editor from the menu of dockables
2009-10-11 15:27:46 +02:00
Michael Natterer
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
Michael Natterer
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
Michael Natterer
892f43fe98
Move GimpDynamicsOutput typedef to core-types.h, some cleanup
2009-10-11 13:16:31 +02:00
Alexia Death
d69b4f49e3
Fixing style I think
2009-10-11 13:54:40 +03:00
Alexia Death
e5ad18cba5
Fixing the scale thing right and in the right place
2009-10-11 13:43:28 +03:00
Alexia Death
04bad5609a
Move scale limit so it does not bother generated brushes.
2009-10-11 12:17:29 +03:00
Alexia Death
424294b738
Remove the special method for mixing scale thats absolete now with limist gone.
2009-10-11 11:26:44 +03:00
Alexia Death
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
Michael Natterer
42b66678f5
Honor the "global-dynamics" setting
2009-10-11 01:44:38 +02:00
Michael Natterer
8e285ba014
Add prefs UI for "dynamics-path" and "global-dynamics"
2009-10-11 01:42:23 +02:00
Michael Natterer
3aa8db4cea
Use the configured default_dynamics from the config object
2009-10-11 01:36:24 +02:00
Michael Natterer
8be598e029
Create the dynamics directory
2009-10-11 01:34:48 +02:00
Michael Natterer
b550fc9f65
Use the newly added dynamics paths
2009-10-11 01:33:14 +02:00
Michael Natterer
1cf86f6ac0
Use all config properties needed for dynamics to work like a resource
2009-10-11 01:30:54 +02:00
Michael Natterer
ba355321cf
Various cleanups in the GimpDynamics object
2009-10-11 01:19:40 +02:00
Michael Natterer
1fcfa9fe58
Reorder includes
2009-10-11 00:21:21 +02:00
Michael Natterer
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
Michael Natterer
5c1a9497f0
Some formatting cleanup
2009-10-11 00:20:06 +02:00
Alexia Death
276a603de7
Tiny fix for a missing include
2009-10-11 01:16:51 +03:00
Alexia Death
0ca81896e9
Merge commit 'origin/master' into soc-2009-dynamics
2009-10-11 01:05:40 +03:00
Alexia Death
943e8c9009
Last bit for dynamics switching.
2009-10-11 01:04:35 +03:00
Michael Natterer
af8b47efe9
Some reordering and cleanup
2009-10-11 00:00:45 +02:00
Michael Natterer
6d36496d6e
Revert .gitignore to the state in master
2009-10-10 23:55:59 +02:00
Sven Neumann
0012c86cf1
update documentation
2009-10-10 23:17:17 +02:00
Sven Neumann
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
Sven Neumann
bcfce95a5e
minor cleanups
2009-10-10 23:09:46 +02:00
Sven Neumann
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
Michael Natterer
6409ecb389
Fix gimp_dynamics_editor_set_data() to really work this time
2009-10-10 23:02:18 +02:00
Martin Nordholts
90abaf1a73
app: Document GimpContext
2009-10-10 22:06:55 +02:00
Martin Nordholts
677b977776
app: Make class documentation be picked up by gtk-doc
2009-10-10 22:01:06 +02:00
Michael Natterer
5bd751c2d2
Make model <-> data property copying work, and some cleanup
2009-10-10 21:48:17 +02:00
Alexia Death
9b0f6ae5e2
Make saves work a bit more.
2009-10-10 22:29:04 +03:00
Alexia Death
f096de2002
Merge commit 'origin/master' into soc-2009-dynamics
2009-10-10 22:08:25 +03:00
Alexia Death
4a5f070217
Fixing dynamics extension on save
2009-10-10 22:05:50 +03:00
Alexia Death
0ffcad4688
Several small fixes.
2009-10-10 21:43:58 +03:00
Alexia Death
7f8b347677
Several small fixes.
2009-10-10 21:43:57 +03:00
Michael Natterer
cbcf46506c
Fix up dynamics loading/saving
2009-10-10 20:39:11 +02:00