Changeset f096c48b4894fe8c41da1baeb3fce1e1e1d1e56a


Ignore:
Timestamp:
21/12/10 13:20:57 (2 years ago)
Author:
Matias De la Puente <mfpuente.ar@…>
Children:
15c36f68bf2989f4965aa740a6d7e33fb6fd0016
Parents:
074ab0776f20e64fa3748352b6e8e4808c13af2b
git-committer:
Matias De la Puente <mfpuente.ar@…> (21/12/10 13:20:57)
Message:

Programmers: Rename 'hexfile' as 'firmware'

Now that multiple firmware types are supported, 'firmware' is a more proper name

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • data/lpc21isp.i4ucprogrammer

    r074ab07 rf096c48  
    66has_devices_folder=false 
    77has_clock=true 
    8 write_flash_command=lpc21isp -control -wipe -verify %hexfile %serial_port %baud_rate %clock 
     8write_flash_command=lpc21isp -control -wipe -verify %firmware %serial_port %baud_rate %clock 
    99devices=LPC21xx; 
    1010firmware_types=.hex; 
  • data/pickit2.i4ucprogrammer

    r074ab07 rf096c48  
    77has_devices_folder=true 
    88has_clock=false 
    9 write_flash_command=pk2cmd -b%devices_folder -P%device -F%hexfile -M 
    10 read_flash_command=pk2cmd -b%devices_folder -P%device -GF%hexfile 
    11 verify_flash_command=pk2cmd -b%devices_folder -P%device -F%hexfile -Y 
     9write_flash_command=pk2cmd -b%devices_folder -P%device -F%firmware -M 
     10read_flash_command=pk2cmd -b%devices_folder -P%device -GF%firmware 
     11verify_flash_command=pk2cmd -b%devices_folder -P%device -F%firmware -Y 
    1212erase_flash_command=pk2cmd -b%devices_folder -P%device -E 
    1313read_fuses_command=pk2cmd -b%devices_folder -P%device -GC 
  • data/picstartplus.i4ucprogrammer

    r074ab07 rf096c48  
    77has_devices_folder=false 
    88has_clock=false 
    9 write_flash_command=picp %serial_port %device -bp -wp %hexfile 
    10 read_flash_command=picp %serial_port %device -rp %hexfile 
     9write_flash_command=picp %serial_port %device -bp -wp %firmware 
     10read_flash_command=picp %serial_port %device -rp %firmware 
    1111erase_flash_command=picp %serial_port %device -ef 
    1212write_fuses_command=picp %serial_port %device -wc %fuses 
  • gtkfrontend/programmersview.vala

    r074ab07 rf096c48  
    101101        } 
    102102         
    103         public void show_open_dialog (Gee.List<string> firmware_types, ref string folder_uri, out string hexfile_uri) 
    104         { 
    105                 var dialog = new FileChooserDialog (_("Save hexfile as"), null, FileChooserAction.SAVE); 
     103        public void show_open_dialog (Gee.List<string> firmware_types, ref string folder_uri, out string firmware_uri) 
     104        { 
     105                var dialog = new FileChooserDialog (_("Save firmware as"), null, FileChooserAction.SAVE); 
    106106                dialog.set_current_folder_uri (folder_uri); 
    107107                dialog.do_overwrite_confirmation = true; 
     
    118118                { 
    119119                        folder_uri = dialog.get_current_folder_uri (); 
    120                         hexfile_uri = dialog.get_uri (); 
     120                        firmware_uri = dialog.get_uri (); 
    121121                } 
    122122                dialog.destroy (); 
  • libi4uccore/programmerslogic.vala

    r074ab07 rf096c48  
    2727        private Command _command = create_command (); 
    2828        private SerialPortUtils _serial_port_utils = create_serial_port_utils (); 
    29         private string _read_hexfile; 
     29        private string _read_firmware; 
    3030         
    3131        public bool can_write_flash { private set; get; } 
     
    8686                var filtered_command = filter_command (_current_programmer.write_flash_command); 
    8787                 
    88                 var hexfile = File.new_for_uri (uri).get_path (); 
    89                 filtered_command = filtered_command.replace ("%hexfile", Shell.quote (hexfile)); 
     88                var firmware = File.new_for_uri (uri).get_path (); 
     89                filtered_command = filtered_command.replace ("%firmware", Shell.quote (firmware)); 
    9090                 
    9191                try 
     
    295295        { 
    296296                string folder_uri = I4uc.Core.Settings.instance.working_folder; 
    297                 string hexfile_uri; 
    298                 _view.show_open_dialog (ref folder_uri, out hexfile_uri); 
    299                 if (hexfile_uri != null) 
     297                string firmware_uri; 
     298                _view.show_open_dialog (_current_programmer.firmware_types, ref folder_uri, out firmware_uri); 
     299                if (firmware_uri != null) 
    300300                { 
    301301                        I4uc.Core.Settings.instance.working_folder = folder_uri; 
    302                         _read_hexfile = hexfile_uri; 
     302                        _read_firmware = firmware_uri; 
    303303                        run_command (_current_programmer.read_flash_command); 
    304304                } 
     
    328328                 
    329329                // Open the hex file if read flash was selected 
    330                 if (_read_hexfile != null) 
    331                 { 
    332                         _documents_logic.open_document (_read_hexfile); 
    333                         _read_hexfile = null; 
     330                if (_read_firmware != null) 
     331                { 
     332                        _documents_logic.open_document (_read_firmware); 
     333                        _read_firmware = null; 
    334334                } 
    335335                 
     
    343343                var filtered_command = filter_command (command); 
    344344                 
    345                 if (_read_hexfile == null) 
     345                if (_read_firmware == null) 
    346346                { 
    347347                        if (_view.pages_panel.current_page != null && 
    348348                            _current_programmer.is_valid_firmware_type (_view.pages_panel.current_page.tab_title)) 
    349349                        { 
    350                                 var hexfile = File.new_for_uri (_view.pages_panel.current_page.title).get_path (); 
    351                                 filtered_command = filtered_command.replace ("%hexfile", Shell.quote (hexfile)); 
     350                                var firmware = File.new_for_uri (_view.pages_panel.current_page.title).get_path (); 
     351                                filtered_command = filtered_command.replace ("%firmware", Shell.quote (firmware)); 
    352352                        } 
    353353                } 
    354354                else 
    355355                { 
    356                         var hexfile = File.new_for_uri (_read_hexfile).get_path (); 
    357                         filtered_command = filtered_command.replace ("%hexfile", Shell.quote (hexfile)); 
     356                        var firmware = File.new_for_uri (_read_firmware).get_path (); 
     357                        filtered_command = filtered_command.replace ("%firmware", Shell.quote (firmware)); 
    358358                } 
    359359                 
  • libi4uccore/programmersview.vala

    r074ab07 rf096c48  
    4747        public abstract DialogResponse show_yes_no_message (string message, bool cancel = false); 
    4848        public abstract void show_log_page (); 
    49         public abstract void show_open_dialog (Gee.List<string> firmware_types, ref string folder_uri, out string hexfile_uri); 
     49        public abstract void show_open_dialog (Gee.List<string> firmware_types, ref string folder_uri, out string firmware_uri); 
    5050} 
Note: See TracChangeset for help on using the changeset viewer.