# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1332533558 21600 # Node ID ca42bc2080e10bc4d7fe2471807f8979d141e5b2 # Parent 84b71b058e563a7837ac4be12e5b4857b0c779cf Add support for opening and saving .eve (EVE) and .vx5 (VX5 Commander) files.
diff -r 84b71b058e56 -r ca42bc2080e1 chirpui/mainapp.py --- a/chirpui/mainapp.py Fri Mar 23 14:12:25 2012 -0600 +++ b/chirpui/mainapp.py Fri Mar 23 14:12:38 2012 -0600 @@ -34,7 +34,7 @@ common.log_exception() common.show_error("\nThe Pyserial module is not installed!") from chirp import platform, xml, generic_csv, directory, util -from chirp import ic9x, kenwood_live, idrp, vx7 +from chirp import ic9x, kenwood_live, idrp, vx7, vx5 from chirp import CHIRP_VERSION, chirp_common, detect, errors from chirp import icf, ic9x_icf from chirpui import editorset, clone, miscwidgets, config, reporting @@ -316,7 +316,9 @@ types = [(_("CHIRP Radio Images") + " (*.img)", "*.img"), (_("CHIRP Files") + " (*.chirp)", "*.chirp"), (_("CSV Files") + " (*.csv)", "*.csv"), + (_("EVE Files (VX5)") + " (*.eve)", "*.eve"), (_("ICF Files") + " (*.icf)", "*.icf"), + (_("VX5 Commander Files") + " (*.vx5)", "*.vx5"), (_("VX7 Commander Files") + " (*.vx7)", "*.vx7"), ] fname = platform.get_platform().gui_open_file(types=types) @@ -454,6 +456,9 @@
if isinstance(eset.radio, vx7.VX7Radio): types += [(_("VX7 Commander") + " (*.vx7)", "vx7")] + elif isinstance(eset.radio, vx5.VX5Radio): + types += [(_("EVE") + " (*.eve)", "eve")] + types += [(_("VX5 Commander") + " (*.vx5)", "vx5")]
while True: fname = platform.get_platform().gui_save_file(types=types) @@ -716,7 +721,9 @@ types = [(_("CHIRP Files") + " (*.chirp)", "*.chirp"), (_("CHIRP Radio Images") + " (*.img)", "*.img"), (_("CSV Files") + " (*.csv)", "*.csv"), + (_("EVE Files (VX5)") + " (*.eve)", "*.eve"), (_("ICF Files") + " (*.icf)", "*.icf"), + (_("VX5 Commander Files") + " (*.vx5)", "*.vx5"), (_("VX7 Commander Files") + " (*.vx7)", "*.vx7")] filen = platform.get_platform().gui_open_file(types=types) if not filen: