]> git.mxchange.org Git - simgear.git/commitdiff
canvas::CustomEvent: init bubbles member.
authorThomas Geymayer <tomgey@gmail.com>
Thu, 19 Jun 2014 11:04:21 +0000 (13:04 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Thu, 19 Jun 2014 11:04:21 +0000 (13:04 +0200)
simgear/canvas/events/CustomEvent.cxx
simgear/canvas/events/CustomEvent.hxx

index 3ca8ff18654a187aa08b84ca32052cdab290a411..a85a6efd941bc799fc3d6a8801df74dd02bdbc6f 100644 (file)
@@ -25,16 +25,20 @@ namespace canvas
 
   //----------------------------------------------------------------------------
   CustomEvent::CustomEvent( std::string const& type_str,
+                            bool bubbles,
                             StringMap const& data ):
-    detail(data)
+    detail(data),
+    bubbles(bubbles)
   {
     type = getOrRegisterType(type_str);
   }
 
   //----------------------------------------------------------------------------
   CustomEvent::CustomEvent( int type_id,
+                            bool bubbles,
                             StringMap const& data ):
-    detail(data)
+    detail(data),
+    bubbles(bubbles)
   {
     type = type_id;
 //    TypeMap::map_by<id>::type const& type_map = getTypeMap().by<id>();
index cb48becc2f7af48a84ec2ce53790d7b070d358ff..1117ba3f1befff3a3c069b6bcbece99b8f3213e0 100644 (file)
@@ -39,6 +39,7 @@ namespace canvas
        * @param data        Optional user data stored in event
        */
       CustomEvent( std::string const& type_str,
+                   bool bubbles = false,
                    StringMap const& data = StringMap() );
 
       /**
@@ -47,6 +48,7 @@ namespace canvas
        * @param data        Optional user data stored in event
        */
       CustomEvent( int type_id,
+                   bool bubbles = false,
                    StringMap const& data = StringMap() );
 
       /**