Commit 3d840ff5 authored by Martin Kacej's avatar Martin Kacej

applet files moved from plasma-settings to plasma-mobile repo

parent 845f9024
install(FILES wifi.desktop DESTINATION ${SERVICES_INSTALL_DIR})
kpackage_install_package(package wifi kcms )
import QtQuick 2.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{
anchors.fill:parent
Rectangle{
//anchors.horizontalCenter: parent
width: units.gridUnit * 20
height: units.gridUnit * 5
color: "red"
Text {
text: qsTr("TEST")
}
}
}
import QtQuick 2.0
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
PlasmaComponents.ListItem {
width: parent.width
RowLayout {
width: parent.width
Text {
text: ssid
Layout.fillWidth: true
}
Rectangle {
anchors.horizontalCenter: parent.Center
width: units.gridUnit
height: units.gridUnit
color: status
MouseArea{
anchors.fill: parent
onClicked: {
connectionEditorDialog.open()
}
}
}
}
}
import QtQuick 2.0
ListModel {
id:wifiTesting
ListElement {
ssid: "Wifi test 1"
status: "red"
}
ListElement {
ssid: "Wifi test 2"
status: "green"
}
ListElement {
ssid: "Wifi test 3"
status: "red"
}
ListElement {
ssid: "Wifi test 4"
status: "red"
}
ListElement {
ssid: "Wifi test 5"
status: "red"
}
ListElement {
ssid: "Wifi test 6"
status: "red"
}
ListElement {
ssid: "Wifi test 7"
status: "red"
}
ListElement {
ssid: "Wifi test 8"
status: "red"
}
ListElement {
ssid: "Wifi test 9"
status: "red"
}
ListElement {
ssid: "Wifi test 3"
status: "red"
}
ListElement {
ssid: "Wifi test 3"
status: "red"
}
ListElement {
ssid: "Wifi test 3"
status: "red"
}
ListElement {
ssid: "Wifi test 3"
status: "red"
}
ListElement {
ssid: "Wifi test 3"
status: "red"
}
ListElement {
ssid: "Wifi test 3"
status: "red"
}
ListElement {
ssid: "Wifi test 3"
status: "red"
}
ListElement {
ssid: "Wifi test 3"
status: "red"
}
ListElement {
ssid: "Wifi test 3"
status: "red"
}
}
/*
*
* Copyright 2017 Martin Kacej <>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 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 Library General Public License for more details
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import QtQuick 2.0
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
import org.kde.active.settings 2.0 as ActiveSettings
//import org.kde.kirigami 1.0 as Kirigami
Item {
id: main
objectName: "wifiMain"
width: units.gridUnit * 30
height: width * 1.5
Column {
id: formLayout
spacing: units.gridUnit
anchors {
fill: parent
margins: units.gridUnit
leftMargin: units.gridUnit/2
}
RowLayout{
width: parent.width
PlasmaComponents.Label {
anchors.left: parent.left
text: i18n("Wifi")
Layout.fillWidth: true
}
PlasmaComponents.Switch {
id: wifiSwitch
checked: false
onClicked: {
}
}
}
Rectangle{
//separator
width: parent.width
height: units.gridUnit/8
border.color: "grey"
}
PlasmaComponents.Label {
anchors.left: parent.left
text: i18n("<b>Available wifi networks TEST</b>")
Layout.fillWidth: true
}
Rectangle{
id: wifiSection
anchors.left: parent.left
implicitHeight: 300 //units.gridUnit * 45 -100
//anchors.bottomMargin: 29
width: parent.width
border.color: "black"
//Layout.fillHeight:true
PlasmaExtras.ScrollArea{
anchors {
bottom: parent.bottom
left: parent.left
right: parent.right
fill: parent
}
ListView {
anchors.fill: parent
anchors.margins: units.gridUnit
width: parent.width
model: TestWifi{
id: wifiTestModel
}
delegate: RowItemDelegate{
id: wifiDelegate
}
}
}
}
PlasmaComponents.Button{
id: editorButton
text: "Connection editor"
onClicked: {
connectionEditorDialog.open()
}
}
}
PlasmaComponents.CommonDialog {
id: connectionEditorDialog
titleText: i18n("Connection Editor")
buttonTexts: [i18n("Close")]
onButtonClicked: close()
content: Loader {
id: connectionEditorDialogLoader
width: units.gridUnit * 22
height: units.gridUnit * 25
}
onStatusChanged: {
if (status == PlasmaComponents.DialogStatus.Open) {
connectionEditorDialogLoader.source = "ConnectionEditorDialog.qml"
connectionEditorDialogLoader.item.focusTextInput()
}
}
}
}
[Desktop Entry]
Name=Wifi settings
Comment=Network settings
Encoding=UTF-8
Type=Service
Icon=network-wireless-symbolic
X-KDE-ServiceTypes=Active/SettingsModule
X-KDE-PluginInfo-Author=Martin Kacej
X-KDE-PluginInfo-Email=m.kacej@atlas.sk
X-KDE-PluginInfo-Name=wifi
X-KDE-PluginInfo-Version=0.1
X-KDE-PluginInfo-Website=http://plasma-active.org
X-KDE-PluginInfo-Category=Online Services
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=true
X-KDE-FormFactors=handset,tablet,mediacenter
X-Plasma-MainScript=ui/Wifi.qml
[Desktop Entry]
Name=Network Settings
Comment=Wifi, Bluetooth, Mobile Networks Settings
Icon=network-wireless-symbolic
Exec=plasma-settings -m wifi
Type=Service
X-KDE-ServiceTypes=KCModule
#X-KDE-Library=kcm_mobile_power
X-KDE-ParentApp=kcontrol
X-KDE-FormFactors=handset,tablet,mediacenter
X-KDE-System-Settings-Parent-Category=display
X-KDE-Weight=70
X-KDE-Keywords=wifi,network
Categories=Qt;KDE;X-KDE-settings-system;
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