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
|
|
|
|
|
|
|
|
onViewProfileRequested:
|
|
|
|
logs.logEvent("onViewProfileRequested: " + address)
|
|
|
|
onViewMessagesRequested:
|
|
|
|
logs.logEvent("onViewMessagesRequested: " + address)
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|