// PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView
PullDownMenu {
+ MenuItem {
+ text: "About"
+ onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml"))
+ }
MenuItem {
text: "Configure"
onClicked: pageStack.push(Qt.resolvedUrl("ConfigurePage.qml"))
spacing: Theme.paddingLarge
PageHeader {
- title: "OpenVPN Control"
+ title: "OpenVPN Rig"
}
Row {
spacing: Theme.paddingLarge
id: connect
text: "Connect"
enabled: true
- onClicked: VpnControl.vpnConnect()
+ onClicked: {
+ VpnControl.logAppend('\n')
+ VpnControl.vpnConnect()
+ }
}
Button {
id : disconnect
onClicked: VpnControl.vpnDisconnect();
}
}
+
Label {
id: statusText
text: "No status"
BusyIndicator {
id: busy
running: false
- size: BusyIndicatorSize.Large
+ size: BusyIndicatorSize.Medium
anchors.verticalCenter: parent.verticalCenter
}
}
+
+ Rectangle {
+ color: "transparent"
+ border {
+ color: Theme.highlightBackgroundColor
+ width: 1
+ }
+ //radius: Theme.paddingSmall
+ anchors.horizontalCenter: parent.horizontalCenter
+ height: (24 * Theme.fontSizeTiny) + (2 * Theme.paddingLarge)
+ width: parent.width - 2 * Theme.paddingLarge
+ x: Theme.paddingLarge
+
+ //TextEdit {
+ Label {
+ id: logOutput
+ textFormat: Text.PlainText
+ width: parent.width - 2 * Theme.paddingSmall
+ height: parent.height - 0 * Theme.paddingSmall
+ wrapMode: Text.WrapAnywhere
+ font.pixelSize: Theme.fontSizeTiny * 0.6
+ font.family: "Monospace"
+ color: Theme.highlightColor
+ visible: true
+ text: VpnControl.logText
+ verticalAlignment: Text.AlignBottom
+ x: Theme.paddingSmall
+ y: Theme.paddingSmall
+ //readOnly: true
+ clip: true
+ }
+ }
}
}
}