not1mm 25.1.6__py3-none-any.whl → 25.1.23__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 CHANGED
@@ -73,6 +73,7 @@ from not1mm.logwindow import LogWindow
73
73
  from not1mm.checkwindow import CheckWindow
74
74
  from not1mm.bandmap import BandMapWindow
75
75
  from not1mm.vfo import VfoWindow
76
+ from not1mm.ratewindow import RateWindow
76
77
  from not1mm.radio import Radio
77
78
  from not1mm.voice_keying import Voice
78
79
  from not1mm.lookupservice import LookupService
@@ -136,6 +137,7 @@ class MainWindow(QtWidgets.QMainWindow):
136
137
  "bandmapwindow": False,
137
138
  "checkwindow": False,
138
139
  "vfowindow": False,
140
+ "ratewindow": False,
139
141
  "darkmode": True,
140
142
  }
141
143
  appstarted = False
@@ -236,6 +238,7 @@ class MainWindow(QtWidgets.QMainWindow):
236
238
  self.actionLog_Window.triggered.connect(self.launch_log_window)
237
239
  self.actionBandmap.triggered.connect(self.launch_bandmap_window)
238
240
  self.actionCheck_Window.triggered.connect(self.launch_check_window)
241
+ self.actionRate_Window.triggered.connect(self.launch_rate_window)
239
242
  self.actionVFO.triggered.connect(self.launch_vfo)
240
243
  self.actionRecalculate_Mults.triggered.connect(self.recalculate_mults)
241
244
  self.actionLoad_Call_History_File.triggered.connect(self.load_call_history)
@@ -642,6 +645,15 @@ class MainWindow(QtWidgets.QMainWindow):
642
645
  self.check_window.hide()
643
646
  self.check_window.message.connect(self.dockwidget_message)
644
647
 
648
+ self.show_splash_msg("Setting up RateWindow.")
649
+ self.rate_window = RateWindow()
650
+ self.rate_window.setObjectName("rate-window")
651
+ if os.environ.get("WAYLAND_DISPLAY") and old_Qt is True:
652
+ self.rate_window.setFeatures(dockfeatures)
653
+ self.addDockWidget(Qt.DockWidgetArea.RightDockWidgetArea, self.rate_window)
654
+ self.rate_window.hide()
655
+ self.rate_window.message.connect(self.dockwidget_message)
656
+
645
657
  self.show_splash_msg("Setting up VFOWindow.")
646
658
  self.vfo_window = VfoWindow()
647
659
  self.vfo_window.setObjectName("vfo-window")
@@ -692,6 +704,15 @@ class MainWindow(QtWidgets.QMainWindow):
692
704
  self.check_window.hide()
693
705
  self.check_window.setActive(False)
694
706
 
707
+ self.actionRate_Window.setChecked(self.pref.get("ratewindow", False))
708
+ if self.actionRate_Window.isChecked():
709
+ print(f"===============ratewindow=============")
710
+ self.rate_window.show()
711
+ self.rate_window.setActive(True)
712
+ else:
713
+ self.rate_window.hide()
714
+ self.rate_window.setActive(False)
715
+
695
716
  self.actionVFO.setChecked(self.pref.get("vfowindow", False))
696
717
  if self.actionVFO.isChecked():
697
718
  self.vfo_window.show()
@@ -1841,6 +1862,17 @@ class MainWindow(QtWidgets.QMainWindow):
1841
1862
  self.check_window.hide()
1842
1863
  self.check_window.setActive(False)
1843
1864
 
1865
+ def launch_rate_window(self) -> None:
1866
+ """Launch the check window"""
1867
+ self.pref["ratewindow"] = self.actionRate_Window.isChecked()
1868
+ self.write_preference()
1869
+ if self.actionRate_Window.isChecked():
1870
+ self.rate_window.show()
1871
+ self.rate_window.setActive(True)
1872
+ else:
1873
+ self.rate_window.hide()
1874
+ self.rate_window.setActive(False)
1875
+
1844
1876
  def launch_vfo(self) -> None:
1845
1877
  """Launch the VFO window"""
1846
1878
  self.pref["vfowindow"] = self.actionVFO.isChecked()
not1mm/data/main.ui CHANGED
@@ -1513,6 +1513,7 @@
1513
1513
  <addaction name="actionLog_Window"/>
1514
1514
  <addaction name="actionBandmap"/>
1515
1515
  <addaction name="actionCheck_Window"/>
1516
+ <addaction name="actionRate_Window"/>
1516
1517
  <addaction name="actionVFO"/>
1517
1518
  </widget>
1518
1519
  <widget class="QMenu" name="menuOther">
@@ -1961,6 +1962,19 @@
1961
1962
  </font>
1962
1963
  </property>
1963
1964
  </action>
1965
+ <action name="actionRate_Window">
1966
+ <property name="checkable">
1967
+ <bool>true</bool>
1968
+ </property>
1969
+ <property name="text">
1970
+ <string>Rate Window</string>
1971
+ </property>
1972
+ <property name="font">
1973
+ <font>
1974
+ <family>JetBrains Mono ExtraLight</family>
1975
+ </font>
1976
+ </property>
1977
+ </action>
1964
1978
  <action name="actionVFO">
1965
1979
  <property name="checkable">
1966
1980
  <bool>true</bool>