Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: shaque/Cascades-Samples
base: 35eddcd064
...
head fork: shaque/Cascades-Samples
compare: dbda7ac666
  • 2 commits
  • 30 files changed
  • 0 commit comments
  • 1 contributor
Showing with 1,472 additions and 477 deletions.
  1. +24 −1 invokeclient/assets/main.qml
  2. +1 −0  invokeclient/bar-descriptor.xml
  3. +1 −1  invokeclient/invokeclient.pro
  4. +37 −24 invokeclient/src/main.cpp
  5. +32 −32 invokeclient/translations/invokeclient.ts
  6. +32 −32 invokeclient/translations/invokeclient_de.ts
  7. +32 −32 invokeclient/translations/invokeclient_en_GB.ts
  8. +32 −32 invokeclient/translations/invokeclient_es.ts
  9. +32 −32 invokeclient/translations/invokeclient_fr.ts
  10. +32 −32 invokeclient/translations/invokeclient_it.ts
  11. +40 −0 invoketarget/assets/Composer.qml
  12. +1 −1  invoketarget/assets/LabelLabel.qml
  13. +94 −0 invoketarget/assets/Picker.qml
  14. +18 −0 invoketarget/assets/Previewer.qml
  15. BIN  invoketarget/assets/images/background.png
  16. BIN  invoketarget/assets/images/cancel.png
  17. BIN  invoketarget/assets/images/egg.png
  18. BIN  invoketarget/assets/images/icon.png
  19. BIN  invoketarget/assets/images/save.png
  20. +30 −96 invoketarget/assets/main.qml
  21. +24 −31 invoketarget/bar-descriptor.xml
  22. BIN  invoketarget/icon.png
  23. +117 −120 invoketarget/src/app.cpp
  24. +11 −11 invoketarget/src/app.hpp
  25. +147 −0 invoketarget/translations/invoketarget.ts
  26. +147 −0 invoketarget/translations/invoketarget_de.ts
  27. +147 −0 invoketarget/translations/invoketarget_en_GB.ts
  28. +147 −0 invoketarget/translations/invoketarget_es.ts
  29. +147 −0 invoketarget/translations/invoketarget_fr.ts
  30. +147 −0 invoketarget/translations/invoketarget_it.ts
