You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// next trick: all properties from query are read-only
90
+
// but we can use the data, which is read-write
91
+
data =picker.selectedFile
92
+
resetFields()
84
93
}
85
94
},
86
95
ActionItem {
@@ -132,23 +141,60 @@ Page {
132
141
}
133
142
}
134
143
]
135
-
titleBar: {
136
-
title:qsTr("Invoke ODS as Card vs App") +Retranslate.onLanguageChanged
144
+
titleBar: TitleBar {
145
+
id: titleBarId
146
+
title:qsTr("Invoke ODS as APP vs Card") +Retranslate.onLanguageChanged
147
+
visibility:ChromeVisibility.Visible
137
148
}
138
149
Container {
139
150
layout: DockLayout {
140
151
}
152
+
TextArea {
153
+
id: theNextStep
154
+
editable:false
155
+
text:""
156
+
textStyle.base:SystemDefaults.TextStyles.BodyText
157
+
verticalAlignment:VerticalAlignment.Top
158
+
horizontalAlignment:HorizontalAlignment.Left
159
+
translationX:80
160
+
translationY:40
161
+
}
141
162
TextArea {
142
163
id: fileLabel
143
164
editable:false
144
-
text:qsTr("[selected file]")
165
+
visible:false
166
+
text:""
145
167
textStyle.base:SystemDefaults.TextStyles.BodyText
146
-
verticalAlignment:VerticalAlignment.Center
147
-
horizontalAlignment:HorizontalAlignment.Center
168
+
verticalAlignment:VerticalAlignment.Top
169
+
horizontalAlignment:HorizontalAlignment.Left
170
+
translationX:80
171
+
translationY:360
148
172
}
149
173
}
174
+
functionfileActions() {
175
+
theNextStep.text=qsTr("You have selected the file below.\nEmbed the card from ODS:\nCloud Action (Previewer/Composer)\nor Share Action (Previewer)") +Retranslate.onLanguageChanged
176
+
fileLabel.text=picker.selectedFile
177
+
fileLabel.visible=true
178
+
page.addAction(cloudActionPreviewer,0)
179
+
page.addAction(cloudActionComposer,1)
180
+
page.addAction(shareAction,2)
181
+
//cloudActionPreviewer.enabled = true
182
+
//cloudActionComposer.enabled = true
183
+
//shareAction.enabled = true
184
+
}
185
+
functionresetFields() {
186
+
fileLabel.visible=false
187
+
page.removeAction(cloudActionPreviewer)
188
+
page.removeAction(cloudActionComposer)
189
+
page.removeAction(shareAction)
190
+
//cloudActionPreviewer.enabled = false
191
+
//cloudActionComposer.enabled = false
192
+
//shareAction.enabled = false
193
+
theNextStep.text=qsTr("Select a file from Overflow Menu:\n\nDocument, Image,\nVideo or Music)\n\nor invoke ODS as Application:\nOpen in... Action") +Retranslate.onLanguageChanged
0 commit comments