Changeset 9dc891a8419d7ed0740e8b201de4748863fbbf9a
- Timestamp:
- 11/11/10 11:24:36 (3 years ago)
- Children:
- b44c79e0e4fc87ca92b457910eafb10b81bf1725
- Parents:
- b5a6e22f617a855e58a6812eea15550c401cc03c
- git-committer:
- Matias De la Puente <mfpuente.ar@…> (11/11/10 11:24:36)
- Files:
-
- 5 edited
-
gtkfrontend/builderslist.vala (modified) (3 diffs)
-
libi4uccore/builderslist.vala (modified) (1 diff)
-
libi4uccore/profilebuilder.vala (modified) (1 diff)
-
libi4uccore/projectprofile.vala (modified) (3 diffs)
-
libi4uccore/projectspagelogic.vala (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gtkfrontend/builderslist.vala
ref124dc r9dc891a 26 26 private ItemsCombo _device_types_combo = new ItemsCombo (_("Device type:")); 27 27 private ItemsCombo _devices_combo = new ItemsCombo (_("Device:")); 28 private Entry _ extra_options_entry = new Entry ();28 private Entry _link_options_entry = new Entry (); 29 29 30 30 public string current_builder { set; get; } 31 31 public string current_device_type { set; get; } 32 32 public string current_device { set; get; } 33 public string current_ extra_options { set; get; }33 public string current_link_options { set; get; } 34 34 35 35 public BuildersList () … … 40 40 41 41 var vbox = new VBox (false, 0); 42 Utils.add_vbox_label (vbox, _(" Extra options:"), _extra_options_entry);42 Utils.add_vbox_label (vbox, _("Link options:"), _link_options_entry); 43 43 pack_start (vbox, false, false, 4); 44 44 … … 47 47 bind_property ("current-device-type", _device_types_combo, "current-item", BindingFlags.BIDIRECTIONAL); 48 48 bind_property ("current-device", _devices_combo, "current-item", BindingFlags.BIDIRECTIONAL); 49 bind_property ("current- extra-options", _extra_options_entry, "text", BindingFlags.BIDIRECTIONAL);49 bind_property ("current-link-options", _link_options_entry, "text", BindingFlags.BIDIRECTIONAL); 50 50 } 51 51 -
libi4uccore/builderslist.vala
ref124dc r9dc891a 25 25 public abstract string current_device_type { set; get; } 26 26 public abstract string current_device { set; get; } 27 public abstract string current_ extra_options { set; get; }27 public abstract string current_link_options { set; get; } 28 28 29 29 public abstract void add_builder (string builder); -
libi4uccore/profilebuilder.vala
r234a777 r9dc891a 120 120 command = command.replace ("%project", _project.name.replace (" ", "_")); 121 121 command = command.replace ("%profile", _profile.name.replace (" ", "_")); 122 command += " " + _profile. extra_options;122 command += " " + _profile.link_options; 123 123 124 124 var command_context = new CommandContext (); -
libi4uccore/projectprofile.vala
rdfe49c7 r9dc891a 30 30 public string device_type { set; get; default = ""; } 31 31 public string device { set; get; default = ""; } 32 public string extra_options { set; get; default = ""; }32 public string link_options { set; get; default = ""; } 33 33 public Gee.List<string> files { get { return _files; } } 34 34 … … 41 41 _device_type = key_file.get_string (group, "device_type"); 42 42 _device = key_file.get_string (group, "device"); 43 if (key_file.has_key (group, " extra_options"))44 _ extra_options = key_file.get_string (group, "extra_options");43 if (key_file.has_key (group, "link_options")) 44 _link_options = key_file.get_string (group, "link_options"); 45 45 46 46 var files = key_file.get_string_list (group, "files"); … … 57 57 key_file.set_string (group, "device_type", _device_type); 58 58 key_file.set_string (group, "device", _device); 59 key_file.set_string (group, " extra_options", _extra_options);59 key_file.set_string (group, "link_options", _link_options); 60 60 key_file.set_string_list (group, "files", _files.to_array ()); 61 61 } -
libi4uccore/projectspagelogic.vala
ref124dc r9dc891a 61 61 _view.builders_list.notify["current-device-type"].connect (on_device_type_changed); 62 62 _view.builders_list.notify["current-device"].connect (on_device_changed); 63 _view.builders_list.notify["current- extra-options"].connect (on_extra_options_changed);63 _view.builders_list.notify["current-link-options"].connect (on_link_options_changed); 64 64 } 65 65 … … 142 142 new_profile.device_type = profile.device_type; 143 143 new_profile.device = profile.device; 144 new_profile. extra_options = profile.extra_options;144 new_profile.link_options = profile.link_options; 145 145 new_profile.files.add_all (dialog_view.activated_files); 146 146 _current_project.profiles[new_profile.name] = new_profile; … … 199 199 _view.builders_list.current_device_type = profile.device_type; 200 200 _view.builders_list.current_device = profile.device; 201 _view.builders_list.current_ extra_options = profile.extra_options;201 _view.builders_list.current_link_options = profile.link_options; 202 202 203 203 _view.builders_list_sensitive = true; … … 297 297 } 298 298 299 private void on_ extra_options_changed ()299 private void on_link_options_changed () 300 300 { 301 301 if (!_view.builders_list_sensitive) … … 305 305 return; 306 306 307 var current_ extra_options = _view.builders_list.current_extra_options;308 _current_project.profiles[_current_profile]. extra_options = current_extra_options ?? "";307 var current_link_options = _view.builders_list.current_link_options; 308 _current_project.profiles[_current_profile].link_options = current_link_options ?? ""; 309 309 _current_project.save (); 310 310 }
Note: See TracChangeset
for help on using the changeset viewer.

