baseconvert 2.0.1__tar.gz → 2.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {baseconvert-2.0.1/baseconvert.egg-info → baseconvert-2.0.3}/PKG-INFO +1 -1
- {baseconvert-2.0.1 → baseconvert-2.0.3}/README.md +4 -0
- baseconvert-2.0.3/VERSION.txt +1 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/baseconvert/ButtonRow.qml +13 -12
- {baseconvert-2.0.1 → baseconvert-2.0.3}/baseconvert/app.qml +47 -23
- {baseconvert-2.0.1 → baseconvert-2.0.3/baseconvert.egg-info}/PKG-INFO +1 -1
- baseconvert-2.0.1/VERSION.txt +0 -1
- {baseconvert-2.0.1 → baseconvert-2.0.3}/LICENSE.txt +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/MANIFEST.in +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/README.rst +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/baseconvert/__init__.py +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/baseconvert/__main__.py +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/baseconvert/baseconvert.py +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/baseconvert/gui.py +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/baseconvert.egg-info/SOURCES.txt +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/baseconvert.egg-info/dependency_links.txt +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/baseconvert.egg-info/entry_points.txt +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/baseconvert.egg-info/requires.txt +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/baseconvert.egg-info/top_level.txt +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/setup.cfg +0 -0
- {baseconvert-2.0.1 → baseconvert-2.0.3}/setup.py +0 -0
|
@@ -7,6 +7,10 @@ Convert rational numbers between bases.
|
|
|
7
7
|
|
|
8
8
|
[https://github.com/BreadMakesYouFull/baseconvert](https://github.com/BreadMakesYouFull/baseconvert)
|
|
9
9
|
|
|
10
|
+
<a href='https://flathub.org/apps/io.github.breadmakesyoufull.baseconvert'>
|
|
11
|
+
<img width='128' alt='Get it on Flathub' src='https://flathub.org/api/badge?locale=en'/>
|
|
12
|
+
</a>
|
|
13
|
+
|
|
10
14
|
## Install
|
|
11
15
|
|
|
12
16
|
Requires:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.3
|
|
@@ -17,18 +17,19 @@ Item {
|
|
|
17
17
|
property bool enable5: true
|
|
18
18
|
property bool enable6: true
|
|
19
19
|
signal buttonPressed(text: string)
|
|
20
|
-
property
|
|
21
|
-
property color
|
|
22
|
-
property color
|
|
23
|
-
property color
|
|
24
|
-
property color
|
|
25
|
-
property color
|
|
26
|
-
property color
|
|
27
|
-
property color
|
|
28
|
-
property color
|
|
29
|
-
property color
|
|
30
|
-
property color
|
|
31
|
-
property color
|
|
20
|
+
property bool darkMode: Application.styleHints.colorScheme === Qt.ColorScheme.Dark
|
|
21
|
+
property color color1: darkMode ? "#333333" : "#ffffff"
|
|
22
|
+
property color colorText1: darkMode ? "#ffffff" : "#000000"
|
|
23
|
+
property color color2: darkMode ? "#333333" : "#ffffff"
|
|
24
|
+
property color colorText2: darkMode ? "#ffffff" : "#000000"
|
|
25
|
+
property color color3: darkMode ? "#333333" : "#ffffff"
|
|
26
|
+
property color colorText3: darkMode ? "#ffffff" : "#000000"
|
|
27
|
+
property color color4: darkMode ? "#333333" : "#ffffff"
|
|
28
|
+
property color colorText4: darkMode ? "#ffffff" : "#000000"
|
|
29
|
+
property color color5: darkMode ? "#333333" : "#ffffff"
|
|
30
|
+
property color colorText5: darkMode ? "#ffffff" : "#000000"
|
|
31
|
+
property color color6: darkMode ? "#333333" : "#ffffff"
|
|
32
|
+
property color colorText6: darkMode ? "#ffffff" : "#000000"
|
|
32
33
|
RowLayout {
|
|
33
34
|
anchors.fill: parent
|
|
34
35
|
Button {
|
|
@@ -4,15 +4,31 @@ import QtQuick.Layouts
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
ApplicationWindow {
|
|
7
|
+
id: main
|
|
7
8
|
width: 400
|
|
8
9
|
height: 400
|
|
10
|
+
minimumWidth: 300
|
|
11
|
+
minimumHeight: 150
|
|
9
12
|
visible: true
|
|
10
13
|
title: "baseconvert"
|
|
11
14
|
property string result: ""
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
property bool darkMode: Application.styleHints.colorScheme === Qt.ColorScheme.Dark
|
|
17
|
+
font: Qt.font({
|
|
18
|
+
bold: true,
|
|
19
|
+
underline: false,
|
|
20
|
+
pixelSize: ((main.height > 300) ? ((main.height > main.width) ? main.width / 30 : main.height / 30) : main.height / 8) * 1.1, // resize relative to parent
|
|
21
|
+
family: "monospace"
|
|
22
|
+
})
|
|
23
|
+
property var fontLarge: Qt.font({
|
|
24
|
+
bold: true,
|
|
25
|
+
underline: false,
|
|
26
|
+
pixelSize: main.font.pixelSize * 1.5,
|
|
27
|
+
family: "monospace"
|
|
28
|
+
})
|
|
14
29
|
|
|
15
30
|
ColumnLayout {
|
|
31
|
+
id: mainLayout
|
|
16
32
|
anchors.fill: parent
|
|
17
33
|
RowLayout {
|
|
18
34
|
TextField {
|
|
@@ -20,45 +36,44 @@ ApplicationWindow {
|
|
|
20
36
|
Layout.fillWidth: true
|
|
21
37
|
Layout.columnSpan: 1
|
|
22
38
|
placeholderText: qsTr("Input")
|
|
39
|
+
font: main.fontLarge
|
|
23
40
|
onTextChanged: {
|
|
24
41
|
input.text = input.text.toUpperCase().replace(/[^A-Z0-9.]/g, '')
|
|
25
42
|
backend.input_changed(input.text, from.value, to.value);
|
|
26
43
|
}
|
|
27
44
|
width: parent.width
|
|
28
|
-
font.pointSize: 18
|
|
29
45
|
focus: true
|
|
30
46
|
}
|
|
31
47
|
}
|
|
32
48
|
RowLayout {
|
|
33
49
|
Label {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
Layout.fillWidth: false
|
|
37
|
-
Layout.preferredWidth: parent.width / 3
|
|
50
|
+
id: from_text
|
|
51
|
+
text: "from 10"
|
|
38
52
|
horizontalAlignment: Qt.AlignRight
|
|
39
53
|
}
|
|
40
|
-
|
|
54
|
+
Slider {
|
|
41
55
|
id: from
|
|
42
56
|
Layout.fillWidth: true
|
|
57
|
+
Layout.columnSpan: 2
|
|
43
58
|
from: 2
|
|
44
59
|
value: 10
|
|
45
60
|
to: 36
|
|
46
61
|
stepSize: 1
|
|
47
|
-
editable: true
|
|
48
62
|
onValueChanged: {
|
|
49
63
|
backend.input_changed(input.text, from.value, to.value);
|
|
64
|
+
from_text.text = "from " + from.value.toString();
|
|
50
65
|
}
|
|
66
|
+
handle.implicitWidth: to_text.height
|
|
67
|
+
handle.implicitHeight: to_text.height
|
|
51
68
|
}
|
|
52
69
|
}
|
|
53
70
|
RowLayout {
|
|
54
71
|
Label {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Layout.fillWidth: false
|
|
58
|
-
Layout.preferredWidth: parent.width / 3
|
|
72
|
+
id: to_text
|
|
73
|
+
text: " to 36"
|
|
59
74
|
horizontalAlignment: Qt.AlignRight
|
|
60
75
|
}
|
|
61
|
-
|
|
76
|
+
Slider {
|
|
62
77
|
id: to
|
|
63
78
|
Layout.fillWidth: true
|
|
64
79
|
Layout.columnSpan: 2
|
|
@@ -66,25 +81,27 @@ ApplicationWindow {
|
|
|
66
81
|
value: 36
|
|
67
82
|
to: 36
|
|
68
83
|
stepSize: 1
|
|
69
|
-
editable: true
|
|
70
84
|
onValueChanged: {
|
|
71
85
|
backend.input_changed(input.text, from.value, to.value);
|
|
86
|
+
to_text.text = " to " + to.value.toString();
|
|
72
87
|
}
|
|
88
|
+
handle.implicitWidth: to_text.height
|
|
89
|
+
handle.implicitHeight: to_text.height
|
|
73
90
|
}
|
|
74
91
|
}
|
|
75
92
|
ColumnLayout {
|
|
76
|
-
|
|
93
|
+
TextField {
|
|
77
94
|
id: output
|
|
78
95
|
text: backend.result
|
|
79
96
|
Layout.fillWidth: true
|
|
80
97
|
Layout.columnSpan: 1
|
|
98
|
+
font: main.fontLarge
|
|
81
99
|
readOnly: true
|
|
82
100
|
width: parent.width
|
|
83
|
-
font.pointSize: 18
|
|
84
|
-
//wrapMode: Text.WrapAnywhere
|
|
85
101
|
}
|
|
86
102
|
}
|
|
87
103
|
ButtonRow{
|
|
104
|
+
visible: (main.height > 300) ? true : false
|
|
88
105
|
Layout.fillWidth: true
|
|
89
106
|
Layout.fillHeight: true
|
|
90
107
|
text1: "FLIP"
|
|
@@ -93,10 +110,10 @@ ApplicationWindow {
|
|
|
93
110
|
text4: "< DELETE"
|
|
94
111
|
enable5: false
|
|
95
112
|
enable6: false
|
|
96
|
-
color1: "#0D47A1"
|
|
97
|
-
color2: "#C8090B"
|
|
98
|
-
color3: "#C8090B"
|
|
99
|
-
color4: "#C63100"
|
|
113
|
+
color1: darkMode ? "#0D47A1" : "#275fb8"
|
|
114
|
+
color2: darkMode ? "#C8090B" : "#f51618"
|
|
115
|
+
color3: darkMode ? "#C8090B" : "#f51618"
|
|
116
|
+
color4: darkMode ? "#C63100" : "#ff6633"
|
|
100
117
|
onButtonPressed: (text) => {
|
|
101
118
|
if( text == "FLIP"){
|
|
102
119
|
var base_from = from.value;
|
|
@@ -126,6 +143,7 @@ ApplicationWindow {
|
|
|
126
143
|
}
|
|
127
144
|
}
|
|
128
145
|
ButtonRow{
|
|
146
|
+
visible: (main.height > 300) ? true : false
|
|
129
147
|
Layout.fillWidth: true
|
|
130
148
|
Layout.fillHeight: true
|
|
131
149
|
text1: "V"
|
|
@@ -140,12 +158,13 @@ ApplicationWindow {
|
|
|
140
158
|
enable5: (from.value >= 36) ? true : false
|
|
141
159
|
enable6: true
|
|
142
160
|
text6: "."
|
|
143
|
-
color6: "#006064"
|
|
161
|
+
color6: darkMode ? "#006064" : "#109ba1"
|
|
144
162
|
onButtonPressed: (text) => {
|
|
145
163
|
input.text += text
|
|
146
164
|
}
|
|
147
165
|
}
|
|
148
166
|
ButtonRow{
|
|
167
|
+
visible: (main.height > 300) ? true : false
|
|
149
168
|
Layout.fillWidth: true
|
|
150
169
|
Layout.fillHeight: (from.value >= 26) ? true : false
|
|
151
170
|
text1: "P"
|
|
@@ -163,6 +182,7 @@ ApplicationWindow {
|
|
|
163
182
|
onButtonPressed: (text) => {input.text += text}
|
|
164
183
|
}
|
|
165
184
|
ButtonRow{
|
|
185
|
+
visible: (main.height > 300) ? true : false
|
|
166
186
|
Layout.fillWidth: true
|
|
167
187
|
Layout.fillHeight: (from.value >= 20) ? true : false
|
|
168
188
|
text1: "J"
|
|
@@ -180,6 +200,7 @@ ApplicationWindow {
|
|
|
180
200
|
onButtonPressed: (text) => {input.text += text}
|
|
181
201
|
}
|
|
182
202
|
ButtonRow{
|
|
203
|
+
visible: (main.height > 300) ? true : false
|
|
183
204
|
Layout.fillWidth: true
|
|
184
205
|
Layout.fillHeight: (from.value >= 14) ? true : false
|
|
185
206
|
text1: "D"
|
|
@@ -197,6 +218,7 @@ ApplicationWindow {
|
|
|
197
218
|
onButtonPressed: (text) => {input.text += text}
|
|
198
219
|
}
|
|
199
220
|
ButtonRow{
|
|
221
|
+
visible: (main.height > 300) ? true : false
|
|
200
222
|
Layout.fillWidth: true
|
|
201
223
|
Layout.fillHeight: (from.value >= 8) ? true : false
|
|
202
224
|
text1: "7"
|
|
@@ -214,6 +236,7 @@ ApplicationWindow {
|
|
|
214
236
|
onButtonPressed: (text) => {input.text += text}
|
|
215
237
|
}
|
|
216
238
|
ButtonRow{
|
|
239
|
+
visible: (main.height > 300) ? true : false
|
|
217
240
|
Layout.fillWidth: true
|
|
218
241
|
Layout.fillHeight: (from.value >= 2) ? true : false
|
|
219
242
|
text1: "1"
|
|
@@ -231,10 +254,11 @@ ApplicationWindow {
|
|
|
231
254
|
onButtonPressed: (text) => {input.text += text}
|
|
232
255
|
}
|
|
233
256
|
ButtonRow{
|
|
257
|
+
visible: (main.height > 300) ? true : false
|
|
234
258
|
Layout.fillWidth: true
|
|
235
259
|
Layout.fillHeight: true
|
|
236
260
|
text1: "0"
|
|
237
|
-
color1: "#0D47A1"
|
|
261
|
+
color1: darkMode ? "#0D47A1" : "#275fb8"
|
|
238
262
|
onButtonPressed: (text) => {input.text += text}
|
|
239
263
|
enable2: false
|
|
240
264
|
enable3: false
|
baseconvert-2.0.1/VERSION.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|