14 changed files with 159 additions and 164 deletions
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 7.3 KiB |
@ -1,49 +0,0 @@
|
||||
import QtQuick |
||||
import QtQuick.Layouts |
||||
import QtQuick.Controls |
||||
|
||||
import "../controls" |
||||
|
||||
WizardComponent { |
||||
valid: true |
||||
|
||||
function apply() { |
||||
wizard_data['autoconnect'] = serverconnectgroup.checkedButton.connecttype === 'auto' |
||||
} |
||||
|
||||
ColumnLayout { |
||||
width: parent.width |
||||
|
||||
Label { |
||||
Layout.fillWidth: true |
||||
text: qsTr('How do you want to connect to a server?') |
||||
wrapMode: Text.Wrap |
||||
} |
||||
|
||||
InfoTextArea { |
||||
Layout.fillWidth: true |
||||
text: qsTr('Electrum communicates with remote servers to get information about your transactions and addresses. The servers all fulfill the same purpose only differing in hardware. In most cases you simply want to let Electrum pick one at random. However if you prefer feel free to select a server manually.') |
||||
} |
||||
|
||||
ButtonGroup { |
||||
id: serverconnectgroup |
||||
onCheckedButtonChanged: checkIsLast() |
||||
} |
||||
|
||||
ElRadioButton { |
||||
Layout.fillWidth: true |
||||
ButtonGroup.group: serverconnectgroup |
||||
property string connecttype: 'auto' |
||||
text: qsTr('Auto connect') |
||||
checked: true |
||||
} |
||||
ElRadioButton { |
||||
Layout.fillWidth: true |
||||
ButtonGroup.group: serverconnectgroup |
||||
property string connecttype: 'manual' |
||||
text: qsTr('Select servers manually') |
||||
} |
||||
|
||||
} |
||||
|
||||
} |
||||
@ -1,43 +0,0 @@
|
||||
import QtQuick |
||||
import QtQuick.Layouts |
||||
import QtQuick.Controls |
||||
import QtQuick.Controls.Material |
||||
|
||||
import "../controls" |
||||
|
||||
WizardComponent { |
||||
valid: true |
||||
|
||||
function apply() { |
||||
wizard_data['want_proxy'] = wantproxygroup.checkedButton.wantproxy |
||||
} |
||||
|
||||
ColumnLayout { |
||||
width: parent.width |
||||
|
||||
Label { |
||||
Layout.fillWidth: true |
||||
text: qsTr('Do you use a local proxy service such as TOR to reach the internet?') |
||||
wrapMode: Text.Wrap |
||||
} |
||||
|
||||
ButtonGroup { |
||||
id: wantproxygroup |
||||
onCheckedButtonChanged: checkIsLast() |
||||
} |
||||
|
||||
ElRadioButton { |
||||
ButtonGroup.group: wantproxygroup |
||||
property bool wantproxy: true |
||||
text: qsTr('Yes') |
||||
} |
||||
ElRadioButton { |
||||
ButtonGroup.group: wantproxygroup |
||||
property bool wantproxy: false |
||||
text: qsTr('No') |
||||
checked: true |
||||
} |
||||
|
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,59 @@
|
||||
import QtQuick |
||||
import QtQuick.Layouts |
||||
import QtQuick.Controls |
||||
|
||||
import "../controls" |
||||
|
||||
WizardComponent { |
||||
valid: true |
||||
wizard_title: qsTr('Electrum Bitcoin Wallet') |
||||
|
||||
function apply() { |
||||
wizard_data['use_defaults'] = !config_advanced.checked |
||||
wizard_data['want_proxy'] = config_advanced.checked && config_proxy.checked |
||||
wizard_data['autoconnect'] = !config_server.checked || !config_advanced.checked |
||||
} |
||||
|
||||
ColumnLayout { |
||||
width: parent.width |
||||
|
||||
Image { |
||||
Layout.fillWidth: true |
||||
fillMode: Image.PreserveAspectFit |
||||
source: Qt.resolvedUrl('../../../icons/electrum_presplash.png') |
||||
// reduce spacing a bit |
||||
Layout.topMargin: -50 |
||||
Layout.bottomMargin: -120 |
||||
} |
||||
|
||||
CheckBox { |
||||
id: config_advanced |
||||
Layout.alignment: Qt.AlignHCenter |
||||
text: qsTr('Advanced network settings') |
||||
checked: false |
||||
onCheckedChanged: checkIsLast() |
||||
} |
||||
|
||||
ColumnLayout { |
||||
Layout.alignment: Qt.AlignHCenter |
||||
|
||||
opacity: config_advanced.checked ? 1 : 0 |
||||
Behavior on opacity { |
||||
NumberAnimation { duration: 300 } |
||||
} |
||||
|
||||
CheckBox { |
||||
id: config_proxy |
||||
text: qsTr('Configure Proxy') |
||||
checked: false |
||||
onCheckedChanged: checkIsLast() |
||||
} |
||||
CheckBox { |
||||
id: config_server |
||||
text: qsTr('Select Server') |
||||
checked: false |
||||
onCheckedChanged: checkIsLast() |
||||
} |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue