2024-04-05 10:45:50 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
2022-12-20 00:32:02 +00:00
|
|
|
|
2023-06-30 12:34:42 +00:00
|
|
|
import AppLayouts.Communities.popups 1.0
|
2022-12-20 00:32:02 +00:00
|
|
|
|
|
|
|
import Storybook 1.0
|
2022-12-20 00:03:25 +00:00
|
|
|
import Models 1.0
|
2022-12-20 00:32:02 +00:00
|
|
|
|
|
|
|
SplitView {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
|
|
|
Logs { id: logs }
|
|
|
|
|
|
|
|
Pane {
|
|
|
|
id: pane
|
|
|
|
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
InDropdown {
|
|
|
|
parent: pane
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
2023-05-11 14:35:38 +00:00
|
|
|
closePolicy: Popup.NoAutoClose
|
|
|
|
|
2023-01-20 11:08:20 +00:00
|
|
|
allowChoosingEntireCommunity: allowChoosingEntireCommunityCheckBox.checked
|
|
|
|
showAddChannelButton: showAddChannelButtonCheckBox.checked
|
|
|
|
|
2022-12-20 00:32:02 +00:00
|
|
|
communityName: "Socks"
|
|
|
|
communityImage: ModelsData.icons.socks
|
|
|
|
communityColor: "red"
|
|
|
|
|
2022-12-20 00:03:25 +00:00
|
|
|
model: ChannelsModel {}
|
2022-12-20 00:32:02 +00:00
|
|
|
|
|
|
|
onAddChannelClicked: {
|
|
|
|
logs.logEvent("InDropdown::addChannelClicked")
|
|
|
|
}
|
|
|
|
|
|
|
|
onCommunitySelected: {
|
|
|
|
logs.logEvent("InDropdown::communitySelected")
|
|
|
|
}
|
|
|
|
|
|
|
|
onChannelsSelected: {
|
|
|
|
logs.logEvent("InDropdown::channelSelected", ["channels"], arguments)
|
|
|
|
}
|
|
|
|
|
|
|
|
Component.onCompleted: open()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
id: logsAndControlsPanel
|
|
|
|
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
|
|
|
|
logsView.logText: logs.logText
|
2023-01-20 11:08:20 +00:00
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
CheckBox {
|
|
|
|
id: allowChoosingEntireCommunityCheckBox
|
|
|
|
|
|
|
|
text: "Allow choosing entire community"
|
|
|
|
}
|
|
|
|
CheckBox {
|
|
|
|
id: showAddChannelButtonCheckBox
|
|
|
|
|
|
|
|
text: "Show \"Add channel\" button"
|
|
|
|
}
|
|
|
|
}
|
2022-12-20 00:32:02 +00:00
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Popups
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A482182
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A482231
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A482280
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A481935
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A482006
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=2934%3A482016
|