rhodes 3.3.3.beta.4 → 3.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -5
- data/CREDITS +2215 -0
- data/Rakefile +225 -59
- data/bin/c2dm.rb +0 -0
- data/bin/get-rhodes-info.bat +0 -0
- data/bin/migrate-rhodes-app +0 -0
- data/bin/migrate-rhodes-app.bat +0 -0
- data/bin/rhodes +0 -0
- data/bin/rhodes-setup +0 -0
- data/bin/rhodes-setup.bat +0 -0
- data/bin/rhogen +0 -0
- data/bin/rhogen.bat +0 -0
- data/bin/set-rhodes-sdk +0 -0
- data/bin/set-rhodes-sdk.bat +0 -0
- data/bin/upgrade-rhodes-app +0 -0
- data/bin/upgrade-rhodes-app.bat +0 -0
- data/doc/build.txt +20 -9
- data/doc/configuration.txt +8 -8
- data/doc/connect-to-web-services.txt +1 -1
- data/doc/device-caps.txt +63 -26
- data/doc/extensions.txt +14 -2
- data/doc/install.txt +28 -19
- data/doc/introduction.txt +6 -3
- data/doc/jqt-jqm-transition.txt +10 -9
- data/doc/release.txt +5 -1
- data/doc/rhodes-command-line.txt +130 -0
- data/doc/rhom.txt +16 -11
- data/doc/rhostudio-eclipse.txt +3 -3
- data/doc/simulator.txt +28 -31
- data/doc/syncengine-ajax-api.txt +246 -0
- data/doc/synchronization.txt +21 -3
- data/doc/test-log-debug.txt +3 -1
- data/doc/ui.txt +16 -16
- data/ext/extconf.rb +8 -0
- data/lib/build/jake.rb +5 -5
- data/lib/extensions/barcode/ext/barcode/platform/android/Rakefile +9 -9
- data/lib/extensions/barcode/ext/barcode/platform/android/jni/src/barcode.cpp +81 -1
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/CaptureActivityHandler.java +6 -13
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/DecodeHandler.java +2 -6
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/rhomobile/barcode/Barcode.java +12 -1
- data/lib/extensions/barcode/ext/barcode/platform/bb/run.bat +0 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeCallbackHelper.h +2 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeCallbackHelper.mm +36 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewController.h +0 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewController.m +15 -5
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/barcode.m +64 -1
- data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode.i +35 -1
- data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode_wrap.c +126 -2
- data/lib/extensions/barcode/ext/barcode/shared/src/zbar.c +18 -1
- data/lib/extensions/barcode/ext/build +0 -0
- data/lib/extensions/barcode/ext/build.bat +0 -0
- data/lib/extensions/digest-md5/ext/Rakefile +12 -10
- data/lib/extensions/digest-md5/ext/build +0 -0
- data/lib/extensions/digest-md5/ext/build.bat +0 -0
- data/lib/extensions/digest-md5/ext/digest-md5.sln +2 -2
- data/lib/extensions/digest-md5/ext/digest-md5.vcproj +41 -28
- data/lib/extensions/digest-sha1/ext/Rakefile +11 -10
- data/lib/extensions/digest-sha1/ext/build +0 -0
- data/lib/extensions/digest-sha1/ext/build.bat +0 -0
- data/lib/extensions/digest-sha1/ext/digest-sha1.sln +2 -2
- data/lib/extensions/digest-sha1/ext/digest-sha1.vcproj +41 -28
- data/lib/extensions/digest/ext/Rakefile +12 -11
- data/lib/extensions/digest/ext/build +0 -0
- data/lib/extensions/digest/ext/build.bat +0 -0
- data/lib/extensions/digest/ext/digest.sln +44 -0
- data/lib/extensions/digest/ext/digest.vcproj +40 -27
- data/lib/extensions/esri/ext/build +0 -0
- data/lib/extensions/esri/ext/build.bat +0 -0
- data/lib/extensions/fcntl/ext/Rakefile +10 -9
- data/lib/extensions/fcntl/ext/build +0 -0
- data/lib/extensions/fcntl/ext/build.bat +0 -0
- data/lib/extensions/fcntl/ext/fcntl.vcproj +1 -1
- data/lib/extensions/nfc/ext/build +0 -0
- data/lib/extensions/nfc/ext/build.bat +0 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/Rakefile +11 -11
- data/lib/extensions/nfc/ext/nfc/platform/android/jni/src/nfc.cpp +0 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/Nfc.java +12 -10
- data/lib/extensions/nfc/ext/nfc/shared/ruby/nfc_wrap.c +16 -9
- data/lib/extensions/pdf-writer/color.rb +145 -0
- data/lib/extensions/pdf-writer/color/cmyk.rb +279 -0
- data/lib/extensions/pdf-writer/color/css.rb +28 -0
- data/lib/extensions/pdf-writer/color/grayscale.rb +212 -0
- data/lib/extensions/pdf-writer/color/hsl.rb +221 -0
- data/lib/extensions/pdf-writer/color/palette.rb +16 -0
- data/lib/extensions/pdf-writer/color/palette/adobecolor.rb +272 -0
- data/lib/extensions/pdf-writer/color/palette/gimp.rb +116 -0
- data/lib/extensions/pdf-writer/color/palette/monocontrast.rb +180 -0
- data/lib/extensions/pdf-writer/color/rgb-colors.rb +355 -0
- data/lib/extensions/pdf-writer/color/rgb.rb +453 -0
- data/lib/extensions/pdf-writer/color/rgb/metallic.rb +43 -0
- data/lib/extensions/pdf-writer/color/yiq.rb +84 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/color/Licence.txt +27 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/color/README.txt +32 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/pdf-writer/LICENCE +131 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/pdf-writer/README +33 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/transaction-simple/Licence.txt +25 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/transaction-simple/Readme.txt +204 -0
- data/lib/extensions/pdf-writer/pdf/charts.rb +13 -0
- data/lib/extensions/pdf-writer/pdf/charts/stddev.rb +430 -0
- data/lib/extensions/pdf-writer/pdf/math.rb +108 -0
- data/lib/extensions/pdf-writer/pdf/quickref.rb +332 -0
- data/lib/extensions/pdf-writer/pdf/simpletable.rb +947 -0
- data/lib/extensions/pdf-writer/pdf/techbook.rb +901 -0
- data/lib/extensions/pdf-writer/pdf/writer.rb +2729 -0
- data/lib/extensions/pdf-writer/pdf/writer/arc4.rb +63 -0
- data/lib/extensions/pdf-writer/pdf/writer/fontmetrics.rb +203 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier-Bold.afm +342 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier-BoldOblique.afm +342 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier-Oblique.afm +342 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier.afm +342 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica-Bold.afm +2827 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica-BoldOblique.afm +2827 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica-Oblique.afm +3051 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica.afm +3051 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/MustRead.html +19 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Symbol.afm +213 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-Bold.afm +2588 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-BoldItalic.afm +2384 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-Italic.afm +2667 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-Roman.afm +2419 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/ZapfDingbats.afm +225 -0
- data/lib/extensions/pdf-writer/pdf/writer/graphics.rb +813 -0
- data/lib/extensions/pdf-writer/pdf/writer/graphics/imageinfo.rb +365 -0
- data/lib/extensions/pdf-writer/pdf/writer/lang.rb +43 -0
- data/lib/extensions/pdf-writer/pdf/writer/lang/en.rb +99 -0
- data/lib/extensions/pdf-writer/pdf/writer/object.rb +23 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/action.rb +35 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/annotation.rb +42 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/catalog.rb +39 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/contents.rb +65 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/destination.rb +40 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/encryption.rb +53 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/font.rb +72 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/fontdescriptor.rb +34 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/fontencoding.rb +40 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/image.rb +304 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/info.rb +51 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/outline.rb +30 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/outlines.rb +30 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/page.rb +195 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/pages.rb +115 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/procset.rb +46 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/viewerpreferences.rb +74 -0
- data/lib/extensions/pdf-writer/pdf/writer/ohash.rb +58 -0
- data/lib/extensions/pdf-writer/pdf/writer/oreader.rb +25 -0
- data/lib/extensions/pdf-writer/pdf/writer/state.rb +48 -0
- data/lib/extensions/pdf-writer/pdf/writer/strokestyle.rb +138 -0
- data/lib/extensions/pdf-writer/transaction/simple.rb +486 -0
- data/lib/extensions/pdf-writer/transaction/simple/group.rb +146 -0
- data/lib/extensions/pdf-writer/transaction/simple/threadsafe.rb +68 -0
- data/lib/extensions/pdf-writer/transaction/simple/threadsafe/group.rb +36 -0
- data/lib/framework/builtinME.rb +0 -0
- data/lib/framework/dateOrig.rb +8 -2
- data/lib/framework/rational.rb +0 -0
- data/lib/framework/res/esri.wm.png +0 -0
- data/lib/framework/rho/rho.rb +6 -0
- data/lib/framework/rho/rhobluetooth.rb +0 -0
- data/lib/framework/rho/rhofsconnector.rb +0 -0
- data/lib/framework/rho/rhonativeviewmanager.rb +0 -0
- data/lib/framework/rhofsconnector.rb +0 -0
- data/lib/framework/rhom/rhom_object_factory.rb +8 -0
- data/lib/framework/rhomotoapi.rb +3 -2
- data/platform/android/Rhodes/jni/include/rhodes/JNIRhodes.h +9 -1
- data/platform/android/Rhodes/jni/include/rhodes/details/rhojava.inc +1 -0
- data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_file_RhoFileApi.h +26 -2
- data/platform/android/Rhodes/jni/src/callbacks.cpp +0 -5
- data/platform/android/Rhodes/jni/src/camera.cpp +1 -1
- data/platform/android/Rhodes/jni/src/fileapi.cpp +39 -19
- data/platform/android/Rhodes/jni/src/geolocation.cpp +3 -3
- data/platform/android/Rhodes/jni/src/mapview.cpp +206 -64
- data/platform/android/Rhodes/jni/src/nativeview.cpp +1 -1
- data/platform/android/Rhodes/jni/src/rhodes.cpp +13 -0
- data/platform/android/Rhodes/jni/src/rhodesapp.cpp +20 -0
- data/platform/android/Rhodes/jni/src/rhodessystem.cpp +36 -3
- data/platform/android/Rhodes/jni/src/signature.cpp +22 -2
- data/platform/android/Rhodes/res/drawable/alert_info.png +0 -0
- data/platform/android/Rhodes/res/drawable/esri.png +0 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Capabilities.java +17 -16
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java +4 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/MemoryInfoCollector.java +67 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +139 -114
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesApplication.java +106 -13
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +11 -3
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +71 -16
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraNewService.java +4 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraSemiService.java +4 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/AbstractRhoExtension.java +22 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/Config.java +243 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtManager.java +19 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtension.java +9 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/{RhodesActivityListener.java → extmanager/IRhoListener.java} +16 -12
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManager.java +63 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +239 -14
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhodesStartupListeners.java +9 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/WebkitExtension.java +53 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/file/RhoFileApi.java +27 -12
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +124 -62
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocationImpl.java +49 -137
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +84 -114
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SplashScreen.java +75 -82
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +3 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/Callout.java +4 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapBitmapManager.java +124 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapView.java +232 -43
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/Request.java +193 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/IRhoCustomView.java +13 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/RhoNativeViewManager.java +32 -23
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/RhoVideoView.java +74 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality.java +6 -7
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality01.java +37 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality03.java +14 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality05.java +51 -38
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality07.java +9 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality08.java +48 -31
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionalityManager.java +15 -16
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/Signature.java +52 -15
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/LocalFileHandler.java +20 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java +1 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +77 -34
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/IRhoWebView.java +9 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebChromeClient.java +105 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +1 -1
- data/platform/android/build/RhodesSRC_build.files +8 -7
- data/platform/android/build/android.rake +326 -216
- data/platform/android/build/androidcommon.rb +27 -13
- data/platform/bb/RubyVM/src/com/rho/file/SimpleFile.java +27 -1
- data/platform/bb/RubyVM/src/j2me/io/File.java +104 -38
- data/platform/bb/build/bb.rake +1 -0
- data/platform/bb/build/runRAPC.bat +0 -0
- data/platform/bb/rhodes/resources/background.png +0 -0
- data/platform/bb/rhodes/resources/esri.png +0 -0
- data/platform/bb/rhodes/resources/mappin.png +0 -0
- data/platform/bb/rhodes/src/com/rho/rubyext/System.java +5 -1
- data/platform/bb/rhodes/src/rhomobile/PushListeningThread.java +2 -2
- data/platform/bb/rhodes/src/rhomobile/mapview/ESRIMapField.java +0 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/ESRIMapProvider.java +0 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/GeoCoding.java +0 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/GoogleGeoCoding.java +0 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/MapTools.java +0 -0
- data/platform/iphone/Classes/AppManager/AppManager.m +7 -1
- data/platform/iphone/Classes/Camera/PickImageDelegate.h +9 -0
- data/platform/iphone/Classes/Camera/PickImageDelegate.m +75 -4
- data/platform/iphone/Classes/GeoLocation/LocationController.h +8 -2
- data/platform/iphone/Classes/GeoLocation/LocationController.m +74 -76
- data/platform/iphone/Classes/InitMemoryInfoCollector.h +33 -0
- data/platform/iphone/Classes/InitMemoryInfoCollector.mm +52 -0
- data/platform/iphone/Classes/NativeView/NVViewController.h +0 -0
- data/platform/iphone/Classes/NativeView/NVViewController.m +34 -2
- data/platform/iphone/Classes/Rhodes.m +22 -2
- data/platform/iphone/Classes/Signature/SignatureDelegate.m +19 -0
- data/platform/iphone/Classes/Signature/SignatureViewController.h +0 -0
- data/platform/iphone/Classes/Signature/SignatureViewController.m +0 -0
- data/platform/iphone/Classes/SimpleMainView.h +0 -0
- data/platform/iphone/Classes/SimpleMainView.m +3 -3
- data/platform/iphone/ESRI/BluePushpin.png +0 -0
- data/platform/iphone/ESRI/BluePushpin@2x.png +0 -0
- data/platform/iphone/ESRI/esri.png +0 -0
- data/platform/iphone/ESRI/esri@2x.png +0 -0
- data/platform/iphone/rbuild/iphone.rake +75 -7
- data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +13 -4
- data/platform/linux/target/compiler/rubylinux +0 -0
- data/platform/mac/target/compiler/RubyMac +0 -0
- data/platform/osx/Rhodes Launcher/rhorunner.app/rhorunner b/data/platform/osx/Rhodes → Launcher/rhorunner.app/rhorunner +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib/keyedobjects.nib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtWebKit.framework/Versions/4/QtWebKit +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Info.plist +1 -1
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/MacOS/RhoSimulator +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/bearer/libqcorewlanbearer.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/bearer/libqgenericbearer.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqcncodecs.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqjpcodecs.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqkrcodecs.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqtwcodecs.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/graphicssystems/libqtracegraphicssystem.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqgif.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqico.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqjpeg.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqmng.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqtga.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqtiff.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/qmltooling/libqmldbg_inspector.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/qmltooling/libqmldbg_tcp.dylib +0 -0
- data/platform/osx/build/osx.rake +6 -8
- data/platform/shared/RhoConnectClient/RhoConnectClient.cpp +165 -33
- data/platform/shared/RhoConnectClient/RhoConnectClient.h +10 -1
- data/platform/shared/common/BundleManager.cpp +27 -16
- data/platform/shared/common/ExtManager.h +15 -2
- data/platform/shared/common/RhoConf.cpp +17 -2
- data/platform/shared/common/RhoConf.h +3 -1
- data/platform/shared/common/RhoDefs.h +6 -6
- data/platform/shared/common/RhoFatalError.h +1 -1
- data/platform/shared/common/RhoFile.cpp +9 -9
- data/platform/shared/common/RhoFilePath.h +7 -3
- data/platform/shared/common/RhoPort.h +3 -3
- data/platform/shared/common/RhoSystem.h +1 -1
- data/platform/shared/common/RhodesApp.cpp +426 -26
- data/platform/shared/common/RhodesApp.h +11 -3
- data/platform/shared/common/RhodesAppBase.cpp +4 -1
- data/platform/shared/common/StringConverter.h +3 -3
- data/platform/shared/common/app_build_capabilities.h +8 -0
- data/platform/shared/common/map/BaseMapEngine.cpp +302 -21
- data/platform/shared/common/map/BaseMapEngine.h +132 -6
- data/platform/shared/common/map/ESRIMapEngine.cpp +2 -1
- data/platform/shared/common/map/GeocodingMapEngine.cpp +22 -4
- data/platform/shared/common/map/GeocodingMapEngine.h +40 -0
- data/platform/shared/common/map/GoogleMapEngine.cpp +13 -1
- data/platform/shared/common/map/MapEngine.h +7 -0
- data/platform/shared/common/map/OSMMapEngine.cpp +12 -1
- data/platform/shared/json/JSONIterator.cpp +1 -1
- data/platform/shared/json/RJSONTokener.c +2 -0
- data/platform/shared/json/config.h +3 -3
- data/platform/shared/logging/RhoLog.cpp +12 -3
- data/platform/shared/logging/RhoLog.h +2 -1
- data/platform/shared/logging/RhoLogConf.cpp +147 -11
- data/platform/shared/logging/RhoLogConf.h +39 -1
- data/platform/shared/logging/RhoLogSink.cpp +1 -1
- data/platform/shared/net/HttpServer.cpp +8 -4
- data/platform/shared/net/INetRequest.cpp +7 -0
- data/platform/shared/net/INetRequest.h +2 -0
- data/platform/shared/net/RawSocket.cpp +1 -1
- data/platform/shared/qt/pbxproj2pro.pl +0 -0
- data/platform/shared/qt/pro_vcproj_diff.pl +0 -0
- data/platform/shared/qt/rhodes/QtMainWindow.cpp +1 -1
- data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +2 -2
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +2 -2
- data/platform/shared/qt/rhodes/impl/SystemImpl.cpp +11 -1
- data/platform/shared/qt/rhodes/main.cpp +5 -5
- data/platform/shared/ruby/ext/alert/alert_wrap.c +8 -8
- data/platform/shared/ruby/ext/bluetooth/bluetooth.i +0 -0
- data/platform/shared/ruby/ext/bluetooth/bluetooth_wrap.c +16 -9
- data/platform/shared/ruby/ext/camera/camera.i +2 -2
- data/platform/shared/ruby/ext/camera/camera_wrap.c +18 -3
- data/platform/shared/ruby/ext/datetimepicker/datetimepicker_wrap.c +37 -8
- data/platform/shared/ruby/ext/geolocation/geolocation_wrap.c +8 -8
- data/platform/shared/ruby/ext/mapview/mapview_wrap.c +16 -9
- data/platform/shared/ruby/ext/nativebar/nativebar_wrap.c +16 -9
- data/platform/shared/ruby/ext/nativeviewmanager/nativeviewmanager.i +0 -0
- data/platform/shared/ruby/ext/nativeviewmanager/nativeviewmanager_wrap.c +16 -9
- data/platform/shared/ruby/ext/phonebook/phonebook_wrap.c +8 -1
- data/platform/shared/ruby/ext/rho/rhoruby.c +7 -1
- data/platform/shared/ruby/ext/rho/rhoruby.h +1 -0
- data/platform/shared/ruby/ext/rhoconf/rhoconf_wrap.c +16 -9
- data/platform/shared/ruby/ext/signature/signature.i +0 -0
- data/platform/shared/ruby/ext/signature/signature_wrap.c +9 -9
- data/platform/shared/ruby/ext/syncengine/syncengine_wrap.c +16 -9
- data/platform/shared/ruby/ext/system/system_wrap.c +16 -9
- data/platform/shared/ruby/ext/webview/webview_wrap.c +16 -9
- data/platform/shared/ruby/gc.c +1 -0
- data/platform/shared/ruby/regint.h +6 -4
- data/platform/shared/ruby/vm.c +1 -0
- data/platform/shared/ruby/wince/wince.h +1 -1
- data/platform/shared/rubyext/System.cpp +1 -1
- data/platform/shared/shttpd/src/rdispatcher.c +3 -3
- data/platform/shared/shttpd/src/std_includes.h +1 -1
- data/platform/shared/sqlite/sqlite3.c +1 -0
- data/platform/shared/statistic/test/TestProfiling.cpp +1 -1
- data/platform/shared/stlport/build/lib/configure +0 -0
- data/platform/shared/stlport/build/lib/configure.bat +0 -0
- data/platform/shared/sync/SyncEngine.cpp +9 -12
- data/platform/shared/sync/SyncNotify.cpp +36 -3
- data/platform/shared/sync/SyncNotify.h +11 -4
- data/platform/shared/sync/SyncSource.cpp +32 -16
- data/platform/shared/sync/SyncSource.h +2 -3
- data/platform/shared/sync/SyncThread.cpp +13 -4
- data/platform/shared/sync/SyncThread.h +4 -0
- data/platform/shared/tcmalloc/page_heap.h +1 -1
- data/platform/shared/tcmalloc/rhomem.h +1 -1
- data/platform/shared/tcmalloc/windows/port.cpp +12 -3
- data/platform/shared/test/Tests.cpp +4 -4
- data/platform/shared/test/test_helper.cpp +4 -4
- data/platform/symbian/sqlite3/src/sqlite3.h +1 -1
- data/platform/win32/RhoSimulator/Microsoft.VC90.CRT.manifest +6 -0
- data/platform/win32/RhoSimulator/Microsoft.VC90.OpenMP.manifest +6 -0
- data/platform/win32/RhoSimulator/QtCore4.dll +0 -0
- data/platform/win32/RhoSimulator/QtGui4.dll +0 -0
- data/platform/win32/RhoSimulator/QtNetwork4.dll +0 -0
- data/platform/win32/RhoSimulator/QtWebKit4.dll +0 -0
- data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
- data/platform/win32/RhoSimulator/imageformats/qgif4.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qico4.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qjpeg4.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qmng4.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qsvg4.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtiff4.dll +0 -0
- data/platform/win32/RhoSimulator/libeay32.dll +0 -0
- data/platform/win32/RhoSimulator/msvcm90.dll +0 -0
- data/platform/win32/RhoSimulator/msvcp90.dll +0 -0
- data/platform/win32/RhoSimulator/msvcr90.dll +0 -0
- data/platform/win32/RhoSimulator/phonon4.dll +0 -0
- data/platform/win32/RhoSimulator/ssleay32.dll +0 -0
- data/platform/win32/RhoSimulator/vcomp90.dll +0 -0
- data/platform/win32/target/replaceicon/replaceicon.exe +0 -0
- data/platform/win32/target/updateresstring/updateresstring.exe +0 -0
- data/platform/wm/RhoLib/RhoLib.vcproj +394 -69
- data/platform/wm/build/build_inf.js +83 -23
- data/platform/wm/build/wm.rake +127 -81
- data/platform/wm/rhodes.sln +6 -6
- data/platform/wm/rhodes/DateTimePicker.h +2 -2
- data/platform/wm/rhodes/IBrowserEngine.h +3 -0
- data/platform/wm/rhodes/IEBrowserEngine.cpp +34 -2
- data/platform/wm/rhodes/IEBrowserEngine.h +4 -1
- data/platform/wm/rhodes/LicenseStub.cpp +73 -0
- data/platform/{android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientNew.java → wm/rhodes/LogMemory.cpp} +32 -20
- data/platform/{android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettings.java → wm/rhodes/LogMemory.h} +11 -8
- data/platform/wm/rhodes/LogOptionsDlg.h +1 -1
- data/platform/wm/rhodes/LogView.cpp +10 -10
- data/platform/wm/rhodes/LogView.h +10 -10
- data/platform/wm/rhodes/MainWindow.cpp +431 -173
- data/platform/wm/rhodes/MainWindow.h +37 -19
- data/platform/wm/rhodes/MapView/MapViewManager.h +1 -1
- data/platform/wm/rhodes/OkCancelModalDialog.h +1 -1
- data/platform/wm/rhodes/Rhodes.cpp +210 -47
- data/platform/wm/rhodes/Rhodes.rc +38 -0
- data/platform/wm/rhodes/bluetooth/Bluetooth.cpp +2 -2
- data/platform/wm/rhodes/bluetooth/Bluetooth.h +3 -3
- data/platform/wm/rhodes/camera/Camera.cpp +2 -1
- data/platform/wm/rhodes/camera/Camera.h +1 -1
- data/platform/wm/rhodes/resource.h +1 -1
- data/platform/wm/rhodes/rho/common/ExtManager.cpp +93 -5
- data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +2 -2
- data/platform/wm/rhodes/rho/rubyext/NativeToolbar.cpp +2 -2
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +13 -7
- data/platform/wm/rhodes/rhodes.vcproj +1409 -1008
- data/platform/wm/rhodes/simulator/MainWindowQt.h +1 -1
- data/platform/wm/rhodes/stdafx.h +2 -2
- data/platform/wm/rhoelements.sln +7 -9
- data/platform/wm/rubylib/rubylib.vcproj +62 -1
- data/platform/wm/sqlite3/sqlite3.vcproj +62 -1
- data/platform/wm/syncengine/syncengine.vcproj +62 -1
- data/platform/wm/tcmalloc/tcmalloc.vcproj +72 -53
- data/platform/wm/tools/detool/detool.cpp +1435 -1357
- data/platform/wp7/RhoRubyExtGen/GenerateInitializers.cmd +0 -0
- data/platform/wp7/RhoRubyLib/common/RhoLicense.cs +105 -0
- data/platform/wp7/RhoRubyLib/common/RhodesApp.cs +23 -5
- data/platform/wp7/RhoRubyLib/sync/SyncNotify.cs +5 -0
- data/platform/wp7/RhoRubyLib/views/RhoView.xaml.cs +22 -3
- data/platform/wp7/build/wp.rake +1 -0
- data/platform/wp7/rhodes/MainPage.xaml.cs +11 -0
- data/rakefile.rb +225 -59
- data/res/build-tools/7za.exe +0 -0
- data/res/build-tools/RhoAppRunner.exe +0 -0
- data/res/build-tools/RhoLogServer.exe +0 -0
- data/res/build-tools/RhoRuby.exe +0 -0
- data/res/build-tools/RubyMac +0 -0
- data/res/build-tools/detool.exe +0 -0
- data/res/build-tools/iphonesim/Source/iPhoneSimulator.m +1 -1
- data/res/build-tools/iphonesim/build/Release/iphonesim +0 -0
- data/res/build-tools/iphonesim/build/Release/iphonesim_43 +0 -0
- data/res/build-tools/license_rc.dll +0 -0
- data/res/build-tools/make.exe +0 -0
- data/res/build-tools/rubylinux +0 -0
- data/res/build-tools/swig_patch/Lib/typemaps/fragments.swg +235 -0
- data/res/build-tools/wmdc_connect.exe +0 -0
- data/res/build-tools/wp7explorer.exe +0 -0
- data/res/generators/rhogen.rb +2 -2
- data/res/generators/templates/application/app/Settings/controller.rb +1 -1
- data/res/generators/templates/application/app/layout.erb +1 -1
- data/res/generators/templates/application/app/loading.png +0 -0
- data/res/generators/templates/application/public/css/re_webkit.css +736 -0
- data/res/generators/templates/application/public/css/windows_mobile.css +0 -0
- data/res/generators/templates/application/public/images/listArrow.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/ajax-loader.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-18-black.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-18-white.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-36-black.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-36-white.png +0 -0
- data/res/generators/templates/application/public/js/syncengine.js +409 -52
- data/res/generators/templates/extension/extensions/montana/ext/build +0 -0
- data/res/generators/templates/extension/extensions/montana/ext/build.bat +0 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/android/Rakefile +10 -10
- data/res/generators/templates/spec/app/SpecRunner/controller.rb +2 -0
- data/res/libs/motorolalicence/android/MotorolaLicence.h +13 -0
- data/res/libs/motorolalicence/android/libMotorolaLicence.a +0 -0
- data/res/libs/motorolalicence/iphone/MotorolaLicence.h +13 -0
- data/res/libs/motorolalicence/iphone/libMotorolaLicence.a +0 -0
- data/rhodes.gemspec +1 -1
- data/spec/framework_spec/app/SpecRunner/controller.rb +2 -0
- data/spec/phone_spec/app/SpecRunner/controller.rb +2 -0
- data/version +1 -1
- metadata +487 -412
- data/Manifest.txt +0 -7960
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivityStartupListeners.java +0 -12
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java +0 -52
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsOld.java +0 -62
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/phonon.framework/Versions/4/phonon +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/phonon_backend/libphonon_qt7.dylib +0 -0
- data/platform/win32/RhoSimulator/Microsoft.VC80.CRT.manifest +0 -8
- data/platform/win32/RhoSimulator/Microsoft.VC80.OpenMP.manifest +0 -7
- data/platform/win32/RhoSimulator/msvcm80.dll +0 -0
- data/platform/win32/RhoSimulator/msvcp80.dll +0 -0
- data/platform/win32/RhoSimulator/msvcr80.dll +0 -0
- data/platform/win32/RhoSimulator/vcomp.dll +0 -0
- data/rhomobile-debug-1.0.6.gem +0 -0
data/platform/wm/rhodes.sln
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
Microsoft Visual Studio Solution File, Format Version
|
2
|
-
# Visual Studio
|
1
|
+
Microsoft Visual Studio Solution File, Format Version 10.00
|
2
|
+
# Visual Studio 2008
|
3
3
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rhodes", "rhodes\Rhodes.vcproj", "{95D5D2E5-FEF5-4CA9-88CF-FCB0F7465E62}"
|
4
|
-
ProjectSection(WebsiteProperties) = preProject
|
5
|
-
Debug.AspNetCompiler.Debug = "True"
|
6
|
-
Release.AspNetCompiler.Debug = "False"
|
7
|
-
EndProjectSection
|
8
4
|
ProjectSection(ProjectDependencies) = postProject
|
9
5
|
{6F57C60E-C083-4D46-A3B9-E17948A33518} = {6F57C60E-C083-4D46-A3B9-E17948A33518}
|
10
6
|
{B381B601-04B1-475B-B635-003F8E7DA3A9} = {B381B601-04B1-475B-B635-003F8E7DA3A9}
|
11
7
|
{F196A418-11F1-4067-9F4F-BCC7D70E6EC5} = {F196A418-11F1-4067-9F4F-BCC7D70E6EC5}
|
12
8
|
{AA77BEC0-2A60-4589-A784-7D78F60B35B6} = {AA77BEC0-2A60-4589-A784-7D78F60B35B6}
|
13
9
|
EndProjectSection
|
10
|
+
ProjectSection(WebsiteProperties) = preProject
|
11
|
+
Debug.AspNetCompiler.Debug = "True"
|
12
|
+
Release.AspNetCompiler.Debug = "False"
|
13
|
+
EndProjectSection
|
14
14
|
EndProject
|
15
15
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rubylib", "rubylib\rubylib.vcproj", "{AA77BEC0-2A60-4589-A784-7D78F60B35B6}"
|
16
16
|
ProjectSection(WebsiteProperties) = preProject
|
@@ -73,7 +73,7 @@ public:
|
|
73
73
|
#endif
|
74
74
|
|
75
75
|
class CDateTimePickerDialog : public
|
76
|
-
#if defined(
|
76
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_PLATFORM_MOTCE)
|
77
77
|
COkCancelModalDialog<CDateTimePickerDialog>
|
78
78
|
#else
|
79
79
|
CDialogImpl <CDateTimePickerDialog>
|
@@ -110,7 +110,7 @@ private:
|
|
110
110
|
|
111
111
|
|
112
112
|
class CTimePickerDialog : public
|
113
|
-
#if defined(
|
113
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_PLATFORM_MOTCE)
|
114
114
|
COkCancelModalDialog<CTimePickerDialog>
|
115
115
|
#else
|
116
116
|
CDialogImpl <CTimePickerDialog>
|
@@ -26,6 +26,9 @@ public:
|
|
26
26
|
virtual BOOL ZoomTextOnTab(int nZoom, UINT iTab) = 0;
|
27
27
|
virtual int GetTextZoomOnTab(UINT iTab) = 0;
|
28
28
|
virtual BOOL GetTitleOnTab(LPTSTR szURL, UINT iMaxLen, UINT iTab) = 0;
|
29
|
+
virtual void OnDocumentComplete(LPCTSTR url) = 0;
|
30
|
+
virtual void setBrowserGesturing(bool bEnableGesturing) = 0;
|
31
|
+
virtual void NotifyEngineOfSipPosition() = 0;
|
29
32
|
};
|
30
33
|
|
31
34
|
}
|
@@ -8,9 +8,14 @@
|
|
8
8
|
#include <webvw.h>
|
9
9
|
#endif
|
10
10
|
|
11
|
+
extern "C" void rho_wm_impl_CheckLicense();
|
12
|
+
extern "C" int rho_wm_impl_CheckSymbolDevice();
|
13
|
+
|
11
14
|
CIEBrowserEngine::CIEBrowserEngine(HWND hParentWnd, HINSTANCE hInstance) :
|
12
15
|
m_spIWebBrowser2(NULL)
|
13
16
|
{
|
17
|
+
m_bLoadingComplete = false;
|
18
|
+
|
14
19
|
#if defined(_WIN32_WCE)
|
15
20
|
m_browser.Create(hParentWnd,
|
16
21
|
CWindow::rcDefault, // proper sizing is done in CMainWindow::OnSize
|
@@ -156,13 +161,23 @@ BOOL CIEBrowserEngine::NavigateToHtml(LPCTSTR szHtml)
|
|
156
161
|
|
157
162
|
LRESULT CIEBrowserEngine::OnWebKitMessages(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
158
163
|
{
|
159
|
-
|
164
|
+
switch (uMsg)
|
165
|
+
{
|
166
|
+
case PB_ONMETA:
|
167
|
+
RHODESAPP().getExtManager().onSetPropertiesData( (LPCWSTR)wParam, (LPCWSTR)lParam );
|
168
|
+
break;
|
169
|
+
}
|
170
|
+
|
171
|
+
bHandled = TRUE;
|
160
172
|
return 0;
|
161
173
|
}
|
162
174
|
|
163
175
|
void CIEBrowserEngine::RunMessageLoop(CMainWindow& mainWnd)
|
164
176
|
{
|
165
|
-
|
177
|
+
if (!rho_wm_impl_CheckSymbolDevice())
|
178
|
+
return;
|
179
|
+
|
180
|
+
MSG msg;
|
166
181
|
while (GetMessage(&msg, NULL, 0, 0))
|
167
182
|
{
|
168
183
|
if ( RHODESAPP().getExtManager().onWndMsg(msg) )
|
@@ -220,3 +235,20 @@ void CIEBrowserEngine::SetCookie(char* url, char* cookie)
|
|
220
235
|
for (c = s + 1; *c == ' '; ++c);
|
221
236
|
}
|
222
237
|
}
|
238
|
+
|
239
|
+
void CIEBrowserEngine::OnDocumentComplete(LPCTSTR url)
|
240
|
+
{
|
241
|
+
if(!m_bLoadingComplete && wcscmp(url,_T("about:blank"))!=0)
|
242
|
+
{
|
243
|
+
rho_wm_impl_CheckLicense();
|
244
|
+
m_bLoadingComplete = true;
|
245
|
+
}
|
246
|
+
}
|
247
|
+
|
248
|
+
void CIEBrowserEngine::setBrowserGesturing(bool bEnableGesturing)
|
249
|
+
{
|
250
|
+
}
|
251
|
+
|
252
|
+
void CIEBrowserEngine::NotifyEngineOfSipPosition()
|
253
|
+
{
|
254
|
+
}
|
@@ -18,7 +18,7 @@ class CIEBrowserEngine : public rho::IBrowserEngine
|
|
18
18
|
|
19
19
|
// cached copy of hosted control's IWebBrowser2 interface pointer
|
20
20
|
CComPtr<IWebBrowser2> m_spIWebBrowser2;
|
21
|
-
|
21
|
+
bool m_bLoadingComplete;
|
22
22
|
public:
|
23
23
|
CIEBrowserEngine(HWND hParentWnd, HINSTANCE hInstance);
|
24
24
|
virtual ~CIEBrowserEngine(void);
|
@@ -40,4 +40,7 @@ public:
|
|
40
40
|
virtual BOOL ZoomTextOnTab(int nZoom, UINT iTab);
|
41
41
|
virtual int GetTextZoomOnTab(UINT iTab);
|
42
42
|
virtual BOOL GetTitleOnTab(LPTSTR szURL, UINT iMaxLen, UINT iTab);
|
43
|
+
virtual void OnDocumentComplete(LPCTSTR url);
|
44
|
+
virtual void setBrowserGesturing(bool bEnableGesturing);
|
45
|
+
virtual void NotifyEngineOfSipPosition();
|
43
46
|
};
|
@@ -0,0 +1,73 @@
|
|
1
|
+
#include "stdafx.h"
|
2
|
+
#include "common/app_build_capabilities.h"
|
3
|
+
|
4
|
+
#if defined(APP_BUILD_CAPABILITY_WEBKIT_BROWSER) && !defined(APP_BUILD_CAPABILITY_MOTOROLA)
|
5
|
+
class CConfig
|
6
|
+
{
|
7
|
+
};
|
8
|
+
|
9
|
+
class CSync
|
10
|
+
{
|
11
|
+
public:
|
12
|
+
int Run(int a, long b,long c);
|
13
|
+
};
|
14
|
+
|
15
|
+
int CSync::Run(int a, long b,long c)
|
16
|
+
{
|
17
|
+
return 1;
|
18
|
+
}
|
19
|
+
|
20
|
+
class CAppManager
|
21
|
+
{
|
22
|
+
public:
|
23
|
+
long SwitchAppInst(int iInstID);
|
24
|
+
};
|
25
|
+
|
26
|
+
long CAppManager::SwitchAppInst(int iInstID)
|
27
|
+
{
|
28
|
+
return 1;
|
29
|
+
}
|
30
|
+
|
31
|
+
struct PBCoreStruct
|
32
|
+
{
|
33
|
+
};
|
34
|
+
|
35
|
+
CConfig *g_pConfig = 0;
|
36
|
+
CSync *g_pEventSync = 0;
|
37
|
+
CAppManager *g_pAppManager = 0;
|
38
|
+
PBCoreStruct *g_pPBCore = 0;
|
39
|
+
|
40
|
+
typedef long IMOREF;
|
41
|
+
|
42
|
+
typedef struct VarsStruct{
|
43
|
+
LPCTSTR pStr;
|
44
|
+
VarsStruct *pNextVar;
|
45
|
+
}VARSTRUCT,*PVARSTRUCT;
|
46
|
+
typedef int (CALLBACK* IMOEVENTPROC)(PVARSTRUCT pVars,int iTABID,LPARAM lParam);
|
47
|
+
|
48
|
+
enum LogTypeInterface {
|
49
|
+
PB_LOG_ERROR = 0, ///< Show stopper
|
50
|
+
PB_LOG_WARNING, ///< PB Can continue with reduced functionality
|
51
|
+
PB_LOG_INFO, ///< General Information, e.g. Plugin X loaded
|
52
|
+
PB_LOG_USER,
|
53
|
+
PB_LOG_DEBUG, ///< the only message to show during debug
|
54
|
+
PB_LOG_MEMORY
|
55
|
+
};
|
56
|
+
|
57
|
+
typedef struct PBStruct
|
58
|
+
{
|
59
|
+
HWND hWnd; ///< Handle to the instance topmost window
|
60
|
+
HINSTANCE hInstance; ///< Main window instance
|
61
|
+
BOOL bInvoked; ///< Whether the associated Meta Tag has been manually invoked
|
62
|
+
int iTabID; ///< PB Application ID
|
63
|
+
|
64
|
+
}PBSTRUCT,*PPBSTRUCT;
|
65
|
+
|
66
|
+
BOOL DeleteIMO (IMOREF IMORef){ return TRUE;}
|
67
|
+
BOOL CallIMOMethod (IMOREF IMORef,LPCTSTR pMethod){ return TRUE;}
|
68
|
+
BOOL SetIMOCallBack (IMOREF IMORef,IMOEVENTPROC IMOEventProc,LPARAM lParam){ return TRUE;}
|
69
|
+
BOOL SetIMOProperty (IMOREF IMORef,LPCTSTR pParam,LPCTSTR pValue){ return TRUE;}
|
70
|
+
BOOL Log (LogTypeInterface logSeverity,LPCTSTR pLogComment,
|
71
|
+
LPCTSTR pFunctionName, DWORD dwLineNumber,LPCTSTR pCallingModule){ return TRUE;}
|
72
|
+
IMOREF CreateIMO (PPBSTRUCT pPBStructure,LPCTSTR pTargetModuleName,LPCTSTR pCallingModName){ return 0; }
|
73
|
+
#endif
|
@@ -24,32 +24,44 @@
|
|
24
24
|
* http://rhomobile.com
|
25
25
|
*------------------------------------------------------------------------*/
|
26
26
|
|
27
|
-
|
27
|
+
#include "stdafx.h"
|
28
|
+
#include "LogMemory.h"
|
29
|
+
#include "logging/RhoLog.h"
|
30
|
+
#include <sstream>
|
28
31
|
|
29
|
-
|
32
|
+
#define DIV 1024
|
30
33
|
|
31
|
-
|
32
|
-
import com.rhomobile.rhodes.RhodesActivity;
|
34
|
+
CLogMemory* CLogMemory::gInstance = 0;
|
33
35
|
|
36
|
+
CLogMemory* CLogMemory::getInstance()
|
37
|
+
{
|
38
|
+
if (gInstance==0)
|
39
|
+
gInstance = new CLogMemory();
|
40
|
+
return gInstance;
|
41
|
+
}
|
34
42
|
|
35
|
-
|
43
|
+
rho::String CLogMemory::collect()
|
44
|
+
{
|
45
|
+
std::ostringstream oss;
|
36
46
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
super(rhodesActivity);
|
41
|
-
}
|
47
|
+
//Get the memory stats
|
48
|
+
MEMORYSTATUS sMemStat;
|
49
|
+
sMemStat.dwLength = sizeof(MEMORYSTATUS);
|
42
50
|
|
43
|
-
|
44
|
-
public void onConsoleMessage(String message, int lineNumber, String sourceID) {
|
45
|
-
Logger.D(TAG, message + " -- From line " + lineNumber + " of " + sourceID);
|
46
|
-
}
|
51
|
+
GlobalMemoryStatus(&sMemStat);
|
47
52
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
}
|
53
|
+
sMemStat.dwTotalPhys /= DIV;
|
54
|
+
sMemStat.dwAvailPhys /= DIV;
|
55
|
+
sMemStat.dwTotalVirtual /= DIV;
|
56
|
+
sMemStat.dwAvailVirtual /= DIV;
|
54
57
|
|
58
|
+
oss <<
|
59
|
+
"Stats: Load=" << sMemStat.dwMemoryLoad <<
|
60
|
+
"% TotalPhy=" << sMemStat.dwTotalPhys <<
|
61
|
+
"KB FreePhy=" << sMemStat.dwAvailPhys <<
|
62
|
+
"KB TotalVM=" << sMemStat.dwTotalVirtual <<
|
63
|
+
"KB FreeVM=" << sMemStat.dwAvailVirtual <<
|
64
|
+
"KB";
|
55
65
|
|
66
|
+
return rho::String(oss.str());
|
67
|
+
}
|
@@ -24,13 +24,16 @@
|
|
24
24
|
* http://rhomobile.com
|
25
25
|
*------------------------------------------------------------------------*/
|
26
26
|
|
27
|
-
|
27
|
+
#pragma once
|
28
28
|
|
29
|
-
|
30
|
-
import android.webkit.WebView;
|
29
|
+
#include "logging/RhoLogConf.h"
|
31
30
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
class CLogMemory: public rho::IMemoryInfoCollector
|
32
|
+
{
|
33
|
+
private:
|
34
|
+
CLogMemory(){};
|
35
|
+
static CLogMemory* gInstance;
|
36
|
+
public:
|
37
|
+
static CLogMemory* getInstance();
|
38
|
+
virtual rho::String collect();
|
39
|
+
};
|
@@ -25,7 +25,7 @@
|
|
25
25
|
*------------------------------------------------------------------------*/
|
26
26
|
|
27
27
|
#include "stdafx.h"
|
28
|
-
#if defined(
|
28
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
29
29
|
#include <richedit.h>
|
30
30
|
#include "common/RhoConf.h"
|
31
31
|
#endif
|
@@ -35,7 +35,7 @@
|
|
35
35
|
#include "logging/RhoLog.h"
|
36
36
|
#include "common/RhodesApp.h"
|
37
37
|
|
38
|
-
#if defined(
|
38
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
39
39
|
rho::common::CMutex CLogView::m_ViewFlushLock;
|
40
40
|
#endif
|
41
41
|
|
@@ -82,7 +82,7 @@ LRESULT CLogView::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bH
|
|
82
82
|
|
83
83
|
loadLogText();
|
84
84
|
|
85
|
-
#elif defined(
|
85
|
+
#elif defined(OS_WINDOWS_DESKTOP)
|
86
86
|
m_grip.InitGrip(m_hWnd);
|
87
87
|
m_grip.ShowSizeGrip();
|
88
88
|
CWindow edit = GetDlgItem(IDC_LOGEDIT);
|
@@ -105,7 +105,7 @@ LRESULT CLogView::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bH
|
|
105
105
|
return 1; // Let the system set the focus
|
106
106
|
}
|
107
107
|
|
108
|
-
#if defined(
|
108
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
109
109
|
void CLogView::writeLogMessage( rho::String& strMsg ) {
|
110
110
|
rho::common::CMutexLock oLock(m_ViewFlushLock);
|
111
111
|
m_buffer.AddTail(strMsg);
|
@@ -138,7 +138,7 @@ LRESULT CLogView::OnRefresh(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHan
|
|
138
138
|
LRESULT CLogView::OnClear(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled){
|
139
139
|
|
140
140
|
LOGCONF().clearLog();
|
141
|
-
#if defined(
|
141
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
142
142
|
SetDlgItemText(IDC_LOGEDIT,_T(""));
|
143
143
|
#else
|
144
144
|
loadLogText();
|
@@ -170,7 +170,7 @@ void CLogView::OnFinalMessage(HWND /*hWnd*/)
|
|
170
170
|
|
171
171
|
LRESULT CLogView::OnSize(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/)
|
172
172
|
{
|
173
|
-
#if defined(
|
173
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
174
174
|
if (m_grip.GetSafeHwnd()) {
|
175
175
|
m_grip.UpdateGripPos();
|
176
176
|
}
|
@@ -181,7 +181,7 @@ LRESULT CLogView::OnSize(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL&
|
|
181
181
|
return 0;
|
182
182
|
}
|
183
183
|
|
184
|
-
#if defined(
|
184
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
185
185
|
LRESULT CLogView::OnSizing(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/)
|
186
186
|
{
|
187
187
|
LPRECT pRect = (LPRECT) lParam;
|
@@ -318,7 +318,7 @@ LRESULT CLogView::OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandl
|
|
318
318
|
return 0;
|
319
319
|
}
|
320
320
|
|
321
|
-
#endif //
|
321
|
+
#endif //OS_WINDOWS_DESKTOP
|
322
322
|
|
323
323
|
|
324
324
|
#ifdef OS_WINCE
|
@@ -367,7 +367,7 @@ LRESULT CLogView::OnSendLog(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHan
|
|
367
367
|
}
|
368
368
|
|
369
369
|
// CResizableGrip
|
370
|
-
#if defined(
|
370
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
371
371
|
CResizableGrip::CResizableGrip()
|
372
372
|
{
|
373
373
|
m_hParent = NULL;
|
@@ -528,4 +528,4 @@ void setIniInt(LPCTSTR lpKeyName, int nValue) {
|
|
528
528
|
lpKeyName, value, getIniPath());
|
529
529
|
}
|
530
530
|
|
531
|
-
#endif //
|
531
|
+
#endif //OS_WINDOWS_DESKTOP
|
@@ -29,7 +29,7 @@
|
|
29
29
|
#include "logging/RhoLogConf.h"
|
30
30
|
#include "resource.h"
|
31
31
|
|
32
|
-
#if defined(
|
32
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
33
33
|
|
34
34
|
static UINT WM_FIND_TEXT = ::RegisterWindowMessage(FINDMSGSTRING);
|
35
35
|
|
@@ -78,13 +78,13 @@ protected:
|
|
78
78
|
static LRESULT CALLBACK GripWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
79
79
|
|
80
80
|
};
|
81
|
-
#endif //
|
81
|
+
#endif //OS_WINDOWS_DESKTOP
|
82
82
|
|
83
83
|
// CLogView
|
84
84
|
|
85
85
|
class CLogView :
|
86
86
|
public CDialogImpl<CLogView>
|
87
|
-
#if defined(
|
87
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
88
88
|
,public rho::ILogSink
|
89
89
|
#endif
|
90
90
|
{
|
@@ -95,13 +95,13 @@ class CLogView :
|
|
95
95
|
public:
|
96
96
|
CLogView() :
|
97
97
|
m_hBrush ( NULL ), m_hWndCommandBar(0)
|
98
|
-
#if defined(
|
98
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
99
99
|
, m_pFindDialog(NULL), m_findText(L""), m_findParams(FR_DOWN)
|
100
100
|
#endif
|
101
101
|
{}
|
102
102
|
~CLogView(){}
|
103
103
|
|
104
|
-
#if defined(
|
104
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
105
105
|
// IlogSink
|
106
106
|
static rho::common::CMutex m_ViewFlushLock;
|
107
107
|
CAtlList<rho::String> m_buffer;
|
@@ -112,7 +112,7 @@ public:
|
|
112
112
|
#endif
|
113
113
|
|
114
114
|
// Dialog
|
115
|
-
#if defined(
|
115
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
116
116
|
enum { IDD = IDD_SIMULATOR_LOGVIEW };
|
117
117
|
#else
|
118
118
|
enum { IDD = IDD_LOGVIEW };
|
@@ -123,7 +123,7 @@ BEGIN_MSG_MAP(CLogView)
|
|
123
123
|
MESSAGE_HANDLER(WM_SIZE, OnSize)
|
124
124
|
MESSAGE_HANDLER(WM_CTLCOLORSTATIC,OnCtlColor)
|
125
125
|
MESSAGE_HANDLER(WM_CTLCOLOREDIT,OnCtlColor)
|
126
|
-
#if defined(
|
126
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
127
127
|
MESSAGE_HANDLER(WM_SIZING, OnSizing)
|
128
128
|
MESSAGE_HANDLER(WM_CLOSE,OnClose)
|
129
129
|
MESSAGE_HANDLER(WM_TIMER, OnTimer)
|
@@ -172,7 +172,7 @@ END_MSG_MAP()
|
|
172
172
|
|
173
173
|
LRESULT OnSize(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
|
174
174
|
LRESULT OnCtlColor(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
|
175
|
-
#if defined(
|
175
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
176
176
|
LRESULT OnSizing(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
177
177
|
LRESULT OnPosChanged(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
|
178
178
|
LRESULT OnClose(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
|
@@ -196,7 +196,7 @@ END_MSG_MAP()
|
|
196
196
|
return 0;
|
197
197
|
}
|
198
198
|
#endif
|
199
|
-
#if defined(
|
199
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
200
200
|
protected:
|
201
201
|
CResizableGrip m_grip;
|
202
202
|
CFindReplaceDialog *m_pFindDialog;
|
@@ -205,7 +205,7 @@ protected:
|
|
205
205
|
#endif
|
206
206
|
};
|
207
207
|
|
208
|
-
#if defined(
|
208
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
209
209
|
|
210
210
|
int getIniInt(LPCTSTR lpKeyName, int nDefault);
|
211
211
|
void setIniInt(LPCTSTR lpKeyName, int nValue);
|