What a dev build takes from the unit's paf.dev.config.json beyond the walk: the clock and date each screen pins, the settings it applies at launch, the readings it seeds in place of the fixture, and the steps of a walk the file lays out as a list. More...
#include <pebble.h>#include "health/hrv_log.h"#include "io/stores/health_store.h"#include "io/stores/system_store.h"Go to the source code of this file.
Data Structures | |
| struct | DevSetting |
| One setting the config applies, by its message key. More... | |
| struct | DevStep |
| One screen of a walk the config lays out as steps. More... | |
| struct | DevReadings |
| The clock, date, and seeds one screen shows. The launch's comes first in the table. More... | |
| struct | DevDate |
| A pinned date, counted the way a struct tm counts it. More... | |
| struct | DevRun |
| A run of rows in a table, such as one agenda's events. More... | |
| struct | DevPanel |
| One screen of a panel walk. More... | |
| struct | DevHourReading |
| One heart rate reading for the day's chart. More... | |
| struct | DevHrvReading |
| One HRV reading for the log, placed by its minute of the day. More... | |
| struct | DevEvent |
| One agenda event, placed against the watch's clock when the stores are seeded. More... | |
| struct | DevHealth |
| One health seed, with the day's heart rate and the HRV log the store builds from it. More... | |
| struct | DevSystem |
| One system seed, with its next alarm counted from when the stores are seeded. More... | |
Macros | |
| #define | DEV_NONE 0xFF |
| The mark for no pick in a set of readings: a store left to the fixture, or a date left to the watch. | |
Enumerations | |
| enum | DevValueType { DEV_VALUE_NUMBER , DEV_VALUE_TEXT } |
| How a setting's value travels, the way the settings page sends it. More... | |
| enum | DevStore { DEV_STORE_WEATHER , DEV_STORE_HEALTH , DEV_STORE_SYSTEM , DEV_STORE_PHONE , DEV_STORE_MUSIC , DEV_STORE_STOCKS , DEV_STORE_CALENDAR , DEV_STORE_LOCATION , DEV_STORE_COUNT } |
| The stores a dev build seeds, for asking whether the config seeds one. More... | |
Functions | |
| void | dev_show_panel (int panel, int size) |
| Shows one panel on its own at one size, for a walk that lists panels. The face defines it, and the dev plugin calls it on each step of the walk, then runs the face's theme hook and rebuilds. | |
| void | dev_show_layout (const char *layout) |
| Shows one whole layout, for a walk with a step that has one. The face defines it, and the dev plugin calls it on each step that has a layout, after the step's settings, then seeds the stores, runs the face's theme hook, and rebuilds. A face whose walks have no layouts leaves it out. | |
| static void | dev_config_apply_settings (void) |
| Does nothing with dev mode off. | |
| static uint8_t | dev_config_pick (DevStore store) |
| Has no seeds with dev mode off. | |
| static void | dev_config_pin (struct tm *when) |
| Leaves the time alone with dev mode off. | |
| static bool | dev_config_seed (DevStore store) |
| Seeds nothing with dev mode off. | |
| static uint16_t | dev_config_walk_count (void) |
| Has no walk with dev mode off. | |
| static void | dev_config_walk_show (uint16_t step) |
| Does nothing with dev mode off. | |
What a dev build takes from the unit's paf.dev.config.json beyond the walk: the clock and date each screen pins, the settings it applies at launch, the readings it seeds in place of the fixture, and the steps of a walk the file lays out as a list.
paf build –dev writes the face's share of the file into a header the build puts beside the settings page's, and dev_config.c is the only file that includes it. The harness in dev_walk.c asks here before it seeds each store, and runs a listed walk through here, so a face reaches all of it through the hooks in dev_hooks.h. With dev mode off every call here is an empty inline, and dev_config.c compiles to nothing.
A face whose walk lists panels defines dev_show_panel, and one whose walk has a step with a layout defines dev_show_layout. A dev build whose walk needs one the face lacks stops at the link, naming it, and a walk that needs neither links without them.