Fix 1368694. You can now add layers to groups and the groups show up immediately...
[synfig.git] / synfig-core / trunk / src / synfig / canvas.h
index 470b7c9..972b6cf 100644 (file)
@@ -31,6 +31,7 @@
 #include <list>
 #include <ETL/handle>
 #include <sigc++/signal.h>
+#include <sigc++/connection.h>
 
 #include "vector.h"
 #include "string.h"
@@ -141,6 +142,9 @@ private:
        //! Layer Group database
        std::map<String,std::set<etl::handle<Layer> > > group_db_;
 
+       //! Layer Connection database
+       std::map<etl::handle<Layer>,std::vector<sigc::connection> > connections_;
+
        /*
  -- ** -- S I G N A L S -------------------------------------------------------
        */
@@ -469,6 +473,8 @@ public:
 private:
        void add_group_pair(String group, etl::handle<Layer> layer);
        void remove_group_pair(String group, etl::handle<Layer> layer);
+       void add_connection(etl::handle<Layer> layer, sigc::connection connection);
+       void disconnect_connections(etl::handle<Layer> layer);
 
 protected:
        virtual void on_changed();