View
25 invokeclient/assets/main.qml
@@ -12,6 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/import bb.cascades 1.0
+import bb.cascades.pickers 1.0
Page {
@@ -173,13 +174,35 @@ Page {
title: "URI"
}
TextField {
- hintText: qsTr("E.g. file:///path/to/my/file.png")
+ hintText: qsTr("Enter URI or double tap to pick a file")
onTextChanging: {
_app.uri = text
}
onCreationCompleted: {
_app.uri = text
}
+ gestureHandlers: [
+ DoubleTapHandler {
+ onDoubleTapped: {
+ }
+ }
+ ]
+ attachedObjects: [
+ FilePicker {
+ id: filePicker
+ type: FileType.Picture
+ title: "Select Image"
+ mode: FilePickerMode.Picker
+ viewMode: FilePickerViewMode.GridView
+ directories: [
+ "/accounts/1000/shared"
+ ]
+ onFileSelected: {
+ var path = selectedFiles[0];
+ text = path;
+ }
+ }
+ ]
}
Header {
title: "Data"
View
1  invokeclient/bar-descriptor.xml
@@ -101,6 +101,7 @@
<!-- Request permission to execute native code. Required for native applications. -->
<permission system="true">run_native</permission>
+ <permission>access_shared</permission>
<env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>
<cascadesTheme>dark</cascadesTheme>
View
2  invokeclient/invokeclient.pro
@@ -6,7 +6,7 @@ CONFIG += qt warn_on debug_and_release cascades
INCLUDEPATH += ../src
SOURCES += ../src/*.cpp
HEADERS += ../src/*.hpp ../src/*.h
-LIBS += -lbbsystem -lscreen -lbbdata
+LIBS += -lbbsystem -lscreen -lbbdata -lbbcascadespickers
lupdate_inclusion {
SOURCES += ../assets/*.qml
View
61 invokeclient/src/main.cpp
@@ -1,17 +1,17 @@
/* Copyright (c) 2012 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
#include "app.hpp"
@@ -19,21 +19,34 @@
#include <QLocale>
#include <QTranslator>
+#include <bb/cascades/pickers/FilePicker.hpp>
+#include <bb/cascades/pickers/FilePickerMode.hpp>
+#include <bb/cascades/pickers/FilePickerSortFlag.hpp>
+#include <bb/cascades/pickers/FilePickerSortOrder.hpp>
+#include <bb/cascades/pickers/FilePickerViewMode.hpp>
+#include <bb/cascades/pickers/FileType.hpp>
+
using ::bb::cascades::Application;
-Q_DECL_EXPORT int main(int argc, char **argv)
-{
- Application app(argc, argv);
+Q_DECL_EXPORT int main(int argc, char **argv) {
+ qmlRegisterType<bb::cascades::pickers::FilePicker>("bb.cascades.pickers", 1, 0, "FilePicker");
+ qmlRegisterUncreatableType<bb::cascades::pickers::FilePickerMode>("bb.cascades.pickers", 1, 0, "FilePickerMode", "");
+ qmlRegisterUncreatableType<bb::cascades::pickers::FilePickerSortFlag>("bb.cascades.pickers", 1, 0, "FilePickerSortFlag", "");
+ qmlRegisterUncreatableType<bb::cascades::pickers::FilePickerSortOrder>("bb.cascades.pickers", 1, 0, "FilePickerSortOrder", "");
+ qmlRegisterUncreatableType<bb::cascades::pickers::FileType>("bb.cascades.pickers", 1, 0, "FileType", "");
+ qmlRegisterUncreatableType<bb::cascades::pickers::FilePickerViewMode>("bb.cascades.pickers", 1, 0, "FilePickerViewMode", "");
+
+ Application app(argc, argv);
- QTranslator translator;
- const QString locale_string = QLocale().name();
- const QString filename = QString( "invokeclient_%1" ).arg(locale_string);
- if (translator.load(filename, "app/native/qm")) {
- app.installTranslator(&translator);
- }
+ QTranslator translator;
+ const QString locale_string = QLocale().name();
+ const QString filename = QString("invokeclient_%1").arg(locale_string);
+ if (translator.load(filename, "app/native/qm")) {
+ app.installTranslator(&translator);
+ }
- App mainApp;
+ App mainApp;
- return Application::exec();
+ return Application::exec();
}
View
64 invokeclient/translations/invokeclient.ts
@@ -62,149 +62,149 @@
<context>
<name>main</name>
<message>
- <location filename="../assets/main.qml" line="21"/>
+ <location filename="../assets/main.qml" line="22"/>
<source>Invoke (best-fit)</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="29"/>
+ <location filename="../assets/main.qml" line="30"/>
<source>Query</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="38"/>
+ <location filename="../assets/main.qml" line="39"/>
<source>Platform Invoke</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="70"/>
+ <location filename="../assets/main.qml" line="71"/>
<source>Invocation Type:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="73"/>
- <location filename="../assets/main.qml" line="109"/>
+ <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="110"/>
<source>All</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="75"/>
<source>All types of invocation targets.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="78"/>
+ <location filename="../assets/main.qml" line="79"/>
<source>Application</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="79"/>
+ <location filename="../assets/main.qml" line="80"/>
<source>Targets that launch in a new window.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="83"/>
+ <location filename="../assets/main.qml" line="84"/>
<source>Service</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="84"/>
+ <location filename="../assets/main.qml" line="85"/>
<source>Targets that launch in background.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="88"/>
+ <location filename="../assets/main.qml" line="89"/>
<source>Card</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="89"/>
+ <location filename="../assets/main.qml" line="90"/>
<source>Targets that embeds as Card.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="107"/>
+ <location filename="../assets/main.qml" line="108"/>
<source>Action:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="110"/>
- <location filename="../assets/main.qml" line="115"/>
+ <location filename="../assets/main.qml" line="111"/>
+ <location filename="../assets/main.qml" line="116"/>
<source>Valid for queries only.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="114"/>
+ <location filename="../assets/main.qml" line="115"/>
<source>Menu Actions</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="119"/>
+ <location filename="../assets/main.qml" line="120"/>
<source>bb.action.OPEN</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="120"/>
+ <location filename="../assets/main.qml" line="121"/>
<source>A menu action for opening content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="124"/>
+ <location filename="../assets/main.qml" line="125"/>
<source>bb.action.SET</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="125"/>
+ <location filename="../assets/main.qml" line="126"/>
<source>A menu action for setting content as</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="130"/>
+ <location filename="../assets/main.qml" line="131"/>
<source>bb.action.SHARE</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="131"/>
+ <location filename="../assets/main.qml" line="132"/>
<source>A menu action for sharing content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="135"/>
+ <location filename="../assets/main.qml" line="136"/>
<source>Custom</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="136"/>
+ <location filename="../assets/main.qml" line="137"/>
<source>Specify a custom action.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="149"/>
+ <location filename="../assets/main.qml" line="150"/>
<source>E.g. com.example.BEBOLD</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="162"/>
+ <location filename="../assets/main.qml" line="163"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="176"/>
- <source>E.g. file:///path/to/my/file.png</source>
+ <location filename="../assets/main.qml" line="177"/>
+ <source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="188"/>
+ <location filename="../assets/main.qml" line="211"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="189"/>
+ <location filename="../assets/main.qml" line="212"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="201"/>
+ <location filename="../assets/main.qml" line="224"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>
View
64 invokeclient/translations/invokeclient_de.ts
@@ -62,149 +62,149 @@
<context>
<name>main</name>
<message>
- <location filename="../assets/main.qml" line="21"/>
+ <location filename="../assets/main.qml" line="22"/>
<source>Invoke (best-fit)</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="29"/>
+ <location filename="../assets/main.qml" line="30"/>
<source>Query</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="38"/>
+ <location filename="../assets/main.qml" line="39"/>
<source>Platform Invoke</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="70"/>
+ <location filename="../assets/main.qml" line="71"/>
<source>Invocation Type:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="73"/>
- <location filename="../assets/main.qml" line="109"/>
+ <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="110"/>
<source>All</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="75"/>
<source>All types of invocation targets.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="78"/>
+ <location filename="../assets/main.qml" line="79"/>
<source>Application</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="79"/>
+ <location filename="../assets/main.qml" line="80"/>
<source>Targets that launch in a new window.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="83"/>
+ <location filename="../assets/main.qml" line="84"/>
<source>Service</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="84"/>
+ <location filename="../assets/main.qml" line="85"/>
<source>Targets that launch in background.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="88"/>
+ <location filename="../assets/main.qml" line="89"/>
<source>Card</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="89"/>
+ <location filename="../assets/main.qml" line="90"/>
<source>Targets that embeds as Card.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="107"/>
+ <location filename="../assets/main.qml" line="108"/>
<source>Action:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="110"/>
- <location filename="../assets/main.qml" line="115"/>
+ <location filename="../assets/main.qml" line="111"/>
+ <location filename="../assets/main.qml" line="116"/>
<source>Valid for queries only.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="114"/>
+ <location filename="../assets/main.qml" line="115"/>
<source>Menu Actions</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="119"/>
+ <location filename="../assets/main.qml" line="120"/>
<source>bb.action.OPEN</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="120"/>
+ <location filename="../assets/main.qml" line="121"/>
<source>A menu action for opening content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="124"/>
+ <location filename="../assets/main.qml" line="125"/>
<source>bb.action.SET</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="125"/>
+ <location filename="../assets/main.qml" line="126"/>
<source>A menu action for setting content as</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="130"/>
+ <location filename="../assets/main.qml" line="131"/>
<source>bb.action.SHARE</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="131"/>
+ <location filename="../assets/main.qml" line="132"/>
<source>A menu action for sharing content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="135"/>
+ <location filename="../assets/main.qml" line="136"/>
<source>Custom</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="136"/>
+ <location filename="../assets/main.qml" line="137"/>
<source>Specify a custom action.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="149"/>
+ <location filename="../assets/main.qml" line="150"/>
<source>E.g. com.example.BEBOLD</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="162"/>
+ <location filename="../assets/main.qml" line="163"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="176"/>
- <source>E.g. file:///path/to/my/file.png</source>
+ <location filename="../assets/main.qml" line="177"/>
+ <source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="188"/>
+ <location filename="../assets/main.qml" line="211"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="189"/>
+ <location filename="../assets/main.qml" line="212"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="201"/>
+ <location filename="../assets/main.qml" line="224"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>
View
64 invokeclient/translations/invokeclient_en_GB.ts
@@ -62,149 +62,149 @@
<context>
<name>main</name>
<message>
- <location filename="../assets/main.qml" line="21"/>
+ <location filename="../assets/main.qml" line="22"/>
<source>Invoke (best-fit)</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="29"/>
+ <location filename="../assets/main.qml" line="30"/>
<source>Query</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="38"/>
+ <location filename="../assets/main.qml" line="39"/>
<source>Platform Invoke</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="70"/>
+ <location filename="../assets/main.qml" line="71"/>
<source>Invocation Type:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="73"/>
- <location filename="../assets/main.qml" line="109"/>
+ <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="110"/>
<source>All</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="75"/>
<source>All types of invocation targets.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="78"/>
+ <location filename="../assets/main.qml" line="79"/>
<source>Application</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="79"/>
+ <location filename="../assets/main.qml" line="80"/>
<source>Targets that launch in a new window.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="83"/>
+ <location filename="../assets/main.qml" line="84"/>
<source>Service</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="84"/>
+ <location filename="../assets/main.qml" line="85"/>
<source>Targets that launch in background.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="88"/>
+ <location filename="../assets/main.qml" line="89"/>
<source>Card</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="89"/>
+ <location filename="../assets/main.qml" line="90"/>
<source>Targets that embeds as Card.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="107"/>
+ <location filename="../assets/main.qml" line="108"/>
<source>Action:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="110"/>
- <location filename="../assets/main.qml" line="115"/>
+ <location filename="../assets/main.qml" line="111"/>
+ <location filename="../assets/main.qml" line="116"/>
<source>Valid for queries only.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="114"/>
+ <location filename="../assets/main.qml" line="115"/>
<source>Menu Actions</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="119"/>
+ <location filename="../assets/main.qml" line="120"/>
<source>bb.action.OPEN</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="120"/>
+ <location filename="../assets/main.qml" line="121"/>
<source>A menu action for opening content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="124"/>
+ <location filename="../assets/main.qml" line="125"/>
<source>bb.action.SET</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="125"/>
+ <location filename="../assets/main.qml" line="126"/>
<source>A menu action for setting content as</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="130"/>
+ <location filename="../assets/main.qml" line="131"/>
<source>bb.action.SHARE</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="131"/>
+ <location filename="../assets/main.qml" line="132"/>
<source>A menu action for sharing content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="135"/>
+ <location filename="../assets/main.qml" line="136"/>
<source>Custom</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="136"/>
+ <location filename="../assets/main.qml" line="137"/>
<source>Specify a custom action.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="149"/>
+ <location filename="../assets/main.qml" line="150"/>
<source>E.g. com.example.BEBOLD</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="162"/>
+ <location filename="../assets/main.qml" line="163"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="176"/>
- <source>E.g. file:///path/to/my/file.png</source>
+ <location filename="../assets/main.qml" line="177"/>
+ <source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="188"/>
+ <location filename="../assets/main.qml" line="211"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="189"/>
+ <location filename="../assets/main.qml" line="212"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="201"/>
+ <location filename="../assets/main.qml" line="224"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>
View
64 invokeclient/translations/invokeclient_es.ts
@@ -62,149 +62,149 @@
<context>
<name>main</name>
<message>
- <location filename="../assets/main.qml" line="21"/>
+ <location filename="../assets/main.qml" line="22"/>
<source>Invoke (best-fit)</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="29"/>
+ <location filename="../assets/main.qml" line="30"/>
<source>Query</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="38"/>
+ <location filename="../assets/main.qml" line="39"/>
<source>Platform Invoke</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="70"/>
+ <location filename="../assets/main.qml" line="71"/>
<source>Invocation Type:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="73"/>
- <location filename="../assets/main.qml" line="109"/>
+ <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="110"/>
<source>All</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="75"/>
<source>All types of invocation targets.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="78"/>
+ <location filename="../assets/main.qml" line="79"/>
<source>Application</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="79"/>
+ <location filename="../assets/main.qml" line="80"/>
<source>Targets that launch in a new window.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="83"/>
+ <location filename="../assets/main.qml" line="84"/>
<source>Service</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="84"/>
+ <location filename="../assets/main.qml" line="85"/>
<source>Targets that launch in background.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="88"/>
+ <location filename="../assets/main.qml" line="89"/>
<source>Card</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="89"/>
+ <location filename="../assets/main.qml" line="90"/>
<source>Targets that embeds as Card.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="107"/>
+ <location filename="../assets/main.qml" line="108"/>
<source>Action:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="110"/>
- <location filename="../assets/main.qml" line="115"/>
+ <location filename="../assets/main.qml" line="111"/>
+ <location filename="../assets/main.qml" line="116"/>
<source>Valid for queries only.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="114"/>
+ <location filename="../assets/main.qml" line="115"/>
<source>Menu Actions</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="119"/>
+ <location filename="../assets/main.qml" line="120"/>
<source>bb.action.OPEN</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="120"/>
+ <location filename="../assets/main.qml" line="121"/>
<source>A menu action for opening content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="124"/>
+ <location filename="../assets/main.qml" line="125"/>
<source>bb.action.SET</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="125"/>
+ <location filename="../assets/main.qml" line="126"/>
<source>A menu action for setting content as</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="130"/>
+ <location filename="../assets/main.qml" line="131"/>
<source>bb.action.SHARE</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="131"/>
+ <location filename="../assets/main.qml" line="132"/>
<source>A menu action for sharing content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="135"/>
+ <location filename="../assets/main.qml" line="136"/>
<source>Custom</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="136"/>
+ <location filename="../assets/main.qml" line="137"/>
<source>Specify a custom action.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="149"/>
+ <location filename="../assets/main.qml" line="150"/>
<source>E.g. com.example.BEBOLD</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="162"/>
+ <location filename="../assets/main.qml" line="163"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="176"/>
- <source>E.g. file:///path/to/my/file.png</source>
+ <location filename="../assets/main.qml" line="177"/>
+ <source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="188"/>
+ <location filename="../assets/main.qml" line="211"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="189"/>
+ <location filename="../assets/main.qml" line="212"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="201"/>
+ <location filename="../assets/main.qml" line="224"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>
View
64 invokeclient/translations/invokeclient_fr.ts
@@ -62,149 +62,149 @@
<context>
<name>main</name>
<message>
- <location filename="../assets/main.qml" line="21"/>
+ <location filename="../assets/main.qml" line="22"/>
<source>Invoke (best-fit)</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="29"/>
+ <location filename="../assets/main.qml" line="30"/>
<source>Query</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="38"/>
+ <location filename="../assets/main.qml" line="39"/>
<source>Platform Invoke</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="70"/>
+ <location filename="../assets/main.qml" line="71"/>
<source>Invocation Type:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="73"/>
- <location filename="../assets/main.qml" line="109"/>
+ <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="110"/>
<source>All</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="75"/>
<source>All types of invocation targets.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="78"/>
+ <location filename="../assets/main.qml" line="79"/>
<source>Application</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="79"/>
+ <location filename="../assets/main.qml" line="80"/>
<source>Targets that launch in a new window.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="83"/>
+ <location filename="../assets/main.qml" line="84"/>
<source>Service</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="84"/>
+ <location filename="../assets/main.qml" line="85"/>
<source>Targets that launch in background.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="88"/>
+ <location filename="../assets/main.qml" line="89"/>
<source>Card</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="89"/>
+ <location filename="../assets/main.qml" line="90"/>
<source>Targets that embeds as Card.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="107"/>
+ <location filename="../assets/main.qml" line="108"/>
<source>Action:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="110"/>
- <location filename="../assets/main.qml" line="115"/>
+ <location filename="../assets/main.qml" line="111"/>
+ <location filename="../assets/main.qml" line="116"/>
<source>Valid for queries only.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="114"/>
+ <location filename="../assets/main.qml" line="115"/>
<source>Menu Actions</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="119"/>
+ <location filename="../assets/main.qml" line="120"/>
<source>bb.action.OPEN</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="120"/>
+ <location filename="../assets/main.qml" line="121"/>
<source>A menu action for opening content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="124"/>
+ <location filename="../assets/main.qml" line="125"/>
<source>bb.action.SET</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="125"/>
+ <location filename="../assets/main.qml" line="126"/>
<source>A menu action for setting content as</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="130"/>
+ <location filename="../assets/main.qml" line="131"/>
<source>bb.action.SHARE</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="131"/>
+ <location filename="../assets/main.qml" line="132"/>
<source>A menu action for sharing content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="135"/>
+ <location filename="../assets/main.qml" line="136"/>
<source>Custom</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="136"/>
+ <location filename="../assets/main.qml" line="137"/>
<source>Specify a custom action.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="149"/>
+ <location filename="../assets/main.qml" line="150"/>
<source>E.g. com.example.BEBOLD</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="162"/>
+ <location filename="../assets/main.qml" line="163"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="176"/>
- <source>E.g. file:///path/to/my/file.png</source>
+ <location filename="../assets/main.qml" line="177"/>
+ <source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="188"/>
+ <location filename="../assets/main.qml" line="211"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="189"/>
+ <location filename="../assets/main.qml" line="212"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="201"/>
+ <location filename="../assets/main.qml" line="224"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>
View
64 invokeclient/translations/invokeclient_it.ts
@@ -62,149 +62,149 @@
<context>
<name>main</name>
<message>
- <location filename="../assets/main.qml" line="21"/>
+ <location filename="../assets/main.qml" line="22"/>
<source>Invoke (best-fit)</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="29"/>
+ <location filename="../assets/main.qml" line="30"/>
<source>Query</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="38"/>
+ <location filename="../assets/main.qml" line="39"/>
<source>Platform Invoke</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="70"/>
+ <location filename="../assets/main.qml" line="71"/>
<source>Invocation Type:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="73"/>
- <location filename="../assets/main.qml" line="109"/>
+ <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="110"/>
<source>All</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="74"/>
+ <location filename="../assets/main.qml" line="75"/>
<source>All types of invocation targets.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="78"/>
+ <location filename="../assets/main.qml" line="79"/>
<source>Application</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="79"/>
+ <location filename="../assets/main.qml" line="80"/>
<source>Targets that launch in a new window.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="83"/>
+ <location filename="../assets/main.qml" line="84"/>
<source>Service</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="84"/>
+ <location filename="../assets/main.qml" line="85"/>
<source>Targets that launch in background.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="88"/>
+ <location filename="../assets/main.qml" line="89"/>
<source>Card</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="89"/>
+ <location filename="../assets/main.qml" line="90"/>
<source>Targets that embeds as Card.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="107"/>
+ <location filename="../assets/main.qml" line="108"/>
<source>Action:</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="110"/>
- <location filename="../assets/main.qml" line="115"/>
+ <location filename="../assets/main.qml" line="111"/>
+ <location filename="../assets/main.qml" line="116"/>
<source>Valid for queries only.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="114"/>
+ <location filename="../assets/main.qml" line="115"/>
<source>Menu Actions</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="119"/>
+ <location filename="../assets/main.qml" line="120"/>
<source>bb.action.OPEN</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="120"/>
+ <location filename="../assets/main.qml" line="121"/>
<source>A menu action for opening content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="124"/>
+ <location filename="../assets/main.qml" line="125"/>
<source>bb.action.SET</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="125"/>
+ <location filename="../assets/main.qml" line="126"/>
<source>A menu action for setting content as</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="130"/>
+ <location filename="../assets/main.qml" line="131"/>
<source>bb.action.SHARE</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="131"/>
+ <location filename="../assets/main.qml" line="132"/>
<source>A menu action for sharing content.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="135"/>
+ <location filename="../assets/main.qml" line="136"/>
<source>Custom</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="136"/>
+ <location filename="../assets/main.qml" line="137"/>
<source>Specify a custom action.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="149"/>
+ <location filename="../assets/main.qml" line="150"/>
<source>E.g. com.example.BEBOLD</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="162"/>
+ <location filename="../assets/main.qml" line="163"/>
<source>E.g. image/png</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="176"/>
- <source>E.g. file:///path/to/my/file.png</source>
+ <location filename="../assets/main.qml" line="177"/>
+ <source>Enter URI or double tap to pick a file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="188"/>
+ <location filename="../assets/main.qml" line="211"/>
<source>E.g. anything!</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="189"/>
+ <location filename="../assets/main.qml" line="212"/>
<source>Test data..</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../assets/main.qml" line="201"/>
+ <location filename="../assets/main.qml" line="224"/>
<source>E.g. com.example.app</source>
<translation type="unfinished"></translation>
</message>
View
40 invoketarget/assets/Composer.qml
@@ -0,0 +1,40 @@
+import bb.cascades 1.0
+
+NavigationPane {
+ backButtonsVisible: false
+ peekEnabled: true
+ Page {
+ titleBar: TitleBar {
+ title: qsTr("Composer")
+ acceptAction: ActionItem {
+ title: qsTr("Share")
+ onTriggered: {
+ _app.cardDone(qsTr("Content Shared."));
+ }
+ }
+ dismissAction: ActionItem {
+ title: qsTr("Cancel")
+ onTriggered: {
+ _app.cardDone(qsTr("Dont feel like sharing today?"));
+ }
+ }
+ }
+ Container {
+ horizontalAlignment: HorizontalAlignment.Fill
+ Header {
+ title: qsTr("Share via Sample Composer")
+ }
+ Container {
+ horizontalAlignment: HorizontalAlignment.Fill
+ TextArea {
+ horizontalAlignment: HorizontalAlignment.Center
+ preferredHeight: 400
+ text: _app.data
+ onCreationCompleted: {
+ requestFocus();
+ }
+ }
+ }
+ }
+ }
+}
View
2  invoketarget/assets/LabelLabel.qml
@@ -34,7 +34,7 @@ Container {
textStyle {
base: SystemDefaults.TextStyles.BodyText
- color: Color.Black
+ color: Color.White
fontStyle: FontStyle.Italic
}
View
94 invoketarget/assets/Picker.qml
@@ -0,0 +1,94 @@
+import bb.cascades 1.0
+
+NavigationPane {
+ backButtonsVisible: false
+ peekEnabled: true
+ Page {
+ titleBar: TitleBar {
+ title: qsTr("Pick an Egg")
+ dismissAction: ActionItem {
+ title: qsTr("Cancel")
+ onTriggered: {
+ _app.cardDone(qsTr("Boo! No eggs today.."));
+ }
+ }
+ }
+ Container {
+ layout: DockLayout {
+ }
+ horizontalAlignment: HorizontalAlignment.Fill
+ ImageButton {
+ horizontalAlignment: HorizontalAlignment.Left
+ verticalAlignment: VerticalAlignment.Top
+ defaultImageSource: "asset:///images/egg.png"
+ onClicked: {
+ _app.cardDone(qsTr("Yummy!"));
+ }
+ }
+ ImageButton {
+ horizontalAlignment: HorizontalAlignment.Center
+ verticalAlignment: VerticalAlignment.Top
+ defaultImageSource: "asset:///images/egg.png"
+ onClicked: {
+ _app.cardDone(qsTr("Quack Quack.."));
+ }
+ }
+ ImageButton {
+ horizontalAlignment: HorizontalAlignment.Right
+ verticalAlignment: VerticalAlignment.Top
+ defaultImageSource: "asset:///images/egg.png"
+ onClicked: {
+ _app.cardDone(qsTr("Mmmmmm.."));
+ }
+ }
+ ImageButton {
+ horizontalAlignment: HorizontalAlignment.Left
+ verticalAlignment: VerticalAlignment.Center
+ defaultImageSource: "asset:///images/egg.png"
+ onClicked: {
+ _app.cardDone(qsTr("Delicio!"));
+ }
+ }
+ ImageButton {
+ horizontalAlignment: HorizontalAlignment.Center
+ verticalAlignment: VerticalAlignment.Center
+ defaultImageSource: "asset:///images/egg.png"
+ onClicked: {
+ _app.cardDone(qsTr("Yuck!"));
+ }
+ }
+ ImageButton {
+ horizontalAlignment: HorizontalAlignment.Right
+ verticalAlignment: VerticalAlignment.Center
+ defaultImageSource: "asset:///images/egg.png"
+ onClicked: {
+ _app.cardDone(qsTr("Whoa!"));
+ }
+ }
+ ImageButton {
+ horizontalAlignment: HorizontalAlignment.Left
+ verticalAlignment: VerticalAlignment.Bottom
+ defaultImageSource: "asset:///images/egg.png"
+ onClicked: {
+ _app.cardDone(qsTr("Love it.."));
+ }
+ }
+ ImageButton {
+ horizontalAlignment: HorizontalAlignment.Center
+ verticalAlignment: VerticalAlignment.Bottom
+ defaultImageSource: "asset:///images/egg.png"
+ onClicked: {
+ _app.cardDone(qsTr("Get it cooked already!"));
+ }
+ }
+ ImageButton {
+ horizontalAlignment: HorizontalAlignment.Right
+ verticalAlignment: VerticalAlignment.Bottom
+ defaultImageSource: "asset:///images/egg.png"
+ onClicked: {
+ _app.cardDone(qsTr("Sunny side up"));
+ }
+ }
+ }
+ }
+}
View
18 invoketarget/assets/Previewer.qml
@@ -0,0 +1,18 @@
+import bb.cascades 1.0
+
+NavigationPane {
+ backButtonsVisible: true
+ peekEnabled: true
+ Page {
+ titleBar: TitleBar {
+ title: qsTr("Previewer")
+ }
+ Container {
+ horizontalAlignment: HorizontalAlignment.Fill
+ ImageView {
+ imageSource: _app.uri
+ scalingMethod: ScalingMethod.AspectFit
+ }
+ }
+ }
+}
View
BIN  invoketarget/assets/images/background.png
Deleted file not rendered
View
BIN  invoketarget/assets/images/cancel.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  invoketarget/assets/images/egg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  invoketarget/assets/images/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  invoketarget/assets/images/save.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
126 invoketarget/assets/main.qml
@@ -1,104 +1,38 @@
/* Copyright (c) 2012 Research In Motion Limited.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
import bb.cascades 1.0
-NavigationPane {
-
- peekEnabled: true
-
- backButtonsVisible: _app.backButtonVisible
-
- Page {
- titleBar: TitleBar {
- title: _app.title
- }
-
+Page {
+ titleBar: TitleBar {
+ title: _app.title
+ }
+ ScrollView {
+ horizontalAlignment: HorizontalAlignment.Fill
+ verticalAlignment: VerticalAlignment.Top