2023-06-01 21:23:43 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
2023-06-23 06:17:04 +00:00
|
|
|
import AppLayouts.Communities.panels 1.0
|
2023-06-01 21:23:43 +00:00
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
import Models 1.0
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
Logs { id: logs }
|
|
|
|
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
|
|
|
Item {
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
2023-06-02 07:52:49 +00:00
|
|
|
Rectangle {
|
|
|
|
anchors.fill: holdersPanel
|
|
|
|
|
2023-06-29 16:02:27 +00:00
|
|
|
color: "transparent"
|
2023-06-02 07:52:49 +00:00
|
|
|
border.color: "lightgray"
|
|
|
|
anchors.margins: -1
|
|
|
|
}
|
|
|
|
|
2023-06-01 21:23:43 +00:00
|
|
|
SortableTokenHoldersPanel {
|
|
|
|
id: holdersPanel
|
|
|
|
|
|
|
|
anchors.centerIn: parent
|
|
|
|
width: 568
|
|
|
|
tokenName: "Aniversary"
|
|
|
|
|
|
|
|
TokenHoldersModel {
|
|
|
|
id: tokenHoldersModel
|
|
|
|
}
|
|
|
|
|
|
|
|
ListModel {
|
|
|
|
id: emptyModel
|
|
|
|
}
|
|
|
|
|
|
|
|
model: emptyCheckBox.checked ? emptyModel : tokenHoldersModel
|
|
|
|
showRemotelyDestructMenuItem: remotelyDestructCheckBox.checked
|
2023-07-31 13:42:38 +00:00
|
|
|
isAirdropEnabled: airdropCheckBox.checked
|
2023-06-01 21:23:43 +00:00
|
|
|
|
|
|
|
onViewProfileRequested:
|
2023-08-17 07:24:14 +00:00
|
|
|
logs.logEvent("onViewProfileRequested: " + contactId)
|
2023-06-01 21:23:43 +00:00
|
|
|
onViewMessagesRequested:
|
2023-08-17 07:24:14 +00:00
|
|
|
logs.logEvent("onViewMessagesRequested: " + contactId)
|
2023-06-01 21:23:43 +00:00
|
|
|
onAirdropRequested:
|
|
|
|
logs.logEvent("onAirdropRequested: " + address)
|
|
|
|
onRemoteDestructRequested:
|
|
|
|
logs.logEvent("onRemoteDestructRequested: " + address)
|
|
|
|
onKickRequested:
|
|
|
|
logs.logEvent("onKickRequested: " + address)
|
|
|
|
onBanRequested:
|
|
|
|
logs.logEvent("onBanRequested: " + address)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
CheckBox {
|
|
|
|
id: emptyCheckBox
|
|
|
|
|
|
|
|
text: "Empty"
|
|
|
|
}
|
|
|
|
CheckBox {
|
|
|
|
id: remotelyDestructCheckBox
|
|
|
|
|
|
|
|
checked: true
|
|
|
|
text: "Show \"Remotely Destruct\" menu item"
|
|
|
|
}
|
2023-07-31 13:42:38 +00:00
|
|
|
CheckBox {
|
|
|
|
id: airdropCheckBox
|
|
|
|
|
|
|
|
text: "Airdrop enabled"
|
|
|
|
checked: true
|
|
|
|
}
|
2023-06-01 21:23:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Panels
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29566-690307&mode=design&t=xJYwzqj8f8v72gYz-0
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29566-690334&mode=design&t=xJYwzqj8f8v72gYz-0
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29566-690939&mode=design&t=xJYwzqj8f8v72gYz-0
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29566-690557&mode=design&t=xJYwzqj8f8v72gYz-0
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29566-691130&mode=design&t=xJYwzqj8f8v72gYz-0
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29566-691320&mode=design&t=xJYwzqj8f8v72gYz-0
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29566-691513&mode=design&t=xJYwzqj8f8v72gYz-0
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?type=design&node-id=29566-691703&mode=design&t=xJYwzqj8f8v72gYz-0
|