Skip to content

Commit

Permalink
network: UI overhaul
Browse files Browse the repository at this point in the history
Closes: #14
  • Loading branch information
plfiorini committed Apr 16, 2017
1 parent 8d0f7a1 commit 1662867
Show file tree
Hide file tree
Showing 13 changed files with 581 additions and 694 deletions.
116 changes: 0 additions & 116 deletions modules/network/contents/DetailsPane.qml

This file was deleted.

83 changes: 83 additions & 0 deletions modules/network/contents/IPAddressPage.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/****************************************************************************
* This file is part of Settings.
*
* Copyright (C) 2017 Pier Luigi Fiorini <[email protected]>
*
* $BEGIN_LICENSE:GPL3+$
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* $END_LICENSE$
***************************************************************************/

import QtQuick 2.0
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.0
import QtQuick.Controls.Material 2.0
import Fluid.Controls 1.0 as FluidControls
import Liri.Settings 1.0

PrefletPage {
anchors.fill: parent

ModuleContainer {
title: qsTr("Addresses")

FluidControls.ListItem {
text: qsTr("Configuration")
rightItem: ComboBox {
anchors.verticalCenter: parent.verticalCenter
model: [
qsTr("Automatic (DHCP)"),
qsTr("Manual"),
qsTr("Link-Local Only"),
qsTr("Disabled")
]
}
}
}

ModuleContainer {
title: qsTr("DNS")

FluidControls.ListItem {
text: qsTr("Automatic")
rightItem: Switch {
anchors.verticalCenter: parent.verticalCenter
}
}

MultiLineItem {
model: ListModel {
ListElement { address: "1.2.3.4" }
ListElement { address: "1.2.3.4" }
ListElement { address: "1.2.3.4" }
ListElement { address: "1.2.3.4" }
}
}
}

ModuleContainer {
title: qsTr("Routes")

MultiLineItem {
model: ListModel {
ListElement { address: "1.2.3.4" }
ListElement { address: "1.2.3.4" }
ListElement { address: "1.2.3.4" }
ListElement { address: "1.2.3.4" }
}
}
}
}
112 changes: 0 additions & 112 deletions modules/network/contents/IPv4Pane.qml

This file was deleted.

25 changes: 0 additions & 25 deletions modules/network/contents/IPv6Pane.qml

This file was deleted.

Loading

0 comments on commit 1662867

Please sign in to comment.