X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-swig%2Fproperty-wrapper.rb;h=9d8394cc8abe3138db9b7cdb652dd5e759e59e03;hb=6c664b09beef66ee4e223cf30fb17ecdd6889bf7;hp=e548f613de0a1b9b04e083970f8f1ca169f663e4;hpb=7d13f3aa3f4ccf7c9c1c72ef182fd311663c6cd6;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-swig/property-wrapper.rb b/plugins/dali-swig/property-wrapper.rb index e548f61..9d8394c 100755 --- a/plugins/dali-swig/property-wrapper.rb +++ b/plugins/dali-swig/property-wrapper.rb @@ -55,7 +55,7 @@ end # Property struct stores the information about a property after parsing the C++ DALI_PROPERTY macro -$propertyStruct = Struct.new("Property", :name, :type, :writable, :animatable,:constrainInput, :enum, :shortenum, :csharpGetter, :csharpSetter, :childProperty,) +$propertyStruct = Struct.new("Property", :name, :type, :writable, :animatable,:constrainInput, :enum, :shortenum, :develAPI, :csharpGetter, :csharpSetter, :childProperty,) # daliClass struct stores a class name and an array of properties $daliClassStruct = Struct.new("DaliClass", :name, :properties ) @@ -90,6 +90,16 @@ def extractPropertyInfo( propertyMacro ) # extract the property enum name Dali::Path::Property::POINTS -> POINTS shortenum = data[6].split(":").last + develAPI = false; + # Check if the property uses devel API + # Currently we ignore devel properties for now + if data[6].include? "Devel" + develAPI = true; + puts("Ignoring DEVEL API property: " + shortenum); + end + + + # store the :name, :type, :writable, :animatable, :constrainInput, :enum property = $propertyStruct.new; @@ -99,7 +109,7 @@ def extractPropertyInfo( propertyMacro ) property.animatable = (data[4] == "true") property.constrainInput = (data[5]=="true") property.enum = shortenum - + property.develAPI = develAPI; return property; end @@ -221,7 +231,7 @@ def writePropertiesToCSharpFile( daliClass ) for property in daliClass.properties - if (!property.childProperty) + if( (!property.childProperty) && (!property.develAPI)) file.write( property.csharpGetter ); file.write( property.csharpSetter ); end