Warning, /rolisteam/rolisteam/src/libraries/qml_views/Campaign/IntegrityPage.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick
0002 import QtQuick.Controls
0003 import QtQuick.Layouts
0004
0005 Item {
0006 id: root
0007 ColumnLayout {
0008 anchors.fill: parent
0009 GroupBox {
0010 title: qsTr("Missing files:")
0011 Layout.fillWidth: true
0012 Layout.fillHeight: true
0013
0014 ListView {
0015 id: view
0016 clip: true
0017 anchors.fill: parent
0018 model: _missingFilesModel
0019 delegate: Pane {
0020 width: view.width
0021 height: lyt.implicitHeight
0022 padding: 0
0023 ButtonGroup {
0024 buttons: lyt.children
0025 }
0026 RowLayout {
0027 id: lyt
0028 anchors.fill: parent
0029 Label {
0030 id: lbl1
0031 text: model.name
0032 Layout.fillWidth: true
0033 elide: Text.ElideRight
0034 }
0035 ToolButton {
0036 id: act1Btn
0037 ToolTip.text: model.actions[0]
0038 checkable: true
0039 icon.name: model.icons[0]
0040 icon.color: "transparent"
0041 onClicked: _dialog.setAction(0, model.index, 0)
0042 checked: model.action === 0
0043 }
0044 ToolButton {
0045 ToolTip.text: model.actions[1]
0046 checkable: true
0047 icon.name: model.icons[1]
0048 icon.color: "transparent"
0049 onClicked: _dialog.setAction(0, model.index, 1)
0050 checked: model.action === 1
0051 }
0052 }
0053 }
0054 }
0055 }
0056 GroupBox {
0057
0058 title: qsTr("Unmanaged files:")
0059 Layout.fillWidth: true
0060 Layout.fillHeight: true
0061 ListView {
0062 id: view2
0063 anchors.fill: parent
0064 clip: true
0065 model: _unmanagedFilesModel
0066 delegate: Pane {
0067 width: view2.width
0068 height: lyt2.implicitHeight
0069 padding: 0
0070 ButtonGroup {
0071 buttons: lyt2.children
0072 }
0073 RowLayout {
0074 id: lyt2
0075 anchors.fill: parent
0076 Label {
0077 id: lbl2
0078 text: model.name
0079 Layout.fillWidth: true
0080 elide: Text.ElideRight
0081 }
0082 ToolButton {
0083 id: act2Btn
0084 ToolTip.text: model.actions[0]
0085 icon.name: model.icons[0]
0086 icon.color: "transparent"
0087 checkable: true
0088 // checked: model.action === 0
0089 onClicked: _dialog.setAction(1, model.index, checked ? 0 : -1)
0090 }
0091 ToolButton {
0092 ToolTip.text: model.actions[1]
0093 icon.name: model.icons[1]
0094 icon.color: "transparent"
0095 checkable: true
0096 // checked: model.action === 1
0097 onClicked: _dialog.setAction(1, model.index, checked ? 1 : -1)
0098 }
0099 }
0100 }
0101 }
0102 }
0103 RowLayout {
0104 Item {
0105 Layout.fillWidth: true
0106 }
0107 Button {
0108 icon.name: "apply"
0109 icon.color: "transparent"
0110 enabled: _dialog ? _dialog.canValidate : false
0111 opacity: enabled ? 1.0 : 0.4
0112 onClicked: _dialog.validate()
0113 }
0114 Button {
0115 icon.name: "cancel"
0116 icon.color: "transparent"
0117 onClicked: _dialog.refuse()
0118 }
0119 }
0120 }
0121 }