..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72 | import QtQuick 2.2
import QtQuick.Layouts 1.1
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.networkmanagement 0.2 as PlasmaNM
Item {
id: mainWindow
property bool showSections: true
property Component statusIcon: Component {
Item {
anchors.fill: parent
PlasmaCore.IconItem {
id: connectionIcon
anchors.fill: parent
source: connectionIconProvider.connectionIcon
colorGroup: PlasmaCore.ColorScope.colorGroup
PlasmaComponents.BusyIndicator {
id: connectingIndicator
anchors.fill: parent
running: connectionIconProvider.connecting
visible: running
}
}
}
}
property Component panel: Component {
Panel {
id: dialogItem
Layout.minimumWidth: units.iconSizes.medium * 10
Layout.minimumHeight: units.gridUnit * 20
Layout.fillHeight: true
Layout.fillWidth: true
focus: true
}
}
function action_openEditor() {
handler.openEditor()
}
// Component.onCompleted: {
// plasmoid.removeAction("configure")
// plasmoid.setAction("openEditor",
// i18n("&Configure Network Connections..."),
// "preferences-system-network")
// }
PlasmaNM.NetworkStatus {
id: networkStatus
}
PlasmaNM.ConnectionIcon {
id: connectionIconProvider
}
PlasmaNM.Handler {
id: handler
}
}
|
|