diff --git a/CHANGELOG.md b/CHANGELOG.md index 094d2fd..67f0ea0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Changelog +- [24-12-3] Add button to bandmap to delete marked spots. - [24-11-27] Added CAT poll interval. - [24-11-26-1] Changed ESC to stop CW, CTRL-W to wipe input fields. - [24-11-26] Trying something different with rigctld parsing. diff --git a/README.md b/README.md index cecd0f2..da37ddb 100644 --- a/README.md +++ b/README.md @@ -207,25 +207,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's. ## Recent Changes (Polishing the Turd) -- [24-11-27] Added CAT poll interval. -- [24-11-26-1] Changed ESC to stop CW, CTRL-W to wipe input fields. -- [24-11-26] Trying something different with rigctld parsing. -- [24-11-15] Fix CQWW points, fix mode showing as RPRT. -- [24-11-24-1] Add ESM to CQ160, ARRL VHF, ARRL 10M, 10 10 contests. -- [24-11-24] Added ESM to IARU HF and FieldDay. -- [24-11-23] Made macros per contest. -- [24-11-21] Merged PR from alduhoo setting CW Speed via rigctld, Added ESM and call history support for General Logging. -- [24-11-19] Added ESM to Stew Perry, Phone Weekly, Medium Speed Test and JIDX. -- [24-11-18] Accepted PR from dg9vh for the DARC XMAS Contest. -- [24-11-17] Accepted PR from dg9vh for the LZ DX contest. -- [24-11-15] Made checkwindow font bigger and match a little more contrasted. -- [24-11-12] add check for ipv4 address for CAT. -- [24-11-10] ReJiggered CAT/flrig interface to hopefull make it more workable. -- [24-11-6] Added Call history to ARRL VHF, CQ160, CQWW, StewPerry, Weekly RTTY -- [24-11-5] Fix crash with bad qrz credentials. -- [24-11-3-1] Fixed CWT ESM, Add Call History to CWT, Helvetia, WFD, NAQP, K1USN. Add ESM Helvetia. -- [24-11-3] Added RAEM contest -- [24-11-2] Add beginning of call history files. Add command buttons. +- [24-12-3] Add button to bandmap to delete marked spots. See [CHANGELOG.md](CHANGELOG.md) for prior changes. diff --git a/not1mm/bandmap.py b/not1mm/bandmap.py index 37e8623..82f75fd 100755 --- a/not1mm/bandmap.py +++ b/not1mm/bandmap.py @@ -311,6 +311,10 @@ def delete_spots(self, minutes: int) -> None: (f"-{minutes} minutes",), ) + def delete_marks(self) -> None: + """Delete marked spots.""" + self.cursor.execute("delete from spots where ts > datetime('now');") + class BandMapWindow(QDockWidget): """The BandMapWindow class.""" @@ -345,6 +349,7 @@ def __init__(self): self.agetime = self.clear_spot_olderSpinBox.value() self.clear_spot_olderSpinBox.valueChanged.connect(self.spot_aging_changed) self.clearButton.clicked.connect(self.clear_spots) + self.clearmarkedButton.clicked.connect(self.clear_marked) self.zoominButton.clicked.connect(self.dec_zoom) self.zoomoutButton.clicked.connect(self.inc_zoom) self.connectButton.clicked.connect(self.connect) @@ -873,6 +878,10 @@ def clear_spots(self) -> None: """Delete all spots from the database.""" self.spots.delete_spots(0) + def clear_marked(self) -> None: + """Delete all marked spots.""" + self.spots.delete_marks() + def spot_aging_changed(self) -> None: """Called when spot aging spinbox is changed.""" self.agetime = self.clear_spot_olderSpinBox.value() diff --git a/not1mm/data/bandmap.ui b/not1mm/data/bandmap.ui index 27069bd..8a28a66 100644 --- a/not1mm/data/bandmap.ui +++ b/not1mm/data/bandmap.ui @@ -6,7 +6,7 @@ 0 0 - 383 + 342 700 @@ -97,7 +97,7 @@ 0 0 - 359 + 326 512 @@ -148,18 +148,49 @@ Qt::NoFocus - clear all + clear spots clear spots + + + 1110 + 27 + + + + 🗑 Spots + + + + + + + + 110 + 0 + + + + + 1110 + 27 + + - Clear All + 🗑 Marked + + + 27 + 27 + + Qt::NoFocus @@ -170,12 +201,18 @@ zoom in - Zoom In + ➕ + + + 27 + 27 + + Qt::NoFocus @@ -186,7 +223,7 @@ zoom out - Zoom Out + ➖ @@ -205,12 +242,6 @@ - - - JetBrains Mono ExtraLight - 11 - - Clear older than diff --git a/not1mm/lib/version.py b/not1mm/lib/version.py index ee357f4..c69cae8 100644 --- a/not1mm/lib/version.py +++ b/not1mm/lib/version.py @@ -1,3 +1,3 @@ """It's the version""" -__version__ = "24.11.27" +__version__ = "24.12.3" diff --git a/pyproject.toml b/pyproject.toml index d859730..63ee677 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "not1mm" -version = "24.11.27" +version = "24.12.3" description = "NOT1MM Logger" readme = "README.md" requires-python = ">=3.9"