10import QtQuick.Controls
15import org.mauikit.controls 1.3 as Maui
16import org.mauikit.filebrowsing 1.3 as FB
17import org.mauikit.imagetools 1.3 as IT
40 property alias url : _infoModel.url
46 title: _infoModel.fileName
48 spacing: Maui.Style.space.huge
50 footBar.rightContent: [
55 onClicked: _editTagDialog.open()
60 icon.name:
"file-open"
67 Layout.fillWidth:
true
68 Layout.preferredHeight: 200
69 color:
Qt.darker(
Maui.Theme.backgroundColor, 1.1)
76 fillMode:
Image.PreserveAspectCrop
89 anchors.centerIn: parent
91 radius:
Maui.Style.radiusV
96 anchors.centerIn: parent
97 text: _img.implicitWidth +
" x " + _img.implicitHeight
106 Layout.fillWidth:
true
109 list.urls: [control.url]
116 property alias key : _keyField.text
117 property alias value : _valueField.text
120 message: i18nd("mauikitimagetools","Editing Exif tag")
127 Layout.fillWidth:
true
128 placeholderText:
i18nd(
"mauikitimagetools",
"Tag key")
134 Layout.fillWidth:
true
135 placeholderText:
i18nd(
"mauikitimagetools",
"Tag value")
140 console.log(_editTagDialog.key, _editTagDialog.value)
141 if(_infoModel.editTag(_editTagDialog.key, _editTagDialog.value))
143 _editTagDialog.close()
146 _editTagDialog.alert(
i18nd(
"mauikitimagetools",
"Could not edit the tag"), 2)
152 _editTagDialog.close()
155 function set(key, value)
157 _editTagDialog.key = key
158 _editTagDialog.value = value
159 _editTagDialog.open()
167 property string value
169 title:
i18n (
"Remove")
170 message: i18nd("mauikitimagetools","Are you sure you want to remove the Exif tag %1?", _removeTagDialog.value)
176 if(_infoModel.removeTag(_removeTagDialog.key))
178 _removeTagDialog.close()
181 _removeTagDialog.alert(i18nd(
"mauikitimagetools",
"Could not remove the tag"), 2)
187 _removeTagDialog.close()
190 function set(key, value)
192 _removeTagDialog.key = key
193 _removeTagDialog.value = value
194 _removeTagDialog.open()
200 Layout.fillWidth:
true
202 title:
i18nd(
"mauikitimagetools",
"Details")
203 description: i18nd("mauikitimagetools","File information")
207 model:
Maui.BaseModel
209 list: IT.PicInfoModel
215 delegate:
Maui.FlexSectionItem
217 visible: model.value &&
String(model.value).length > 0
218 label1.text: model.name
219 label2.text: model.value
224 icon.name:
"document-edit"
225 onClicked: _editTagDialog.set(model.key, model.value)
231 icon.name:
"edit-delete"
232 onClicked: _removeTagDialog.set(model.key, model.value)
240 Layout.fillWidth:
true
247 visible: _infoModel.lat !== 0 && _infoModel.lon !== 0
248 color:
Maui.Theme.backgroundColor
249 Layout.fillWidth:
true
250 Layout.preferredHeight: 400
269 latitude: _infoModel.lat
270 longitude:_infoModel.lon
277 color:
Maui.Theme.highlightColor
280 Component.onCompleted:
282 map.addMapItem(
map.circle)
QString i18nd(const char *domain, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
QString name(GameStandardAction id)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QTextStream & center(QTextStream &stream)
QFuture< void > map(Iterator begin, Iterator end, MapFunctor &&function)