gen-c-wrappers

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2127 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Issue 190001: Auto-generate Obj-C delegate methods

Improvements made:
1) Obj-C code is generated by adding an @XMLVMDelegateMethod annotation. If a protocol type must be specified, also add @XMLVMDelegate to the class.
2) No need for extra files for delegate wrappers
3) Delegate wrappers are now structs with less overhead (they were previously an org.xmlvm.iphone.NSObject)
4) xmlvm2ios.xsl is separate from xmlvm2c.xsl - it is comparable to a subclass and can contain Obj-C code without compromising xmlvm2c.xsl

This patch only improves NSNetServiceDelegate as an example. Other delegates can be modified after its acceptance.

One note:
In COutputProcess.java, XSL_FILE_NAME is specified as xmlvm2ios.xsl Ideally it would default to "xmlvm2c.xsl", but couldn be overridden to e.g. "xmlvm2ios.xsl" in IPhoneCOutputProcess.java.

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2128 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Remove unnecessary import.

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2129 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
To avoid confusion, renaming --libraries= to --deps=

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2130 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Preview size and device orientation fixed.

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2131 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Fix camera app preview's aspect ratio on devices that have different aspect ratio with the camera and screen. Also prevents the activity from re-initializing when the screen is rotated.

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2132 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
updated demos/tutorials build scripts to support more xmlvm parameters and new android sdk

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2133 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Some fixes and cleanup for tutorials.

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2134 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Bug fixes related to UIImageWriteToSavedPhotosAlbum (camera app)

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2135 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Merge of Issue 191001: WP7: merge with trunk phase 1

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2136 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
iOS and android application to demonstrate use of UI elements

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2137 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Fix for copyright notice indentation 

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2138 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Fix for instanceof for array types (reported by Shai)

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2139 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
- Add mailing list to contacts page so that it's clear that this is the way to contact us for general questions about how to use XMLVM.
- Also change the style of the red box, which also affects the main page, so that the link is always centered. Fails on IE <= 7, but that's ok :)

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2140 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Issue 195001: Generate wrappers such as in UIView, which is currently handwritten. These Macros allow subclass "wrappers" to easily override inherited methods.

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2141 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
gen-c-wrappers

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2142 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Issue 197002: Minor delegate wrapper updates

1) In delegate wrapper methods, add "if (!classInitialized) INIT();" before invoking xmlvm_get_associated_c_object
2) Add #include "org_xmlvm_iphone_NSObject.h" before delegate wrapper declaration to avoid compilation errors in some projects
3) Convert NSNetServiceBrowserDelegate to use the generated code

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2143 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
Bug fix for UIImage.writeToSavedPhotosAlbum()

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2145 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
support of Float.valueof(float) in ObjC backend

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2146 0874c2aa-48f6-4a0f-8a6b-e32f4465a257
1. Restructured code for automatic generation of C wrappers
2. Fix to generation of code for structures 
3. Updated test application to test the generated wrappers

git-svn-id: http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm@2148 0874c2aa-48f6-4a0f-8a6b-e32f4465a257