|
1 | 1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | | -<widget id="CameraWidgetForPhoneGap.widget.CameraWidgetForPhoneGap" needsEntityContext="true" offlineCapable="true" |
3 | | - xmlns="http://www.mendix.com/widget/1.0/"> |
| 2 | +<widget id="CameraWidgetForPhoneGap.widget.CameraWidgetForPhoneGap" needsEntityContext="true" offlineCapable="true" xmlns="http://www.mendix.com/widget/1.0/"> |
4 | 3 | <name>Camera</name> |
5 | | - <description>Creates a button to use the phone camera option within a Mendix Developer application.</description> |
| 4 | + <description>Creates a button to use the phone camera option within a Mendix Developer application</description> |
6 | 5 | <icon>iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA21BMVEUAAAD///+A//9VVVVmZmZVVVVgYGBVVVVmZmZVVVViYmJeXl5SuP9cXFxJtv9YWFhVVVVYWFhXV1dVVVVVVVVXV1dWVlZXV1dJs/lWVlZJs/lVVVVJsfdJsfhIsvhXV1dVVVVWVlZWVlZWVlZVVVVWVlZWVlZVVVVWVlZWVlZVVVVWVlZVVVVVVVVIsfhJsPhJsfhJsfhVVVVJsfdVVVVJsfhVVVVVVVVWVlZJsPdVVVVVVVVVVVVWVlZIsPhVVVVJsfhIsPhVVVVVVVVVVVVJsPhVVVVIsPdVVVUd0v+1AAAAR3RSTlMAAQIDBQYICQoMDRMZGRwgJDQ1NkhJSk9QUFdjZWlqcHJ5g4WZmpufoKOrrLCxtLW2vcLIyNHS1d/j5Ons7vDw8fP19vn8/PqNolUAAAJ4SURBVHgB7VdvX+IwDO6YoIhDBO4QYTL+HJwip4ITVByHotv3/0SX5IdzuWxs/vrW5w1tw/OsTZq0Vcn4hll1htPFcrNZLqa/nKr5NfZeY7wKGFaXjb3M9P3uMojBsrufbe6txyABj60MK/k53/77ddKpV0r5fKlS70xet4PzHyl0ox8QnkfNg+j4QXP0HBD6xi5+8SpAvPQOpe2w90LGq2Iy//ge//E+sOLN1uAd7ffHifwn8tSJSsQJ+fcpQaFI37+z1A5YdzSH2FUYtP6LgtqJwgX5Ic6TfeKrVJBCPyb+NP9CukCBViH2gzlH/1kqAyz05NxUHC2MH/f/6YO/xcMpjwVGs/Vf/qDqgA2dvfkh3s6YaYCz5ZnVxf1nCX6CgoV7ssvyH/O3J/iJCj3M7mh9aGL+4P7PnbseJ3Exz7VzmBeYWY2IwBj6I2zY4qNiOjaOjIBwGYkh1q8mtlzBFwrux5RXn5GsYf2g/P/ry9DxkPoe1QesMNXQ7EBvQi0fEEmP9my9nrUN6nD7BChOODyEXkcKHN36hNsjKdAByjAcnkKvLgQM4pMCzOH6mtnrQJmGAgvoVYRA2w/RBoE/zF4ByiIUwG1UEgIzaN+UyzfwMxNLKOFWCgU20MsLgTW0y0qV4WctBPJA2egL6C8huxMJ0onZw4iQYdTfSNpbmSeTEJBAO0smls5ZBXg684Li+amgdP7NC4pqfJQ0N13AjZY0UVTtdAGbFVVe1llRjYXnnudkWZcHi0TawSKPNgl5tOkfrvrHu/4FQ/+Ko3/J0r/m6V809a+6Wpdtjeu+xoND48mj8egapzy6BMza57Nv6NR2zP0b/wDScUGfAMfR4QAAAABJRU5ErkJggg==</icon> |
7 | 6 | <phonegap enabled="true"/> |
8 | 7 | <properties> |
9 | 8 | <property key="buttonClass" type="string" defaultValue="wx-mxwx-button-extra"> |
10 | 9 | <caption>Class</caption> |
11 | 10 | <category>Button</category> |
12 | | - <description>The class on the button.</description> |
| 11 | + <description>The CSS class on the button</description> |
13 | 12 | </property> |
14 | | - <property key="buttonText" type="string" defaultValue="activate camera"> |
| 13 | + <property key="buttonText" type="translatableString"> |
15 | 14 | <caption>Label</caption> |
16 | 15 | <category>Button</category> |
17 | | - <description>The label on the button.</description> |
| 16 | + <description/> |
| 17 | + <translations> |
| 18 | + <translation lang="en_US">Activate camera</translation> |
| 19 | + <translation lang="nl_NL">Camera activeren</translation> |
| 20 | + </translations> |
18 | 21 | </property> |
19 | 22 | <property key="imageContainerClass" type="string" defaultValue="wx-mxwx-imagecontainer-extra"> |
20 | 23 | <caption>Image container class</caption> |
21 | 24 | <category>Appearance</category> |
22 | | - <description>The class on the button.</description> |
| 25 | + <description>The CSS class on the preview</description> |
23 | 26 | </property> |
24 | 27 | <property key="imageWidth" type="integer" defaultValue="150"> |
25 | 28 | <caption>Width</caption> |
26 | 29 | <category>Appearance</category> |
27 | | - <description>The width of the image.</description> |
| 30 | + <description>The width of the image thumbnail</description> |
28 | 31 | </property> |
29 | 32 | <property key="imageHeight" type="integer" defaultValue="150"> |
30 | 33 | <caption>Height</caption> |
31 | 34 | <category>Appearance</category> |
32 | | - <description>The height of the image.</description> |
| 35 | + <description>The height of the image thumbnail</description> |
33 | 36 | </property> |
34 | 37 | <property key="imageLocation" type="enumeration" defaultValue="right"> |
35 | 38 | <caption>Image location</caption> |
36 | 39 | <category>Appearance</category> |
37 | | - <description>The position where the image is set.</description> |
| 40 | + <description>The position where the thumbnail image is set</description> |
38 | 41 | <enumerationValues> |
39 | 42 | <enumerationValue key="above">Above</enumerationValue> |
40 | 43 | <enumerationValue key="below">Below</enumerationValue> |
|
45 | 48 | <property key="targetWidth" type="integer" defaultValue="150"> |
46 | 49 | <caption>Quality width</caption> |
47 | 50 | <category>Image quality</category> |
48 | | - <description>The width of the image.</description> |
| 51 | + <description>The width of the captured image</description> |
49 | 52 | </property> |
50 | 53 | <property key="targetHeight" type="integer" defaultValue="150"> |
51 | 54 | <caption>Quality height</caption> |
52 | 55 | <category>Image quality</category> |
53 | | - <description>The height of the image.</description> |
| 56 | + <description>The height of the captured image</description> |
| 57 | + </property> |
| 58 | + <property key="autoCapture" type="boolean" defaultValue="false"> |
| 59 | + <caption>Auto capture</caption> |
| 60 | + <category>Behavior</category> |
| 61 | + <description>Enable auto capture to automatically start the camera</description> |
54 | 62 | </property> |
55 | 63 | <property key="autoSaveEnabled" type="boolean" defaultValue="false"> |
56 | | - <caption>Autosave</caption> |
57 | | - <category>Behaviour</category> |
58 | | - <description>Enable autosave to automatically save your image</description> |
| 64 | + <caption>Auto save</caption> |
| 65 | + <category>Behavior</category> |
| 66 | + <description>Enable auto save to automatically save your image</description> |
59 | 67 | </property> |
60 | 68 | <property key="onchangemf" type="microflow" required="false"> |
61 | 69 | <caption>On save microflow</caption> |
62 | | - <category>Behaviour</category> |
63 | | - <description>This microflow is called when the object is saved. use this to commit the object when using autosave</description> |
| 70 | + <category>Behavior</category> |
| 71 | + <description>This microflow is called when the object is saved. Use this to commit the object when using autosave</description> |
64 | 72 | <returnType type="Void"/> |
65 | 73 | </property> |
66 | 74 | <property key="onSaveNanoflow" type="nanoflow" required="false"> |
67 | 75 | <caption>On save nanoflow</caption> |
68 | | - <category>Behaviour</category> |
69 | | - <description>This nanoflow is called when the object is saved. use this to commit the object when using autosave</description> |
| 76 | + <category>Behavior</category> |
| 77 | + <description>This nanoflow is called when the object is saved. Use this to commit the object when using autosave</description> |
70 | 78 | <returnType type="Void"/> |
71 | 79 | </property> |
72 | 80 | <property key="pictureSource" type="enumeration" defaultValue="camera"> |
73 | | - <caption>Picture Source</caption> |
74 | | - <category>Behaviour</category> |
| 81 | + <caption>Picture source</caption> |
| 82 | + <category>Behavior</category> |
75 | 83 | <description>Grab image from either the camera or the phone's image gallery</description> |
76 | 84 | <enumerationValues> |
77 | 85 | <enumerationValue key="camera">Camera</enumerationValue> |
78 | 86 | <enumerationValue key="gallery">Gallery</enumerationValue> |
79 | 87 | </enumerationValues> |
80 | 88 | </property> |
| 89 | + <property key="blockingUpload" type="enumeration" defaultValue="disabled"> |
| 90 | + <caption>Block during upload</caption> |
| 91 | + <category>Behavior</category> |
| 92 | + <description>Prevent any form interaction. Shows the blocking progress message during the whole upload. Or show 'On form save', useful for 'autosave', will only show the blocking progress when the form will be closed, and the upload is not completed</description> |
| 93 | + <enumerationValues> |
| 94 | + <enumerationValue key="disabled">None</enumerationValue> |
| 95 | + <enumerationValue key="duringUpload">During upload</enumerationValue> |
| 96 | + <enumerationValue key="onFormSave">On form save</enumerationValue> |
| 97 | + </enumerationValues> |
| 98 | + </property> |
| 99 | + <property key="progressText" type="translatableString" required="false" > |
| 100 | + <caption>Progress upload text</caption> |
| 101 | + <category>Behavior</category> |
| 102 | + <description/> |
| 103 | + <translations> |
| 104 | + <translation lang="en_US">Uploading image in progress...</translation> |
| 105 | + <translation lang="nl_NL">Bezig met uploaden van de afbeelding...</translation> |
| 106 | + </translations> |
| 107 | + </property> |
81 | 108 | </properties> |
82 | 109 | </widget> |
0 commit comments