not1mm 24.11.18__py3-none-any.whl → 24.11.21__py3-none-any.whl
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.
- not1mm/__main__.py +3 -1
- not1mm/data/donors.html +1 -0
- not1mm/lib/cat_interface.py +16 -1
- not1mm/lib/plugin_common.py +20 -1
- not1mm/lib/version.py +1 -1
- not1mm/plugins/10_10_fall_cw.py +12 -24
- not1mm/plugins/10_10_spring_cw.py +12 -24
- not1mm/plugins/10_10_summer_phone.py +12 -22
- not1mm/plugins/10_10_winter_phone.py +12 -24
- not1mm/plugins/arrl_10m.py +16 -29
- not1mm/plugins/arrl_dx_cw.py +11 -22
- not1mm/plugins/arrl_dx_ssb.py +11 -22
- not1mm/plugins/arrl_field_day.py +14 -22
- not1mm/plugins/arrl_rtty_ru.py +10 -22
- not1mm/plugins/arrl_ss_cw.py +14 -29
- not1mm/plugins/arrl_ss_phone.py +14 -29
- not1mm/plugins/arrl_vhf_jan.py +14 -29
- not1mm/plugins/arrl_vhf_jun.py +14 -29
- not1mm/plugins/arrl_vhf_sep.py +14 -29
- not1mm/plugins/canada_day.py +14 -29
- not1mm/plugins/cq_160_cw.py +10 -24
- not1mm/plugins/cq_160_ssb.py +10 -24
- not1mm/plugins/cq_wpx_cw.py +12 -25
- not1mm/plugins/cq_wpx_rtty.py +12 -25
- not1mm/plugins/cq_wpx_ssb.py +14 -29
- not1mm/plugins/cq_ww_cw.py +11 -22
- not1mm/plugins/cq_ww_rtty.py +12 -26
- not1mm/plugins/cq_ww_ssb.py +11 -22
- not1mm/plugins/cwt.py +12 -26
- not1mm/plugins/darc_xmas.py +15 -31
- not1mm/plugins/general_logging.py +125 -26
- not1mm/plugins/helvetia.py +15 -26
- not1mm/plugins/iaru_fieldday_r1_cw.py +12 -25
- not1mm/plugins/iaru_fieldday_r1_ssb.py +12 -25
- not1mm/plugins/iaru_hf.py +11 -22
- not1mm/plugins/icwc_mst.py +136 -40
- not1mm/plugins/jidx_cw.py +102 -23
- not1mm/plugins/jidx_ph.py +106 -29
- not1mm/plugins/k1usn_sst.py +10 -16
- not1mm/plugins/lz-dx.py +17 -28
- not1mm/plugins/naqp_cw.py +11 -17
- not1mm/plugins/naqp_rtty.py +11 -17
- not1mm/plugins/naqp_ssb.py +11 -17
- not1mm/plugins/phone_weekly_test.py +101 -16
- not1mm/plugins/raem.py +26 -25
- not1mm/plugins/ref_cw.py +17 -28
- not1mm/plugins/ref_ssb.py +32 -28
- not1mm/plugins/stew_perry_topband.py +102 -16
- not1mm/plugins/weekly_rtty.py +17 -16
- not1mm/plugins/winter_field_day.py +28 -24
- {not1mm-24.11.18.dist-info → not1mm-24.11.21.dist-info}/METADATA +9 -8
- {not1mm-24.11.18.dist-info → not1mm-24.11.21.dist-info}/RECORD +56 -56
- {not1mm-24.11.18.dist-info → not1mm-24.11.21.dist-info}/WHEEL +1 -1
- {not1mm-24.11.18.dist-info → not1mm-24.11.21.dist-info}/LICENSE +0 -0
- {not1mm-24.11.18.dist-info → not1mm-24.11.21.dist-info}/entry_points.txt +0 -0
- {not1mm-24.11.18.dist-info → not1mm-24.11.21.dist-info}/top_level.txt +0 -0
not1mm/plugins/cq_wpx_ssb.py
CHANGED
@@ -55,11 +55,9 @@ def interface(self):
|
|
55
55
|
self.field4.show()
|
56
56
|
self.snt_label.setText("SNT")
|
57
57
|
self.field1.setAccessibleName("RST Sent")
|
58
|
-
|
59
|
-
label.setText("SentNR")
|
58
|
+
self.other_label.setText("SentNR")
|
60
59
|
self.field3.setAccessibleName("Sent Number")
|
61
|
-
|
62
|
-
label.setText("RcvNR")
|
60
|
+
self.exch_label.setText("RcvNR")
|
63
61
|
self.field4.setAccessibleName("Received Number")
|
64
62
|
|
65
63
|
|
@@ -70,34 +68,22 @@ def reset_label(self): # pylint: disable=unused-argument
|
|
70
68
|
def set_tab_next(self):
|
71
69
|
"""Set TAB Advances"""
|
72
70
|
self.tab_next = {
|
73
|
-
self.callsign: self.
|
74
|
-
self.
|
75
|
-
|
76
|
-
|
77
|
-
self.
|
78
|
-
QtWidgets.QLineEdit
|
79
|
-
),
|
80
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
|
81
|
-
QtWidgets.QLineEdit
|
82
|
-
),
|
83
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
71
|
+
self.callsign: self.sent,
|
72
|
+
self.sent: self.receive,
|
73
|
+
self.receive: self.other_1,
|
74
|
+
self.other_1: self.other_2,
|
75
|
+
self.other_2: self.callsign,
|
84
76
|
}
|
85
77
|
|
86
78
|
|
87
79
|
def set_tab_prev(self):
|
88
80
|
"""Set TAB Advances"""
|
89
81
|
self.tab_prev = {
|
90
|
-
self.callsign: self.
|
91
|
-
self.
|
92
|
-
self.
|
93
|
-
|
94
|
-
|
95
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field2.findChild(
|
96
|
-
QtWidgets.QLineEdit
|
97
|
-
),
|
98
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
|
99
|
-
QtWidgets.QLineEdit
|
100
|
-
),
|
82
|
+
self.callsign: self.other_2,
|
83
|
+
self.sent: self.callsign,
|
84
|
+
self.receive: self.sent,
|
85
|
+
self.other_1: self.receive,
|
86
|
+
self.other_2: self.other_1,
|
101
87
|
}
|
102
88
|
|
103
89
|
|
@@ -125,9 +111,8 @@ def prefill(self):
|
|
125
111
|
serial_nr = str(result.get("serial_nr", "1")).zfill(3)
|
126
112
|
if serial_nr == "None":
|
127
113
|
serial_nr = "001"
|
128
|
-
|
129
|
-
|
130
|
-
field.setText(serial_nr)
|
114
|
+
if len(self.other_1.text()) == 0:
|
115
|
+
self.other_1.setText(serial_nr)
|
131
116
|
|
132
117
|
|
133
118
|
def points(self):
|
not1mm/plugins/cq_ww_cw.py
CHANGED
@@ -88,8 +88,7 @@ def interface(self):
|
|
88
88
|
self.field4.show()
|
89
89
|
self.snt_label.setText("SNT")
|
90
90
|
self.field1.setAccessibleName("RST Sent")
|
91
|
-
|
92
|
-
label.setText("CQ Zone")
|
91
|
+
self.exch_label.setText("CQ Zone")
|
93
92
|
self.field4.setAccessibleName("C Q Zone")
|
94
93
|
|
95
94
|
|
@@ -100,32 +99,22 @@ def reset_label(self):
|
|
100
99
|
def set_tab_next(self):
|
101
100
|
"""Set TAB Advances"""
|
102
101
|
self.tab_next = {
|
103
|
-
self.callsign: self.
|
104
|
-
self.
|
105
|
-
|
106
|
-
|
107
|
-
self.
|
108
|
-
QtWidgets.QLineEdit
|
109
|
-
),
|
110
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.callsign,
|
111
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
102
|
+
self.callsign: self.sent,
|
103
|
+
self.sent: self.receive,
|
104
|
+
self.receive: self.other_2,
|
105
|
+
self.other_1: self.callsign,
|
106
|
+
self.other_2: self.callsign,
|
112
107
|
}
|
113
108
|
|
114
109
|
|
115
110
|
def set_tab_prev(self):
|
116
111
|
"""Set TAB Advances"""
|
117
112
|
self.tab_prev = {
|
118
|
-
self.callsign: self.
|
119
|
-
self.
|
120
|
-
self.
|
121
|
-
|
122
|
-
|
123
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field2.findChild(
|
124
|
-
QtWidgets.QLineEdit
|
125
|
-
),
|
126
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.field2.findChild(
|
127
|
-
QtWidgets.QLineEdit
|
128
|
-
),
|
113
|
+
self.callsign: self.other_2,
|
114
|
+
self.sent: self.callsign,
|
115
|
+
self.receive: self.sent,
|
116
|
+
self.other_1: self.receive,
|
117
|
+
self.other_2: self.receive,
|
129
118
|
}
|
130
119
|
|
131
120
|
|
not1mm/plugins/cq_ww_rtty.py
CHANGED
@@ -93,11 +93,9 @@ def interface(self):
|
|
93
93
|
self.field4.show()
|
94
94
|
self.snt_label.setText("SNT")
|
95
95
|
self.field1.setAccessibleName("RST Sent")
|
96
|
-
|
97
|
-
label.setText("CQ Zone")
|
96
|
+
self.other_label.setText("CQ Zone")
|
98
97
|
self.field3.setAccessibleName("C Q Zone")
|
99
|
-
|
100
|
-
label.setText("State/Prov")
|
98
|
+
self.exch_label.setText("State/Prov")
|
101
99
|
self.field4.setAccessibleName("U S State or Providence")
|
102
100
|
|
103
101
|
|
@@ -108,34 +106,22 @@ def reset_label(self):
|
|
108
106
|
def set_tab_next(self):
|
109
107
|
"""Set TAB Advances"""
|
110
108
|
self.tab_next = {
|
111
|
-
self.callsign: self.
|
112
|
-
self.
|
113
|
-
|
114
|
-
|
115
|
-
self.
|
116
|
-
QtWidgets.QLineEdit
|
117
|
-
),
|
118
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
|
119
|
-
QtWidgets.QLineEdit
|
120
|
-
),
|
121
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
109
|
+
self.callsign: self.sent,
|
110
|
+
self.sent: self.receive,
|
111
|
+
self.receive: self.other_1,
|
112
|
+
self.other_1: self.other_2,
|
113
|
+
self.other_2: self.callsign,
|
122
114
|
}
|
123
115
|
|
124
116
|
|
125
117
|
def set_tab_prev(self):
|
126
118
|
"""Set TAB Advances"""
|
127
119
|
self.tab_prev = {
|
128
|
-
self.callsign: self.
|
129
|
-
self.
|
130
|
-
self.
|
131
|
-
|
132
|
-
|
133
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field2.findChild(
|
134
|
-
QtWidgets.QLineEdit
|
135
|
-
),
|
136
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
|
137
|
-
QtWidgets.QLineEdit
|
138
|
-
),
|
120
|
+
self.callsign: self.other_2,
|
121
|
+
self.sent: self.callsign,
|
122
|
+
self.receive: self.sent,
|
123
|
+
self.other_1: self.receive,
|
124
|
+
self.other_2: self.other_1,
|
139
125
|
}
|
140
126
|
|
141
127
|
|
not1mm/plugins/cq_ww_ssb.py
CHANGED
@@ -87,8 +87,7 @@ def interface(self):
|
|
87
87
|
self.field4.show()
|
88
88
|
self.snt_label.setText("SNT")
|
89
89
|
self.field1.setAccessibleName("RST Sent")
|
90
|
-
|
91
|
-
label.setText("CQ Zone")
|
90
|
+
self.exch_label.setText("CQ Zone")
|
92
91
|
self.field4.setAccessibleName("C Q Zone")
|
93
92
|
|
94
93
|
|
@@ -99,32 +98,22 @@ def reset_label(self):
|
|
99
98
|
def set_tab_next(self):
|
100
99
|
"""Set TAB Advances"""
|
101
100
|
self.tab_next = {
|
102
|
-
self.callsign: self.
|
103
|
-
self.
|
104
|
-
|
105
|
-
|
106
|
-
self.
|
107
|
-
QtWidgets.QLineEdit
|
108
|
-
),
|
109
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.callsign,
|
110
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
101
|
+
self.callsign: self.sent,
|
102
|
+
self.sent: self.receive,
|
103
|
+
self.receive: self.other_2,
|
104
|
+
self.other_1: self.callsign,
|
105
|
+
self.other_2: self.callsign,
|
111
106
|
}
|
112
107
|
|
113
108
|
|
114
109
|
def set_tab_prev(self):
|
115
110
|
"""Set TAB Advances"""
|
116
111
|
self.tab_prev = {
|
117
|
-
self.callsign: self.
|
118
|
-
self.
|
119
|
-
self.
|
120
|
-
|
121
|
-
|
122
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field2.findChild(
|
123
|
-
QtWidgets.QLineEdit
|
124
|
-
),
|
125
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.field2.findChild(
|
126
|
-
QtWidgets.QLineEdit
|
127
|
-
),
|
112
|
+
self.callsign: self.other_2,
|
113
|
+
self.sent: self.callsign,
|
114
|
+
self.receive: self.sent,
|
115
|
+
self.other_1: self.receive,
|
116
|
+
self.other_2: self.receive,
|
128
117
|
}
|
129
118
|
|
130
119
|
|
not1mm/plugins/cwt.py
CHANGED
@@ -78,11 +78,9 @@ def interface(self):
|
|
78
78
|
self.field4.show()
|
79
79
|
self.snt_label.setText("SNT")
|
80
80
|
self.field1.setAccessibleName("RST Sent")
|
81
|
-
|
82
|
-
label.setText("Name")
|
81
|
+
self.other_label.setText("Name")
|
83
82
|
self.field3.setAccessibleName("Name")
|
84
|
-
|
85
|
-
label.setText("ST/DX/#")
|
83
|
+
self.exch_label.setText("ST/DX/#")
|
86
84
|
self.field4.setAccessibleName("State D X or Number")
|
87
85
|
|
88
86
|
|
@@ -93,34 +91,22 @@ def reset_label(self):
|
|
93
91
|
def set_tab_next(self):
|
94
92
|
"""Set TAB Advances"""
|
95
93
|
self.tab_next = {
|
96
|
-
self.callsign: self.
|
97
|
-
self.
|
98
|
-
|
99
|
-
|
100
|
-
self.
|
101
|
-
QtWidgets.QLineEdit
|
102
|
-
),
|
103
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
|
104
|
-
QtWidgets.QLineEdit
|
105
|
-
),
|
106
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
94
|
+
self.callsign: self.sent,
|
95
|
+
self.sent: self.field2.findChild(QtWidgets.QLineEdit),
|
96
|
+
self.receive: self.other_1,
|
97
|
+
self.other_1: self.other_2,
|
98
|
+
self.other_2: self.callsign,
|
107
99
|
}
|
108
100
|
|
109
101
|
|
110
102
|
def set_tab_prev(self):
|
111
103
|
"""Set TAB Advances"""
|
112
104
|
self.tab_prev = {
|
113
|
-
self.callsign: self.
|
114
|
-
self.
|
115
|
-
self.
|
116
|
-
|
117
|
-
|
118
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field2.findChild(
|
119
|
-
QtWidgets.QLineEdit
|
120
|
-
),
|
121
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
|
122
|
-
QtWidgets.QLineEdit
|
123
|
-
),
|
105
|
+
self.callsign: self.other_2,
|
106
|
+
self.sent: self.callsign,
|
107
|
+
self.receive: self.sent,
|
108
|
+
self.other_1: self.receive,
|
109
|
+
self.other_2: self.other_1,
|
124
110
|
}
|
125
111
|
|
126
112
|
|
not1mm/plugins/darc_xmas.py
CHANGED
@@ -77,11 +77,9 @@ def interface(self):
|
|
77
77
|
self.field3.show()
|
78
78
|
self.field4.show()
|
79
79
|
self.snt_label.setText("SNT")
|
80
|
-
|
81
|
-
label.setText("DOK/# Sent")
|
80
|
+
self.other_label.setText("DOK/# Sent")
|
82
81
|
self.field3.setAccessibleName("RST Sent")
|
83
|
-
|
84
|
-
label.setText("DOK/# RCVD")
|
82
|
+
self.exch_label.setText("DOK/# RCVD")
|
85
83
|
self.field4.setAccessibleName("DOK/NM or Number")
|
86
84
|
|
87
85
|
|
@@ -92,34 +90,22 @@ def reset_label(self):
|
|
92
90
|
def set_tab_next(self):
|
93
91
|
"""Set TAB Advances"""
|
94
92
|
self.tab_next = {
|
95
|
-
self.callsign: self.
|
96
|
-
self.
|
97
|
-
|
98
|
-
|
99
|
-
self.
|
100
|
-
QtWidgets.QLineEdit
|
101
|
-
),
|
102
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
|
103
|
-
QtWidgets.QLineEdit
|
104
|
-
),
|
105
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
93
|
+
self.callsign: self.sent,
|
94
|
+
self.sent: self.receive,
|
95
|
+
self.receive: self.other_1,
|
96
|
+
self.other_1: self.other_2,
|
97
|
+
self.other_2: self.callsign,
|
106
98
|
}
|
107
99
|
|
108
100
|
|
109
101
|
def set_tab_prev(self):
|
110
102
|
"""Set TAB Advances"""
|
111
103
|
self.tab_prev = {
|
112
|
-
self.callsign: self.
|
113
|
-
self.
|
114
|
-
self.
|
115
|
-
|
116
|
-
|
117
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field2.findChild(
|
118
|
-
QtWidgets.QLineEdit
|
119
|
-
),
|
120
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
|
121
|
-
QtWidgets.QLineEdit
|
122
|
-
),
|
104
|
+
self.callsign: self.other_2,
|
105
|
+
self.sent: self.callsign,
|
106
|
+
self.receive: self.sent,
|
107
|
+
self.other_1: self.receive,
|
108
|
+
self.other_2: self.other_1,
|
123
109
|
}
|
124
110
|
|
125
111
|
|
@@ -163,18 +149,16 @@ def predupe(self):
|
|
163
149
|
|
164
150
|
def prefill(self):
|
165
151
|
"""Fill SentNR"""
|
166
|
-
field = self.field3.findChild(QtWidgets.QLineEdit)
|
167
152
|
sent_sxchange_setting = self.contest_settings.get("SentExchange", "")
|
168
153
|
if sent_sxchange_setting.strip() == "#":
|
169
154
|
result = self.database.get_serial()
|
170
155
|
serial_nr = str(result.get("serial_nr", "1")).zfill(3)
|
171
156
|
if serial_nr == "None":
|
172
157
|
serial_nr = "001"
|
173
|
-
|
174
|
-
|
175
|
-
field.setText(serial_nr)
|
158
|
+
if len(self.other_1.text()) == 0:
|
159
|
+
self.other_1.setText(serial_nr)
|
176
160
|
else:
|
177
|
-
|
161
|
+
self.other_1.setText(sent_sxchange_setting)
|
178
162
|
|
179
163
|
if self.other_2.text() == "":
|
180
164
|
call = self.callsign.text().upper()
|
@@ -46,11 +46,9 @@ def interface(self):
|
|
46
46
|
self.field4.show()
|
47
47
|
self.snt_label.setText("SNT")
|
48
48
|
self.field1.setAccessibleName("RST Sent")
|
49
|
-
|
50
|
-
label.setText("Name")
|
49
|
+
self.other_label.setText("Name")
|
51
50
|
self.field3.setAccessibleName("Name")
|
52
|
-
|
53
|
-
label.setText("Comment")
|
51
|
+
self.exch_label.setText("Comment")
|
54
52
|
self.field4.setAccessibleName("Comment")
|
55
53
|
|
56
54
|
|
@@ -61,34 +59,22 @@ def reset_label(self):
|
|
61
59
|
def set_tab_next(self):
|
62
60
|
"""Set TAB Advances"""
|
63
61
|
self.tab_next = {
|
64
|
-
self.callsign: self.
|
65
|
-
self.
|
66
|
-
|
67
|
-
|
68
|
-
self.
|
69
|
-
QtWidgets.QLineEdit
|
70
|
-
),
|
71
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
|
72
|
-
QtWidgets.QLineEdit
|
73
|
-
),
|
74
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
62
|
+
self.callsign: self.sent,
|
63
|
+
self.sent: self.receive,
|
64
|
+
self.receive: self.other_1,
|
65
|
+
self.other_1: self.other_2,
|
66
|
+
self.other_2: self.callsign,
|
75
67
|
}
|
76
68
|
|
77
69
|
|
78
70
|
def set_tab_prev(self):
|
79
71
|
"""Set TAB Advances"""
|
80
72
|
self.tab_prev = {
|
81
|
-
self.callsign: self.
|
82
|
-
self.
|
83
|
-
self.
|
84
|
-
|
85
|
-
|
86
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field2.findChild(
|
87
|
-
QtWidgets.QLineEdit
|
88
|
-
),
|
89
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
|
90
|
-
QtWidgets.QLineEdit
|
91
|
-
),
|
73
|
+
self.callsign: self.other_2,
|
74
|
+
self.sent: self.callsign,
|
75
|
+
self.receive: self.sent,
|
76
|
+
self.other_1: self.receive,
|
77
|
+
self.other_2: self.other_1,
|
92
78
|
}
|
93
79
|
|
94
80
|
|
@@ -140,3 +126,116 @@ def cabrillo(self, file_encoding):
|
|
140
126
|
|
141
127
|
def recalculate_mults(self):
|
142
128
|
"""Recalculates multipliers after change in logged qso."""
|
129
|
+
|
130
|
+
|
131
|
+
def process_esm(self, new_focused_widget=None, with_enter=False):
|
132
|
+
"""ESM State Machine"""
|
133
|
+
|
134
|
+
# self.pref["run_state"]
|
135
|
+
|
136
|
+
# -----===== Assigned F-Keys =====-----
|
137
|
+
# self.esm_dict["CQ"]
|
138
|
+
# self.esm_dict["EXCH"]
|
139
|
+
# self.esm_dict["QRZ"]
|
140
|
+
# self.esm_dict["AGN"]
|
141
|
+
# self.esm_dict["HISCALL"]
|
142
|
+
# self.esm_dict["MYCALL"]
|
143
|
+
# self.esm_dict["QSOB4"]
|
144
|
+
|
145
|
+
# ----==== text fields ====----
|
146
|
+
# self.callsign
|
147
|
+
# self.sent
|
148
|
+
# self.receive
|
149
|
+
# self.other_1
|
150
|
+
# self.other_2
|
151
|
+
|
152
|
+
if new_focused_widget is not None:
|
153
|
+
self.current_widget = self.inputs_dict.get(new_focused_widget)
|
154
|
+
|
155
|
+
# print(f"checking esm {self.current_widget=} {with_enter=} {self.pref.get("run_state")=}")
|
156
|
+
|
157
|
+
for a_button in [
|
158
|
+
self.F1,
|
159
|
+
self.F2,
|
160
|
+
self.F3,
|
161
|
+
self.F4,
|
162
|
+
self.F5,
|
163
|
+
self.F6,
|
164
|
+
self.F7,
|
165
|
+
self.F8,
|
166
|
+
self.F9,
|
167
|
+
self.F10,
|
168
|
+
self.F11,
|
169
|
+
self.F12,
|
170
|
+
]:
|
171
|
+
self.restore_button_color(a_button)
|
172
|
+
|
173
|
+
buttons_to_send = []
|
174
|
+
|
175
|
+
if self.pref.get("run_state"):
|
176
|
+
if self.current_widget == "callsign":
|
177
|
+
if len(self.callsign.text()) < 3:
|
178
|
+
self.make_button_green(self.esm_dict["CQ"])
|
179
|
+
buttons_to_send.append(self.esm_dict["CQ"])
|
180
|
+
elif len(self.callsign.text()) > 2:
|
181
|
+
self.make_button_green(self.esm_dict["HISCALL"])
|
182
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
183
|
+
buttons_to_send.append(self.esm_dict["HISCALL"])
|
184
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
185
|
+
|
186
|
+
elif self.current_widget in ["other_1", "other_2"]:
|
187
|
+
if self.other_2.text() == "" and self.other_1.text() == "":
|
188
|
+
self.make_button_green(self.esm_dict["AGN"])
|
189
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
190
|
+
else:
|
191
|
+
self.make_button_green(self.esm_dict["QRZ"])
|
192
|
+
buttons_to_send.append(self.esm_dict["QRZ"])
|
193
|
+
buttons_to_send.append("LOGIT")
|
194
|
+
|
195
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
196
|
+
for button in buttons_to_send:
|
197
|
+
if button:
|
198
|
+
if button == "LOGIT":
|
199
|
+
self.save_contact()
|
200
|
+
continue
|
201
|
+
self.process_function_key(button)
|
202
|
+
else:
|
203
|
+
if self.current_widget == "callsign":
|
204
|
+
if len(self.callsign.text()) > 2:
|
205
|
+
self.make_button_green(self.esm_dict["MYCALL"])
|
206
|
+
buttons_to_send.append(self.esm_dict["MYCALL"])
|
207
|
+
|
208
|
+
elif self.current_widget in ["other_1", "other_2"]:
|
209
|
+
if self.other_2.text() == "" and self.other_1.text() == "":
|
210
|
+
self.make_button_green(self.esm_dict["AGN"])
|
211
|
+
buttons_to_send.append(self.esm_dict["AGN"])
|
212
|
+
else:
|
213
|
+
self.make_button_green(self.esm_dict["EXCH"])
|
214
|
+
buttons_to_send.append(self.esm_dict["EXCH"])
|
215
|
+
buttons_to_send.append("LOGIT")
|
216
|
+
if with_enter is True and bool(len(buttons_to_send)):
|
217
|
+
for button in buttons_to_send:
|
218
|
+
if button:
|
219
|
+
if button == "LOGIT":
|
220
|
+
self.save_contact()
|
221
|
+
continue
|
222
|
+
self.process_function_key(button)
|
223
|
+
|
224
|
+
|
225
|
+
def populate_history_info_line(self):
|
226
|
+
result = self.database.fetch_call_history(self.callsign.text())
|
227
|
+
if result:
|
228
|
+
self.history_info.setText(
|
229
|
+
f"{result.get('Call', '')}, {result.get('Name', '')}, {result.get('UserText','...')}"
|
230
|
+
)
|
231
|
+
else:
|
232
|
+
self.history_info.setText("")
|
233
|
+
|
234
|
+
|
235
|
+
def check_call_history(self):
|
236
|
+
""""""
|
237
|
+
result = self.database.fetch_call_history(self.callsign.text())
|
238
|
+
if result:
|
239
|
+
self.history_info.setText(f"{result.get('UserText','')}")
|
240
|
+
if self.other_1.text() == "":
|
241
|
+
self.other_1.setText(f"{result.get('Name', '')}")
|
not1mm/plugins/helvetia.py
CHANGED
@@ -116,11 +116,9 @@ def interface(self):
|
|
116
116
|
self.field2.show()
|
117
117
|
self.field3.show()
|
118
118
|
self.field4.show()
|
119
|
-
|
120
|
-
label.setText("Sent")
|
119
|
+
self.other_label.setText("Sent")
|
121
120
|
self.field3.setAccessibleName("Sent")
|
122
|
-
|
123
|
-
label.setText("Canton/SN")
|
121
|
+
self.exch_label.setText("Canton/SN")
|
124
122
|
self.field4.setAccessibleName("Canton or SN")
|
125
123
|
|
126
124
|
|
@@ -131,30 +129,22 @@ def reset_label(self):
|
|
131
129
|
def set_tab_next(self):
|
132
130
|
"""Set TAB Advances"""
|
133
131
|
self.tab_next = {
|
134
|
-
self.callsign: self.
|
135
|
-
self.
|
136
|
-
|
137
|
-
|
138
|
-
self.
|
139
|
-
QtWidgets.QLineEdit
|
140
|
-
),
|
141
|
-
self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
|
142
|
-
QtWidgets.QLineEdit
|
143
|
-
),
|
144
|
-
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
|
132
|
+
self.callsign: self.other_1,
|
133
|
+
self.sent: self.other_1,
|
134
|
+
self.receive: self.other_1,
|
135
|
+
self.other_1: self.other_2,
|
136
|
+
self.other_2: self.callsign,
|
145
137
|
}
|
146
138
|
|
147
139
|
|
148
140
|
def set_tab_prev(self):
|
149
141
|
"""Set TAB Advances"""
|
150
142
|
self.tab_prev = {
|
151
|
-
self.callsign: self.
|
152
|
-
self.
|
153
|
-
self.
|
154
|
-
self.
|
155
|
-
self.
|
156
|
-
QtWidgets.QLineEdit
|
157
|
-
),
|
143
|
+
self.callsign: self.other_2,
|
144
|
+
self.sent: self.callsign,
|
145
|
+
self.receive: self.callsign,
|
146
|
+
self.other_1: self.callsign,
|
147
|
+
self.other_2: self.other_1,
|
158
148
|
}
|
159
149
|
|
160
150
|
|
@@ -205,17 +195,16 @@ def predupe(self):
|
|
205
195
|
|
206
196
|
def prefill(self):
|
207
197
|
"""Fill SentNR"""
|
208
|
-
field = self.field3.findChild(QtWidgets.QLineEdit)
|
209
198
|
sent_sxchange_setting = self.contest_settings.get("SentExchange", "")
|
210
199
|
if sent_sxchange_setting.strip() == "#":
|
211
200
|
result = self.database.get_serial()
|
212
201
|
serial_nr = str(result.get("serial_nr", "1")).zfill(3)
|
213
202
|
if serial_nr == "None":
|
214
203
|
serial_nr = "001"
|
215
|
-
if len(
|
216
|
-
|
204
|
+
if len(self.other_1.text()) == 0:
|
205
|
+
self.other_1.setText(serial_nr)
|
217
206
|
else:
|
218
|
-
|
207
|
+
self.other_1.setText(sent_sxchange_setting)
|
219
208
|
|
220
209
|
|
221
210
|
def points(self):
|