Warning, /maui/arca/src/controls/previewer/FileProperties.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.15 0002 import QtQuick.Controls 2.15 0003 import QtQuick.Layouts 1.13 0004 import org.mauikit.controls 1.3 as Maui 0005 import org.maui.index 1.0 as Index 0006 0007 0008 ColumnLayout 0009 { 0010 id: control 0011 0012 property alias url : _permissions.url 0013 0014 Index.FileProperties 0015 { 0016 id: _permissions 0017 } 0018 0019 Index.Permission 0020 { 0021 id: _ownerPermissions 0022 url: control.url 0023 user: Index.Permission.OWNER 0024 } 0025 0026 0027 Index.Permission 0028 { 0029 id: _groupPermissions 0030 url: control.url 0031 user: Index.Permission.GROUP 0032 } 0033 0034 Index.Permission 0035 { 0036 id: _otherPermissions 0037 url: control.url 0038 user: Index.Permission.OTHER 0039 } 0040 0041 Maui.SectionGroup 0042 { 0043 Layout.fillWidth: true 0044 title: i18n("Permissions") 0045 description: i18n("Set file permissions to access this file") 0046 0047 Maui.SectionItem 0048 { 0049 label1.text: i18n("Owner") 0050 0051 Maui.ToolActions 0052 { 0053 Layout.fillWidth: true 0054 autoExclusive: false 0055 0056 Action 0057 { 0058 text: i18n("Read") 0059 checked: _ownerPermissions.read 0060 onTriggered: _ownerPermissions.read = !_ownerPermissions.read 0061 } 0062 0063 Action 0064 { 0065 text: i18n("Write") 0066 checked: _ownerPermissions.write 0067 0068 } 0069 0070 Action 0071 { 0072 text: i18n("Execute") 0073 checked: _ownerPermissions.execute 0074 } 0075 } 0076 } 0077 0078 Maui.SectionItem 0079 { 0080 label1.text: i18n("Group") 0081 0082 Maui.ToolActions 0083 { 0084 Layout.fillWidth: true 0085 autoExclusive: false 0086 // checkable: true 0087 0088 Action 0089 { 0090 text: i18n("Read") 0091 checked: _groupPermissions.read 0092 0093 } 0094 0095 Action 0096 { 0097 text: i18n("Write") 0098 checked: _groupPermissions.write 0099 0100 0101 } 0102 0103 Action 0104 { 0105 text: i18n("Execute") 0106 checked: _groupPermissions.execute 0107 } 0108 } 0109 } 0110 0111 Maui.SectionItem 0112 { 0113 label1.text: i18n("Everyone") 0114 0115 Maui.ToolActions 0116 { 0117 Layout.fillWidth: true 0118 autoExclusive: false 0119 0120 Action 0121 { 0122 text: i18n("Read") 0123 checked: _otherPermissions.read 0124 } 0125 0126 Action 0127 { 0128 text: i18n("Write") 0129 checked: _otherPermissions.read 0130 } 0131 0132 Action 0133 { 0134 text: i18n("Execute") 0135 checked: _otherPermissions.execute 0136 0137 } 0138 } 0139 } 0140 0141 } 0142 0143 Maui.SectionGroup 0144 { 0145 Layout.fillWidth: true 0146 0147 title: i18n("Ownership") 0148 description: i18n("Set file permissions to access this file") 0149 0150 Maui.SectionItem 0151 { 0152 label1.text: i18n("Owner") 0153 label2.text: _permissions.owner 0154 0155 } 0156 0157 Maui.SectionItem 0158 { 0159 label1.text: i18n("Group") 0160 label2.text: _permissions.group 0161 0162 } 0163 Maui.SectionItem 0164 { 0165 label1.text: i18n("Users") 0166 Maui.ComboBox 0167 { 0168 model: _permissions.users 0169 } 0170 } 0171 0172 Maui.SectionItem 0173 { 0174 label1.text: i18n("Groups") 0175 Maui.ComboBox 0176 { 0177 model: _permissions.groups 0178 } 0179 } 0180 } 0181 }