- public void show(AltosState state, int crc_errors) {
- battery.show(state, crc_errors);
- apogee.show(state, crc_errors);
- main.show(state, crc_errors);
- pad_alt.show(state, crc_errors);
- if (state.gps != null) {
- gps_locked.show(state, crc_errors);
- gps_ready.show(state, crc_errors);
- pad_lat.show(state, crc_errors);
- pad_lon.show(state, crc_errors);
- } else {
- gps_locked.hide();
- gps_ready.hide();
- pad_lat.hide();
- pad_lon.hide();
- }
+ public void font_size_changed(int font_size) {
+ battery.font_size_changed(font_size);
+ apogee.font_size_changed(font_size);
+ main.font_size_changed(font_size);
+ logging_ready.font_size_changed(font_size);
+ gps_locked.font_size_changed(font_size);
+ gps_ready.font_size_changed(font_size);
+ receiver_battery.font_size_changed(font_size);
+ pad_lat.font_size_changed(font_size);
+ pad_lon.font_size_changed(font_size);
+ pad_alt.font_size_changed(font_size);
+ }
+
+ public void units_changed(boolean imperial_units) {
+ battery.units_changed(imperial_units);
+ apogee.units_changed(imperial_units);
+ main.units_changed(imperial_units);
+ logging_ready.units_changed(imperial_units);
+ gps_locked.units_changed(imperial_units);
+ gps_ready.units_changed(imperial_units);
+ receiver_battery.units_changed(imperial_units);
+ pad_lat.units_changed(imperial_units);
+ pad_lon.units_changed(imperial_units);
+ pad_alt.units_changed(imperial_units);
+ }
+
+ public void show(AltosState state, AltosListenerState listener_state) {
+ battery.show(state, listener_state);
+ apogee.show(state, listener_state);
+ main.show(state, listener_state);
+ logging_ready.show(state, listener_state);
+ pad_alt.show(state, listener_state);
+ receiver_battery.show(state, listener_state);
+ gps_locked.show(state, listener_state);
+ gps_ready.show(state, listener_state);
+ pad_lat.show(state, listener_state);
+ pad_lon.show(state, listener_state);