2018-11-22 00:01:17 +00:00
|
|
|
import QtGraphicalEffects 1.0
|
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.4
|
|
|
|
import QtQuick.Controls.Material 2.0
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtQuick.Window 2.11
|
2019-02-12 22:47:23 +00:00
|
|
|
import QtQuick.Controls 1.4
|
2018-11-22 00:01:17 +00:00
|
|
|
|
|
|
|
import "../widgets"
|
2019-02-12 22:47:23 +00:00
|
|
|
import "../styles"
|
2018-11-22 00:01:17 +00:00
|
|
|
|
|
|
|
ColumnLayout { // settingsPane
|
2019-04-16 19:40:19 +00:00
|
|
|
id: root
|
2018-11-22 00:01:17 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
|
|
|
|
StackToolbar {
|
2019-04-16 19:40:19 +00:00
|
|
|
id: stb
|
2019-03-11 21:31:53 +00:00
|
|
|
text: qsTr("create-group-title")
|
2018-11-22 00:01:17 +00:00
|
|
|
aux.visible: false
|
2019-04-16 19:40:19 +00:00
|
|
|
membership.visible: false
|
2018-11-22 00:01:17 +00:00
|
|
|
}
|
|
|
|
|
2019-04-16 19:40:19 +00:00
|
|
|
Flickable {
|
|
|
|
anchors.top: stb.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
boundsBehavior: Flickable.StopAtBounds
|
|
|
|
clip:true
|
|
|
|
contentWidth: tehcol.width
|
|
|
|
contentHeight: tehcol.height
|
|
|
|
|
2019-02-12 22:47:23 +00:00
|
|
|
Column {
|
2019-04-16 19:40:19 +00:00
|
|
|
id: tehcol
|
2019-02-12 22:47:23 +00:00
|
|
|
leftPadding: 10
|
|
|
|
spacing: 5
|
2019-04-16 19:40:19 +00:00
|
|
|
width: root.width
|
2019-02-12 22:47:23 +00:00
|
|
|
|
2018-11-22 00:01:17 +00:00
|
|
|
ScalingLabel {
|
2019-03-11 21:31:53 +00:00
|
|
|
//: Server label
|
|
|
|
text: qsTr("server-label") + ":"
|
2018-11-22 00:01:17 +00:00
|
|
|
}
|
|
|
|
|
2019-02-12 22:47:23 +00:00
|
|
|
TextField {
|
2018-11-22 00:01:17 +00:00
|
|
|
id: txtServer
|
2019-04-16 19:40:19 +00:00
|
|
|
style: CwtchTextFieldStyle{ width: tehcol.width * 0.8 }
|
2019-02-13 00:23:35 +00:00
|
|
|
text: "2c3kmoobnyghj2zw6pwv7d57yzld753auo3ugauezzpvfak3ahc4bdyd"
|
2018-11-22 00:01:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ScalingLabel{
|
2019-03-11 21:31:53 +00:00
|
|
|
//: Group name label
|
|
|
|
text: qsTr("group-name-label") + ":"
|
2018-11-22 00:01:17 +00:00
|
|
|
}
|
|
|
|
|
2019-02-12 22:47:23 +00:00
|
|
|
TextField {
|
2018-11-22 00:01:17 +00:00
|
|
|
id: txtGroupName
|
2019-04-16 19:40:19 +00:00
|
|
|
style: CwtchTextFieldStyle{ width: tehcol.width * 0.8 }
|
2019-03-11 21:31:53 +00:00
|
|
|
//: default suggested group name
|
|
|
|
text: qsTr("default-group-name")
|
2018-11-22 00:01:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SimpleButton {
|
2019-03-11 21:31:53 +00:00
|
|
|
//: create group button
|
|
|
|
text: qsTr("create-group-btn")
|
2018-11-22 00:01:17 +00:00
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
gcd.createGroup(txtServer.text, txtGroupName.text)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-12 22:47:23 +00:00
|
|
|
}//end of column with padding
|
2019-04-16 19:40:19 +00:00
|
|
|
}//end of flickable
|
2018-11-22 00:01:17 +00:00
|
|
|
}
|