Debian Codegraph @

src/app/qml/dialogs/OpenArchiveDialog.qml

raw
1 import QtQuick 2.4
2 import Lomiri.Components 1.3
3 import Lomiri.Components.Popups 1.3
4
5 Dialog {
6 id: dialog
7 modal: true
8 title: i18n.tr("Archive file")
9 text: i18n.tr("Do you want to extract the archive here?")
10 property string filePath
11 property string fileName
12 property string archiveType
13 property var folderListPage
14 property var folderModel
15
16 Button {
17 id: extractButton
18 text: i18n.tr("Extract archive")
19 color: theme.palette.normal.positive
20 onClicked: {
21 PopupUtils.close(dialog)
22 folderModel.extractArchive(filePath, fileName, archiveType)
23 }
24 }
25
26 Button {
27 id: openExternallyButton
28 text: i18n.tr("Open with another app")
29 onClicked: {
30 PopupUtils.close(dialog)
31 openLocalFile(filePath)
32 }
33 }
34
35 Button {
36 id: cancelButton
37 text: i18n.tr("Cancel")
38 onClicked: {
39 PopupUtils.close(dialog)
40 }
41 }
42 }