dooglus [Sat, 29 Sep 2007 15:09:11 +0000 (15:09 +0000)]
Prevent a crash (for example when moving the mouse slowly over the bottom edge of the line in dooglus.rincevent.net/synfig/shape_crash.sifz at the default zoom level).
git-svn-id: http://svn.voria.com/code@800
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 19:28:47 +0000 (19:28 +0000)]
Replace angle::epsilon with a #defined value instead. I don't know how to define a static member variable in a template header file.
git-svn-id: http://svn.voria.com/code@799
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 15:24:30 +0000 (15:24 +0000)]
Fixed a typo in the last commit.
git-svn-id: http://svn.voria.com/code@798
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 15:19:58 +0000 (15:19 +0000)]
Refine the bounding rectangles for 'Vertical Bar' and 'Horizontal Bar' spherize types.
git-svn-id: http://svn.voria.com/code@797
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 15:19:48 +0000 (15:19 +0000)]
Add Rect::horizontal_strip() and Rect::vertical_strip() to create infinite slices of the plane.
git-svn-id: http://svn.voria.com/code@796
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 15:19:39 +0000 (15:19 +0000)]
Use std::min and std::max rather than my ad-hoc #defines.
git-svn-id: http://svn.voria.com/code@795
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 03:01:15 +0000 (03:01 +0000)]
For the 'Range' convert type, when working with angles, if the link parameter is outside of the [min,max] rangle, the resulting angle is whichever of min and max is closest to the link parameter.
git-svn-id: http://svn.voria.com/code@794
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:26:58 +0000 (02:26 +0000)]
Add a new function angle::abs() which returns the absolute (positive) value of an angle.
git-svn-id: http://svn.voria.com/code@793
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:08:18 +0000 (02:08 +0000)]
Commented out the deprecated angle type conversion operators. They weren't used anywhere (everything still compiles without them, anyway) and they were preventing the multiplication operators from working. (g++ complains "error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second").
git-svn-id: http://svn.voria.com/code@792
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:08:11 +0000 (02:08 +0000)]
Move the deprecated type conversion operator prototypes to the end of their class definitions.
git-svn-id: http://svn.voria.com/code@791
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:08:05 +0000 (02:08 +0000)]
Fixed a typo - the wrong method was marked as deprecated in angle::cos.
git-svn-id: http://svn.voria.com/code@790
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:07:59 +0000 (02:07 +0000)]
Operator '!' is supposed to be true when an angle is 'no rotation'. It was failing for 360 degrees, and also failing due to floating point rounding error. Fixed both of these problems.
git-svn-id: http://svn.voria.com/code@789
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:07:52 +0000 (02:07 +0000)]
The zero(), one(), and half() functions weren't documented, and aren't used anywhere, but half() was returning a quarter rotation, and one() was returning a half rotation. Surely they're both meant to return twice that? Fixed accordingly, and commented them.
git-svn-id: http://svn.voria.com/code@788
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:07:46 +0000 (02:07 +0000)]
The comments for the inequality comparison operators seemed to suggest that positive rotation is clockwise. In Synfig, 0 degrees is due east, and positive rotation is counter-clockwise. Amended the comments accordingly, and made a comment at the top stating that positive rotation is counter-clockwise.
git-svn-id: http://svn.voria.com/code@787
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:07:39 +0000 (02:07 +0000)]
Fix the indentation.
git-svn-id: http://svn.voria.com/code@786
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:07:33 +0000 (02:07 +0000)]
Operators == and != were returning that 90 degrees != (90+360) degrees, due to floating point rounding errors. Allow an epsilon of difference.
git-svn-id: http://svn.voria.com/code@785
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:07:26 +0000 (02:07 +0000)]
The angle comparison code was considering 90+359 degrees to be greater than 90 degrees. The comments claim otherwise. Fix the code to correspond with the comments. Similarly for <, >=, and <=.
git-svn-id: http://svn.voria.com/code@784
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:07:20 +0000 (02:07 +0000)]
Since angles are stored in radians, we need to add on PI, not 0.5 to rotate by 180 degrees.
git-svn-id: http://svn.voria.com/code@783
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 28 Sep 2007 02:07:13 +0000 (02:07 +0000)]
Angles are stored in radians, not rotations.
git-svn-id: http://svn.voria.com/code@782
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 22:43:42 +0000 (22:43 +0000)]
Remove some debugging code I left in accidentally some time ago.
git-svn-id: http://svn.voria.com/code@781
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 20:56:48 +0000 (20:56 +0000)]
Fixed a typo in the previous commit.
git-svn-id: http://svn.voria.com/code@780
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 20:52:03 +0000 (20:52 +0000)]
Allow the 'subtract' convert type to work with times.
git-svn-id: http://svn.voria.com/code@779
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 20:51:45 +0000 (20:51 +0000)]
Allow the 'add' convert type to work with times.
git-svn-id: http://svn.voria.com/code@778
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 20:51:29 +0000 (20:51 +0000)]
Allow the 'range' convert type to work with 'time' values too.
git-svn-id: http://svn.voria.com/code@777
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 20:43:40 +0000 (20:43 +0000)]
Add the 'range' convert type, for limiting a parameter to values between a given minimum and maximum.
git-svn-id: http://svn.voria.com/code@776
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 15:10:49 +0000 (15:10 +0000)]
vector.h was assuming that its members would be laid out consequtively in memory, without padding. Is this a safe assumption? Note that the same assumption is made in class bezier_base in the same file, but I didn't change that yet.
git-svn-id: http://svn.voria.com/code@775
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 15:10:39 +0000 (15:10 +0000)]
Fix 1509627: Work around a bug in gcc 4.1.2 and earlier. Compiling with -O2 or higher was optimizing out a variable that we are using.
git-svn-id: http://svn.voria.com/code@774
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 00:31:17 +0000 (00:31 +0000)]
Use the http svn repository, not https, because using the https causes svn2cl to hang forever if the server isn't trusted locally.
git-svn-id: http://svn.voria.com/code@773
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 00:30:33 +0000 (00:30 +0000)]
Stop the 'warning: underquoted definition of ...' warnings by putting [...] around AC_DEFUN definitions.
git-svn-id: http://svn.voria.com/code@772
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 00:30:24 +0000 (00:30 +0000)]
Same as the last commit, except for the 'splash screen' that is shown while Studio is loading, and while documents are loading.
git-svn-id: http://svn.voria.com/code@771
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 27 Sep 2007 00:30:16 +0000 (00:30 +0000)]
export SYNFIG_DISABLE_POPUP_WINDOWS=1 to stop the "one moment please" staying on top. This is useful when debugging, because the 'one moment' often turns into 'several hours', and it's annoying to have an opaque strip in the centre of the screen for so long.
git-svn-id: http://svn.voria.com/code@770
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 26 Sep 2007 22:39:45 +0000 (22:39 +0000)]
Reorder the members to avoid warnings.
git-svn-id: http://svn.voria.com/code@769
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 26 Sep 2007 22:36:41 +0000 (22:36 +0000)]
The line "SR1=SR2=SR3=typename T::value_type();" in ETL/trunk/ETL/_gaussian.h expects the default constructor of the types it supports (which includes Color) to initialise the constructed object. I don't know what other code expects Color objects to be initialised, so let's play safe and initialise all colors for now.
git-svn-id: http://svn.voria.com/code@768
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 26 Sep 2007 19:10:53 +0000 (19:10 +0000)]
Fix the crash that the previous commit half-fixed.
studio::App::quit() at app.cpp:1575
studio::Instance::safe_close () at instance.cpp:687
[ handle magic ]
~CanvasView (this=0xa432378) at canvasview.cpp:918
~WorkArea (this=0x8ed2a10) at workarea.cpp:815
[ handle magic ]
^ ~Canvas (this=0x8e8a2b8) at canvas.cpp:94
| synfig::Canvas::clear () at canvas.cpp:136
| synfig::Canvas::erase (iter) at canvas.cpp:758
| synfig::Node::changed () at node.cpp:194
| synfig::Canvas::on_changed () at canvas.cpp:86
| synfig::Node::on_changed () at node.cpp:290
| [ sigc magic ]
| studio::CanvasView::on_dirty_preview () at canvasview.cpp:2774
`- illegal ------- work_area->queue_render_preview();
git-svn-id: http://svn.voria.com/code@767
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 26 Sep 2007 16:59:45 +0000 (16:59 +0000)]
I thought this should prevent a crash, but it doesn't. __render_preview is still being called after the WorkArea has been deleted. Why?
git-svn-id: http://svn.voria.com/code@766
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 26 Sep 2007 16:59:37 +0000 (16:59 +0000)]
Add some extra console output while closing down.
git-svn-id: http://svn.voria.com/code@765
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 26 Sep 2007 14:38:22 +0000 (14:38 +0000)]
Uncommented the line that stops the module subsystem. There was a warning: "For some reason, uncommenting the next line will cause things to crash. This needs to be looked into at some point", but it doesn't seem to cause a crash.
git-svn-id: http://svn.voria.com/code@764
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 26 Sep 2007 10:09:53 +0000 (10:09 +0000)]
Suppress valgrind warning about an error in libz.
git-svn-id: http://svn.voria.com/code@763
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 26 Sep 2007 09:56:03 +0000 (09:56 +0000)]
Fixed another set of uninitialised variables.
git-svn-id: http://svn.voria.com/code@762
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 26 Sep 2007 09:12:22 +0000 (09:12 +0000)]
Fix a variable-read-before-set error.
git-svn-id: http://svn.voria.com/code@761
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 26 Sep 2007 05:57:12 +0000 (05:57 +0000)]
Finish fix for 1801220. I forgot about the call to change the frame background back to normal when not in edit mode. We don't need that now.
git-svn-id: http://svn.voria.com/code@760
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 25 Sep 2007 22:25:06 +0000 (22:25 +0000)]
Add valgrind suppressions and .gitignore.
git-svn-id: http://svn.voria.com/code@759
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 25 Sep 2007 21:56:58 +0000 (21:56 +0000)]
Fix 1801220: Some Ubuntu Themes don't show the red border in animate edit mode. Draw the border by hand rather than relying on the Gtk theme to have left a pixel or two of background showing.
git-svn-id: http://svn.voria.com/code@758
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 25 Sep 2007 21:25:25 +0000 (21:25 +0000)]
Implement wiki.synfig.com/Wish_list : "Restore Default Layout". It's on the toolbox's "Dialogs" menu.
git-svn-id: http://svn.voria.com/code@757
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 25 Sep 2007 15:51:56 +0000 (15:51 +0000)]
Fix 1776156: "region and outline position ducks aren't linked". They are now - there's a checkbox for "Link Offsets". I didn't add the option of not linking vertex ducks yet, or add similar for the draw tool.
git-svn-id: http://svn.voria.com/code@756
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 25 Sep 2007 12:39:14 +0000 (12:39 +0000)]
Only use gamma correction on R,G,B & Y, and only when it's turned on!
git-svn-id: http://svn.voria.com/code@755
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 25 Sep 2007 12:29:10 +0000 (12:29 +0000)]
Simplify the code by using colorconv_synfig2gdk() rather than repeating its functionality here. Incidentally, the last change fixed a bug illustrated here: wiki.synfig.com/images/d/d1/Color-editor-linear-bug.jpg -- the positions of the three R,G,B sliders should all be pointing at the same color, but they weren't. The lower image shows how it looks after the previous commit - all three slider positions are the same color.
git-svn-id: http://svn.voria.com/code@754
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 25 Sep 2007 12:29:02 +0000 (12:29 +0000)]
The color gradients displayed on the sliders in the color editor were being calculated incorrectly when "File > Setup > Misc > Visually Linear Color Selection" was enabled, resulting in different colors being displayed at each of the R, G and B sliders' current positions.
git-svn-id: http://svn.voria.com/code@753
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 25 Sep 2007 12:28:53 +0000 (12:28 +0000)]
Tidying.
git-svn-id: http://svn.voria.com/code@752
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 25 Sep 2007 09:13:23 +0000 (09:13 +0000)]
Move the gamma_in and gamma_out macros into "color.h".
git-svn-id: http://svn.voria.com/code@751
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 25 Sep 2007 08:33:54 +0000 (08:33 +0000)]
Removed unused macros.
git-svn-id: http://svn.voria.com/code@750
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Mon, 24 Sep 2007 23:25:10 +0000 (23:25 +0000)]
Fix 1800783: "motion blur doesn't work on encapsulated layers". As before, but consider motion blur even for PasteCanvas layers without a sub canvas.
git-svn-id: http://svn.voria.com/code@749
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Mon, 24 Sep 2007 23:25:02 +0000 (23:25 +0000)]
Fix 1800783: "motion blur doesn't work on encapsulated layers". Now we take the z-depth into account as well. We need to look through all the layers before optimizing any sub-canvases.
git-svn-id: http://svn.voria.com/code@748
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Mon, 24 Sep 2007 23:24:53 +0000 (23:24 +0000)]
Nearly fix 1800783. Don't freeze dynamic parameters of PasteCanvas layers if there's a MotionBlur level above them. Currently this only works if the MotionBlur is above the PasteCanvas in the layer order, but that can be affected by the zdepth parameters, so the patch needs more work. Still, it's better than it was.
git-svn-id: http://svn.voria.com/code@747
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Mon, 24 Sep 2007 20:48:26 +0000 (20:48 +0000)]
Remove an unused prototype.
git-svn-id: http://svn.voria.com/code@746
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Sun, 23 Sep 2007 20:25:41 +0000 (20:25 +0000)]
Allow the 'BLine Tangent' to be used to convert angles. The resulting value is the angle of the tangent to the bline at the given point to the horizontal.
git-svn-id: http://svn.voria.com/code@745
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Sun, 23 Sep 2007 18:50:21 +0000 (18:50 +0000)]
Implemented feature request [ 1781903 ] make vertices/object move along paths. Added 'BLine Vector' and 'BLine Tangent' convert types to allow layers to move along arbitrary BLine paths.
git-svn-id: http://svn.voria.com/code@744
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Sun, 23 Sep 2007 00:10:00 +0000 (00:10 +0000)]
Oops. Fixed a silly copy/paste error.
git-svn-id: http://svn.voria.com/code@743
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Sun, 23 Sep 2007 00:08:23 +0000 (00:08 +0000)]
Added a new valuenode conversion type called 'Add'. It's like 'Subtract', only it adds... Previously addition was only possible by first scaling the RHS by -1 and then subtracting, which seems a bit silly.
git-svn-id: http://svn.voria.com/code@742
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Sat, 22 Sep 2007 23:45:54 +0000 (23:45 +0000)]
Fixed a typo.
git-svn-id: http://svn.voria.com/code@741
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Sat, 22 Sep 2007 23:45:45 +0000 (23:45 +0000)]
Fixed a few typos.
git-svn-id: http://svn.voria.com/code@740
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Sat, 22 Sep 2007 23:45:35 +0000 (23:45 +0000)]
Added a new valuenode type for real values: 'Exponent'. Given a real value, it sets its value to e^(value).
git-svn-id: http://svn.voria.com/code@739
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Sat, 22 Sep 2007 21:10:25 +0000 (21:10 +0000)]
Fix 1800324: closing a window while an animation is playing crashes studio, so don't let the window close if it's playing. Instead we display a message explaining why the window won't close. It would be better if we could somehow cause the playback to stop and then close the window, but this is better than crashing.
git-svn-id: http://svn.voria.com/code@738
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Sat, 22 Sep 2007 19:01:09 +0000 (19:01 +0000)]
Put View>Play on Control-P. Remove View>Pause from the menu, because it has never been implemented. How is would Pause be different than Stop anyway, since Stop doesn't rewind?
git-svn-id: http://svn.voria.com/code@737
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Sat, 22 Sep 2007 17:37:47 +0000 (17:37 +0000)]
Fix 1800126. Use a loose_handle instead of a handle to prevent the layer being free()d too early.
git-svn-id: http://svn.voria.com/code@736
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Sat, 22 Sep 2007 17:37:38 +0000 (17:37 +0000)]
Fix 1800126. Use a loose_handle instead of a handle to prevent the layer being free()d too early.
git-svn-id: http://svn.voria.com/code@735
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 21 Sep 2007 22:00:23 +0000 (22:00 +0000)]
Addendum to 1799722: Now that 'save' no longer fails silently, we don't need the toolbox's 'save' button to special-case the 'save failed' message.
git-svn-id: http://svn.voria.com/code@734
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 21 Sep 2007 22:00:15 +0000 (22:00 +0000)]
Fix 1799722: Display an error message when a 'save' (not 'save as') fails. Also, don't complain 'file already exists' if we can't read the directory to check whether the file exists or not.
git-svn-id: http://svn.voria.com/code@733
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 21 Sep 2007 22:00:04 +0000 (22:00 +0000)]
'quit -> "want to save?" -> yes -> cancel' should go back to working on the unsaved document immediately.
git-svn-id: http://svn.voria.com/code@732
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 21 Sep 2007 15:05:51 +0000 (15:05 +0000)]
Fix 1368694. You can now add layers to groups and the groups show up immediately. The rest of the groups dialog is still pretty broken, but there are other bug reports about that.
git-svn-id: http://svn.voria.com/code@731
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 21 Sep 2007 00:27:14 +0000 (00:27 +0000)]
Merge branch 'tidying' into chris
git-svn-id: http://svn.voria.com/code@730
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 21 Sep 2007 00:27:07 +0000 (00:27 +0000)]
Fixed 1799250: Add a function to update the render filename from the document filename (plus the canvas name, if it's not the root canvas).
git-svn-id: http://svn.voria.com/code@729
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 21 Sep 2007 00:26:57 +0000 (00:26 +0000)]
Working on 1799250: After changing the filename, update the render settings with the new filename.
git-svn-id: http://svn.voria.com/code@728
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 21 Sep 2007 00:26:49 +0000 (00:26 +0000)]
Working on 1799250: changed prototypes
git-svn-id: http://svn.voria.com/code@727
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 21 Sep 2007 00:26:42 +0000 (00:26 +0000)]
Working on 1799250: added prototypes.
git-svn-id: http://svn.voria.com/code@726
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Fri, 21 Sep 2007 00:26:34 +0000 (00:26 +0000)]
Fixed a typo.
git-svn-id: http://svn.voria.com/code@725
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 20 Sep 2007 20:53:22 +0000 (20:53 +0000)]
Fix 1796971: if the user tries to quit synfig or close a document when there's unsaved work, it will prompt whether to save or not. If the user says 'yes, save', then cancels the file selector, studio will now ask again "do you want to save", rather than closing it immediately. This seems more polite, and safer.
git-svn-id: http://svn.voria.com/code@724
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 20 Sep 2007 20:53:07 +0000 (20:53 +0000)]
Working on 1796971: Make dialog_save_as() return a bool saying whether it saved anything or not. Make save() use dialog_save_as() return value too.
git-svn-id: http://svn.voria.com/code@723
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Thu, 20 Sep 2007 18:36:40 +0000 (18:36 +0000)]
Rename the 'Import' layer to 'Import Image' to hint that it's not for importing .sif* files.
git-svn-id: http://svn.voria.com/code@722
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 19 Sep 2007 12:53:55 +0000 (12:53 +0000)]
If the user choses to save his work using the default name ("Synfig Animation 1.sifz", for example), don't keep showing the 'Save As' selector and warning about file overwriting each time she saves. Also moved the string "Synfig Animation " into a single #define rather than having it appear in multiple places in the code.
git-svn-id: http://svn.voria.com/code@721
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 19 Sep 2007 12:35:18 +0000 (12:35 +0000)]
Brought up to date.
git-svn-id: http://svn.voria.com/code@720
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Wed, 19 Sep 2007 11:34:24 +0000 (11:34 +0000)]
Revision 678 included <iostream> in color.h. This added a couple of megabytes to the synfig binary distribution (due to each of the modules having to contain lots of iostream code). Moved the include into color.cpp instead to prevent this growth.
git-svn-id: http://svn.voria.com/code@719
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 23:16:56 +0000 (23:16 +0000)]
Fix to allow the 'scale' valuenode be used with integers.
git-svn-id: http://svn.voria.com/code@718
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 22:31:43 +0000 (22:31 +0000)]
Fix 1797488: use set_link() rather than modifying the members directly.
git-svn-id: http://svn.voria.com/code@717
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 21:04:25 +0000 (21:04 +0000)]
Initialise a sine valuenode from its parent.
git-svn-id: http://svn.voria.com/code@716
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 19:56:56 +0000 (19:56 +0000)]
Header file change to go with the last commit.
git-svn-id: http://svn.voria.com/code@715
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 19:55:31 +0000 (19:55 +0000)]
Initialise 'scale' valuenodes when converting, rather than using preset values.
git-svn-id: http://svn.voria.com/code@714
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 19:49:29 +0000 (19:49 +0000)]
Initialise subtract valuenodes from the value they are converted from, rather than using a preset value.
git-svn-id: http://svn.voria.com/code@713
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 19:44:05 +0000 (19:44 +0000)]
Round integers towards zero in linear convert type.
git-svn-id: http://svn.voria.com/code@712
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 19:41:49 +0000 (19:41 +0000)]
Use a switch statement in the operator() like the other valuenode types do.
git-svn-id: http://svn.voria.com/code@711
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 19:33:54 +0000 (19:33 +0000)]
Round integer subtraction convertions to the nearest integer.
git-svn-id: http://svn.voria.com/code@710
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 19:25:56 +0000 (19:25 +0000)]
Fix a crash when converting an integer type to 'subtract'.
git-svn-id: http://svn.voria.com/code@709
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 12:54:44 +0000 (12:54 +0000)]
Implement feature request 1741236: Use 'Synfig Animation N' (N=1,2,3,...) rather than 'untitledN' (N=0,1,2,...) as the default file name. Put the default name in the file selector dialog when saving.
git-svn-id: http://svn.voria.com/code@708
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 11:07:04 +0000 (11:07 +0000)]
Put the 'paste_canvas' and 'PasteCanvas' mentions on a single line to make things clearer when 'grep'ing the code.
git-svn-id: http://svn.voria.com/code@707
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 11:02:19 +0000 (11:02 +0000)]
Renaming the PasteCanvas layer in r705 missed the other references to the name elsewhere in the code. This fixes it. We should use a #define'd value so it only needs to be changed in one place, really. See also r590 and r597.
git-svn-id: http://svn.voria.com/code@706
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 01:18:13 +0000 (01:18 +0000)]
Revert r590. Use the same names for PasteCanvas, SolidColor, and MotionBlur as in previous releases. Recognise the lower_case names, and convert them back to the previous names on save.
git-svn-id: http://svn.voria.com/code@705
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Tue, 18 Sep 2007 00:50:47 +0000 (00:50 +0000)]
Removed unused members/prototypes.
git-svn-id: http://svn.voria.com/code@704
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Mon, 17 Sep 2007 23:53:22 +0000 (23:53 +0000)]
When saving a file, remember the directory it was saved to, and use that as the default directory in future. Like was already the case when loading a file.
git-svn-id: http://svn.voria.com/code@703
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Mon, 17 Sep 2007 23:36:30 +0000 (23:36 +0000)]
Removed more unused code. There were 4 'save_as' functions, and 2 of them were never used, so I removed them.
git-svn-id: http://svn.voria.com/code@702
1f10aa63-cdf2-0310-b900-
c93c546f37ac
dooglus [Mon, 17 Sep 2007 23:01:17 +0000 (23:01 +0000)]
App::dialog_saveas_file() and App::dialog_save_file() are identical. Deleted one of them.
git-svn-id: http://svn.voria.com/code@701
1f10aa63-cdf2-0310-b900-
c93c546f37ac