rhodes 6.2.0 → 7.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +14 -10
- data/appveyor.yml +1 -1
- data/extensions/emdk3-manager/ext/platform/android/Rakefile +2 -0
- data/extensions/rhoconnect-push/ext/rhoconnect-push/platform/android/Rakefile +18 -1
- data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/Rakefile +19 -1
- data/lib/commonAPI/RubyServer/ext.yml +21 -0
- data/lib/commonAPI/RubyServer/ext/RubyServer.xml +101 -0
- data/lib/commonAPI/RubyServer/ext/build +19 -0
- data/lib/commonAPI/RubyServer/ext/build.bat +29 -0
- data/lib/commonAPI/RubyServer/ext/platform/android/Rakefile +161 -0
- data/lib/commonAPI/RubyServer/ext/platform/android/ext_java.files +9 -0
- data/lib/commonAPI/RubyServer/ext/platform/android/ext_native.files +7 -0
- data/lib/commonAPI/RubyServer/ext/platform/iphone/Rakefile +73 -0
- data/lib/commonAPI/RubyServer/ext/platform/iphone/RubyServer.xcodeproj/project.pbxproj +322 -0
- data/lib/commonAPI/RubyServer/ext/platform/iphone/RubyServer_Prefix.pch +7 -0
- data/lib/commonAPI/RubyServer/ext/shared/RubyServerImpl.cpp +242 -0
- data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeFactory.java +23 -3
- data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeRhoExtension.java +68 -8
- data/lib/commonAPI/barcode/ext/platform/iphone/Barcode.xcodeproj/project.pbxproj +24 -52
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.h +38 -10
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.m +300 -22
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewFactory.mm +6 -0
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/barcode.m +6 -2
- data/lib/commonAPI/barcode/ext/platform/iphone/impl/Barcode.m +7 -3
- data/lib/commonAPI/barcode/ext/platform/iphone/impl/BarcodeFactory.m +13 -0
- data/lib/commonAPI/barcode/ext/platform/iphone/impl/BarcodeSingleton.m +25 -3
- data/lib/commonAPI/bluetooth/ext/platform/android/Rakefile +29 -10
- data/lib/commonAPI/clipboard/ext/platform/android/Rakefile +29 -10
- data/lib/commonAPI/coreapi/ext/Notification.xml +47 -0
- data/lib/commonAPI/coreapi/ext/platform/android/ApplicationManifestAdds.erb +1 -0
- data/lib/commonAPI/coreapi/ext/platform/android/Rakefile +19 -0
- data/lib/commonAPI/coreapi/ext/platform/android/ext_java.files +2 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/AlarmReceiver.java +27 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/Notification.java +28 -10
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationFactory.java +14 -1
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationScheduler.java +260 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationSingleton.java +23 -1
- data/lib/commonAPI/coreapi/ext/platform/iphone/Coreapi.xcodeproj/project.pbxproj +21 -19
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.h +1 -0
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.m +234 -1
- data/lib/commonAPI/coreapi/ext/platform/qt/coreapi.pro +2 -0
- data/lib/commonAPI/coreapi/ext/platform/qt/src/CNotificationImpl.cpp +7 -0
- data/lib/commonAPI/coreapi/ext/shared/ApplicationImpl.cpp +5 -0
- data/lib/commonAPI/coreapi/public/api/rhoapi.js +18 -8
- data/lib/commonAPI/devicesecurity/ext/platform/android/Rakefile +19 -0
- data/lib/commonAPI/devicesecurity/ext/platform/iphone/DeviceSecurity.xcodeproj/project.pbxproj +16 -0
- data/lib/commonAPI/hardwarekeys/ext/keycapture.xml +11 -9
- data/lib/commonAPI/hardwarekeys/ext/platform/iphone/impl/KeyCaptureSingleton.h +5 -3
- data/lib/commonAPI/hardwarekeys/ext/platform/iphone/impl/KeyCaptureSingleton.m +80 -67
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraEclair.java +25 -14
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraGingerbread.java +55 -25
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +34 -9
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/ICameraObject.java +1 -0
- data/lib/commonAPI/printing_zebra/ext/platform/android/Rakefile +18 -0
- data/lib/commonAPI/sensor/ext/platform/android/src/com/rho/sensor/Sensor.java +4 -4
- data/lib/extensions/decrypt/ext/platform/android/Rakefile +19 -1
- data/lib/extensions/decryptstub/ext/platform/android/Rakefile +19 -0
- data/lib/extensions/decryptstub/ext/platform/iphone/Decryptstub.xcodeproj/project.pbxproj +4 -2
- data/lib/extensions/digest-md5/ext/android/Rakefile +18 -0
- data/lib/extensions/digest-sha1/ext/android/Rakefile +18 -0
- data/lib/extensions/digest-sha2/ext/android/Rakefile +18 -0
- data/lib/extensions/esri/ext/esri/platform/iphone/Classes/MapViewControllerESRI.h +19 -19
- data/lib/extensions/fcm-push/ext/android/Rakefile +18 -0
- data/lib/extensions/fcm-push/ext/android/src/com/rhomobile/rhodes/fcm/FCMIntentService.java +38 -16
- data/lib/extensions/gcm-push/ext/android/Rakefile +19 -0
- data/lib/extensions/keyboard/ext.yml +15 -0
- data/lib/extensions/keyboard/ext/Keyboard.xml +28 -0
- data/lib/extensions/keyboard/ext/build +19 -0
- data/lib/extensions/keyboard/ext/build.bat +29 -0
- data/lib/extensions/keyboard/ext/platform/android/Rakefile +141 -0
- data/lib/extensions/keyboard/ext/platform/android/ext_java.files +9 -0
- data/lib/extensions/keyboard/ext/platform/android/ext_native.files +7 -0
- data/lib/extensions/keyboard/ext/platform/android/jni/Keyboard_impl.cpp +61 -0
- data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/Keyboard.java +32 -0
- data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/KeyboardFactory.java +18 -0
- data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/KeyboardSingleton.java +29 -0
- data/lib/extensions/keyboard/ext/platform/iphone/Keyboard.xcodeproj/project.pbxproj +368 -0
- data/lib/extensions/keyboard/ext/platform/iphone/Keyboard_Prefix.pch +7 -0
- data/lib/extensions/keyboard/ext/platform/iphone/Rakefile +73 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/Keyboard.h +14 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/Keyboard.m +24 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardFactorySingleton.m +16 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSetup.m +9 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSingleton.h +17 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSingleton.m +23 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/readme.txt +7 -0
- data/lib/extensions/keyboard/ext/platform/qt/Keyboard.pro +68 -0
- data/lib/extensions/keyboard/ext/platform/qt/Makefile +473 -0
- data/lib/extensions/keyboard/ext/platform/qt/Makefile.Release +408 -0
- data/lib/extensions/keyboard/ext/platform/qt/Rakefile +39 -0
- data/lib/extensions/keyboard/ext/platform/qt/src/Keyboard_impl.cpp +99 -0
- data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.props +18 -0
- data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.vcxproj +197 -0
- data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.vcxproj.filters +50 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.csproj +119 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.props +8 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.targets +7 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.props +18 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.vcxproj +197 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.vcxproj.filters +58 -0
- data/lib/extensions/keyboard/ext/platform/uwp/src/Keyboard_impl.cpp +76 -0
- data/lib/extensions/keyboard/ext/platform/uwp/src/Keyboard_impl.cs +69 -0
- data/lib/extensions/keyboard/ext/platform/uwp/src/Properties/AssemblyInfo.cs +37 -0
- data/lib/extensions/keyboard/ext/platform/wm/Keyboard.sln +52 -0
- data/lib/extensions/keyboard/ext/platform/wm/Keyboard.vcproj +714 -0
- data/lib/extensions/keyboard/ext/platform/wm/Keyboard.vsprops +15 -0
- data/lib/extensions/keyboard/ext/platform/wm/src/Keyboard_impl.cpp +77 -0
- data/lib/extensions/openssl.so.src/ext/android/Rakefile +18 -0
- data/lib/extensions/openssl.so/ext/android/aarch64/libopenssl.so.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/howtobuild.txt +2 -0
- data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/libcrypto.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/libssl.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/Release-iphoneos/libopenssl.so.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/Release-iphonesimulator/libopenssl.so.a +0 -0
- data/lib/extensions/openssl/ext/android/Rakefile +18 -0
- data/lib/extensions/zlib/ext/zlib.c +5 -1
- data/lib/framework/autocomplete/Rhodes.rb +1 -1
- data/lib/framework/rhodes.rb +1 -1
- data/lib/framework/set.rb +799 -0
- data/lib/framework/version.rb +1 -1
- data/lib/rhodes.rb +1 -1
- data/platform/android/Rhodes/AndroidManifest.xml.erb +11 -2
- data/platform/android/Rhodes/jni/include/rhodes.h +6 -0
- data/platform/android/Rhodes/jni/include/rhodes/RhoClassFactory.h +3 -0
- data/platform/android/Rhodes/jni/include/rhodes/SecurityTokenGenerator.h +30 -0
- data/platform/android/Rhodes/jni/include/rhodes/details/rhojava.inc +1 -0
- data/platform/android/Rhodes/jni/src/JNIRhoRubyCppWrapper.cpp +408 -0
- data/platform/android/Rhodes/jni/src/RhoClassFactory.cpp +7 -0
- data/platform/android/Rhodes/jni/src/SecurityTokenGenerator.cpp +60 -0
- data/platform/android/Rhodes/jni/src/fileapi.cpp +318 -12
- data/platform/android/Rhodes/jni/src/mapview.cpp +4 -0
- data/platform/android/Rhodes/res/drawable/ic_notification.png +0 -0
- data/platform/android/Rhodes/res/xml/network_security_config.xml +7 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +9 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +1 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoMain.java +8 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyArrayObjects.java +33 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyClassObject.java +20 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyObject.java +115 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubySingleton.java +52 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyTypes.java +15 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +25 -13
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/SecurityTokenGenerator.java +57 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +1 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +9 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality.java +3 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality01.java +7 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality11.java +13 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality26.java +105 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionalityManager.java +4 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +24 -4
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +20 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +10 -0
- data/platform/android/build/Rakefile +30 -1
- data/platform/android/build/RhodesSRC_build.files +8 -0
- data/platform/android/build/android.rake +326 -22
- data/platform/android/build/android_tools.rb +36 -3
- data/platform/android/build/androidcommon.rb +97 -44
- data/platform/android/build/librhocommon_build.files +11 -0
- data/platform/android/build/librhodes_build.files +2 -0
- data/platform/android/build/manifest_generator.rb +9 -2
- data/platform/android/build/maven_deps_extractor.rb +96 -15
- data/platform/android/build/ndkwrapper.rb +111 -16
- data/platform/android/build/pom.erb +2 -2
- data/platform/iphone/Classes/AppManager/AppManager.m +31 -1
- data/platform/iphone/Classes/MapView/GoogleGeocoder.h +3 -3
- data/platform/iphone/Classes/RhoMainViewStubImpl.h +38 -0
- data/platform/iphone/Classes/RhoMainViewStubImpl.m +88 -0
- data/platform/iphone/Classes/RhoUIWebView.h +5 -0
- data/platform/iphone/Classes/RhoUIWebView.m +14 -6
- data/platform/iphone/Classes/{RhoWKWebView.m → RhoWKWebView.mm} +98 -18
- data/platform/iphone/Classes/RhoWebView.h +1 -1
- data/platform/iphone/Classes/RhoWebViewFabrique.m +24 -12
- data/platform/iphone/Classes/Rhodes.h +7 -2
- data/platform/iphone/Classes/Rhodes.m +46 -8
- data/platform/iphone/Classes/SimpleMainView.m +22 -13
- data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.h +32 -3
- data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.m +93 -61
- data/platform/iphone/Classes/URLProtocol/CRhoWKURLProtocol.h +22 -0
- data/platform/iphone/Classes/URLProtocol/CRhoWKURLProtocol.m +246 -0
- data/platform/iphone/Classes/WebView.m +14 -2
- data/platform/iphone/Entitlements.plist +1 -1
- data/platform/iphone/Framework/RhoApplication/RhoApplication.xcodeproj/project.pbxproj +399 -0
- data/platform/iphone/Framework/Rhodes/Rhodes.xcodeproj/project.pbxproj +1208 -0
- data/platform/iphone/Framework/Rhodes/Rhodes/Info.plist +24 -0
- data/platform/iphone/Framework/Rhodes/Rhodes/Rhodes.h +21 -0
- data/platform/iphone/Framework/Rhodes/Rhodes/StubCode.m +15 -0
- data/platform/iphone/Info.plist +1 -3
- data/platform/iphone/RhoAppBaseLib/RhoAppBaseLib.xcodeproj/project.pbxproj +511 -4
- data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +467 -1
- data/platform/iphone/Rhodes.xcodeproj/project.pbxproj +51 -274
- data/platform/iphone/RhodesBaseDelegate.h +1 -1
- data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +85 -3
- data/platform/iphone/rbuild/ApplicationPlist.erb +1 -1
- data/platform/iphone/rbuild/iphone.rake +497 -25
- data/platform/iphone/rbuild/iphonecommon.rb +15 -6
- data/platform/iphone/rhodes_stub.cpp +15 -0
- data/platform/iphone/rhodeslib/api/RhodesLib.h +28 -0
- data/platform/iphone/rhodeslib/impl/RhodesLib.m +52 -0
- data/platform/iphone/rhodesruby/api/IRefCountedObject.h +20 -0
- data/platform/iphone/rhodesruby/api/IRhoRuby.h +72 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyArray.h +12 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyBoolean.h +11 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyFloat.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyHash.h +15 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyInteger.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableArray.h +9 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableBoolean.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableFloat.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableHash.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableInteger.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableString.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyNativeCallback.h +9 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyNil.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyObject.h +37 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyRunnable.h +8 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyString.h +10 -0
- data/platform/iphone/rhodesruby/api/RhoRuby.h +26 -0
- data/platform/iphone/rhodesruby/api/RhoRubySingletone.h +14 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyFabrique.h +10 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyImpl.h +56 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyImpl.mm +432 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableArrayImpl.h +24 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableArrayImpl.mm +43 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableBooleanImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableBooleanImpl.mm +38 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableFloatImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableFloatImpl.mm +35 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableHashImpl.h +24 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableHashImpl.mm +48 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableIntegerImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableIntegerImpl.mm +35 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableStringImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableStringImpl.mm +35 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyNilImpl.h +22 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyNilImpl.mm +11 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyObjectImpl.h +31 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyObjectImpl.mm +49 -0
- data/platform/iphone/rhodesruby/impl/RhoRubySingletone.m +19 -0
- data/platform/iphone/rhodesruby/impl/RubyServerResponceImpl.h +21 -0
- data/platform/iphone/rhodesruby/impl/RubyServerResponceImpl.mm +32 -0
- data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +79 -0
- data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +91 -0
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +85 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app.zip +0 -0
- data/platform/shared/common/IRhoClassFactory.h +2 -0
- data/platform/shared/common/ISecurityTokenGenerator.h +16 -0
- data/platform/shared/common/RhoFile.cpp +11 -0
- data/platform/shared/common/RhoMath.h +14 -0
- data/platform/shared/common/RhoMutexLock.h +13 -0
- data/platform/shared/common/RhoSystem.h +1 -1
- data/platform/shared/common/RhoThread.cpp +25 -0
- data/platform/shared/common/RhodesApp.cpp +52 -6
- data/platform/shared/common/RhodesApp.h +25 -1
- data/platform/shared/common/RhodesAppBase.cpp +4 -2
- data/platform/shared/common/RhodesAppBase.h +5 -0
- data/platform/shared/common/iphone/RhoClassfactory.h +6 -0
- data/platform/shared/common/iphone/RhoCryptImpl.mm +21 -2
- data/platform/shared/common/map/BaseMapEngine.cpp +2 -2
- data/platform/shared/common/map/GeocodingMapEngine.cpp +1 -1
- data/platform/shared/common/map/GoogleMapEngine.cpp +1 -1
- data/platform/shared/common/map/OSMMapEngine.cpp +1 -1
- data/platform/shared/curl/lib/curl_config.h +28 -0
- data/platform/shared/db/DBAdapter.cpp +18 -10
- data/platform/shared/json.new/JSONIterator.cpp +2 -2
- data/platform/shared/net/HttpServer.cpp +32 -0
- data/platform/shared/net/HttpServer.h +15 -0
- data/platform/shared/net/INetRequest.cpp +54 -0
- data/platform/shared/qt/RhoRubylib.pro +10 -0
- data/platform/shared/qt/rhodes/impl/AlertImpl.cpp +13 -0
- data/platform/shared/qt/rhodes/impl/CameraImpl.cpp +6 -0
- data/platform/shared/qt/rhodes/impl/DateTimePickerImpl.cpp +4 -0
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +36 -7
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.h +12 -1
- data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.cpp +21 -2
- data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.h +1 -0
- data/platform/shared/qt/rhodes/impl/NativeToolbarImpl.cpp +10 -0
- data/platform/shared/qt/rhodes/impl/QtSystemImpl.cpp +55 -3
- data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +11 -0
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +71 -7
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.h +79 -2
- data/platform/shared/qt/rhodes/impl/RhodesImpl.cpp +16 -6
- data/platform/shared/qt/rhodes/impl/SecurityTokenGeneratorImpl.cpp +37 -0
- data/platform/shared/qt/rhodes/impl/SecurityTokenGeneratorImpl.h +25 -0
- data/platform/shared/qt/rhodes/impl/SignatureImpl.cpp +2 -0
- data/platform/shared/qt/rhodes/impl/WebViewImpl.cpp +27 -0
- data/platform/shared/qt/rhodes/impl/notificationsound.cpp +16 -2
- data/platform/shared/qt/rhodes/impl/notificationsound.h +11 -1
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.cpp +25 -16
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.h +3 -0
- data/platform/shared/qt/rhodes/newVersion/WebUrlRequestInterceptor.cpp +17 -0
- data/platform/shared/qt/rhodes/rhodes.pro +68 -14
- data/platform/shared/qt/rhodes/rhorubyVersion/rhodeslib.cpp +148 -0
- data/platform/shared/qt/rhodes/rhorubyVersion/rhodeslib.h +12 -0
- data/platform/shared/qt/rholib/rholib.pro +33 -5
- data/platform/shared/qt/rhoruby_win32_build.bat +19 -0
- data/platform/shared/qt/rhoruby_win32_build_debug.bat +19 -0
- data/platform/shared/qt/rhosimulator_win32_build_debug.bat +19 -0
- data/platform/shared/qt/rubylib/rubylib.pro +1 -0
- data/platform/shared/qt/sqlite3/sqlite3.pro +1 -0
- data/platform/shared/qt/syncengine/syncengine.pro +1 -0
- data/platform/shared/rhoruby/api/IArray.h +20 -0
- data/platform/shared/rhoruby/api/IBoolean.h +17 -0
- data/platform/shared/rhoruby/api/IFloat.h +17 -0
- data/platform/shared/rhoruby/api/IHash.h +23 -0
- data/platform/shared/rhoruby/api/IInteger.h +18 -0
- data/platform/shared/rhoruby/api/IMutableArray.h +18 -0
- data/platform/shared/rhoruby/api/IMutableBoolean.h +18 -0
- data/platform/shared/rhoruby/api/IMutableFloat.h +17 -0
- data/platform/shared/rhoruby/api/IMutableHash.h +18 -0
- data/platform/shared/rhoruby/api/IMutableInteger.h +17 -0
- data/platform/shared/rhoruby/api/IMutableString.h +17 -0
- data/platform/shared/rhoruby/api/INil.h +16 -0
- data/platform/shared/rhoruby/api/IObject.h +46 -0
- data/platform/shared/rhoruby/api/IRefCountedObject.h +20 -0
- data/platform/shared/rhoruby/api/IRhoRuby.h +78 -0
- data/platform/shared/rhoruby/api/IRunnable.h +17 -0
- data/platform/shared/rhoruby/api/IString.h +17 -0
- data/platform/shared/rhoruby/api/RhoRuby.h +29 -0
- data/platform/shared/rhoruby/api/RhoRubySingletone.h +19 -0
- data/platform/shared/rhoruby/api/SmartPointer.h +27 -0
- data/platform/shared/rhoruby/impl/MutableArrayImpl.cpp +54 -0
- data/platform/shared/rhoruby/impl/MutableArrayImpl.h +48 -0
- data/platform/shared/rhoruby/impl/MutableBooleanImpl.cpp +44 -0
- data/platform/shared/rhoruby/impl/MutableBooleanImpl.h +44 -0
- data/platform/shared/rhoruby/impl/MutableFloatImpl.cpp +41 -0
- data/platform/shared/rhoruby/impl/MutableFloatImpl.h +44 -0
- data/platform/shared/rhoruby/impl/MutableHashImpl.cpp +64 -0
- data/platform/shared/rhoruby/impl/MutableHashImpl.h +49 -0
- data/platform/shared/rhoruby/impl/MutableIntegerImpl.cpp +41 -0
- data/platform/shared/rhoruby/impl/MutableIntegerImpl.h +44 -0
- data/platform/shared/rhoruby/impl/MutableStringImpl.cpp +52 -0
- data/platform/shared/rhoruby/impl/MutableStringImpl.h +44 -0
- data/platform/shared/rhoruby/impl/NilImpl.cpp +23 -0
- data/platform/shared/rhoruby/impl/NilImpl.h +32 -0
- data/platform/shared/rhoruby/impl/ObjectImpl.cpp +77 -0
- data/platform/shared/rhoruby/impl/ObjectImpl.h +53 -0
- data/platform/shared/rhoruby/impl/RefCountedObjectImpl.cpp +28 -0
- data/platform/shared/rhoruby/impl/RefCountedObjectImpl.h +33 -0
- data/platform/shared/rhoruby/impl/RhoRubyImpl.cpp +799 -0
- data/platform/shared/rhoruby/impl/RhoRubyImpl.h +81 -0
- data/platform/shared/rhoruby/impl/RhoRubySingletone.cpp +20 -0
- data/platform/shared/rhoruby/impl/RubyServerResponceImpl.cpp +32 -0
- data/platform/shared/rhoruby/impl/RubyServerResponceImpl.h +21 -0
- data/platform/shared/ruby/android/ruby/config.h +55 -3
- data/platform/shared/ruby/error.c +1 -1
- data/platform/shared/ruby/ext/rho/rhoruby.c +60 -7
- data/platform/shared/ruby/ext/rho/rhoruby.h +3 -0
- data/platform/shared/rubyext/NativeToolbarExt.h +1 -0
- data/platform/uwp/rhodes/rhodes_TemporaryKey.pfx +0 -0
- data/platform/uwp/rhoruntime/common/RhoClassFactory.h +6 -0
- data/platform/win32/RhoSimulator/Qt5Core.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Gui.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Multimedia.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Network.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Positioning.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5PrintSupport.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Qml.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Quick.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5QuickWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5SerialPort.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Svg.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebChannel.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebEngine.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebEngineCore.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebEngineWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Widgets.dll +0 -0
- data/platform/win32/RhoSimulator/QtWebEngineProcess.exe +0 -0
- data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
- data/platform/win32/RhoSimulator/audio/qtaudio_wasapi.dll +0 -0
- data/platform/win32/RhoSimulator/audio/qtaudio_windows.dll +0 -0
- data/platform/win32/RhoSimulator/bearer/qgenericbearer.dll +0 -0
- data/platform/win32/RhoSimulator/iconengines/qsvgicon.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qgif.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qicns.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qico.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qjpeg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qsvg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtga.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtiff.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qwbmp.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qwebp.dll +0 -0
- data/platform/win32/RhoSimulator/libEGL.dll +0 -0
- data/platform/win32/RhoSimulator/libGLESV2.dll +0 -0
- data/platform/win32/RhoSimulator/mediaservice/dsengine.dll +0 -0
- data/platform/win32/RhoSimulator/mediaservice/qtmedia_audioengine.dll +0 -0
- data/platform/win32/RhoSimulator/mediaservice/wmfengine.dll +0 -0
- data/platform/win32/RhoSimulator/platforms/qwindows.dll +0 -0
- data/platform/win32/RhoSimulator/playlistformats/qtmultimedia_m3u.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_geoclue.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_positionpoll.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_serialnmea.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_winrt.dll +0 -0
- data/platform/win32/RhoSimulator/printsupport/windowsprintersupport.dll +0 -0
- data/platform/wm/build/wm.rake +110 -5
- data/platform/wm/rhodes/rho/common/ExtManager.cpp +30 -0
- data/platform/wm/rhodes/rho/common/RhoClassFactory.h +6 -0
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +3 -0
- data/platform/wm/rubylib/rubylib.vcxproj +6 -0
- data/platform/wp8/rhoruntime/common/RhoClassFactory.h +6 -0
- data/rakefile.rb +14 -10
- data/res/build-tools/iphonesim/build/Release/iphonesim_8 +23 -15
- data/res/build-tools/maven/LICENSE +18 -89
- data/res/build-tools/maven/NOTICE +1 -1
- data/res/build-tools/maven/README.txt +12 -12
- data/res/build-tools/maven/bin/m2.conf +2 -2
- data/res/build-tools/maven/bin/mvn +122 -125
- data/res/build-tools/maven/bin/mvn.cmd +205 -0
- data/res/build-tools/maven/bin/mvnDebug +10 -176
- data/res/build-tools/maven/bin/mvnDebug.cmd +33 -0
- data/res/build-tools/maven/bin/mvnyjp +9 -181
- data/res/build-tools/maven/boot/plexus-classworlds-2.6.0.jar +0 -0
- data/res/build-tools/maven/conf/logging/simplelogger.properties +8 -1
- data/res/build-tools/maven/conf/settings.xml +1 -1
- data/res/build-tools/maven/conf/toolchains.xml +103 -0
- data/res/build-tools/maven/lib/animal-sniffer-annotations-1.14.jar +0 -0
- data/res/build-tools/maven/lib/animal-sniffer-annotations.license +14 -0
- data/res/build-tools/maven/lib/checker-compat-qual-2.0.0.jar +0 -0
- data/res/build-tools/maven/lib/checker-compat-qual.license +14 -0
- data/res/build-tools/maven/lib/commons-cli-1.4.jar +0 -0
- data/res/build-tools/maven/lib/commons-io-2.5.jar +0 -0
- data/res/build-tools/maven/lib/commons-lang3-3.8.1.jar +0 -0
- data/res/build-tools/maven/lib/error_prone_annotations-2.1.3.jar +0 -0
- data/res/build-tools/maven/lib/guava-25.1-android.jar +0 -0
- data/res/build-tools/maven/lib/guice-4.2.1-no_aop.jar +0 -0
- data/res/build-tools/maven/lib/j2objc-annotations-1.1.jar +0 -0
- data/res/build-tools/maven/lib/jansi-1.17.1.jar +0 -0
- data/res/build-tools/maven/lib/jansi-native/README.txt +7 -0
- data/res/build-tools/maven/lib/jansi-native/freebsd32/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/freebsd64/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/linux32/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/linux64/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/osx/libjansi.jnilib +0 -0
- data/res/build-tools/maven/lib/jansi-native/windows32/jansi.dll +0 -0
- data/res/build-tools/maven/lib/jansi-native/windows64/jansi.dll +0 -0
- data/res/build-tools/maven/lib/jcl-over-slf4j-1.7.25.jar +0 -0
- data/res/build-tools/maven/lib/jcl-over-slf4j.license +14 -0
- data/res/build-tools/maven/lib/jsr250-api.license +383 -405
- data/res/build-tools/maven/lib/jsr305-3.0.2.jar +0 -0
- data/res/build-tools/maven/lib/maven-artifact-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-builder-support-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-compat-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-core-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-embedder-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-builder-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-plugin-api-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-repository-metadata-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-api-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-connector-basic-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-impl-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-provider-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-spi-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-transport-wagon-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-util-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-builder-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-shared-utils-3.2.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-slf4j-provider-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.inject-0.3.3.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.inject.license +210 -261
- data/res/build-tools/maven/lib/org.eclipse.sisu.plexus-0.3.3.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.plexus.license +210 -261
- data/res/build-tools/maven/lib/plexus-component-annotations-1.7.1.jar +0 -0
- data/res/build-tools/maven/lib/plexus-interpolation-1.25.jar +0 -0
- data/res/build-tools/maven/lib/plexus-sec-dispatcher-1.4.jar +0 -0
- data/res/build-tools/maven/lib/plexus-utils-3.2.0.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-api-1.7.25.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-api.license +10 -186
- data/res/build-tools/maven/lib/wagon-file-3.3.2.jar +0 -0
- data/res/build-tools/maven/lib/wagon-http-3.3.2-shaded.jar +0 -0
- data/res/build-tools/maven/lib/wagon-provider-api-3.3.2.jar +0 -0
- data/res/generators/rhogen.rb +150 -0
- data/res/generators/templates/application/AndroidManifest.erb +13 -4
- data/res/generators/templates/application/build.yml +9 -0
- data/res/generators/templates/application/nodejs_build.yml +1 -1
- data/res/generators/templates/application/resources/android/res/xml/network_security_config.xml +7 -0
- data/res/generators/templates/application/rhoconfig.txt +13 -6
- data/res/generators/templates/application/rhoconfig_rubynode.txt +139 -0
- data/res/generators/templates/application/rubynodejs_build.yml +95 -0
- data/res/generators/templates/extension/extensions/montana/ext/platform/android/Rakefile +19 -0
- data/res/generators/templates/iphone_project/root/Entitlements.plist +1 -1
- data/res/generators/templates/iphone_project/root/Info.plist +1 -3
- data/res/generators/templates/iphone_project/root/rhorunner_development.entitlements +1 -1
- data/res/generators/templates/iphone_project/root/rhorunner_production.entitlements +1 -1
- data/rhodes.gemspec +2 -2
- data/version +1 -1
- metadata +244 -71
- data/res/build-tools/maven/bin/mvn.bat +0 -197
- data/res/build-tools/maven/bin/mvnDebug.bat +0 -200
- data/res/build-tools/maven/boot/plexus-classworlds-2.5.2.jar +0 -0
- data/res/build-tools/maven/lib/aether-api-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-api.license +0 -261
- data/res/build-tools/maven/lib/aether-connector-basic-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-connector-basic.license +0 -261
- data/res/build-tools/maven/lib/aether-impl-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-impl.license +0 -261
- data/res/build-tools/maven/lib/aether-spi-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-spi.license +0 -261
- data/res/build-tools/maven/lib/aether-transport-wagon-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-transport-wagon.license +0 -261
- data/res/build-tools/maven/lib/aether-util-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-util.license +0 -261
- data/res/build-tools/maven/lib/cdi-api.license +0 -445
- data/res/build-tools/maven/lib/commons-cli-1.2.jar +0 -0
- data/res/build-tools/maven/lib/commons-io-2.2.jar +0 -0
- data/res/build-tools/maven/lib/commons-lang-2.6.jar +0 -0
- data/res/build-tools/maven/lib/guava-18.0.jar +0 -0
- data/res/build-tools/maven/lib/jsoup-1.7.2.jar +0 -0
- data/res/build-tools/maven/lib/jsoup.license +0 -66
- data/res/build-tools/maven/lib/maven-aether-provider-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-aether-provider.license +0 -202
- data/res/build-tools/maven/lib/maven-artifact-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-artifact.license +0 -202
- data/res/build-tools/maven/lib/maven-compat-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-compat.license +0 -202
- data/res/build-tools/maven/lib/maven-core-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-core.license +0 -202
- data/res/build-tools/maven/lib/maven-embedder-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-embedder.license +0 -202
- data/res/build-tools/maven/lib/maven-model-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-builder-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-builder.license +0 -202
- data/res/build-tools/maven/lib/maven-model.license +0 -202
- data/res/build-tools/maven/lib/maven-plugin-api-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-plugin-api.license +0 -202
- data/res/build-tools/maven/lib/maven-repository-metadata-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-repository-metadata.license +0 -202
- data/res/build-tools/maven/lib/maven-settings-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-builder-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-builder.license +0 -202
- data/res/build-tools/maven/lib/maven-settings.license +0 -202
- data/res/build-tools/maven/lib/org.eclipse.sisu.inject-0.3.0.M1.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar +0 -0
- data/res/build-tools/maven/lib/plexus-cipher.license +0 -445
- data/res/build-tools/maven/lib/plexus-component-annotations-1.5.5.jar +0 -0
- data/res/build-tools/maven/lib/plexus-interpolation-1.21.jar +0 -0
- data/res/build-tools/maven/lib/plexus-sec-dispatcher-1.3.jar +0 -0
- data/res/build-tools/maven/lib/plexus-sec-dispatcher.license +0 -445
- data/res/build-tools/maven/lib/plexus-utils-3.0.20.jar +0 -0
- data/res/build-tools/maven/lib/sisu-guice-3.2.3-no_aop.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-api-1.7.5.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-simple-1.7.5.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-simple.license +0 -190
- data/res/build-tools/maven/lib/wagon-file-2.8.jar +0 -0
- data/res/build-tools/maven/lib/wagon-file.license +0 -202
- data/res/build-tools/maven/lib/wagon-http-2.8-shaded.jar +0 -0
- data/res/build-tools/maven/lib/wagon-http-shared-2.8.jar +0 -0
- data/res/build-tools/maven/lib/wagon-http-shared.license +0 -202
- data/res/build-tools/maven/lib/wagon-http.license +0 -202
- data/res/build-tools/maven/lib/wagon-provider-api-2.8.jar +0 -0
- data/res/build-tools/maven/lib/wagon-provider-api.license +0 -202
@@ -27,18 +27,24 @@
|
|
27
27
|
#include "common/RhoPort.h"
|
28
28
|
#include "ext/rho/rhoruby.h"
|
29
29
|
#include "common/RhodesApp.h"
|
30
|
+
#ifndef RHODES_VERSION_LIBRARY
|
30
31
|
#include "MainWindowImpl.h"
|
32
|
+
#endif
|
31
33
|
|
32
34
|
extern "C" {
|
33
35
|
|
34
36
|
void choose_picture(char* callback_url)
|
35
37
|
{
|
38
|
+
#ifndef RHODES_VERSION_LIBRARY
|
36
39
|
CMainWindow::getInstance()->selectPicture(strdup(callback_url));
|
40
|
+
#endif
|
37
41
|
}
|
38
42
|
|
39
43
|
void take_picture(char* callback_url, rho_param* options_hash)
|
40
44
|
{
|
45
|
+
#ifndef RHODES_VERSION_LIBRARY
|
41
46
|
CMainWindow::getInstance()->takePicture(strdup(callback_url));
|
47
|
+
#endif
|
42
48
|
}
|
43
49
|
|
44
50
|
VALUE get_camera_info(const char* camera_type)
|
@@ -25,7 +25,9 @@
|
|
25
25
|
*------------------------------------------------------------------------*/
|
26
26
|
|
27
27
|
#include "logging/RhoLog.h"
|
28
|
+
#ifndef RHODES_VERSION_LIBRARY
|
28
29
|
#include "MainWindowImpl.h"
|
30
|
+
#endif
|
29
31
|
#include "DateTimePickerImpl.h"
|
30
32
|
|
31
33
|
static char ourTitle[1024];
|
@@ -43,7 +45,9 @@ void choose_datetime_with_range(char* callback, char* title,
|
|
43
45
|
else
|
44
46
|
strcpy(ourTitle, "");
|
45
47
|
CDateTimeMessage *msg = new CDateTimeMessage(callback, ourTitle, initial_time, format, data, min_time, max_time);
|
48
|
+
#ifndef RHODES_VERSION_LIBRARY
|
46
49
|
CMainWindow::getInstance()->dateTimePicker(msg);
|
50
|
+
#endif
|
47
51
|
}
|
48
52
|
|
49
53
|
|
@@ -33,6 +33,7 @@
|
|
33
33
|
#include "json/JSONIterator.h"
|
34
34
|
#include "MainWindowImpl.h"
|
35
35
|
//#undef null
|
36
|
+
#ifndef RHODES_VERSION_LIBRARY
|
36
37
|
#include <QString>
|
37
38
|
#ifndef OS_SAILFISH
|
38
39
|
#if QT_VERSION >= 0x050000
|
@@ -44,7 +45,9 @@
|
|
44
45
|
#include <QHash>
|
45
46
|
#include "../mainwindowinterface.h"
|
46
47
|
|
48
|
+
|
47
49
|
IMPLEMENT_LOGCLASS(CMainWindow,"MainWindow");
|
50
|
+
#endif
|
48
51
|
|
49
52
|
using namespace rho;
|
50
53
|
using namespace rho::common;
|
@@ -52,13 +55,19 @@ using namespace rho::json;
|
|
52
55
|
|
53
56
|
extern "C" void rho_geoimpl_turngpsoff();
|
54
57
|
|
58
|
+
#ifndef RHODES_VERSION_LIBRARY
|
55
59
|
int CMainWindow::m_screenWidth;
|
56
60
|
int CMainWindow::m_screenHeight;
|
57
61
|
|
58
62
|
bool CMainWindow::mainWindowClosed = false;
|
63
|
+
#endif
|
59
64
|
|
60
|
-
CMainWindow::CMainWindow()
|
65
|
+
CMainWindow::CMainWindow()
|
66
|
+
#ifndef RHODES_VERSION_LIBRARY
|
67
|
+
: QObject(), m_started(true), qtMainWindow(NULL)
|
68
|
+
#endif
|
61
69
|
{
|
70
|
+
#ifndef RHODES_VERSION_LIBRARY
|
62
71
|
//int argc = 0;
|
63
72
|
QCoreApplication::setOrganizationName("Rhomobile");
|
64
73
|
#ifndef RHODES_EMULATOR
|
@@ -66,13 +75,16 @@ CMainWindow::CMainWindow(): QObject(), m_started(true), qtMainWindow(NULL)
|
|
66
75
|
#else
|
67
76
|
QCoreApplication::setApplicationName("RhoSimulator");
|
68
77
|
#endif
|
78
|
+
#endif //RHODES_VERSION_LIBRARY
|
69
79
|
//qtApplication = (void*)new QApplication(argc, 0);
|
70
80
|
}
|
71
81
|
|
72
82
|
CMainWindow::~CMainWindow()
|
73
83
|
{
|
84
|
+
#ifndef RHODES_VERSION_LIBRARY
|
74
85
|
if (qtMainWindow) delete (QtMainWindow*)qtMainWindow;
|
75
86
|
//if (qtApplication) delete (QApplication*)qtApplication;
|
87
|
+
#endif
|
76
88
|
}
|
77
89
|
|
78
90
|
CMainWindow* CMainWindow::getInstance(void)
|
@@ -83,8 +95,10 @@ CMainWindow* CMainWindow::getInstance(void)
|
|
83
95
|
|
84
96
|
void CMainWindow::updateSizeProperties(int width, int height)
|
85
97
|
{
|
98
|
+
#ifndef RHODES_VERSION_LIBRARY
|
86
99
|
m_screenWidth = width;
|
87
100
|
m_screenHeight = height;
|
101
|
+
#endif
|
88
102
|
}
|
89
103
|
|
90
104
|
void CMainWindow::logEvent(const ::std::string& message)
|
@@ -97,6 +111,7 @@ void CMainWindow::onWebViewUrlChanged(const ::std::string& url)
|
|
97
111
|
RHODESAPP().keepLastVisitedUrl(url);
|
98
112
|
}
|
99
113
|
|
114
|
+
#ifndef RHODES_VERSION_LIBRARY
|
100
115
|
bool CMainWindow::Initialize(const wchar_t* title)
|
101
116
|
{
|
102
117
|
bool ok = init(this, title);
|
@@ -105,9 +120,11 @@ bool CMainWindow::Initialize(const wchar_t* title)
|
|
105
120
|
#endif
|
106
121
|
return ok;
|
107
122
|
}
|
123
|
+
#endif
|
108
124
|
|
109
125
|
void CMainWindow::createCustomMenu(void)
|
110
126
|
{
|
127
|
+
#ifndef RHODES_VERSION_LIBRARY
|
111
128
|
RHODESAPP().getAppMenu().copyMenuItems(m_arAppMenuItems);
|
112
129
|
#ifdef ENABLE_DYNAMIC_RHOBUNDLE
|
113
130
|
String strIndexPage = CFilePath::join(RHODESAPP().getStartUrl(),"index"RHO_ERB_EXT);
|
@@ -128,10 +145,12 @@ void CMainWindow::createCustomMenu(void)
|
|
128
145
|
#endif
|
129
146
|
}
|
130
147
|
}
|
148
|
+
#endif//RHODES_VERSION_LIBRARY
|
131
149
|
}
|
132
150
|
|
133
151
|
void CMainWindow::onCustomMenuItemCommand(int nItemPos)
|
134
152
|
{
|
153
|
+
#ifndef RHODES_VERSION_LIBRARY
|
135
154
|
if ( nItemPos < 0 || nItemPos >= (int)m_arAppMenuItems.size() )
|
136
155
|
return;
|
137
156
|
|
@@ -149,8 +168,17 @@ void CMainWindow::onCustomMenuItemCommand(int nItemPos)
|
|
149
168
|
}
|
150
169
|
|
151
170
|
oMenuItem.processCommand();
|
171
|
+
#endif
|
172
|
+
}
|
173
|
+
|
174
|
+
void CMainWindow::onWindowClose(void)
|
175
|
+
{
|
176
|
+
#ifndef RHODES_VERSION_LIBRARY
|
177
|
+
mainWindowClosed = true;
|
178
|
+
#endif
|
152
179
|
}
|
153
180
|
|
181
|
+
#ifndef RHODES_VERSION_LIBRARY
|
154
182
|
void CMainWindow::minimizeWindow(void)
|
155
183
|
{
|
156
184
|
#ifndef OS_SAILFISH //TODO: FIX
|
@@ -180,11 +208,6 @@ void CMainWindow::DestroyUi(void)
|
|
180
208
|
rho_rhodesapp_callUiDestroyedCallback();
|
181
209
|
}
|
182
210
|
|
183
|
-
void CMainWindow::onWindowClose(void)
|
184
|
-
{
|
185
|
-
mainWindowClosed = true;
|
186
|
-
}
|
187
|
-
|
188
211
|
|
189
212
|
// **************************************************************************
|
190
213
|
//
|
@@ -666,7 +689,7 @@ void CMainWindow::menuAddAction(const char* label, int item, bool enabled)
|
|
666
689
|
{
|
667
690
|
((QtMainWindow*)qtMainWindow)->menuAddAction(QString(label), item, enabled);
|
668
691
|
}
|
669
|
-
|
692
|
+
#endif
|
670
693
|
// Handlers
|
671
694
|
void CMainWindow::onActivate(int active)
|
672
695
|
{
|
@@ -675,6 +698,7 @@ void CMainWindow::onActivate(int active)
|
|
675
698
|
rho_geoimpl_turngpsoff();
|
676
699
|
}
|
677
700
|
|
701
|
+
#ifndef RHODES_VERSION_LIBRARY
|
678
702
|
// Commands
|
679
703
|
void CMainWindow::exitCommand()
|
680
704
|
{
|
@@ -825,10 +849,15 @@ void CMainWindow::createCustomMenuSlot(void)
|
|
825
849
|
{
|
826
850
|
createCustomMenu();
|
827
851
|
}
|
852
|
+
#endif
|
828
853
|
|
829
854
|
extern "C" void rho_os_impl_performOnUiThread(rho::common::IRhoRunnable* pTask)
|
830
855
|
{
|
856
|
+
#ifndef RHODES_VERSION_LIBRARY
|
831
857
|
CMainWindow::getInstance()->executeRunnable(pTask);
|
858
|
+
#else
|
859
|
+
pTask->runObject();
|
860
|
+
#endif
|
832
861
|
}
|
833
862
|
|
834
863
|
#if defined(RHODES_QT_PLATFORM) && defined(OS_MACOSX)
|
@@ -39,17 +39,26 @@
|
|
39
39
|
#include "AlertImpl.h"
|
40
40
|
#include "DateTimePickerImpl.h"
|
41
41
|
#undef null
|
42
|
+
|
43
|
+
#ifndef RHODES_VERSION_LIBRARY
|
42
44
|
#include <QObject>
|
45
|
+
#endif
|
43
46
|
|
44
47
|
#ifdef OS_MACOSX
|
45
48
|
#define stricmp strcasecmp
|
46
49
|
#define strnicmp strncasecmp
|
47
50
|
#endif
|
48
51
|
|
49
|
-
class CMainWindow : public
|
52
|
+
class CMainWindow : public
|
53
|
+
#ifndef RHODES_VERSION_LIBRARY
|
54
|
+
QObject,
|
55
|
+
#endif
|
56
|
+
IMainWindowCallback
|
50
57
|
{
|
58
|
+
#ifndef RHODES_VERSION_LIBRARY
|
51
59
|
Q_OBJECT
|
52
60
|
DEFINE_LOGCLASS
|
61
|
+
#endif
|
53
62
|
private:
|
54
63
|
explicit CMainWindow();
|
55
64
|
public:
|
@@ -64,6 +73,7 @@ public:
|
|
64
73
|
virtual void onWindowClose(void);
|
65
74
|
virtual void onWebViewUrlChanged(const ::std::string& url);
|
66
75
|
// public methods:
|
76
|
+
#ifndef RHODES_VERSION_LIBRARY
|
67
77
|
bool Initialize(const wchar_t* title);
|
68
78
|
void DestroyUi(void);
|
69
79
|
// for 'main_window_closed' System property
|
@@ -190,4 +200,5 @@ private slots:
|
|
190
200
|
void createCustomMenuSlot(void);
|
191
201
|
void unsetProxy();
|
192
202
|
void setProxy(const char* host, const char* port, const char* login, const char* password);
|
203
|
+
#endif
|
193
204
|
};
|
@@ -27,11 +27,12 @@
|
|
27
27
|
#include "common/rhoparams.h"
|
28
28
|
#include "common/RhoFilePath.h"
|
29
29
|
#include "rubyext/WebView.h"
|
30
|
-
#include "MainWindowImpl.h"
|
31
30
|
#include "rubyext/NativeToolbarExt.h"
|
32
31
|
#include "rubyext/WebView.h"
|
33
32
|
#include "NativeTabbarImpl.h"
|
34
33
|
#undef null
|
34
|
+
#ifndef RHODES_VERSION_LIBRARY
|
35
|
+
#include "MainWindowImpl.h"
|
35
36
|
#include <QString>
|
36
37
|
#ifndef OS_SAILFISH
|
37
38
|
#include <QApplication>
|
@@ -40,8 +41,10 @@
|
|
40
41
|
#else
|
41
42
|
#include <QtGui/QAction>
|
42
43
|
#endif
|
43
|
-
|
44
44
|
#endif
|
45
|
+
#else
|
46
|
+
#include "api_generator/MethodResult.h"
|
47
|
+
#endif //RHODES_VERSION_LIBRARY
|
45
48
|
//IMPLEMENT_LOGCLASS(CNativeTabbar,"NativeTabbar");
|
46
49
|
|
47
50
|
using namespace rho;
|
@@ -52,30 +55,46 @@ using namespace rho::common;
|
|
52
55
|
|
53
56
|
bool rho_osximpl_tabbar_isStarted()
|
54
57
|
{
|
58
|
+
#ifndef RHODES_VERSION_LIBRARY
|
55
59
|
return CMainWindow::getInstance()->isStarted();
|
60
|
+
#else
|
61
|
+
return false;
|
62
|
+
#endif
|
56
63
|
}
|
57
64
|
|
58
65
|
void rho_osximpl_tabbar_create( const rho::Vector<rho::String>& tabbarElements, const rho::Hashtable<rho::String, rho::String>& tabBarProperties, rho::apiGenerator::CMethodResult& oResult)
|
59
66
|
{
|
67
|
+
#ifndef RHODES_VERSION_LIBRARY
|
60
68
|
CMainWindow::getInstance()->createTabbarEx(tabbarElements, tabBarProperties, oResult);
|
69
|
+
#endif
|
61
70
|
}
|
62
71
|
|
63
72
|
void rho_osximpl_tabbar_remove()
|
64
73
|
{
|
74
|
+
#ifndef RHODES_VERSION_LIBRARY
|
65
75
|
CMainWindow::getInstance()->removeTabbar();
|
76
|
+
#endif
|
66
77
|
}
|
67
78
|
|
68
79
|
int rho_osximpl_tabbar_currentTabIndex()
|
69
80
|
{
|
81
|
+
#ifndef RHODES_VERSION_LIBRARY
|
70
82
|
return CMainWindow::getInstance()->tabbarGetCurrent();
|
83
|
+
#else
|
84
|
+
return -1;
|
85
|
+
#endif
|
71
86
|
}
|
72
87
|
|
73
88
|
void rho_osximpl_tabbar_switchTab(int tabIndex)
|
74
89
|
{
|
90
|
+
#ifndef RHODES_VERSION_LIBRARY
|
75
91
|
CMainWindow::getInstance()->tabbarSwitch(tabIndex);
|
92
|
+
#endif
|
76
93
|
}
|
77
94
|
|
78
95
|
void rho_osximpl_tabbar_setTabBadge(int tabIndex, const rho::String& badge)
|
79
96
|
{
|
97
|
+
#ifndef RHODES_VERSION_LIBRARY
|
80
98
|
CMainWindow::getInstance()->tabbarBadge(tabIndex, badge.c_str());
|
99
|
+
#endif
|
81
100
|
}
|
@@ -36,6 +36,7 @@
|
|
36
36
|
#include "NativeToolbarImpl.h"
|
37
37
|
#include "rubyext/NativeToolbarExt.h"
|
38
38
|
#undef null
|
39
|
+
#ifndef RHODES_VERSION_LIBRARY
|
39
40
|
#include <QString>
|
40
41
|
#ifndef OS_SAILFISH
|
41
42
|
#if QT_VERSION >= 0x050000
|
@@ -44,6 +45,7 @@
|
|
44
45
|
#include <QtGui/QAction>
|
45
46
|
#endif
|
46
47
|
#endif
|
48
|
+
#endif //RHODES_VERSION_LIBRARY
|
47
49
|
|
48
50
|
//IMPLEMENT_LOGCLASS(CNativeToolbar,"NativeToolbar");
|
49
51
|
|
@@ -55,15 +57,23 @@ using namespace rho::common;
|
|
55
57
|
|
56
58
|
bool rho_osximpl_toolbar_isStarted()
|
57
59
|
{
|
60
|
+
#ifndef RHODES_VERSION_LIBRARY
|
58
61
|
return CMainWindow::getInstance()->isStarted();
|
62
|
+
#else
|
63
|
+
return false;
|
64
|
+
#endif
|
59
65
|
}
|
60
66
|
|
61
67
|
void rho_osximpl_toolbar_create( const rho::Vector<rho::String>& toolbarElements, const rho::Hashtable<rho::String, rho::String>& toolBarProperties)
|
62
68
|
{
|
69
|
+
#ifndef RHODES_VERSION_LIBRARY
|
63
70
|
CMainWindow::getInstance()->createToolbarEx(toolbarElements, toolBarProperties);
|
71
|
+
#endif
|
64
72
|
}
|
65
73
|
|
66
74
|
void rho_osximpl_toolbar_remove()
|
67
75
|
{
|
76
|
+
#ifndef RHODES_VERSION_LIBRARY
|
68
77
|
CMainWindow::getInstance()->removeToolbar();
|
78
|
+
#endif
|
69
79
|
}
|
@@ -30,6 +30,8 @@
|
|
30
30
|
#include "common/RhoFilePath.h"
|
31
31
|
#include "logging/RhoLog.h"
|
32
32
|
#undef null
|
33
|
+
|
34
|
+
#ifndef RHODES_VERSION_LIBRARY
|
33
35
|
#include <qglobal.h>
|
34
36
|
|
35
37
|
#include <QLocale>
|
@@ -51,8 +53,12 @@
|
|
51
53
|
#include <QtWebKit/qwebkitversion.h>
|
52
54
|
#endif
|
53
55
|
#endif
|
56
|
+
#endif
|
54
57
|
#include "../RhoSimulator.h"
|
55
58
|
|
59
|
+
#ifdef RHODES_VERSION_LIBRARY
|
60
|
+
#include "common/RhodesApp.h"
|
61
|
+
#endif
|
56
62
|
using namespace rho;
|
57
63
|
using namespace rho::common;
|
58
64
|
|
@@ -62,7 +68,7 @@ extern "C" {
|
|
62
68
|
|
63
69
|
const char* rho_sys_qt_getWebviewFramework()
|
64
70
|
{
|
65
|
-
#
|
71
|
+
#if !defined(OS_SAILFISH) && !defined(RHODES_VERSION_LIBRARY)
|
66
72
|
if (qt_webview_framework[0] == '\0') {
|
67
73
|
|
68
74
|
#if defined(RHODES_VERSION_1)
|
@@ -94,27 +100,47 @@ static int has_camera()
|
|
94
100
|
|
95
101
|
static double get_screen_ppi_x()
|
96
102
|
{
|
103
|
+
#ifndef RHODES_VERSION_LIBRARY
|
97
104
|
return CMainWindow::getInstance()->getLogicalDpiX();
|
105
|
+
#else
|
106
|
+
return 0.0;
|
107
|
+
#endif
|
98
108
|
}
|
99
109
|
|
100
110
|
static double get_screen_ppi_y()
|
101
111
|
{
|
112
|
+
#ifndef RHODES_VERSION_LIBRARY
|
102
113
|
return CMainWindow::getInstance()->getLogicalDpiY();
|
114
|
+
#else
|
115
|
+
return 0.0;
|
116
|
+
#endif
|
103
117
|
}
|
104
118
|
|
105
119
|
VALUE rho_sys_get_locale()
|
106
120
|
{
|
121
|
+
#ifndef RHODES_VERSION_LIBRARY
|
107
122
|
return rho_ruby_create_string(QLocale::system().name().left(2).toStdString().c_str());
|
123
|
+
#else
|
124
|
+
return rho_ruby_get_NIL();
|
125
|
+
#endif
|
108
126
|
}
|
109
127
|
|
110
128
|
int rho_sys_get_screen_width()
|
111
129
|
{
|
130
|
+
#ifndef RHODES_VERSION_LIBRARY
|
112
131
|
return CMainWindow::getScreenWidth();
|
132
|
+
#else
|
133
|
+
return -1;
|
134
|
+
#endif
|
113
135
|
}
|
114
136
|
|
115
137
|
int rho_sys_get_screen_height()
|
116
138
|
{
|
139
|
+
#ifndef RHODES_VERSION_LIBRARY
|
117
140
|
return CMainWindow::getScreenHeight();
|
141
|
+
#else
|
142
|
+
return -1;
|
143
|
+
#endif
|
118
144
|
}
|
119
145
|
|
120
146
|
int rho_sysimpl_get_property(char* szPropName, VALUE* resValue)
|
@@ -124,10 +150,12 @@ int rho_sysimpl_get_property(char* szPropName, VALUE* resValue)
|
|
124
150
|
return 1;
|
125
151
|
}
|
126
152
|
|
153
|
+
#ifndef RHODES_VERSION_LIBRARY
|
127
154
|
if (strcasecmp("main_window_closed",szPropName) == 0) {
|
128
155
|
*resValue = rho_ruby_create_boolean(CMainWindow::mainWindowClosed);
|
129
156
|
return 1;
|
130
157
|
}
|
158
|
+
#endif
|
131
159
|
|
132
160
|
if (strcasecmp("has_camera",szPropName) == 0) {
|
133
161
|
*resValue = rho_ruby_create_boolean(has_camera());
|
@@ -154,10 +182,12 @@ int rho_sysimpl_get_property(char* szPropName, VALUE* resValue)
|
|
154
182
|
return 1;
|
155
183
|
}
|
156
184
|
|
185
|
+
#ifndef RHODES_VERSION_LIBRARY
|
157
186
|
if (strcasecmp("country",szPropName) == 0) {
|
158
187
|
*resValue = rho_ruby_create_string(QLocale::system().name().right(2).toStdString().c_str());
|
159
188
|
return 1;
|
160
189
|
}
|
190
|
+
#endif
|
161
191
|
|
162
192
|
if (strcasecmp("device_name",szPropName) == 0) {
|
163
193
|
*resValue = rho_ruby_create_string("Qt");
|
@@ -220,14 +250,20 @@ VALUE rho_sys_has_network()
|
|
220
250
|
|
221
251
|
void rho_sys_app_exit()
|
222
252
|
{
|
253
|
+
#ifndef RHODES_VERSION_LIBRARY
|
223
254
|
CMainWindow::getInstance()->exitCommand();
|
255
|
+
#else
|
256
|
+
exit(0);
|
257
|
+
#endif
|
224
258
|
}
|
225
259
|
|
226
260
|
void rho_sys_open_url(const char* url)
|
227
261
|
{
|
262
|
+
#ifndef RHODES_VERSION_LIBRARY
|
228
263
|
QString sUrl = QString::fromUtf8(url);
|
229
264
|
if (sUrl.startsWith("/")) sUrl.prepend("file://");
|
230
265
|
QDesktopServices::openUrl(QUrl(sUrl));
|
266
|
+
#endif
|
231
267
|
}
|
232
268
|
|
233
269
|
void rho_sys_run_app(const char *appname, VALUE params)
|
@@ -238,14 +274,20 @@ void rho_sys_run_app(const char *appname, VALUE params)
|
|
238
274
|
|
239
275
|
void rho_sys_bring_to_front()
|
240
276
|
{
|
277
|
+
#ifndef RHODES_VERSION_LIBRARY
|
241
278
|
// TODO: rho_sys_bring_to_front
|
242
279
|
return CMainWindow::getInstance()->bringToFront();
|
280
|
+
#endif
|
243
281
|
}
|
244
282
|
|
245
283
|
void rho_sys_report_app_started()
|
246
284
|
{
|
247
285
|
// TODO: rho_sys_report_app_started
|
248
|
-
RAWLOGC_INFO("SystemImpl", "rho_sys_report_app_started() has no implementation " RHO_PLATFORM_NAME_AT ".");
|
286
|
+
//RAWLOGC_INFO("SystemImpl", "rho_sys_report_app_started() has no implementation " RHO_PLATFORM_NAME_AT ".");
|
287
|
+
#if defined(WINDOWS_PLATFORM)
|
288
|
+
RHODESAPP().notifyAppStared();
|
289
|
+
#endif
|
290
|
+
|
249
291
|
}
|
250
292
|
|
251
293
|
int rho_sys_is_app_installed(const char *appname)
|
@@ -283,7 +325,7 @@ void rho_sys_set_application_icon_badge(int badge_number)
|
|
283
325
|
|
284
326
|
void rho_sys_impl_exit_with_errormessage(const char* szTitle, const char* szMsg)
|
285
327
|
{
|
286
|
-
#
|
328
|
+
#if !defined(OS_SAILFISH) && !defined (RHODES_VERSION_LIBRARY)
|
287
329
|
QMessageBox::critical(0, QString(szTitle), QString(szMsg));
|
288
330
|
#endif
|
289
331
|
}
|
@@ -306,27 +348,37 @@ int SymbolLicence_check(const char* company, const char* licence)
|
|
306
348
|
|
307
349
|
void rho_sys_set_window_frame(int x0, int y0, int width, int height)
|
308
350
|
{
|
351
|
+
#ifndef RHODES_VERSION_LIBRARY
|
309
352
|
CMainWindow::getInstance()->setFrame(x0, y0, width, height);
|
353
|
+
#endif
|
310
354
|
}
|
311
355
|
|
312
356
|
void rho_sys_set_window_position(int x0, int y0)
|
313
357
|
{
|
358
|
+
#ifndef RHODES_VERSION_LIBRARY
|
314
359
|
CMainWindow::getInstance()->setPosition(x0, y0);
|
360
|
+
#endif
|
315
361
|
}
|
316
362
|
|
317
363
|
void rho_sys_set_window_size(int width, int height)
|
318
364
|
{
|
365
|
+
#ifndef RHODES_VERSION_LIBRARY
|
319
366
|
CMainWindow::getInstance()->setSize(width, height);
|
367
|
+
#endif
|
320
368
|
}
|
321
369
|
|
322
370
|
void rho_sys_lock_window_size(int locked)
|
323
371
|
{
|
372
|
+
#ifndef RHODES_VERSION_LIBRARY
|
324
373
|
CMainWindow::getInstance()->lockSize(locked);
|
374
|
+
#endif
|
325
375
|
}
|
326
376
|
|
327
377
|
void rho_symimpl_createMenu()
|
328
378
|
{
|
379
|
+
#ifndef RHODES_VERSION_LIBRARY
|
329
380
|
CMainWindow::getInstance()->createCustomMenuCommand();
|
381
|
+
#endif
|
330
382
|
}
|
331
383
|
|
332
384
|
} //extern "C"
|