synfig.git
16 years agoUse Color::is_straight().
dooglus [Wed, 23 Jan 2008 20:23:47 +0000 (20:23 +0000)]
Use Color::is_straight().

git-svn-id: http://svn.voria.com/code@1437 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDefine new static member Color::is_straight(BlendMethod) to determine whether a blend...
dooglus [Wed, 23 Jan 2008 19:58:41 +0000 (19:58 +0000)]
Define new static member Color::is_straight(BlendMethod) to determine whether a blend method is 'straight' or not (ie. 'straight', 'straight onto').  Possibly one of alpha_{lighten|darken} will need adding to this as well.

git-svn-id: http://svn.voria.com/code@1436 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFirst step towards fixing 'straight onto' blending.
dooglus [Wed, 23 Jan 2008 19:58:30 +0000 (19:58 +0000)]
First step towards fixing 'straight onto' blending.

git-svn-id: http://svn.voria.com/code@1435 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoOnly convert 'straight' to 'composite' when updating a canvas from pre 0.3 to 0.3...
dooglus [Wed, 23 Jan 2008 18:02:46 +0000 (18:02 +0000)]
Only convert 'straight' to 'composite' when updating a canvas from pre 0.3 to 0.3 for layers which don't transform the layers under them.

git-svn-id: http://svn.voria.com/code@1434 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoA few more changes to get the studio graphics to render correctly with the recent...
dooglus [Wed, 23 Jan 2008 17:41:33 +0000 (17:41 +0000)]
A few more changes to get the studio graphics to render correctly with the recent fixes to the 'straight' blend method.

git-svn-id: http://svn.voria.com/code@1433 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoHopefully this will work better. It only makes a temporary encapsulation around...
dooglus [Wed, 23 Jan 2008 17:41:25 +0000 (17:41 +0000)]
Hopefully this will work better.  It only makes a temporary encapsulation around layers which use straight blend and which don't need to see their own context.

git-svn-id: http://svn.voria.com/code@1432 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDefine reads_context() in the class of each layer that does need to be able to see...
dooglus [Wed, 23 Jan 2008 17:41:02 +0000 (17:41 +0000)]
Define reads_context() in the class of each layer that does need to be able to see its own context.

git-svn-id: http://svn.voria.com/code@1431 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd new method Layer::reads_context() which returns true iff the layer needs to be...
dooglus [Wed, 23 Jan 2008 17:40:47 +0000 (17:40 +0000)]
Add new method Layer::reads_context() which returns true iff the layer needs to be able to see its context (underlying layers) to work.

git-svn-id: http://svn.voria.com/code@1430 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoChanges to make the studio/images files render correctly again.
dooglus [Wed, 23 Jan 2008 14:44:38 +0000 (14:44 +0000)]
Changes to make the studio/images files render correctly again.

git-svn-id: http://svn.voria.com/code@1429 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoImprove this code to allow layers like 'blur' to work.
dooglus [Wed, 23 Jan 2008 14:44:29 +0000 (14:44 +0000)]
Improve this code to allow layers like 'blur' to work.

git-svn-id: http://svn.voria.com/code@1428 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd operator != too.
dooglus [Wed, 23 Jan 2008 14:44:20 +0000 (14:44 +0000)]
Add operator != too.

git-svn-id: http://svn.voria.com/code@1427 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd operator== for rectangles.
dooglus [Wed, 23 Jan 2008 14:44:12 +0000 (14:44 +0000)]
Add operator== for rectangles.

git-svn-id: http://svn.voria.com/code@1426 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDisabled an optimization that was being too enthusiastic. It's not always safe to...
dooglus [Wed, 23 Jan 2008 14:44:03 +0000 (14:44 +0000)]
Disabled an optimization that was being too enthusiastic.  It's not always safe to skip rendering the context for straight blends with amount=1 - the blur layer for example outputs a blurred version of its context even when using the straight blend method.

git-svn-id: http://svn.voria.com/code@1425 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoThe "Spherize" layer doesn't need to inherit from Layer_Composite. This fixes the...
dooglus [Wed, 23 Jan 2008 14:43:50 +0000 (14:43 +0000)]
The "Spherize" layer doesn't need to inherit from Layer_Composite.  This fixes the layer, which was broken by r1422.

