[chirp_devel] [PATCH 1 of 1] Add support for opening and saving .vx6 (VX6 Commander) files. #233

Tom Hayward
Thu Jul 5 12:08:11 PDT 2012


# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1341515283 21600
# Node ID 166bae28722df2071a056ff8590ceaf903c3740d
# Parent  aaf354614d35d231a87d7f722a2e0ccb5449fcf0
Add support for opening and saving .vx6 (VX6 Commander) files. #233

diff -r aaf354614d35 -r 166bae28722d chirpui/mainapp.py
--- a/chirpui/mainapp.py	Thu Jul 05 13:01:03 2012 -0600
+++ b/chirpui/mainapp.py	Thu Jul 05 13:08:03 2012 -0600
@@ -36,7 +36,7 @@
     common.log_exception()
     common.show_error("\nThe Pyserial module is not installed!")
 from chirp import platform, generic_xml, generic_csv, directory, util
-from chirp import ic9x, kenwood_live, idrp, vx7, vx5
+from chirp import ic9x, kenwood_live, idrp, vx7, vx5, vx6
 from chirp import CHIRP_VERSION, chirp_common, detect, errors
 from chirp import icf, ic9x_icf
 from chirpui import editorset, clone, miscwidgets, config, reporting, fips
@@ -269,6 +269,7 @@
                      (_("EVE Files (VX5)") + " (*.eve)", "*.eve"),
                      (_("ICF Files") + " (*.icf)", "*.icf"),
                      (_("VX5 Commander Files") + " (*.vx5)", "*.vx5"),
+                     (_("VX6 Commander Files") + " (*.vx6)", "*.vx6"),
                      (_("VX7 Commander Files") + " (*.vx7)", "*.vx7"),
                      ]
             fname = platform.get_platform().gui_open_file(types=types)
@@ -407,6 +408,8 @@
 
         if isinstance(eset.radio, vx7.VX7Radio):
             types += [(_("VX7 Commander") + " (*.vx7)", "vx7")]
+        elif isinstance(eset.radio, vx6.VX6Radio):
+            types += [(_("VX6 Commander") + " (*.vx6)", "vx6")]
         elif isinstance(eset.radio, vx5.VX5Radio):
             types += [(_("EVE") + " (*.eve)", "eve")]
             types += [(_("VX5 Commander") + " (*.vx5)", "vx5")]
@@ -677,6 +680,7 @@
                  (_("Kenwood HMK Files") + " (*.hmk)", "*.hmk"),
                  (_("Travel Plus Files") + " (*.tpe)", "*.tpe"),
                  (_("VX5 Commander Files") + " (*.vx5)", "*.vx5"),
+                 (_("VX6 Commander Files") + " (*.vx6)", "*.vx6"),
                  (_("VX7 Commander Files") + " (*.vx7)", "*.vx7")]
         filen = platform.get_platform().gui_open_file(types=types)
         if not filen:



More information about the chirp_devel mailing list