Skip to content

Commit fbb34a3

Browse files
Improve gui
1 parent 7e3e2e6 commit fbb34a3

7 files changed

+986
-794
lines changed

hwilib/ui/displayaddressdialog.ui

+169-153
Original file line numberDiff line numberDiff line change
@@ -6,164 +6,180 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>469</width>
10-
<height>196</height>
9+
<width>500</width>
10+
<height>200</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
1414
<string>Dialog</string>
1515
</property>
16-
<widget class="QDialogButtonBox" name="buttonBox">
17-
<property name="geometry">
18-
<rect>
19-
<x>350</x>
20-
<y>150</y>
21-
<width>101</width>
22-
<height>32</height>
23-
</rect>
24-
</property>
25-
<property name="orientation">
26-
<enum>Qt::Horizontal</enum>
27-
</property>
28-
<property name="standardButtons">
29-
<set>QDialogButtonBox::Close</set>
30-
</property>
31-
</widget>
32-
<widget class="QLineEdit" name="path_lineedit">
33-
<property name="geometry">
34-
<rect>
35-
<x>120</x>
36-
<y>10</y>
37-
<width>331</width>
38-
<height>32</height>
39-
</rect>
40-
</property>
41-
</widget>
42-
<widget class="QLabel" name="label">
43-
<property name="geometry">
44-
<rect>
45-
<x>10</x>
46-
<y>20</y>
47-
<width>111</width>
48-
<height>18</height>
49-
</rect>
50-
</property>
51-
<property name="text">
52-
<string>Derivation Path</string>
53-
</property>
54-
</widget>
55-
<widget class="QPushButton" name="go_button">
56-
<property name="geometry">
57-
<rect>
58-
<x>410</x>
59-
<y>50</y>
60-
<width>41</width>
61-
<height>41</height>
62-
</rect>
63-
</property>
64-
<property name="text">
65-
<string>Go</string>
66-
</property>
67-
<property name="autoDefault">
68-
<bool>false</bool>
69-
</property>
70-
<property name="default">
71-
<bool>true</bool>
72-
</property>
73-
</widget>
74-
<widget class="QLabel" name="label_2">
75-
<property name="geometry">
76-
<rect>
77-
<x>10</x>
78-
<y>120</y>
79-
<width>58</width>
80-
<height>18</height>
81-
</rect>
82-
</property>
83-
<property name="text">
84-
<string>Address</string>
85-
</property>
86-
</widget>
87-
<widget class="QLineEdit" name="address_lineedit">
88-
<property name="geometry">
89-
<rect>
90-
<x>70</x>
91-
<y>110</y>
92-
<width>381</width>
93-
<height>32</height>
94-
</rect>
95-
</property>
96-
<property name="readOnly">
97-
<bool>true</bool>
98-
</property>
99-
</widget>
100-
<widget class="QGroupBox" name="type_groupbox">
101-
<property name="geometry">
102-
<rect>
103-
<x>10</x>
104-
<y>50</y>
105-
<width>381</width>
106-
<height>40</height>
107-
</rect>
108-
</property>
109-
<property name="sizePolicy">
110-
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
111-
<horstretch>0</horstretch>
112-
<verstretch>0</verstretch>
113-
</sizepolicy>
114-
</property>
115-
<property name="minimumSize">
116-
<size>
117-
<width>0</width>
118-
<height>30</height>
119-
</size>
120-
</property>
121-
<property name="title">
122-
<string/>
123-
</property>
124-
<widget class="QRadioButton" name="sh_wpkh_radio">
125-
<property name="geometry">
126-
<rect>
127-
<x>10</x>
128-
<y>10</y>
129-
<width>121</width>
130-
<height>22</height>
131-
</rect>
132-
</property>
133-
<property name="text">
134-
<string>P2SH-P2WPKH</string>
135-
</property>
136-
<property name="checked">
137-
<bool>true</bool>
138-
</property>
139-
</widget>
140-
<widget class="QRadioButton" name="wpkh_radio">
141-
<property name="geometry">
142-
<rect>
143-
<x>150</x>
144-
<y>10</y>
145-
<width>91</width>
146-
<height>22</height>
147-
</rect>
148-
</property>
149-
<property name="text">
150-
<string>P2WPKH</string>
151-
</property>
152-
</widget>
153-
<widget class="QRadioButton" name="radioButton">
154-
<property name="geometry">
155-
<rect>
156-
<x>260</x>
157-
<y>10</y>
158-
<width>105</width>
159-
<height>22</height>
160-
</rect>
161-
</property>
162-
<property name="text">
163-
<string>P2PKH</string>
164-
</property>
165-
</widget>
166-
</widget>
16+
<layout class="QGridLayout" name="gridLayout">
17+
<property name="leftMargin">
18+
<number>10</number>
19+
</property>
20+
<property name="topMargin">
21+
<number>10</number>
22+
</property>
23+
<property name="rightMargin">
24+
<number>10</number>
25+
</property>
26+
<property name="bottomMargin">
27+
<number>10</number>
28+
</property>
29+
<property name="spacing">
30+
<number>10</number>
31+
</property>
32+
<item row="1" column="0" colspan="2">
33+
<widget class="QGroupBox" name="type_groupbox">
34+
<property name="sizePolicy">
35+
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
36+
<horstretch>0</horstretch>
37+
<verstretch>0</verstretch>
38+
</sizepolicy>
39+
</property>
40+
<property name="minimumSize">
41+
<size>
42+
<width>300</width>
43+
<height>50</height>
44+
</size>
45+
</property>
46+
<property name="maximumSize">
47+
<size>
48+
<width>500</width>
49+
<height>50</height>
50+
</size>
51+
</property>
52+
<property name="title">
53+
<string/>
54+
</property>
55+
<layout class="QHBoxLayout" name="horizontalLayout_2">
56+
<property name="spacing">
57+
<number>5</number>
58+
</property>
59+
<item>
60+
<widget class="QRadioButton" name="sh_wpkh_radio">
61+
<property name="text">
62+
<string>P2SH-P2WPKH</string>
63+
</property>
64+
<property name="checked">
65+
<bool>true</bool>
66+
</property>
67+
</widget>
68+
</item>
69+
<item>
70+
<widget class="QRadioButton" name="wpkh_radio">
71+
<property name="text">
72+
<string>P2WPKH</string>
73+
</property>
74+
</widget>
75+
</item>
76+
<item>
77+
<widget class="QRadioButton" name="radioButton">
78+
<property name="text">
79+
<string>P2PKH</string>
80+
</property>
81+
</widget>
82+
</item>
83+
</layout>
84+
</widget>
85+
</item>
86+
<item row="2" column="0">
87+
<widget class="QLabel" name="label_2">
88+
<property name="text">
89+
<string>Address</string>
90+
</property>
91+
</widget>
92+
</item>
93+
<item row="2" column="1" colspan="2">
94+
<widget class="QLineEdit" name="address_lineedit">
95+
<property name="minimumSize">
96+
<size>
97+
<width>100</width>
98+
<height>30</height>
99+
</size>
100+
</property>
101+
<property name="readOnly">
102+
<bool>true</bool>
103+
</property>
104+
</widget>
105+
</item>
106+
<item row="0" column="1" colspan="2">
107+
<widget class="QLineEdit" name="path_lineedit">
108+
<property name="minimumSize">
109+
<size>
110+
<width>200</width>
111+
<height>30</height>
112+
</size>
113+
</property>
114+
</widget>
115+
</item>
116+
<item row="1" column="2" alignment="Qt::AlignHCenter">
117+
<widget class="QPushButton" name="go_button">
118+
<property name="sizePolicy">
119+
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
120+
<horstretch>0</horstretch>
121+
<verstretch>0</verstretch>
122+
</sizepolicy>
123+
</property>
124+
<property name="minimumSize">
125+
<size>
126+
<width>40</width>
127+
<height>40</height>
128+
</size>
129+
</property>
130+
<property name="maximumSize">
131+
<size>
132+
<width>50</width>
133+
<height>40</height>
134+
</size>
135+
</property>
136+
<property name="text">
137+
<string>Go</string>
138+
</property>
139+
<property name="autoDefault">
140+
<bool>false</bool>
141+
</property>
142+
<property name="default">
143+
<bool>true</bool>
144+
</property>
145+
</widget>
146+
</item>
147+
<item row="3" column="2">
148+
<widget class="QDialogButtonBox" name="buttonBox">
149+
<property name="minimumSize">
150+
<size>
151+
<width>0</width>
152+
<height>25</height>
153+
</size>
154+
</property>
155+
<property name="maximumSize">
156+
<size>
157+
<width>80</width>
158+
<height>25</height>
159+
</size>
160+
</property>
161+
<property name="orientation">
162+
<enum>Qt::Horizontal</enum>
163+
</property>
164+
<property name="standardButtons">
165+
<set>QDialogButtonBox::Close</set>
166+
</property>
167+
</widget>
168+
</item>
169+
<item row="0" column="0">
170+
<widget class="QLabel" name="label">
171+
<property name="maximumSize">
172+
<size>
173+
<width>100</width>
174+
<height>16777215</height>
175+
</size>
176+
</property>
177+
<property name="text">
178+
<string>Derivation Path</string>
179+
</property>
180+
</widget>
181+
</item>
182+
</layout>
167183
</widget>
168184
<resources/>
169185
<connections>

0 commit comments

Comments
 (0)