git-svn-id: http://svn.voria.com/code@1424 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoEdit in the svn revision number for the canvas 0.3 change.
dooglus [Tue, 22 Jan 2008 13:44:59 +0000 (13:44 +0000)]
Edit in the svn revision number for the canvas 0.3 change.

git-svn-id: http://svn.voria.com/code@1423 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFirst attempt at fixing the 'straight' blend method. It now applies to the whole...
dooglus [Tue, 22 Jan 2008 13:42:55 +0000 (13:42 +0000)]
First attempt at fixing the 'straight' blend method.  It now applies to the whole layer, rather than just the pixels modified by the layer.  Loading old canvases that use 'straight' will convert the blend method to 'composite' for all layers other than PasteCanvas, since the old 'straight' worked much like composite for them.  The 'straight onto' blend method still needs work.

git-svn-id: http://svn.voria.com/code@1422 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFollowing the previous commit, there's no need to walk up the canvas tree to find...
dooglus [Tue, 22 Jan 2008 12:31:05 +0000 (12:31 +0000)]
Following the previous commit, there's no need to walk up the canvas tree to find the root when checking the canvas version.

git-svn-id: http://svn.voria.com/code@1421 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoIf a canvas in a .sif file doesn't specify its version, inherit the version of its...
dooglus [Tue, 22 Jan 2008 12:30:56 +0000 (12:30 +0000)]
If a canvas in a .sif file doesn't specify its version, inherit the version of its parent.

git-svn-id: http://svn.voria.com/code@1420 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoMake a note to investigate blendfunc_ALPHA_BRIGHTEN. It seems to be multiplying...
dooglus [Tue, 22 Jan 2008 12:30:47 +0000 (12:30 +0000)]
Make a note to investigate blendfunc_ALPHA_BRIGHTEN.  It seems to be multiplying the wrong thing by 'amount'.

git-svn-id: http://svn.voria.com/code@1419 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoNumber the blend functions in the array.
dooglus [Tue, 22 Jan 2008 12:30:38 +0000 (12:30 +0000)]
Number the blend functions in the array.

git-svn-id: http://svn.voria.com/code@1418 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoPass the current 'time' value when optimizing layers. We're going to need it in...
dooglus [Tue, 22 Jan 2008 12:30:25 +0000 (12:30 +0000)]
Pass the current 'time' value when optimizing layers.  We're going to need it in a following commit.

git-svn-id: http://svn.voria.com/code@1417 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't show "STATE NORMAL:..." every time the normal tool receives a new event.
dooglus [Tue, 22 Jan 2008 12:30:16 +0000 (12:30 +0000)]
Don't show "STATE NORMAL:..." every time the normal tool receives a new event.

git-svn-id: http://svn.voria.com/code@1416 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoThere's no need to use a new variable here.
dooglus [Tue, 22 Jan 2008 12:30:07 +0000 (12:30 +0000)]
There's no need to use a new variable here.

git-svn-id: http://svn.voria.com/code@1415 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't accept illegal values for 'blend_method'. Use 'Composite' instead.
dooglus [Mon, 21 Jan 2008 17:02:51 +0000 (17:02 +0000)]
Don't accept illegal values for 'blend_method'.  Use 'Composite' instead.

git-svn-id: http://svn.voria.com/code@1414 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDeclare the paste_canvas pointing in the block that uses it to limit its scope.
dooglus [Mon, 21 Jan 2008 17:02:42 +0000 (17:02 +0000)]
Declare the paste_canvas pointing in the block that uses it to limit its scope.

git-svn-id: http://svn.voria.com/code@1413 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't use the optimization of using STRAIGHT blends instead of COMPOSITE when SYNFIG_...
dooglus [Mon, 21 Jan 2008 17:02:32 +0000 (17:02 +0000)]
Don't use the optimization of using STRAIGHT blends instead of COMPOSITE when SYNFIG_CLIP_PASTECANVAS isn't defined, because it causes incorrect rendering in, for example, the 'examples/pirates.sifz' file.

git-svn-id: http://svn.voria.com/code@1412 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDocument the canvas versions.
dooglus [Mon, 21 Jan 2008 01:33:37 +0000 (01:33 +0000)]
Document the canvas versions.

git-svn-id: http://svn.voria.com/code@1411 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't display the frame efficiency.
dooglus [Mon, 21 Jan 2008 01:18:38 +0000 (01:18 +0000)]
Don't display the frame efficiency.

