summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYogeswaran Umasankar <kd8mbd@gmail.com>2024-01-23 18:18:04 +0000
committerYogeswaran Umasankar <kd8mbd@gmail.com>2024-01-23 18:18:04 +0000
commit99bce70f3ca5cea0eb28f5158cfa00803cf6a19a (patch)
tree0bc7364205b908656b4b2d520626bbc251a4bbb5
parent691b1b410562075e0d76033f5c8ddaf1da7344d0 (diff)
New upstream version 20240122
-rw-r--r--PKG-INFO2
-rw-r--r--chirp.egg-info/PKG-INFO2
-rw-r--r--chirp/__init__.py2
-rw-r--r--chirp/locale/es/LC_MESSAGES/CHIRP.mobin68698 -> 70259 bytes
-rw-r--r--chirp/locale/it/LC_MESSAGES/CHIRP.mobin15431 -> 15513 bytes
-rw-r--r--chirp/locale/tr_TR/LC_MESSAGES/CHIRP.mobin66111 -> 67620 bytes
-rw-r--r--chirp/share/chirpw.169
-rw-r--r--chirp/wxui/main.py11
-rw-r--r--chirp/wxui/memedit.py1
-rw-r--r--setup.py2
-rwxr-xr-xtools/check_commit.sh6
-rw-r--r--tools/cpep8.blacklist2
12 files changed, 82 insertions, 15 deletions
diff --git a/PKG-INFO b/PKG-INFO
index 4c5ee89..2e7d530 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: chirp
-Version: 20240117
+Version: 20240122
Summary: A cross-platform cross-radio programming tool
Home-page: https://chirp.danplanet.com
Requires-Python: >=3.7,<4
diff --git a/chirp.egg-info/PKG-INFO b/chirp.egg-info/PKG-INFO
index 4c5ee89..2e7d530 100644
--- a/chirp.egg-info/PKG-INFO
+++ b/chirp.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: chirp
-Version: 20240117
+Version: 20240122
Summary: A cross-platform cross-radio programming tool
Home-page: https://chirp.danplanet.com
Requires-Python: >=3.7,<4
diff --git a/chirp/__init__.py b/chirp/__init__.py
index b1c982e..fc64372 100644
--- a/chirp/__init__.py
+++ b/chirp/__init__.py
@@ -1 +1 @@
-CHIRP_VERSION = "next-20240117"
+CHIRP_VERSION = "next-20240122"
diff --git a/chirp/locale/es/LC_MESSAGES/CHIRP.mo b/chirp/locale/es/LC_MESSAGES/CHIRP.mo
index fb874f9..52a2df1 100644
--- a/chirp/locale/es/LC_MESSAGES/CHIRP.mo
+++ b/chirp/locale/es/LC_MESSAGES/CHIRP.mo
Binary files differ
diff --git a/chirp/locale/it/LC_MESSAGES/CHIRP.mo b/chirp/locale/it/LC_MESSAGES/CHIRP.mo
index 20a27c6..3b006e8 100644
--- a/chirp/locale/it/LC_MESSAGES/CHIRP.mo
+++ b/chirp/locale/it/LC_MESSAGES/CHIRP.mo
Binary files differ
diff --git a/chirp/locale/tr_TR/LC_MESSAGES/CHIRP.mo b/chirp/locale/tr_TR/LC_MESSAGES/CHIRP.mo
index aa358fc..adf35ae 100644
--- a/chirp/locale/tr_TR/LC_MESSAGES/CHIRP.mo
+++ b/chirp/locale/tr_TR/LC_MESSAGES/CHIRP.mo
Binary files differ
diff --git a/chirp/share/chirpw.1 b/chirp/share/chirpw.1
index ba9b9e8..65579ce 100644
--- a/chirp/share/chirpw.1
+++ b/chirp/share/chirpw.1
@@ -2,7 +2,7 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
-.TH CHIRP 1 "February 12, 2011"
+.TH CHIRP "1" "January 2024"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
@@ -19,8 +19,14 @@
chirpw \- A tool for programming two-way radio equipment
.SH SYNOPSIS
.B chirpw
-.RI [ options ]
-.br
+[\-h] [\-\-module module] [\-\-version] [\-\-profile]
+[\-\-onlydriver ONLYDRIVER [ONLYDRIVER ...]] [\-\-inspect]
+[\-\-page PAGE]
+[\-\-action {upload,download,query_rr,query_mg,query_rb,query_dm,new}]
+[\-\-restore] [\-\-force\-language FORCE_LANGUAGE]
+[\-\-no\-linux\-gdk\-backend] [\-\-install\-desktop\-app] [\-q] [\-v]
+[\-\-log LOG_FILE] [\-\-log\-level LOG_LEVEL]
+[file ...]
.SH DESCRIPTION
This manual page documents briefly the
.B chirpw
@@ -36,11 +42,62 @@ A summary of options is included below.
.TP
.B \-\-help
Show summary of options.
+.SS "positional arguments:"
.TP
-.B \-\-profile
-Enable Profiling.
+file
+File to open
+.SS "options:"
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Show summary of options
+.TP
+\fB\-\-module\fR module
+Load module on startup
+.TP
+\fB\-\-version\fR
+Print version and exit
+.TP
+\fB\-\-profile\fR
+Enable profiling
+.TP
+\fB\-\-onlydriver\fR ONLYDRIVER [ONLYDRIVER ...]
+Include this driver while loading
+.TP
+\fB\-\-inspect\fR
+Show wxPython inspector
+.TP
+\fB\-\-page\fR PAGE
+Select this page of the default editor at start
+.TP
+\fB\-\-action\fR {upload,download,query_rr,query_mg,query_rb,query_dm,new}
+Start UI action immediately
+.TP
+\fB\-\-restore\fR
+Restore previous tabs
+.TP
+\fB\-\-force\-language\fR FORCE_LANGUAGE
+Force locale to this ISO language code
+.TP
+\fB\-\-no\-linux\-gdk\-backend\fR
+Do not force GDK_BACKEND=x11
+.TP
+\fB\-\-install\-desktop\-app\fR
+Prompt to install a desktop icon
+.TP
+\fB\-q\fR, \fB\-\-quiet\fR
+Decrease verbosity
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+Increase verbosity
+.TP
+\fB\-\-log\fR LOG_FILE
+Log messages to a file
+.TP
+\fB\-\-log\-level\fR LOG_LEVEL
+Log file verbosity (critical, error, warn, info,
+debug). Defaults to 'debug'.
.SH AUTHOR
chirpw was written by Dan Smith.
.PP
-This manual page was written by Dan Smith (with help from Steve Conklin),
+This manual page was written using help2man
for the Debian project (and may be used by others).
diff --git a/chirp/wxui/main.py b/chirp/wxui/main.py
index df0560f..77eed77 100644
--- a/chirp/wxui/main.py
+++ b/chirp/wxui/main.py
@@ -811,6 +811,13 @@ class ChirpMain(wx.Frame):
self.Bind(wx.EVT_MENU, self._menu_large_font, large_item)
large_item.Check(CONF.get_bool('font_large', 'state', False))
+ restore_tabs = wx.MenuItem(view_menu, wx.NewId(),
+ _('Restore tabs on start'),
+ kind=wx.ITEM_CHECK)
+ view_menu.Append(restore_tabs)
+ self.Bind(wx.EVT_MENU, self._menu_restore_tabs, restore_tabs)
+ restore_tabs.Check(CONF.get_bool('restore_tabs', 'prefs', False))
+
radio_menu = wx.Menu()
if sys.platform == 'darwin':
@@ -1442,6 +1449,10 @@ class ChirpMain(wx.Frame):
CONF.set_bool('font_large', menuitem.IsChecked(), 'state')
self._update_font()
+ def _menu_restore_tabs(self, event):
+ menuitem = event.GetEventObject().FindItemById(event.GetId())
+ CONF.set_bool('restore_tabs', menuitem.IsChecked(), 'prefs')
+
def _make_backup(self, radio):
if not isinstance(radio, chirp_common.CloneModeRadio):
LOG.debug('Not backing up %s' % radio)
diff --git a/chirp/wxui/memedit.py b/chirp/wxui/memedit.py
index dab020d..c904326 100644
--- a/chirp/wxui/memedit.py
+++ b/chirp/wxui/memedit.py
@@ -43,6 +43,7 @@ WX_GTK = 'gtk' in wx.version().lower()
class ChirpMemoryGrid(wx.grid.Grid, glr.GridWithLabelRenderersMixin):
def __init__(self, *a, **k):
wx.grid.Grid.__init__(self, *a, **k)
+ self.SetColLabelSize(wx.grid.GRID_AUTOSIZE)
glr.GridWithLabelRenderersMixin.__init__(self)
diff --git a/setup.py b/setup.py
index 1fdbeb9..453813f 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ setup(name='chirp',
description='A cross-platform cross-radio programming tool',
packages=find_packages(include=["chirp*"]),
include_package_data=True,
- version='20240117',
+ version='20240122',
url='https://chirp.danplanet.com',
python_requires=">=3.7,<4",
install_requires=[
diff --git a/tools/check_commit.sh b/tools/check_commit.sh
index 5a86e33..84b69db 100755
--- a/tools/check_commit.sh
+++ b/tools/check_commit.sh
@@ -46,12 +46,12 @@ if grep -E "[^_]_\([^\"']" added_lines; then
fail 'Translated strings must be literals!'
fi
-if grep '/cpep8.manifest' added_lines; then
+if git diff ${BASE}.. 'tools/cpep8.manifest' | tail -n +5 | grep -q '^+'; then
fail 'Do not add new files to cpep8.manifest; no longer needed'
fi
-if grep '/cpep8.blacklist' added_lines; then
- fail 'Do not add new files to cpep8.blacklist'
+if git diff ${BASE}.. 'tools/cpep8.blacklist' | tail -n +5 | grep -q '^+'; then
+ fail 'Do not add new files to cpep8.blacklist; fix the code'
fi
grep -i 'license' added_lines > license_lines
diff --git a/tools/cpep8.blacklist b/tools/cpep8.blacklist
index 7011690..a6acd4b 100644
--- a/tools/cpep8.blacklist
+++ b/tools/cpep8.blacklist
@@ -2,13 +2,11 @@
# DO NOT ADD NEW FILES!! Instead, fix the code to be compliant.
# Over time, this list should shrink and (eventually) be eliminated.
./chirp/drivers/kyd_IP620.py
-./chirp/drivers/kguv8dplus.py
./chirp/drivers/ft450d.py
./chirp/drivers/ft70.py
./chirp/drivers/hg_uv98.py
./chirp/drivers/hobbypcb.py
./chirp/drivers/retevis_rb28.py
-./chirp/drivers/bj9900.py
./chirp/drivers/th7800.py
./chirp/drivers/icx90.py
./chirp/drivers/kguv8e.py