baseconvert 2.0.2__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.2/baseconvert.egg-info → baseconvert-2.0.3}/PKG-INFO +1 -1
- {baseconvert-2.0.2 → baseconvert-2.0.3}/README.md +4 -0
- baseconvert-2.0.3/VERSION.txt +1 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/baseconvert/app.qml +42 -22
- {baseconvert-2.0.2 → baseconvert-2.0.3/baseconvert.egg-info}/PKG-INFO +1 -1
- baseconvert-2.0.2/VERSION.txt +0 -1
- {baseconvert-2.0.2 → baseconvert-2.0.3}/LICENSE.txt +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/MANIFEST.in +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/README.rst +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/baseconvert/ButtonRow.qml +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/baseconvert/__init__.py +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/baseconvert/__main__.py +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/baseconvert/baseconvert.py +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/baseconvert/gui.py +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/baseconvert.egg-info/SOURCES.txt +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/baseconvert.egg-info/dependency_links.txt +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/baseconvert.egg-info/entry_points.txt +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/baseconvert.egg-info/requires.txt +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/baseconvert.egg-info/top_level.txt +0 -0
- {baseconvert-2.0.2 → baseconvert-2.0.3}/setup.cfg +0 -0
- {baseconvert-2.0.2 → 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
|
|
@@ -4,16 +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
|
-
|
|
14
|
-
|
|
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
|
+
})
|
|
15
29
|
|
|
16
30
|
ColumnLayout {
|
|
31
|
+
id: mainLayout
|
|
17
32
|
anchors.fill: parent
|
|
18
33
|
RowLayout {
|
|
19
34
|
TextField {
|
|
@@ -21,22 +36,19 @@ ApplicationWindow {
|
|
|
21
36
|
Layout.fillWidth: true
|
|
22
37
|
Layout.columnSpan: 1
|
|
23
38
|
placeholderText: qsTr("Input")
|
|
39
|
+
font: main.fontLarge
|
|
24
40
|
onTextChanged: {
|
|
25
41
|
input.text = input.text.toUpperCase().replace(/[^A-Z0-9.]/g, '')
|
|
26
42
|
backend.input_changed(input.text, from.value, to.value);
|
|
27
43
|
}
|
|
28
44
|
width: parent.width
|
|
29
|
-
font.pointSize: 18
|
|
30
45
|
focus: true
|
|
31
46
|
}
|
|
32
47
|
}
|
|
33
48
|
RowLayout {
|
|
34
49
|
Label {
|
|
35
50
|
id: from_text
|
|
36
|
-
text: "
|
|
37
|
-
textFormat: Text.MarkdownText
|
|
38
|
-
Layout.fillWidth: false
|
|
39
|
-
Layout.preferredWidth: parent.width / 3
|
|
51
|
+
text: "from 10"
|
|
40
52
|
horizontalAlignment: Qt.AlignRight
|
|
41
53
|
}
|
|
42
54
|
Slider {
|
|
@@ -49,17 +61,16 @@ ApplicationWindow {
|
|
|
49
61
|
stepSize: 1
|
|
50
62
|
onValueChanged: {
|
|
51
63
|
backend.input_changed(input.text, from.value, to.value);
|
|
52
|
-
from_text.text = "
|
|
64
|
+
from_text.text = "from " + from.value.toString();
|
|
53
65
|
}
|
|
66
|
+
handle.implicitWidth: to_text.height
|
|
67
|
+
handle.implicitHeight: to_text.height
|
|
54
68
|
}
|
|
55
69
|
}
|
|
56
70
|
RowLayout {
|
|
57
71
|
Label {
|
|
58
72
|
id: to_text
|
|
59
|
-
text: "
|
|
60
|
-
textFormat: Text.MarkdownText
|
|
61
|
-
Layout.fillWidth: false
|
|
62
|
-
Layout.preferredWidth: parent.width / 3
|
|
73
|
+
text: " to 36"
|
|
63
74
|
horizontalAlignment: Qt.AlignRight
|
|
64
75
|
}
|
|
65
76
|
Slider {
|
|
@@ -72,23 +83,25 @@ ApplicationWindow {
|
|
|
72
83
|
stepSize: 1
|
|
73
84
|
onValueChanged: {
|
|
74
85
|
backend.input_changed(input.text, from.value, to.value);
|
|
75
|
-
to_text.text = "
|
|
86
|
+
to_text.text = " to " + to.value.toString();
|
|
76
87
|
}
|
|
88
|
+
handle.implicitWidth: to_text.height
|
|
89
|
+
handle.implicitHeight: to_text.height
|
|
77
90
|
}
|
|
78
91
|
}
|
|
79
92
|
ColumnLayout {
|
|
80
|
-
|
|
93
|
+
TextField {
|
|
81
94
|
id: output
|
|
82
95
|
text: backend.result
|
|
83
96
|
Layout.fillWidth: true
|
|
84
97
|
Layout.columnSpan: 1
|
|
98
|
+
font: main.fontLarge
|
|
85
99
|
readOnly: true
|
|
86
100
|
width: parent.width
|
|
87
|
-
font.pointSize: 18
|
|
88
|
-
//wrapMode: Text.WrapAnywhere
|
|
89
101
|
}
|
|
90
102
|
}
|
|
91
103
|
ButtonRow{
|
|
104
|
+
visible: (main.height > 300) ? true : false
|
|
92
105
|
Layout.fillWidth: true
|
|
93
106
|
Layout.fillHeight: true
|
|
94
107
|
text1: "FLIP"
|
|
@@ -97,10 +110,10 @@ ApplicationWindow {
|
|
|
97
110
|
text4: "< DELETE"
|
|
98
111
|
enable5: false
|
|
99
112
|
enable6: false
|
|
100
|
-
color1: darkMode ? "#0D47A1" : "#
|
|
101
|
-
color2: darkMode ? "#C8090B" : "#
|
|
102
|
-
color3: darkMode ? "#C8090B" : "#
|
|
103
|
-
color4: darkMode ? "#C63100" : "#
|
|
113
|
+
color1: darkMode ? "#0D47A1" : "#275fb8"
|
|
114
|
+
color2: darkMode ? "#C8090B" : "#f51618"
|
|
115
|
+
color3: darkMode ? "#C8090B" : "#f51618"
|
|
116
|
+
color4: darkMode ? "#C63100" : "#ff6633"
|
|
104
117
|
onButtonPressed: (text) => {
|
|
105
118
|
if( text == "FLIP"){
|
|
106
119
|
var base_from = from.value;
|
|
@@ -130,6 +143,7 @@ ApplicationWindow {
|
|
|
130
143
|
}
|
|
131
144
|
}
|
|
132
145
|
ButtonRow{
|
|
146
|
+
visible: (main.height > 300) ? true : false
|
|
133
147
|
Layout.fillWidth: true
|
|
134
148
|
Layout.fillHeight: true
|
|
135
149
|
text1: "V"
|
|
@@ -144,12 +158,13 @@ ApplicationWindow {
|
|
|
144
158
|
enable5: (from.value >= 36) ? true : false
|
|
145
159
|
enable6: true
|
|
146
160
|
text6: "."
|
|
147
|
-
color6: darkMode ? "#
|
|
161
|
+
color6: darkMode ? "#006064" : "#109ba1"
|
|
148
162
|
onButtonPressed: (text) => {
|
|
149
163
|
input.text += text
|
|
150
164
|
}
|
|
151
165
|
}
|
|
152
166
|
ButtonRow{
|
|
167
|
+
visible: (main.height > 300) ? true : false
|
|
153
168
|
Layout.fillWidth: true
|
|
154
169
|
Layout.fillHeight: (from.value >= 26) ? true : false
|
|
155
170
|
text1: "P"
|
|
@@ -167,6 +182,7 @@ ApplicationWindow {
|
|
|
167
182
|
onButtonPressed: (text) => {input.text += text}
|
|
168
183
|
}
|
|
169
184
|
ButtonRow{
|
|
185
|
+
visible: (main.height > 300) ? true : false
|
|
170
186
|
Layout.fillWidth: true
|
|
171
187
|
Layout.fillHeight: (from.value >= 20) ? true : false
|
|
172
188
|
text1: "J"
|
|
@@ -184,6 +200,7 @@ ApplicationWindow {
|
|
|
184
200
|
onButtonPressed: (text) => {input.text += text}
|
|
185
201
|
}
|
|
186
202
|
ButtonRow{
|
|
203
|
+
visible: (main.height > 300) ? true : false
|
|
187
204
|
Layout.fillWidth: true
|
|
188
205
|
Layout.fillHeight: (from.value >= 14) ? true : false
|
|
189
206
|
text1: "D"
|
|
@@ -201,6 +218,7 @@ ApplicationWindow {
|
|
|
201
218
|
onButtonPressed: (text) => {input.text += text}
|
|
202
219
|
}
|
|
203
220
|
ButtonRow{
|
|
221
|
+
visible: (main.height > 300) ? true : false
|
|
204
222
|
Layout.fillWidth: true
|
|
205
223
|
Layout.fillHeight: (from.value >= 8) ? true : false
|
|
206
224
|
text1: "7"
|
|
@@ -218,6 +236,7 @@ ApplicationWindow {
|
|
|
218
236
|
onButtonPressed: (text) => {input.text += text}
|
|
219
237
|
}
|
|
220
238
|
ButtonRow{
|
|
239
|
+
visible: (main.height > 300) ? true : false
|
|
221
240
|
Layout.fillWidth: true
|
|
222
241
|
Layout.fillHeight: (from.value >= 2) ? true : false
|
|
223
242
|
text1: "1"
|
|
@@ -235,10 +254,11 @@ ApplicationWindow {
|
|
|
235
254
|
onButtonPressed: (text) => {input.text += text}
|
|
236
255
|
}
|
|
237
256
|
ButtonRow{
|
|
257
|
+
visible: (main.height > 300) ? true : false
|
|
238
258
|
Layout.fillWidth: true
|
|
239
259
|
Layout.fillHeight: true
|
|
240
260
|
text1: "0"
|
|
241
|
-
color1: darkMode ? "#0D47A1" : "#
|
|
261
|
+
color1: darkMode ? "#0D47A1" : "#275fb8"
|
|
242
262
|
onButtonPressed: (text) => {input.text += text}
|
|
243
263
|
enable2: false
|
|
244
264
|
enable3: false
|
baseconvert-2.0.2/VERSION.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.2
|
|
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
|
|
File without changes
|