2022-12-20 00:03:25 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
2023-02-08 12:39:47 +00:00
|
|
|
import QtQuick.Layouts 1.14
|
2022-12-20 00:03:25 +00:00
|
|
|
|
2023-06-23 06:17:04 +00:00
|
|
|
import AppLayouts.Communities.views 1.0
|
2022-12-20 00:03:25 +00:00
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
import Storybook 1.0
|
2022-12-20 00:03:25 +00:00
|
|
|
import Models 1.0
|
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
SplitView {
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
SplitView.fillWidth: true
|
2022-12-20 00:03:25 +00:00
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
Logs { id: logs }
|
2022-12-20 00:03:25 +00:00
|
|
|
|
2023-01-20 11:22:04 +00:00
|
|
|
Pane {
|
2023-02-08 12:39:47 +00:00
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
2023-06-26 11:48:45 +00:00
|
|
|
EditPermissionView {
|
|
|
|
id: editPermissionView
|
2023-02-08 12:39:47 +00:00
|
|
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
isEditState: isEditStateCheckBox.checked
|
|
|
|
isPrivate: isPrivateCheckBox.checked
|
2023-03-02 15:58:26 +00:00
|
|
|
permissionDuplicated: isPermissionDuplicatedCheckBox.checked
|
|
|
|
permissionTypeLimitReached: isLimitReachedCheckBox.checked
|
2022-12-20 00:03:25 +00:00
|
|
|
|
2023-03-07 08:47:04 +00:00
|
|
|
assetsModel: AssetsModel {}
|
|
|
|
collectiblesModel: CollectiblesModel {}
|
|
|
|
channelsModel: ChannelsModel {}
|
2023-01-20 11:22:04 +00:00
|
|
|
|
2023-03-07 08:47:04 +00:00
|
|
|
communityDetails: QtObject {
|
2023-06-29 22:05:46 +00:00
|
|
|
readonly property string id: "id_sox"
|
2023-03-07 08:47:04 +00:00
|
|
|
readonly property string name: "Socks"
|
|
|
|
readonly property string image: ModelsData.icons.socks
|
|
|
|
readonly property string color: "red"
|
2023-06-29 16:02:27 +00:00
|
|
|
readonly property bool owner: isOwnerCheckBox.checked
|
2022-12-20 00:03:25 +00:00
|
|
|
}
|
|
|
|
|
2023-03-07 08:47:04 +00:00
|
|
|
onCreatePermissionClicked: {
|
2023-06-26 11:48:45 +00:00
|
|
|
logs.logEvent("EditPermissionView::onCreatePermissionClicked")
|
2022-12-20 00:03:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-20 11:22:04 +00:00
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
2023-02-08 12:39:47 +00:00
|
|
|
SplitView.preferredHeight: 160
|
2023-01-20 11:22:04 +00:00
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
|
2023-02-08 12:39:47 +00:00
|
|
|
ColumnLayout {
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
id: isOwnerCheckBox
|
|
|
|
|
|
|
|
text: "Is owner"
|
|
|
|
}
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
id: isEditStateCheckBox
|
|
|
|
|
|
|
|
text: "Is edit state"
|
|
|
|
}
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
id: isPrivateCheckBox
|
|
|
|
|
|
|
|
text: "Is private"
|
|
|
|
}
|
2023-02-14 20:39:18 +00:00
|
|
|
|
|
|
|
CheckBox {
|
2023-03-02 15:58:26 +00:00
|
|
|
id: isPermissionDuplicatedCheckBox
|
2023-02-14 20:39:18 +00:00
|
|
|
|
2023-03-02 15:58:26 +00:00
|
|
|
text: "Is permission duplicated"
|
|
|
|
}
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
id: isLimitReachedCheckBox
|
|
|
|
|
|
|
|
text: "Is limit reached"
|
2023-02-14 20:39:18 +00:00
|
|
|
}
|
2023-02-08 12:39:47 +00:00
|
|
|
}
|
|
|
|
|
2023-02-08 23:22:57 +00:00
|
|
|
Button {
|
|
|
|
text: "Reset changes"
|
2023-02-08 12:39:47 +00:00
|
|
|
|
2023-06-26 11:48:45 +00:00
|
|
|
onClicked: editPermissionView.resetChanges()
|
2023-02-08 12:39:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
2023-06-26 11:48:45 +00:00
|
|
|
text: "Is dirty: " + editPermissionView.dirty
|
2023-02-08 12:39:47 +00:00
|
|
|
}
|
2023-01-20 11:22:04 +00:00
|
|
|
}
|
|
|
|
}
|
2022-12-20 00:03:25 +00:00
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Views
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=22253%3A486103&t=JrCIfks1zVzsk3vn-0
|