Revision: 2221
          http://synfig.svn.sourceforge.net/synfig/?rev=2221&view=rev
Author:   dooglus
Date:     2008-11-19 13:44:24 +0000 (Wed, 19 Nov 2008)

Log Message:
-----------
Add a new signal_subcanvas_changed() that is signalled whenever a PasteCanvas' 
subcanvas is changed.  Not used yet.

Modified Paths:
--------------
    synfig-core/trunk/src/synfig/layer_pastecanvas.cpp
    synfig-core/trunk/src/synfig/layer_pastecanvas.h

Modified: synfig-core/trunk/src/synfig/layer_pastecanvas.cpp
===================================================================
--- synfig-core/trunk/src/synfig/layer_pastecanvas.cpp  2008-11-19 13:43:47 UTC 
(rev 2220)
+++ synfig-core/trunk/src/synfig/layer_pastecanvas.cpp  2008-11-19 13:44:24 UTC 
(rev 2221)
@@ -212,6 +212,8 @@
 
        child_changed_connection.disconnect();
 
+       if (canvas != x) signal_subcanvas_changed()();
+
        canvas=x;
 
        /*if(canvas)

Modified: synfig-core/trunk/src/synfig/layer_pastecanvas.h
===================================================================
--- synfig-core/trunk/src/synfig/layer_pastecanvas.h    2008-11-19 13:43:47 UTC 
(rev 2220)
+++ synfig-core/trunk/src/synfig/layer_pastecanvas.h    2008-11-19 13:44:24 UTC 
(rev 2221)
@@ -97,8 +97,25 @@
        // did, but we've forgotten whether we did.  So we use this
        // 'extra_reference' member to store that decision.
        bool extra_reference;
+
+       /*
+ -- ** -- S I G N A L S -------------------------------------------------------
+       */
+
+private:
+
+       sigc::signal<void> signal_subcanvas_changed_;
+
+       /*
+ -- ** -- S I G N A L   I N T E R F A C E -------------------------------------
+       */
+
 public:
 
+       sigc::signal<void>& signal_subcanvas_changed() { return 
signal_subcanvas_changed_; }
+
+public:
+
        void update_renddesc();
 
        virtual void on_canvas_set();


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to