git-svn-id: http://svn.voria.com/code@1410 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd a comment giving a .sif file that shows why 'SYNFIG_CLIP_PASTECANVAS' is needed.
dooglus [Mon, 21 Jan 2008 01:10:54 +0000 (01:10 +0000)]
Add a comment giving a .sif file that shows why 'SYNFIG_CLIP_PASTECANVAS' is needed.

git-svn-id: http://svn.voria.com/code@1409 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoTidying.
dooglus [Mon, 21 Jan 2008 01:10:46 +0000 (01:10 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@1408 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFixed a typo.
dooglus [Mon, 21 Jan 2008 01:10:37 +0000 (01:10 +0000)]
Fixed a typo.

git-svn-id: http://svn.voria.com/code@1407 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRearranged a little. The functionality shouldn't have changed.
dooglus [Mon, 21 Jan 2008 01:10:29 +0000 (01:10 +0000)]
Rearranged a little.  The functionality shouldn't have changed.

git-svn-id: http://svn.voria.com/code@1406 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoGive an example .sif file to explain why the 'SYNFIG_OPTIMIZE_PASTE_CANVAS' code...
dooglus [Mon, 21 Jan 2008 01:10:20 +0000 (01:10 +0000)]
Give an example .sif file to explain why the 'SYNFIG_OPTIMIZE_PASTE_CANVAS' code is #ifdef'ed out.

git-svn-id: http://svn.voria.com/code@1405 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemove more debugging prints.
dooglus [Mon, 21 Jan 2008 01:10:11 +0000 (01:10 +0000)]
Remove more debugging prints.

git-svn-id: http://svn.voria.com/code@1404 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoStop 3 more messages.
dooglus [Mon, 21 Jan 2008 01:10:02 +0000 (01:10 +0000)]
Stop 3 more messages.

git-svn-id: http://svn.voria.com/code@1403 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoStop the 'canvas_view_changed' messages.
dooglus [Mon, 21 Jan 2008 01:09:52 +0000 (01:09 +0000)]
Stop the 'canvas_view_changed' messages.

git-svn-id: http://svn.voria.com/code@1402 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoTidying. No functional change.
dooglus [Mon, 21 Jan 2008 01:09:44 +0000 (01:09 +0000)]
Tidying.  No functional change.

git-svn-id: http://svn.voria.com/code@1401 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't avoid not using negated macro names, because they can be confusing. ie. use...
dooglus [Mon, 21 Jan 2008 01:09:35 +0000 (01:09 +0000)]
Don't avoid not using negated macro names, because they can be confusing.  ie. use "#ifdef SYNFIG_CLIP_PASTECANVAS" rather than "#ifndef SYNFIG_NO_CLIP".

git-svn-id: http://svn.voria.com/code@1400 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoChange the expected results to match the new actual results, now that angles no longe...
dooglus [Fri, 18 Jan 2008 12:33:56 +0000 (12:33 +0000)]
Change the expected results to match the new actual results, now that angles no longer wrap at 360 degrees.

git-svn-id: http://svn.voria.com/code@1399 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRename "Dialogs" to "Panels" for the dockable windows.
dooglus [Thu, 17 Jan 2008 18:09:04 +0000 (18:09 +0000)]
Rename "Dialogs" to "Panels" for the dockable windows.

git-svn-id: http://svn.voria.com/code@1398 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 1695735: don't treat the required values of command line flags as flags themselves.
dooglus [Thu, 17 Jan 2008 17:56:54 +0000 (17:56 +0000)]
Fix 1695735: don't treat the required values of command line flags as flags themselves.

git-svn-id: http://svn.voria.com/code@1397 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoMove the knowledge about which flags require an extra value into a separate function...
dooglus [Thu, 17 Jan 2008 17:56:45 +0000 (17:56 +0000)]
Move the knowledge about which flags require an extra value into a separate function.  We're going to need it to fix bug #1695735.

git-svn-id: http://svn.voria.com/code@1396 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoTidying.
dooglus [Thu, 17 Jan 2008 17:56:35 +0000 (17:56 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@1395 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoTidying.
dooglus [Thu, 17 Jan 2008 17:56:25 +0000 (17:56 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@1394 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't use a specialised parser for <composite> valuenodes - use the same as for all...
dooglus [Thu, 17 Jan 2008 15:59:27 +0000 (15:59 +0000)]
Don't use a specialised parser for <composite> valuenodes - use the same as for all other LinkableValueNode types.  Improve that generic valuenode parser to check for missing and duplicate attributes.

git-svn-id: http://svn.voria.com/code@1393 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoBe stricter on the "c[0-9]" link names accepted.
dooglus [Thu, 17 Jan 2008 15:59:18 +0000 (15:59 +0000)]
Be stricter on the "c[0-9]" link names accepted.

git-svn-id: http://svn.voria.com/code@1392 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoBe stricter on the "c[0-9]" link names accepted.
dooglus [Thu, 17 Jan 2008 15:59:10 +0000 (15:59 +0000)]
Be stricter on the "c[0-9]" link names accepted.

git-svn-id: http://svn.voria.com/code@1391 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoImprove the readability of the message about 'render broken up' for large command...
dooglus [Thu, 17 Jan 2008 15:59:01 +0000 (15:59 +0000)]
Improve the readability of the message about 'render broken up' for large command-line renders.

git-svn-id: http://svn.voria.com/code@1390 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't show the "Starting up GUID system..." message.
dooglus [Thu, 17 Jan 2008 15:58:53 +0000 (15:58 +0000)]
Don't show the "Starting up GUID system..." message.

git-svn-id: http://svn.voria.com/code@1389 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't show so many info level messages.
dooglus [Thu, 17 Jan 2008 15:58:43 +0000 (15:58 +0000)]
Don't show so many info level messages.

git-svn-id: http://svn.voria.com/code@1388 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen loading LinkableValueNode from a .sif file, accept any of the various names...
dooglus [Thu, 17 Jan 2008 00:16:40 +0000 (00:16 +0000)]
When loading LinkableValueNode from a .sif file, accept any of the various names for the links, rather than just the one returned by link_name(int).  The specialised code for the 'composite' ValueNode needs the same doing for it still.

git-svn-id: http://svn.voria.com/code@1387 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd 'new', 'open' and 'quit' to the caret>file menu.
dooglus [Wed, 16 Jan 2008 21:50:21 +0000 (21:50 +0000)]
Add 'new', 'open' and 'quit' to the caret>file menu.

git-svn-id: http://svn.voria.com/code@1386 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 1831897: Use the 'width' of each blinepoint in the plant layer to affect the...
dooglus [Tue, 15 Jan 2008 23:30:24 +0000 (23:30 +0000)]
Fix 1831897: Use the 'width' of each blinepoint in the plant layer to affect the velocities.  Adapted from a patch by Carlos López González (genete).

git-svn-id: http://svn.voria.com/code@1385 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't reset the Duplicate Layer's Index parameter to its "To" value - leave it at...
dooglus [Tue, 15 Jan 2008 19:30:39 +0000 (19:30 +0000)]
Don't reset the Duplicate Layer's Index parameter to its "To" value - leave it at the last value used, so the ducks line up with the last rendered copy.

git-svn-id: http://svn.voria.com/code@1384 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoLeave the Duplicate ValueNode's Index sub-parameter at the last value that is actuall...
dooglus [Tue, 15 Jan 2008 19:30:30 +0000 (19:30 +0000)]
Leave the Duplicate ValueNode's Index sub-parameter at the last value that is actually used.  For example, if it's stepping (From 0) (To 8) (Step 3), the used values will be 0, 3, and 6, and it will be left at value 6, finally, rather than 9 as before.

git-svn-id: http://svn.voria.com/code@1383 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoChanges related to saving .sif files containing mnemonic attributes for Composite...
dooglus [Tue, 15 Jan 2008 14:58:17 +0000 (14:58 +0000)]
Changes related to saving .sif files containing mnemonic attributes for Composite ValueNodes.

git-svn-id: http://svn.voria.com/code@1382 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoChanges related to loading .sif files containing mnemonic attributes for Composite...
dooglus [Tue, 15 Jan 2008 14:58:07 +0000 (14:58 +0000)]
Changes related to loading .sif files containing mnemonic attributes for Composite ValueNodes.

git-svn-id: http://svn.voria.com/code@1381 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen saving a Composite ValueNode, use mnemonic names for the sub-parameters rather...
dooglus [Tue, 15 Jan 2008 14:57:58 +0000 (14:57 +0000)]
When saving a Composite ValueNode, use mnemonic names for the sub-parameters rather than c1, c2, etc.

git-svn-id: http://svn.voria.com/code@1380 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen saving a Radial Composite ValueNode, use mnemonic names for the sub-parameters...
dooglus [Tue, 15 Jan 2008 14:57:50 +0000 (14:57 +0000)]
When saving a Radial Composite ValueNode, use mnemonic names for the sub-parameters rather than c0, c1, etc.

git-svn-id: http://svn.voria.com/code@1379 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemove debugging text and unneccesary test.
dooglus [Tue, 15 Jan 2008 14:49:09 +0000 (14:49 +0000)]
Remove debugging text and unneccesary test.

git-svn-id: http://svn.voria.com/code@1378 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen encapsulating layers, show which layers were encapsulated in the History dialog.
dooglus [Tue, 15 Jan 2008 14:49:00 +0000 (14:49 +0000)]
When encapsulating layers, show which layers were encapsulated in the History dialog.

git-svn-id: http://svn.voria.com/code@1377 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen duplicating layers, show which layers were duplicated in the History dialog.
dooglus [Tue, 15 Jan 2008 14:48:50 +0000 (14:48 +0000)]
When duplicating layers, show which layers were duplicated in the History dialog.

git-svn-id: http://svn.voria.com/code@1376 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen splitting a tangent, show which tangent was split in the History dialog.
dooglus [Tue, 15 Jan 2008 14:48:41 +0000 (14:48 +0000)]
When splitting a tangent, show which tangent was split in the History dialog.

git-svn-id: http://svn.voria.com/code@1375 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen merging a tangent, show which tangent was merged in the History dialog.
dooglus [Tue, 15 Jan 2008 14:48:31 +0000 (14:48 +0000)]
When merging a tangent, show which tangent was merged in the History dialog.

git-svn-id: http://svn.voria.com/code@1374 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse get_layer_descriptions() to format the layer list rather than including a copy...
dooglus [Tue, 15 Jan 2008 14:48:20 +0000 (14:48 +0000)]
Use get_layer_descriptions() to format the layer list rather than including a copy of the code here.

git-svn-id: http://svn.voria.com/code@1373 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse get_layer_descriptions() to format the layer list rather than including a copy...
dooglus [Tue, 15 Jan 2008 14:48:07 +0000 (14:48 +0000)]
Use get_layer_descriptions() to format the layer list rather than including a copy of the code here.

git-svn-id: http://svn.voria.com/code@1372 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse get_layer_descriptions() to format the layer list rather than including a copy...
dooglus [Tue, 15 Jan 2008 14:47:57 +0000 (14:47 +0000)]
Use get_layer_descriptions() to format the layer list rather than including a copy of the code here.

git-svn-id: http://svn.voria.com/code@1371 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoImproved the formatting of ValueDesc descriptions for use in the History dialog.
dooglus [Tue, 15 Jan 2008 14:47:48 +0000 (14:47 +0000)]
Improved the formatting of ValueDesc descriptions for use in the History dialog.

git-svn-id: http://svn.voria.com/code@1370 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoImproved the formatting of ValueNode descriptions for use in the History dialog.
dooglus [Tue, 15 Jan 2008 14:47:39 +0000 (14:47 +0000)]
Improved the formatting of ValueNode descriptions for use in the History dialog.

git-svn-id: http://svn.voria.com/code@1369 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdded a couple of implementations of Action::Base::get_layer_descriptions() to format...
dooglus [Tue, 15 Jan 2008 14:47:28 +0000 (14:47 +0000)]
Added a couple of implementations of Action::Base::get_layer_descriptions() to format lists of layer descriptions for use in the History dialog.

git-svn-id: http://svn.voria.com/code@1368 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd Layer::get_param_local_name() to allow us to report the local name of layer param...
dooglus [Tue, 15 Jan 2008 14:47:17 +0000 (14:47 +0000)]
Add Layer::get_param_local_name() to allow us to report the local name of layer parameters in the History dialog.

git-svn-id: http://svn.voria.com/code@1367 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen the user types in the History dialog, search for any text in the 'name' column...
dooglus [Mon, 14 Jan 2008 23:02:11 +0000 (23:02 +0000)]
When the user types in the History dialog, search for any text in the 'name' column that matches the text.  Previously it was only searching for names matching at the beginning.

git-svn-id: http://svn.voria.com/code@1366 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRevert the incorrect change to this file made in r1326.
dooglus [Mon, 14 Jan 2008 22:00:02 +0000 (22:00 +0000)]
Revert the incorrect change to this file made in r1326.

git-svn-id: http://svn.voria.com/code@1365 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoGet the 'Lower Layer' action to list the layer(s) that were lowered in the History...
dooglus [Mon, 14 Jan 2008 18:30:43 +0000 (18:30 +0000)]
Get the 'Lower Layer' action to list the layer(s) that were lowered in the History dialog.

git-svn-id: http://svn.voria.com/code@1364 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoGet the 'Raise Layer' action to list the layer(s) that were raised in the History...
dooglus [Mon, 14 Jan 2008 18:30:32 +0000 (18:30 +0000)]
Get the 'Raise Layer' action to list the layer(s) that were raised in the History dialog.

git-svn-id: http://svn.voria.com/code@1363 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 1824437: studio occasionally renders the tiles in the wrong places. This was...
dooglus [Mon, 14 Jan 2008 18:01:25 +0000 (18:01 +0000)]
Fix 1824437: studio occasionally renders the tiles in the wrong places.  This was happening when the canvas was one pixel greater than an integer number of tiles wide, and low-resolution rendering (the default) was enabled.

git-svn-id: http://svn.voria.com/code@1362 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse the TILE_SIZE defined in target_tile.h.
dooglus [Mon, 14 Jan 2008 18:01:15 +0000 (18:01 +0000)]
Use the TILE_SIZE defined in target_tile.h.

git-svn-id: http://svn.voria.com/code@1361 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse the TARGET_SIZE defined in target_tile.h.
dooglus [Mon, 14 Jan 2008 18:01:07 +0000 (18:01 +0000)]
Use the TARGET_SIZE defined in target_tile.h.

git-svn-id: http://svn.voria.com/code@1360 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDefine the TILE size here, instead of having it in several locations.
dooglus [Mon, 14 Jan 2008 18:00:58 +0000 (18:00 +0000)]
Define the TILE size here, instead of having it in several locations.

git-svn-id: http://svn.voria.com/code@1359 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse a mutex to prevent the two render threads (rendering the workarea and the navigat...
dooglus [Mon, 14 Jan 2008 10:28:41 +0000 (10:28 +0000)]
Use a mutex to prevent the two render threads (rendering the workarea and the navigator dialog thumbnail) trampling on each other while rendering the Duplicate layer.

git-svn-id: http://svn.voria.com/code@1358 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRevision 1355 broke the Duplicate layer. Oops!
dooglus [Mon, 14 Jan 2008 10:13:00 +0000 (10:13 +0000)]
Revision 1355 broke the Duplicate layer.  Oops!

git-svn-id: http://svn.voria.com/code@1357 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRefer the user to 'http://synfig.org/Convert#Compatibility' if we try to load a ...
dooglus [Mon, 14 Jan 2008 09:36:41 +0000 (09:36 +0000)]
Refer the user to 'synfig.org/Convert#Compatibility' if we try to load a .sif file that uses a not-yet-implemented ValueNode type, or that tries using a ValueNode with a type which it doesn't yet support.  Both of these are usually a sign that the .sif file was created with a newer version of synfig than the user has.

git-svn-id: http://svn.voria.com/code@1356 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoCheck that a ValueNode is compatible with the given type before attempting to create it.
dooglus [Mon, 14 Jan 2008 09:36:32 +0000 (09:36 +0000)]
Check that a ValueNode is compatible with the given type before attempting to create it.

git-svn-id: http://svn.voria.com/code@1355 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoExtend the Add and Subtract ValueNodes to work with gradients.
dooglus [Mon, 14 Jan 2008 08:49:52 +0000 (08:49 +0000)]
Extend the Add and Subtract ValueNodes to work with gradients.

git-svn-id: http://svn.voria.com/code@1354 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoShow the old and new names of the ValueNode in the History dialog when renaming it.
dooglus [Mon, 14 Jan 2008 00:28:32 +0000 (00:28 +0000)]
Show the old and new names of the ValueNode in the History dialog when renaming it.

git-svn-id: http://svn.voria.com/code@1353 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoMention the exported name of the ValueNode in the History dialog when unexporting it.
dooglus [Mon, 14 Jan 2008 00:28:04 +0000 (00:28 +0000)]
Mention the exported name of the ValueNode in the History dialog when unexporting it.

git-svn-id: http://svn.voria.com/code@1352 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoImprove the History dialog's "Connect" entry.
dooglus [Mon, 14 Jan 2008 00:06:57 +0000 (00:06 +0000)]
Improve the History dialog's "Connect" entry.

git-svn-id: http://svn.voria.com/code@1351 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd Timo Paulssen (timonator) to the contributors.
pabs [Sun, 13 Jan 2008 23:39:12 +0000 (23:39 +0000)]
Add Timo Paulssen (timonator) to the contributors.

git-svn-id: http://svn.voria.com/code@1350 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoImport the History dialog's display when ValueNodes are exported.
dooglus [Sun, 13 Jan 2008 22:46:44 +0000 (22:46 +0000)]
Import the History dialog's display when ValueNodes are exported.

git-svn-id: http://svn.voria.com/code@1349 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd an optional parameter to ValueDesc::get_description() to suppress reporting the...
dooglus [Sun, 13 Jan 2008 22:46:34 +0000 (22:46 +0000)]
Add an optional parameter to ValueDesc::get_description() to suppress reporting the exported name.

git-svn-id: http://svn.voria.com/code@1348 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoImprove the 'Disconnect' message in the History dialog. Patch from Timo Paulssen...
dooglus [Sun, 13 Jan 2008 22:03:46 +0000 (22:03 +0000)]
Improve the 'Disconnect' message in the History dialog.  Patch from Timo Paulssen (timonator on IRC).

git-svn-id: http://svn.voria.com/code@1347 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoBe more explicit in the History dialog about what ValueNode is being converted.
dooglus [Sun, 13 Jan 2008 16:39:08 +0000 (16:39 +0000)]
Be more explicit in the History dialog about what ValueNode is being converted.

git-svn-id: http://svn.voria.com/code@1346 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoMoved the code that formats the ValueDesc description into value_desc.cpp, and call...
dooglus [Sun, 13 Jan 2008 16:33:36 +0000 (16:33 +0000)]
Moved the code that formats the ValueDesc description into value_desc.cpp, and call it there rather than having it local to this action.  Other actions will want to use it as well.

git-svn-id: http://svn.voria.com/code@1345 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd new file value_desc.cpp and add it to the Makefile.
dooglus [Sun, 13 Jan 2008 16:33:27 +0000 (16:33 +0000)]
Add new file value_desc.cpp and add it to the Makefile.

git-svn-id: http://svn.voria.com/code@1344 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd new prototype ValueDesc::get_description() for formatting a string description...
dooglus [Sun, 13 Jan 2008 16:33:17 +0000 (16:33 +0000)]
Add new prototype ValueDesc::get_description() for formatting a string description of what a particular ValueDesc represents.

git-svn-id: http://svn.voria.com/code@1343 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoIn the hex HTML code text entry box of the color dialog, ignore everything other...
dooglus [Sun, 13 Jan 2008 14:35:50 +0000 (14:35 +0000)]
In the hex HTML code text entry box of the color dialog, ignore everything other than hex characters.  Previously even stray whitespace would cause it to fail.

git-svn-id: http://svn.voria.com/code@1342 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoSorted and formatted. There should be no real changes.
dooglus [Sun, 13 Jan 2008 14:35:40 +0000 (14:35 +0000)]
Sorted and formatted.  There should be no real changes.

git-svn-id: http://svn.voria.com/code@1341 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoWhen editing an exported valuenode, show the name it is exported as in the History...
dooglus [Sun, 13 Jan 2008 10:38:07 +0000 (10:38 +0000)]
When editing an exported valuenode, show the name it is exported as in the History dialog.

git-svn-id: http://svn.voria.com/code@1340 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoImprove the entry in the History dialog made when a ValueNode is converted.
dooglus [Sun, 13 Jan 2008 10:37:49 +0000 (10:37 +0000)]
Improve the entry in the History dialog made when a ValueNode is converted.

git-svn-id: http://svn.voria.com/code@1339 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemoved a bunch more DEBUGPOINT()s.
dooglus [Sat, 12 Jan 2008 17:49:10 +0000 (17:49 +0000)]
Removed a bunch more DEBUGPOINT()s.

git-svn-id: http://svn.voria.com/code@1338 1f10aa63-cdf2-0310-b900-c93c546f37ac