Commit 8de31cf0 authored by Martin Kacej's avatar Martin Kacej

Connection editor dialog reworked

parent 2d6ffa8d
/*
*
* Copyright 2017 Martin Kacej <>
......@@ -31,24 +32,23 @@ PlasmaExtras.ScrollArea {
ColumnLayout{
id: columnlayout
anchors.fill: parent
//anchors.fill: parent
PlasmaComponents.Label {
anchors.left: parent.left
text: i18n("SSID")
}
PlasmaComponents.TextField {
width: 300 // units.GridUnit * 100
Layout.fillWidth: true
placeholderText: i18n("None")
}
PlasmaComponents.Label {
anchors.left: parent.left
text: i18n("Security")
}
Controls.ComboBox {
id: combobox
Layout.fillWidth: true
model: [i18n("None"), i18n("WEP Key"), i18n("Dynamic WEP"), i18n("WPA/WPA2 Personal"), i18n("WPA/WPA2 Enterprise")]
}
RowLayout {
......@@ -59,17 +59,20 @@ PlasmaExtras.ScrollArea {
}
PlasmaComponents.Switch {
id: advancedOptionsSwitch
//checked: false
onCheckedChanged: {
proxydetailsviewid.visible = checked
columnlayout.update()
}
checked: false
}
}
IPDetailsSection{
visible: advancedOptionsSwitch.checked
}
ProxyDetailsSection{
visible: advancedOptionsSwitch.checked
}
}
ProxyDetailsView{
id:proxydetailsviewid
anchors.bottom: columnlayout.bottom
anchors.left: parent.left
function save(){
console.info('Connection saved')
}
}
import QtQuick 2.0
import QtQuick 2.2
import QtQuick.Controls 1.4 as Controls
import QtQuick.Layouts 1.2
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
Item {
ColumnLayout{
spacing: units.gridUnit
PlasmaComponents.Label{
text: i18n("IP Settings")
}
Controls.CheckBox{
id: manualIPCheckbox
checked: false
onCheckedChanged: {
manuaIPSettings.visible = checked
}
}
ColumnLayout{
id: manuaIPSettings
anchors.top: manualIPCheckbox.bottom
visible: false
PlasmaComponents.Label{
text: i18n("IP Address")
}
Controls.TextField{
placeholderText: i18n("193.168.1.128")
}
PlasmaComponents.Label{
text: i18n("Gateway")
}
Controls.TextField{
placeholderText: i18n("192.168.1.1")
}
PlasmaComponents.Label{
text: i18n("Network proxy length")
}
Controls.TextField{
placeholderText: i18n("24")
}
PlasmaComponents.Label{
text: i18n("DNS")
}
Controls.TextField{
placeholderText: i18n("8.8.8.8")
}
PlasmaComponents.Label{
text: i18n("Network proxy length")
}
Controls.TextField{
placeholderText: i18n("24")
}
}
}
import QtQuick 2.2
import QtQuick.Controls 1.4 as Controls
import QtQuick.Layouts 1.2
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
ColumnLayout{
spacing: units.gridUnit
PlasmaComponents.Label{
text:i18n("Proxy settings")
}
/*
Controls.ComboBox{
id: proxyComboBox
model: [i18n("None"),i18n("Manual")]
}
*/
Controls.CheckBox{
id: manualProxyCheck
checked: false
onCheckedChanged: {
manuaProxylSettings.visible = checked
}
}
Item{
id: manuaProxylSettings
anchors.top: manualProxyCheck.bottom
visible: false
Controls.TextField{
placeholderText: i18n("None")
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment