2024-10-28 14:24:53 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
2024-11-07 21:52:46 +00:00
|
|
|
import QtQuick.Layouts 1.15
|
2022-11-16 09:41:32 +00:00
|
|
|
|
2024-10-28 14:24:53 +00:00
|
|
|
import AppLayouts.Chat.panels 1.0
|
2022-11-16 09:41:32 +00:00
|
|
|
|
2022-12-06 07:55:50 +00:00
|
|
|
import Models 1.0
|
2022-11-16 09:41:32 +00:00
|
|
|
|
2024-11-07 21:52:46 +00:00
|
|
|
import utils 1.0
|
2022-11-16 09:41:32 +00:00
|
|
|
|
2024-10-28 14:24:53 +00:00
|
|
|
SplitView {
|
2022-11-16 09:41:32 +00:00
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
2024-11-07 21:52:46 +00:00
|
|
|
Pane {
|
2022-11-16 09:41:32 +00:00
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
2024-11-07 21:52:46 +00:00
|
|
|
padding: 100
|
2024-10-28 14:24:53 +00:00
|
|
|
|
2024-11-07 21:52:46 +00:00
|
|
|
Rectangle {
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.margins: -1
|
|
|
|
color: "transparent"
|
|
|
|
border.color: "black"
|
|
|
|
}
|
2022-11-16 09:41:32 +00:00
|
|
|
|
2024-11-07 21:52:46 +00:00
|
|
|
UserListPanel {
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
usersModel: UsersModel {}
|
|
|
|
|
|
|
|
label: labelTextField.text
|
|
|
|
isAdmin: isAdminCheckBox.checked
|
|
|
|
chatType: chatTypeSelector.currentValue
|
|
|
|
communityMemberReevaluationStatus:
|
|
|
|
communityMemberReevaluationStatusSelector.currentValue
|
2022-11-16 09:41:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-11-07 21:52:46 +00:00
|
|
|
Pane {
|
2022-11-16 09:41:32 +00:00
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
|
2024-11-07 21:52:46 +00:00
|
|
|
ColumnLayout {
|
|
|
|
RowLayout {
|
|
|
|
Label {
|
|
|
|
text: "Label:"
|
|
|
|
}
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
id: labelTextField
|
|
|
|
|
|
|
|
text: "Some label here"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
id: isAdminCheckBox
|
|
|
|
|
|
|
|
text: "Is admin (allows to remove used from private group chat)"
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
Label {
|
|
|
|
text: "Chat Type:"
|
|
|
|
}
|
|
|
|
|
|
|
|
ComboBox {
|
|
|
|
id: chatTypeSelector
|
|
|
|
|
|
|
|
textRole: "text"
|
|
|
|
valueRole: "value"
|
|
|
|
model: [
|
|
|
|
{ text: "Unknown", value: Constants.chatType.unknown },
|
|
|
|
{ text: "Category", value: Constants.chatType.category },
|
|
|
|
{ text: "One-to-One", value: Constants.chatType.oneToOne },
|
|
|
|
{ text: "Public Chat", value: Constants.chatType.publicChat },
|
|
|
|
{ text: "Private Group Chat", value: Constants.chatType.privateGroupChat },
|
|
|
|
{ text: "Profile", value: Constants.chatType.profile },
|
|
|
|
{ text: "Community Chat", value: Constants.chatType.communityChat }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
Label {
|
|
|
|
text: "Community member reevaluation status:"
|
|
|
|
}
|
|
|
|
|
|
|
|
ComboBox {
|
|
|
|
id: communityMemberReevaluationStatusSelector
|
|
|
|
|
|
|
|
textRole: "text"
|
|
|
|
valueRole: "value"
|
|
|
|
model: [
|
|
|
|
{ text: "Unknown", value: Constants.CommunityMemberReevaluationStatus.None },
|
|
|
|
{ text: "InProgress", value: Constants.CommunityMemberReevaluationStatus.InProgress },
|
|
|
|
{ text: "Done", value: Constants.CommunityMemberReevaluationStatus.Done }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-16 09:41:32 +00:00
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Panels
|
2024-11-07 21:52:46 +00:00
|
|
|
// status: good
|