diff --git a/.DS_Store b/.DS_Store index 26fd638..2033963 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.github/workflows/build-develop.yml b/.github/workflows/build-develop.yml new file mode 100644 index 0000000..440a216 --- /dev/null +++ b/.github/workflows/build-develop.yml @@ -0,0 +1,380 @@ +name: CI — Develop + +on: + push: + branches: [develop] + pull_request: + branches: [develop] + workflow_dispatch: + inputs: + debug: + description: 'Enable verbose build output' + type: boolean + default: false + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + # ── 1. SDK validation ──────────────────────────────────────────────────────── + validate-sdk: + name: Validate SDK + runs-on: ubuntu-latest + outputs: + sdk-version: ${{ steps.version.outputs.value }} + + steps: + - name: Restore SDK cache + id: cache + uses: actions/cache@v4 + with: + path: ~/connectiq-sdk + key: connectiq-sdk-${{ vars.CIQ_SDK_VERSION }} + + - name: Install SDK + if: steps.cache.outputs.cache-hit != 'true' + env: + SDK_URL: ${{ secrets.CIQ_SDK_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + if [ -z "$SDK_URL" ]; then + echo "::error title=Missing secret::CIQ_SDK_URL is not configured." + exit 1 + fi + echo "Downloading SDK…" + wget -q \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$SDK_URL" -O /tmp/sdk.archive + echo "Download complete ($(du -sh /tmp/sdk.archive | cut -f1))" + mkdir -p "$HOME/connectiq-sdk" + if file /tmp/sdk.archive | grep -q "gzip\|tar"; then + tar -xzf /tmp/sdk.archive -C "$HOME/connectiq-sdk" --strip-components=1 + else + unzip -q /tmp/sdk.archive -d "$HOME/connectiq-sdk" + fi + + # If we got the SDK Manager (or a partial SDK missing device defs), use it to complete the install + if find "$HOME/connectiq-sdk" -name "sdkmanager" -type f | grep -q . && \ + ! find "$HOME/connectiq-sdk" -name "devices" -type d | grep -q .; then + + echo "SDK Manager detected — using it to download SDK ${{ vars.CIQ_SDK_VERSION }}..." + SDKMGR=$(find "$HOME/connectiq-sdk" -name "sdkmanager" -type f | head -1) + chmod +x "$SDKMGR" + + # SDK Manager installs to ~/.Garmin/ConnectIQ/Sdks/ + mkdir -p "$HOME/.Garmin/ConnectIQ/Sdks" + + # Run headless install + "$SDKMGR" --headless 2>&1 & + SDKMGR_PID=$! + sleep 5 + kill $SDKMGR_PID 2>/dev/null || true + + # Check where the SDK was installed + SDK_INSTALL=$(find "$HOME/.Garmin/ConnectIQ/Sdks" -name "monkeyc" -type f 2>/dev/null | head -1 | xargs -I{} dirname {} | xargs -I{} dirname {}) + + if [ -n "$SDK_INSTALL" ]; then + echo "SDK found at $SDK_INSTALL — linking to connectiq-sdk/" + cp -r "$SDK_INSTALL/"* "$HOME/connectiq-sdk/" + else + echo "::error::SDK Manager headless install did not produce the SDK." + echo "::error::You need to upload the actual SDK zip (not the SDK Manager)." + echo "::error::On your local machine: run SDK Manager → install SDK 9.1.0 → zip the folder at ~/.Garmin/ConnectIQ/Sdks/connectiq-sdk-lin-9.1.0-XXXX/ → upload that zip to GitHub Releases." + exit 1 + fi + fi + + - name: Add SDK to PATH + run: | + MONKEYC=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1) + if [ -z "$MONKEYC" ]; then + echo "::error::monkeyc not found in $HOME/connectiq-sdk" + echo "=== SDK contents ===" + find "$HOME/connectiq-sdk" -maxdepth 4 | head -40 + exit 1 + fi + chmod +x "$MONKEYC" + echo "$(dirname "$MONKEYC")" >> $GITHUB_PATH + + - name: Install device profiles + env: + DEVICES_URL: ${{ secrets.CIQ_DEVICES_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + if [ -z "$DEVICES_URL" ]; then + echo "::error::CIQ_DEVICES_URL is not configured." + exit 1 + fi + mkdir -p "$HOME/.Garmin/ConnectIQ" + echo "Downloading device profiles…" + HTTP_CODE=$(wget \ + --server-response \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$DEVICES_URL" -O /tmp/devices.tar.gz 2>&1 \ + | awk '/^ HTTP/{print $2}' | tail -1) + echo "HTTP status: ${HTTP_CODE}" + if [ "${HTTP_CODE}" != "200" ]; then + echo "::error::Device profile download failed (HTTP ${HTTP_CODE}). Check CIQ_DEVICES_URL secret." + echo "First 200 bytes of response:" + head -c 200 /tmp/devices.tar.gz | cat -v + exit 1 + fi + if ! file /tmp/devices.tar.gz | grep -qE "gzip|tar"; then + echo "::error::Downloaded file is not a valid tar.gz:" + file /tmp/devices.tar.gz + exit 1 + fi + tar -xzf /tmp/devices.tar.gz -C "$HOME/.Garmin/ConnectIQ" + echo "Device profiles installed: $(ls "$HOME/.Garmin/ConnectIQ/Devices/" | wc -l) devices" + + - name: Read SDK version + id: version + run: | + VER=$(monkeyc --version 2>&1 | grep -oP '\d+\.\d+\.\d+' | head -1) + echo "value=${VER}" >> $GITHUB_OUTPUT + echo "Connect IQ SDK: ${VER}" + + - name: Show SDK structure + run: | + SDK_ROOT=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1 | xargs -I{} dirname {} | xargs -I{} dirname {}) + echo "=== SDK root ===" + ls "$SDK_ROOT" + echo "=== share/ contents ===" + if [ -d "$SDK_ROOT/share" ]; then ls "$SDK_ROOT/share"; else echo "(no share/ dir)"; fi + echo "=== share/devices/ contents (SDK 9.x device specs) ===" + if [ -d "$SDK_ROOT/share/devices" ]; then ls "$SDK_ROOT/share/devices" | head -20; else echo "(no share/devices/ dir)"; fi + echo "=== file type of monkeyc binary ===" + MONKEYC=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1) + file "$MONKEYC" + echo "=== monkeyc script (first 20 lines) ===" + head -20 "$MONKEYC" + + - name: Verify device support + run: | + SDK_ROOT=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1 | xargs -I{} dirname {} | xargs -I{} dirname {}) + # SDK 7.x and earlier: devices/ at root + # SDK 8.x/9.x: devices/ moved to share/devices/ + # Fallback: resources/device-reference/ (UI reference only, not compiler specs) + DEVICES_DIR=$(find "$SDK_ROOT" -maxdepth 2 -name "devices" -type d | head -1) + DEVICE_REF=$(find "$SDK_ROOT" -type d -name "device-reference" | head -1) + DEVICES_XML=$(find "$SDK_ROOT" -name "devices.xml" -type f | head -1) + CHECK_DIR="${DEVICES_DIR:-$DEVICE_REF}" + + if [ -n "$CHECK_DIR" ]; then + REQUIRED=(fenix7 fenix7pro fenix7s fenix7x fr165 fr165m fr245 fr245m fr255 fr255m fr255s fr255sm fr265 fr265s fr955 vivoactive5) + MISSING=() + for d in "${REQUIRED[@]}"; do + [[ ! -d "$CHECK_DIR/$d" ]] && MISSING+=("$d") + done + if [[ ${#MISSING[@]} -gt 0 ]]; then + echo "::error title=SDK too old::SDK ${{ steps.version.outputs.value }} does not support: ${MISSING[*]}" + echo "::error::Update CIQ_SDK_URL to Connect IQ SDK 9.1.0." + exit 1 + fi + echo "All 16 devices confirmed in SDK ${{ steps.version.outputs.value }} ✓" + elif [ -n "$DEVICES_XML" ]; then + echo "::error title=SDK too old::SDK uses old devices.xml format — version ${{ steps.version.outputs.value }} is too old." + echo "::error::Update CIQ_SDK_URL to Connect IQ SDK 9.1.0." + exit 1 + else + echo "::error::No device definitions found. SDK extraction may have failed." + find "$HOME/connectiq-sdk" -type d -maxdepth 4 + exit 1 + fi + + - name: Test device recognition + run: | + FAILED=() + for PROBE in fenix7 fr265 vivoactive5; do + RESULT=$(monkeyc -d "$PROBE" -f /nonexistent.jungle 2>&1 || true) + if echo "$RESULT" | grep -qi "invalid device"; then + FAILED+=("$PROBE") + fi + done + if [[ ${#FAILED[@]} -gt 0 ]]; then + echo "::error::monkeyc does not recognize: ${FAILED[*]}" + echo "::error::The SDK binary is too old. Update CIQ_SDK_URL to Connect IQ SDK 9.1.0" + echo "::error::and bump CIQ_SDK_VERSION to bust the cache." + exit 1 + fi + echo "Device recognition test passed ✓" + + # ── 2. Parallel builds ─────────────────────────────────────────────────────── + build: + name: Build / ${{ matrix.device }} + runs-on: ubuntu-latest + needs: validate-sdk + strategy: + fail-fast: false + matrix: + device: + - fenix7 + - fenix7pro + - fenix7s + - fenix7x + - fr165 + - fr165m + - fr245 + - fr245m + - fr255 + - fr255m + - fr255s + - fr255sm + - fr265 + - fr265s + - fr955 + - vivoactive5 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Restore SDK cache + id: cache + uses: actions/cache@v4 + with: + path: ~/connectiq-sdk + key: connectiq-sdk-${{ vars.CIQ_SDK_VERSION }} + + - name: Install SDK (cache miss fallback) + if: steps.cache.outputs.cache-hit != 'true' + env: + SDK_URL: ${{ secrets.CIQ_SDK_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + wget -q \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$SDK_URL" -O /tmp/sdk.archive + mkdir -p "$HOME/connectiq-sdk" + if file /tmp/sdk.archive | grep -qE "gzip|tar"; then + tar -xzf /tmp/sdk.archive -C "$HOME/connectiq-sdk" --strip-components=1 + else + unzip -q /tmp/sdk.archive -d "$HOME/connectiq-sdk" + fi + + - name: Add SDK to PATH + run: | + MONKEYC=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1) + if [ -z "$MONKEYC" ]; then + echo "::error::monkeyc not found — SDK cache miss and fallback install may have failed." + exit 1 + fi + chmod +x "$MONKEYC" + echo "MONKEYC_PATH=$MONKEYC" >> $GITHUB_ENV + echo "$(dirname "$MONKEYC")" >> $GITHUB_PATH + + - name: Install device profiles + env: + DEVICES_URL: ${{ secrets.CIQ_DEVICES_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + if [ -z "$DEVICES_URL" ]; then + echo "::error::CIQ_DEVICES_URL is not configured." + exit 1 + fi + mkdir -p "$HOME/.Garmin/ConnectIQ" + echo "Downloading device profiles…" + HTTP_CODE=$(wget \ + --server-response \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$DEVICES_URL" -O /tmp/devices.tar.gz 2>&1 \ + | awk '/^ HTTP/{print $2}' | tail -1) + echo "HTTP status: ${HTTP_CODE}" + if [ "${HTTP_CODE}" != "200" ]; then + echo "::error::Device profile download failed (HTTP ${HTTP_CODE}). Check CIQ_DEVICES_URL secret." + echo "First 200 bytes of response:" + head -c 200 /tmp/devices.tar.gz | cat -v + exit 1 + fi + if ! file /tmp/devices.tar.gz | grep -qE "gzip|tar"; then + echo "::error::Downloaded file is not a valid tar.gz:" + file /tmp/devices.tar.gz + exit 1 + fi + tar -xzf /tmp/devices.tar.gz -C "$HOME/.Garmin/ConnectIQ" + echo "Device profiles installed: $(ls "$HOME/.Garmin/ConnectIQ/Devices/" | wc -l) devices" + + - name: Diagnose monkeyc + run: | + echo "=== monkeyc location ===" + which monkeyc || echo "monkeyc not in PATH" + echo "=== java version ===" + java -version 2>&1 || echo "java not found" + echo "=== SDK structure ===" + SDK_ROOT=$(dirname "$(which monkeyc)") + ls "$SDK_ROOT" + echo "=== device recognition test ===" + monkeyc -d "${{ matrix.device }}" -f /nonexistent.jungle 2>&1 || true + + - name: Write developer key + env: + KEY_B64: ${{ secrets.DEVELOPER_KEY_B64 }} + run: | + if [ -z "$KEY_B64" ]; then + echo "::error::DEVELOPER_KEY_B64 is not configured." + exit 1 + fi + echo "$KEY_B64" | base64 --decode > developer_key.der + + - name: Compile + id: compile + run: | + mkdir -p bin + EXTRA_FLAGS="" + [[ "${{ inputs.debug }}" == "true" ]] && EXTRA_FLAGS="-g" + monkeyc \ + -o "bin/garminsmartwatch_${{ matrix.device }}.prg" \ + -f monkey.jungle \ + -y developer_key.der \ + -d "${{ matrix.device }}" \ + --release \ + $EXTRA_FLAGS + SIZE=$(stat -c%s "bin/garminsmartwatch_${{ matrix.device }}.prg") + echo "size=${SIZE}" >> $GITHUB_OUTPUT + echo "garminsmartwatch_${{ matrix.device }}.prg — ${SIZE} bytes ✓" + + - name: Upload artifact + if: steps.compile.outcome == 'success' + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.device }}-${{ github.sha }} + path: bin/garminsmartwatch_${{ matrix.device }}.prg + retention-days: 7 + + # ── 3. Report ──────────────────────────────────────────────────────────────── + report: + name: Build Report + runs-on: ubuntu-latest + needs: [validate-sdk, build] + if: always() + + steps: + - name: Write job summary + env: + BUILD_RESULT: ${{ needs.build.result }} + SDK_VERSION: ${{ needs.validate-sdk.outputs.sdk-version }} + run: | + [[ "$BUILD_RESULT" == "success" ]] && ICON="✅" || ICON="❌" + cat >> $GITHUB_STEP_SUMMARY << SUMMARY + # ${ICON} Build Report — Develop + + | | | + |---|---| + | **Branch** | \`${{ github.ref_name }}\` | + | **Commit** | [\`${GITHUB_SHA:0:7}\`](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}) | + | **SDK version** | \`${SDK_VERSION}\` | + | **Trigger** | \`${{ github.event_name }}\` | + | **Actor** | @${{ github.actor }} | + | **Overall status** | **${BUILD_RESULT}** | + + Artifacts retained for **7 days**. + SUMMARY + + - name: Fail if builds failed + if: needs.build.result != 'success' + run: exit 1 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4fc0325 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,325 @@ +name: CI — Main + +on: + push: + branches: [main] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false + +jobs: + # ── 1. SDK validation ──────────────────────────────────────────────────────── + validate-sdk: + name: Validate SDK + runs-on: ubuntu-latest + outputs: + sdk-version: ${{ steps.version.outputs.value }} + + steps: + - name: Restore SDK cache + id: cache + uses: actions/cache@v4 + with: + path: ~/connectiq-sdk + key: connectiq-sdk-${{ vars.CIQ_SDK_VERSION }} + + - name: Install SDK + if: steps.cache.outputs.cache-hit != 'true' + env: + SDK_URL: ${{ secrets.CIQ_SDK_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + if [ -z "$SDK_URL" ]; then + echo "::error::CIQ_SDK_URL is not configured." + exit 1 + fi + echo "Downloading SDK…" + wget -q \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$SDK_URL" -O /tmp/sdk.archive + echo "Download complete ($(du -sh /tmp/sdk.archive | cut -f1))" + mkdir -p "$HOME/connectiq-sdk" + if file /tmp/sdk.archive | grep -q "gzip\|tar"; then + tar -xzf /tmp/sdk.archive -C "$HOME/connectiq-sdk" --strip-components=1 + else + unzip -q /tmp/sdk.archive -d "$HOME/connectiq-sdk" + fi + + - name: Add SDK to PATH + run: | + MONKEYC=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1) + if [ -z "$MONKEYC" ]; then + echo "::error::monkeyc not found in $HOME/connectiq-sdk" + find "$HOME/connectiq-sdk" -type d -maxdepth 4 + exit 1 + fi + chmod +x "$MONKEYC" + echo "$(dirname "$MONKEYC")" >> $GITHUB_PATH + + - name: Install device profiles + env: + DEVICES_URL: ${{ secrets.CIQ_DEVICES_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + if [ -z "$DEVICES_URL" ]; then + echo "::error::CIQ_DEVICES_URL is not configured." + exit 1 + fi + mkdir -p "$HOME/.Garmin/ConnectIQ" + echo "Downloading device profiles…" + HTTP_CODE=$(wget \ + --server-response \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$DEVICES_URL" -O /tmp/devices.tar.gz 2>&1 \ + | awk '/^ HTTP/{print $2}' | tail -1) + echo "HTTP status: ${HTTP_CODE}" + if [ "${HTTP_CODE}" != "200" ]; then + echo "::error::Device profile download failed (HTTP ${HTTP_CODE}). Check CIQ_DEVICES_URL secret." + echo "First 200 bytes of response:" + head -c 200 /tmp/devices.tar.gz | cat -v + exit 1 + fi + if ! file /tmp/devices.tar.gz | grep -qE "gzip|tar"; then + echo "::error::Downloaded file is not a valid tar.gz:" + file /tmp/devices.tar.gz + exit 1 + fi + tar -xzf /tmp/devices.tar.gz -C "$HOME/.Garmin/ConnectIQ" + echo "Device profiles installed: $(ls "$HOME/.Garmin/ConnectIQ/Devices/" | wc -l) devices" + + - name: Read SDK version + id: version + run: | + VER=$(monkeyc --version 2>&1 | grep -oP '\d+\.\d+\.\d+' | head -1) + echo "value=${VER}" >> $GITHUB_OUTPUT + echo "Connect IQ SDK: ${VER}" + + - name: Show SDK structure + run: | + SDK_ROOT=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1 | xargs -I{} dirname {} | xargs -I{} dirname {}) + echo "=== SDK root ===" + ls "$SDK_ROOT" + echo "=== share/ contents ===" + if [ -d "$SDK_ROOT/share" ]; then ls "$SDK_ROOT/share"; else echo "(no share/ dir)"; fi + echo "=== share/devices/ contents (SDK 9.x device specs) ===" + if [ -d "$SDK_ROOT/share/devices" ]; then ls "$SDK_ROOT/share/devices" | head -20; else echo "(no share/devices/ dir)"; fi + echo "=== file type of monkeyc binary ===" + MONKEYC=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1) + file "$MONKEYC" + echo "=== monkeyc script (first 20 lines) ===" + head -20 "$MONKEYC" + + - name: Verify device support + run: | + SDK_ROOT=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1 | xargs -I{} dirname {} | xargs -I{} dirname {}) + # SDK 7.x and earlier: devices/ at root + # SDK 8.x/9.x: devices/ moved to share/devices/ + # Fallback: resources/device-reference/ (UI reference only, not compiler specs) + DEVICES_DIR=$(find "$SDK_ROOT" -maxdepth 2 -name "devices" -type d | head -1) + DEVICE_REF=$(find "$SDK_ROOT" -type d -name "device-reference" | head -1) + DEVICES_XML=$(find "$SDK_ROOT" -name "devices.xml" -type f | head -1) + CHECK_DIR="${DEVICES_DIR:-$DEVICE_REF}" + + if [ -n "$CHECK_DIR" ]; then + REQUIRED=(fenix7 fenix7pro fenix7s fenix7x fr165 fr165m fr245 fr245m fr255 fr255m fr255s fr255sm fr265 fr265s fr955 vivoactive5) + MISSING=() + for d in "${REQUIRED[@]}"; do + [[ ! -d "$CHECK_DIR/$d" ]] && MISSING+=("$d") + done + if [[ ${#MISSING[@]} -gt 0 ]]; then + echo "::error title=SDK too old::SDK ${{ steps.version.outputs.value }} does not support: ${MISSING[*]}" + echo "::error::Update CIQ_SDK_URL to Connect IQ SDK 9.1.0." + exit 1 + fi + echo "All 16 devices confirmed ✓" + elif [ -n "$DEVICES_XML" ]; then + echo "::error title=SDK too old::SDK ${{ steps.version.outputs.value }} uses old devices.xml format." + echo "::error::Update CIQ_SDK_URL to Connect IQ SDK 9.1.0." + exit 1 + else + echo "::error::No device definitions found." + find "$HOME/connectiq-sdk" -type d -maxdepth 4 + exit 1 + fi + + - name: Test device recognition + run: | + FAILED=() + for PROBE in fenix7 fr265 vivoactive5; do + RESULT=$(monkeyc -d "$PROBE" -f /nonexistent.jungle 2>&1 || true) + if echo "$RESULT" | grep -qi "invalid device"; then + FAILED+=("$PROBE") + fi + done + if [[ ${#FAILED[@]} -gt 0 ]]; then + echo "::error::monkeyc does not recognize: ${FAILED[*]}" + echo "::error::The SDK binary is too old. Update CIQ_SDK_URL to Connect IQ SDK 9.1.0" + echo "::error::and bump CIQ_SDK_VERSION to bust the cache." + exit 1 + fi + echo "Device recognition test passed ✓" + + # ── 2. Parallel builds ─────────────────────────────────────────────────────── + build: + name: Build / ${{ matrix.device }} + runs-on: ubuntu-latest + needs: validate-sdk + strategy: + fail-fast: false + matrix: + device: + - fenix7 + - fenix7pro + - fenix7s + - fenix7x + - fr165 + - fr165m + - fr245 + - fr245m + - fr255 + - fr255m + - fr255s + - fr255sm + - fr265 + - fr265s + - fr955 + - vivoactive5 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Restore SDK cache + id: cache + uses: actions/cache@v4 + with: + path: ~/connectiq-sdk + key: connectiq-sdk-${{ vars.CIQ_SDK_VERSION }} + + - name: Install SDK (cache miss fallback) + if: steps.cache.outputs.cache-hit != 'true' + env: + SDK_URL: ${{ secrets.CIQ_SDK_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + wget -q \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$SDK_URL" -O /tmp/sdk.archive + mkdir -p "$HOME/connectiq-sdk" + if file /tmp/sdk.archive | grep -q "gzip\|tar"; then + tar -xzf /tmp/sdk.archive -C "$HOME/connectiq-sdk" --strip-components=1 + else + unzip -q /tmp/sdk.archive -d "$HOME/connectiq-sdk" + fi + + - name: Add SDK to PATH + run: | + MONKEYC=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1) + if [ -z "$MONKEYC" ]; then + echo "::error::monkeyc not found — SDK install failed." + exit 1 + fi + chmod +x "$MONKEYC" + echo "$(dirname "$MONKEYC")" >> $GITHUB_PATH + + - name: Install device profiles + env: + DEVICES_URL: ${{ secrets.CIQ_DEVICES_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + if [ -z "$DEVICES_URL" ]; then + echo "::error::CIQ_DEVICES_URL is not configured." + exit 1 + fi + mkdir -p "$HOME/.Garmin/ConnectIQ" + echo "Downloading device profiles…" + HTTP_CODE=$(wget \ + --server-response \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$DEVICES_URL" -O /tmp/devices.tar.gz 2>&1 \ + | awk '/^ HTTP/{print $2}' | tail -1) + echo "HTTP status: ${HTTP_CODE}" + if [ "${HTTP_CODE}" != "200" ]; then + echo "::error::Device profile download failed (HTTP ${HTTP_CODE}). Check CIQ_DEVICES_URL secret." + echo "First 200 bytes of response:" + head -c 200 /tmp/devices.tar.gz | cat -v + exit 1 + fi + if ! file /tmp/devices.tar.gz | grep -qE "gzip|tar"; then + echo "::error::Downloaded file is not a valid tar.gz:" + file /tmp/devices.tar.gz + exit 1 + fi + tar -xzf /tmp/devices.tar.gz -C "$HOME/.Garmin/ConnectIQ" + echo "Device profiles installed: $(ls "$HOME/.Garmin/ConnectIQ/Devices/" | wc -l) devices" + + - name: Write developer key + env: + KEY_B64: ${{ secrets.DEVELOPER_KEY_B64 }} + run: | + if [ -z "$KEY_B64" ]; then + echo "::error::DEVELOPER_KEY_B64 is not configured." + exit 1 + fi + echo "$KEY_B64" | base64 --decode > developer_key.der + + - name: Compile + id: compile + run: | + mkdir -p bin + monkeyc \ + -o "bin/garminsmartwatch_${{ matrix.device }}.prg" \ + -f monkey.jungle \ + -y developer_key.der \ + -d "${{ matrix.device }}" \ + --release + SIZE=$(stat -c%s "bin/garminsmartwatch_${{ matrix.device }}.prg") + echo "size=${SIZE}" >> $GITHUB_OUTPUT + echo "garminsmartwatch_${{ matrix.device }}.prg — ${SIZE} bytes ✓" + + - name: Upload artifact + if: steps.compile.outcome == 'success' + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.device }}-${{ github.sha }} + path: bin/garminsmartwatch_${{ matrix.device }}.prg + retention-days: 30 + + # ── 3. Report ──────────────────────────────────────────────────────────────── + report: + name: Build Report + runs-on: ubuntu-latest + needs: [validate-sdk, build] + if: always() + + steps: + - name: Write job summary + env: + BUILD_RESULT: ${{ needs.build.result }} + SDK_VERSION: ${{ needs.validate-sdk.outputs.sdk-version }} + run: | + [[ "$BUILD_RESULT" == "success" ]] && ICON="✅" || ICON="❌" + cat >> $GITHUB_STEP_SUMMARY << SUMMARY + # ${ICON} Build Report — Main + + | | | + |---|---| + | **Branch** | \`${{ github.ref_name }}\` | + | **Commit** | [\`${GITHUB_SHA:0:7}\`](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}) | + | **SDK version** | \`${SDK_VERSION}\` | + | **Trigger** | \`${{ github.event_name }}\` | + | **Actor** | @${{ github.actor }} | + | **Overall status** | **${BUILD_RESULT}** | + + Artifacts retained for **30 days**. + SUMMARY + + - name: Fail if builds failed + if: needs.build.result != 'success' + run: exit 1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d27251a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,342 @@ +name: Release + +on: + push: + tags: + - 'v*.*.*' + workflow_dispatch: + inputs: + tag: + description: 'Release tag (e.g. v1.0.3)' + required: true + +jobs: + # ── 1. SDK validation ──────────────────────────────────────────────────────── + validate-sdk: + name: Validate SDK + runs-on: ubuntu-latest + outputs: + sdk-version: ${{ steps.version.outputs.value }} + release-tag: ${{ steps.tag.outputs.value }} + + steps: + - name: Resolve release tag + id: tag + run: | + TAG="${{ inputs.tag || github.ref_name }}" + echo "value=${TAG}" >> $GITHUB_OUTPUT + echo "Release tag: ${TAG}" + + - name: Restore SDK cache + id: cache + uses: actions/cache@v4 + with: + path: ~/connectiq-sdk + key: connectiq-sdk-${{ vars.CIQ_SDK_VERSION }} + + - name: Install SDK + if: steps.cache.outputs.cache-hit != 'true' + env: + SDK_URL: ${{ secrets.CIQ_SDK_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + if [ -z "$SDK_URL" ]; then + echo "::error::CIQ_SDK_URL is not configured." + exit 1 + fi + wget -q \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$SDK_URL" -O /tmp/sdk.archive + mkdir -p "$HOME/connectiq-sdk" + if file /tmp/sdk.archive | grep -qE "gzip|tar"; then + tar -xzf /tmp/sdk.archive -C "$HOME/connectiq-sdk" --strip-components=1 + else + unzip -q /tmp/sdk.archive -d "$HOME/connectiq-sdk" + fi + + - name: Add SDK to PATH + run: | + MONKEYC=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1) + if [ -z "$MONKEYC" ]; then + echo "::error::monkeyc not found." + find "$HOME/connectiq-sdk" -maxdepth 4 | head -40 + exit 1 + fi + chmod +x "$MONKEYC" + echo "$(dirname "$MONKEYC")" >> $GITHUB_PATH + + - name: Install device profiles + env: + DEVICES_URL: ${{ secrets.CIQ_DEVICES_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + if [ -z "$DEVICES_URL" ]; then + echo "::error::CIQ_DEVICES_URL is not configured." + exit 1 + fi + mkdir -p "$HOME/.Garmin/ConnectIQ" + echo "Downloading device profiles…" + HTTP_CODE=$(wget \ + --server-response \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$DEVICES_URL" -O /tmp/devices.tar.gz 2>&1 \ + | awk '/^ HTTP/{print $2}' | tail -1) + echo "HTTP status: ${HTTP_CODE}" + if [ "${HTTP_CODE}" != "200" ]; then + echo "::error::Device profile download failed (HTTP ${HTTP_CODE}). Check CIQ_DEVICES_URL secret." + echo "First 200 bytes of response:" + head -c 200 /tmp/devices.tar.gz | cat -v + exit 1 + fi + if ! file /tmp/devices.tar.gz | grep -qE "gzip|tar"; then + echo "::error::Downloaded file is not a valid tar.gz:" + file /tmp/devices.tar.gz + exit 1 + fi + tar -xzf /tmp/devices.tar.gz -C "$HOME/.Garmin/ConnectIQ" + echo "Device profiles installed: $(ls "$HOME/.Garmin/ConnectIQ/Devices/" | wc -l) devices" + + - name: Read SDK version + id: version + run: | + VER=$(monkeyc --version 2>&1 | grep -oP '\d+\.\d+\.\d+' | head -1) + echo "value=${VER}" >> $GITHUB_OUTPUT + echo "Connect IQ SDK: ${VER}" + + - name: Verify device support + run: | + DEVICES_DIR=$(find "$HOME/connectiq-sdk" -name "devices" -type d | head -1) + DEVICE_REF=$(find "$HOME/connectiq-sdk" -type d -name "device-reference" | head -1) + DEVICES_XML=$(find "$HOME/connectiq-sdk" -name "devices.xml" -type f | head -1) + # SDK 9.x uses resources/device-reference/ instead of devices/ + CHECK_DIR="${DEVICES_DIR:-$DEVICE_REF}" + + if [ -n "$CHECK_DIR" ]; then + REQUIRED=(fenix7 fenix7pro fenix7s fenix7x fr165 fr165m fr245 fr245m fr255 fr255m fr255s fr255sm fr265 fr265s fr955 vivoactive5) + MISSING=() + for d in "${REQUIRED[@]}"; do + [[ ! -d "$CHECK_DIR/$d" ]] && MISSING+=("$d") + done + if [[ ${#MISSING[@]} -gt 0 ]]; then + echo "::error::SDK ${{ steps.version.outputs.value }} does not support: ${MISSING[*]}" + exit 1 + fi + echo "All 16 devices confirmed ✓" + elif [ -n "$DEVICES_XML" ]; then + echo "::error::SDK ${{ steps.version.outputs.value }} is too old (devices.xml format). Update to 9.1.0." + exit 1 + else + echo "::error::No device definitions found." + exit 1 + fi + + - name: Test device recognition + run: | + RESULT=$(monkeyc -d fenix7 -f /nonexistent.jungle 2>&1 || true) + if echo "$RESULT" | grep -qi "invalid device"; then + echo "::error::monkeyc cannot recognize device IDs — the SDK zip is missing device compiler definitions." + echo "::error::The 'devices/' directory with per-device spec files is absent from the extracted SDK." + echo "::error::Fix: download the full Connect IQ SDK 9.1.0 zip from developer.garmin.com," + echo "::error::extract it, confirm it contains a 'devices/' folder with per-device subdirectories," + echo "::error::then zip the entire extracted SDK and upload it as CIQ_SDK_URL." + exit 1 + fi + echo "Device recognition test passed ✓" + + # ── 2. Build all devices ───────────────────────────────────────────────────── + build: + name: Build / ${{ matrix.device }} + runs-on: ubuntu-latest + needs: validate-sdk + strategy: + fail-fast: true + matrix: + device: + - fenix7 + - fenix7pro + - fenix7s + - fenix7x + - fr165 + - fr165m + - fr245 + - fr245m + - fr255 + - fr255m + - fr255s + - fr255sm + - fr265 + - fr265s + - fr955 + - vivoactive5 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Restore SDK cache + id: cache + uses: actions/cache@v4 + with: + path: ~/connectiq-sdk + key: connectiq-sdk-${{ vars.CIQ_SDK_VERSION }} + + - name: Install SDK (cache miss fallback) + if: steps.cache.outputs.cache-hit != 'true' + env: + SDK_URL: ${{ secrets.CIQ_SDK_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + wget -q \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$SDK_URL" -O /tmp/sdk.archive + mkdir -p "$HOME/connectiq-sdk" + if file /tmp/sdk.archive | grep -qE "gzip|tar"; then + tar -xzf /tmp/sdk.archive -C "$HOME/connectiq-sdk" --strip-components=1 + else + unzip -q /tmp/sdk.archive -d "$HOME/connectiq-sdk" + fi + + - name: Add SDK to PATH + run: | + MONKEYC=$(find "$HOME/connectiq-sdk" -name "monkeyc" -type f | head -1) + if [ -z "$MONKEYC" ]; then + echo "::error::monkeyc not found." + exit 1 + fi + chmod +x "$MONKEYC" + echo "$(dirname "$MONKEYC")" >> $GITHUB_PATH + + - name: Install device profiles + env: + DEVICES_URL: ${{ secrets.CIQ_DEVICES_URL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + if [ -z "$DEVICES_URL" ]; then + echo "::error::CIQ_DEVICES_URL is not configured." + exit 1 + fi + mkdir -p "$HOME/.Garmin/ConnectIQ" + echo "Downloading device profiles…" + HTTP_CODE=$(wget \ + --server-response \ + --header="Authorization: token $GITHUB_TOKEN" \ + --header="Accept: application/octet-stream" \ + "$DEVICES_URL" -O /tmp/devices.tar.gz 2>&1 \ + | awk '/^ HTTP/{print $2}' | tail -1) + echo "HTTP status: ${HTTP_CODE}" + if [ "${HTTP_CODE}" != "200" ]; then + echo "::error::Device profile download failed (HTTP ${HTTP_CODE}). Check CIQ_DEVICES_URL secret." + echo "First 200 bytes of response:" + head -c 200 /tmp/devices.tar.gz | cat -v + exit 1 + fi + if ! file /tmp/devices.tar.gz | grep -qE "gzip|tar"; then + echo "::error::Downloaded file is not a valid tar.gz:" + file /tmp/devices.tar.gz + exit 1 + fi + tar -xzf /tmp/devices.tar.gz -C "$HOME/.Garmin/ConnectIQ" + echo "Device profiles installed: $(ls "$HOME/.Garmin/ConnectIQ/Devices/" | wc -l) devices" + + - name: Write developer key + env: + KEY_B64: ${{ secrets.DEVELOPER_KEY_B64 }} + run: | + if [ -z "$KEY_B64" ]; then + echo "::error::DEVELOPER_KEY_B64 is not configured." + exit 1 + fi + echo "$KEY_B64" | base64 --decode > developer_key.der + + - name: Compile + id: compile + run: | + mkdir -p bin + monkeyc \ + -o "bin/garminsmartwatch_${{ matrix.device }}.prg" \ + -f monkey.jungle \ + -y developer_key.der \ + -d "${{ matrix.device }}" \ + --release + SIZE=$(stat -c%s "bin/garminsmartwatch_${{ matrix.device }}.prg") + echo "size=${SIZE}" >> $GITHUB_OUTPUT + echo "garminsmartwatch_${{ matrix.device }}.prg — ${SIZE} bytes ✓" + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: release-${{ matrix.device }} + path: bin/garminsmartwatch_${{ matrix.device }}.prg + retention-days: 1 + + # ── 3. Publish release ─────────────────────────────────────────────────────── + release: + name: Publish Release + runs-on: ubuntu-latest + needs: [validate-sdk, build] + permissions: + contents: write + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Download all artifacts + uses: actions/download-artifact@v4 + with: + pattern: release-* + path: release/ + merge-multiple: true + + - name: Verify all 16 .prg files present + run: | + COUNT=$(ls release/*.prg 2>/dev/null | wc -l) + ls -lh release/*.prg + if [[ "$COUNT" -ne 16 ]]; then + echo "::error::Expected 16 .prg files, found ${COUNT}." + exit 1 + fi + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ needs.validate-sdk.outputs.release-tag }} + name: Release ${{ needs.validate-sdk.outputs.release-tag }} + files: release/*.prg + generate_release_notes: true + body: | + ## Garmin Smartwatch — ${{ needs.validate-sdk.outputs.release-tag }} + + Built with Connect IQ SDK `${{ needs.validate-sdk.outputs.sdk-version }}`. + + ### Supported Devices + | Device Family | Models | + |---|---| + | Fenix 7 | fenix7, fenix7pro, fenix7s, fenix7x | + | Forerunner 165 | fr165, fr165m | + | Forerunner 245 | fr245, fr245m | + | Forerunner 255 | fr255, fr255m, fr255s, fr255sm | + | Forerunner 265 | fr265, fr265s | + | Forerunner 955 | fr955 | + | Vivo Active 5 | vivoactive5 | + + ### Install + Download the `.prg` for your device and sideload via Garmin Express or the Connect IQ app. + + - name: Write release summary + run: | + cat >> $GITHUB_STEP_SUMMARY << SUMMARY + # ✅ Release Published — ${{ needs.validate-sdk.outputs.release-tag }} + + | | | + |---|---| + | **Tag** | \`${{ needs.validate-sdk.outputs.release-tag }}\` | + | **SDK** | \`${{ needs.validate-sdk.outputs.sdk-version }}\` | + | **Devices** | 16 | + | **Actor** | @${{ github.actor }} | + SUMMARY diff --git a/.gitignore b/.gitignore index 6fe421b..1003097 100644 --- a/.gitignore +++ b/.gitignore @@ -209,12 +209,12 @@ __marimo__/ # Garmin/Monkey C build artifacts external-mir/ internal-mir/ -# bin/ +bin/ gen/ -# *.prg -# *.prg.debug.xml +*.prg +*.prg.debug.xml developer_key developer_key.der developer_key.pem -.vscode/launch.json \ No newline at end of file +.vscode/launch.json diff --git a/BUILD_DOWNLOAD_GUIDE.md b/BUILD_DOWNLOAD_GUIDE.md new file mode 100644 index 0000000..7a606ae --- /dev/null +++ b/BUILD_DOWNLOAD_GUIDE.md @@ -0,0 +1,134 @@ +# How to Download a Build for Your Garmin Watch + +This guide explains how to get the latest app file (`.prg`) for your specific Garmin device from our automated build system — no technical knowledge required. + +--- + +## What is a "build" and where does it come from? + +Every time code is pushed to this repository, GitHub automatically compiles a separate app file for each of the 16 supported Garmin devices. These files are called **artifacts**. Think of it like a factory that runs automatically and produces a finished product for each watch model. + +There are two ways to get a build: + +| Where to look | Best for | How long it stays available | +|---|---|---| +| **GitHub Actions** (artifacts) | Testing a specific code change or branch | 7–30 days | +| **GitHub Releases** | Stable, approved versions | Permanently | + +--- + +## Supported Devices + +Find your device model in the table below to know which file to download. + +| Your Watch | File to Download | +|---|---| +| Garmin Fenix 7 | `garminsmartwatch_fenix7.prg` | +| Garmin Fenix 7 Pro | `garminsmartwatch_fenix7pro.prg` | +| Garmin Fenix 7S | `garminsmartwatch_fenix7s.prg` | +| Garmin Fenix 7X | `garminsmartwatch_fenix7x.prg` | +| Garmin Forerunner 165 | `garminsmartwatch_fr165.prg` | +| Garmin Forerunner 165 Music | `garminsmartwatch_fr165m.prg` | +| Garmin Forerunner 245 | `garminsmartwatch_fr245.prg` | +| Garmin Forerunner 245 Music | `garminsmartwatch_fr245m.prg` | +| Garmin Forerunner 255 | `garminsmartwatch_fr255.prg` | +| Garmin Forerunner 255 Music | `garminsmartwatch_fr255m.prg` | +| Garmin Forerunner 255S | `garminsmartwatch_fr255s.prg` | +| Garmin Forerunner 255S Music | `garminsmartwatch_fr255sm.prg` | +| Garmin Forerunner 265 | `garminsmartwatch_fr265.prg` | +| Garmin Forerunner 265S | `garminsmartwatch_fr265s.prg` | +| Garmin Forerunner 955 | `garminsmartwatch_fr955.prg` | +| Garmin Vivo Active 5 | `garminsmartwatch_vivoactive5.prg` | + +--- + +## Option A — Download from a GitHub Release (Recommended for stable builds) + +Releases are official versions that have been tested and approved. Files here are available permanently. + +**Step 1** — Go to the repository on GitHub. + +**Step 2** — On the right-hand side of the page, look for the **"Releases"** section. Click on it. + +> If you don't see it on the right side, look for a **"Releases"** link near the top of the page or scroll down. + +**Step 3** — You will see a list of releases, each labelled with a version number (e.g. `v1.2.0`). Click on the latest one at the top (or whichever version you need). + +**Step 4** — Scroll down to the **"Assets"** section at the bottom of that release page. + +**Step 5** — You will see a list of `.prg` files — one for each device. Find your device in the table above and click the matching file name to download it. + +--- + +## Option B — Download from GitHub Actions (For testing in-progress code) + +Use this when you need a build from a specific branch or code change that has not been released yet. These files have an expiry: **7 days** for `develop` branch builds and **30 days** for `main` branch builds. + +**Step 1** — Go to the repository on GitHub. + +**Step 2** — Click on the **"Actions"** tab near the top of the page. + +![Actions tab is in the top navigation bar of the repository] + +**Step 3** — On the left side, you will see a list of workflows. Choose the one that matches what you need: + +- **"CI — Develop"** — builds from the `develop` branch (in-progress work, expires in 7 days) +- **"CI — Main"** — builds from the `main` branch (the latest approved code, expires in 30 days) + +**Step 4** — You will see a list of runs, each showing when it ran and whether it passed (green checkmark) or failed (red X). Click on the most recent run with a **green checkmark**. + +> Only successful runs (green checkmark) will have downloadable files. + +**Step 5** — Scroll down to the bottom of the run page until you see a section called **"Artifacts"**. + +**Step 6** — You will see entries named like `fenix7-abc1234`, `fr265-abc1234`, etc. The first part is the device name. Find the one that matches your watch (refer to the device table above) and click it to download a `.zip` file. + +**Step 7** — Unzip the downloaded file. Inside you will find the `.prg` file for your device (e.g. `garminsmartwatch_fenix7.prg`). + +--- + +## How to Install the App on Your Watch + +Once you have the `.prg` file, you can install it onto your Garmin watch using one of these two methods: + +### Method 1 — Garmin Express (PC or Mac) + +1. Connect your watch to your computer with its USB cable. +2. Open **Garmin Express**. +3. In Garmin Express, go to your device's page and look for an option to manually add or sideload a Connect IQ app. +4. Browse to and select the `.prg` file you downloaded. +5. Sync your device. The app will appear on your watch. + +### Method 2 — Garmin Connect IQ Mobile App + +1. Enable **Developer Mode** in the Connect IQ app on your phone: + - Open the **Connect IQ** app. + - Tap the menu (three lines) → **Settings** → enable **Developer Mode**. +2. Tap **Load Device App**. +3. Choose the `.prg` file from your phone's storage. +4. Follow the prompts to send it to your paired watch. + +--- + +## Frequently Asked Questions + +**Q: I cannot find the Artifacts section — where is it?** +Artifacts only appear on runs that completed successfully (green checkmark). If the run failed, there are no files to download. Try selecting a different run that shows a green checkmark. + +**Q: The artifact for my device is missing.** +If one device's build failed while others succeeded, that device's artifact will not appear. Check the run logs by clicking on the failed job for details, or notify the development team. + +**Q: The build I downloaded is more than 7 / 30 days old and is gone.** +Artifacts are automatically deleted after their retention period. For the `develop` branch this is 7 days; for `main` it is 30 days. Ask the development team to trigger a new build, or use an official Release instead (Option A), which never expires. + +**Q: Which branch should I use for QA testing?** +- Use **"CI — Develop"** builds when you are testing features that are still being worked on. +- Use **"CI — Main"** builds when you want the latest code that has passed code review. +- Use a **Release** build when you need a stable, versioned snapshot for sign-off. + +**Q: I have a Fenix 7 Pro Sapphire Solar. Which file do I use?** +The `fenix7pro` build covers all Fenix 7 Pro variants (including Sapphire Solar). Download `garminsmartwatch_fenix7pro.prg`. + +--- + +*For any issues or questions, please contact the development team.* diff --git a/CICD_SETUP.md b/CICD_SETUP.md new file mode 100644 index 0000000..4b08e3a --- /dev/null +++ b/CICD_SETUP.md @@ -0,0 +1,327 @@ +# GitHub CI/CD Pipeline Setup + +Automated build pipeline for the Garmin Connect IQ watch app. + +--- + +## Overview + +| Trigger | What happens | +|---|---| +| Push to `main` | Builds `.prg` for all 16 devices → uploaded as workflow artifacts (30 days) | +| Push tag `v*.*.*` | Builds `.prg` for all 16 devices → creates a GitHub Release with all files attached | + +--- + +## Prerequisites + +### 1. Garmin Developer Key + +You need a `.der` signing key to compile `.prg` files. If you don't have one: + +```bash +# Generate a developer key (run once locally) +openssl genrsa -out developer_key.pem 4096 +openssl pkcs8 -topk8 -inform PEM -outform DER -in developer_key.pem -out developer_key.der -nocrypt +``` + +Encode it to Base64 for the GitHub Secret: + +```bash +# Linux / macOS +base64 -i developer_key.der + +# Windows (PowerShell) +[Convert]::ToBase64String([IO.File]::ReadAllBytes("developer_key.der")) +``` + +### 2. Garmin Connect IQ SDK Download URL + +Download the Linux SDK from: +> https://developer.garmin.com/connect-iq/sdk/ + +Copy the direct download URL for the Linux `.zip` (e.g. `connectiq-sdk-lin-7.3.1-2024-xx-xx.zip`). + +--- + +## GitHub Secrets & Variables Setup + +Go to your repo → **Settings → Secrets and variables → Actions** + +### Secrets (sensitive — never shown after saving) + +| Name | Value | +|---|---| +| `DEVELOPER_KEY_B64` | Base64 string of your `developer_key.der` | +| `CIQ_SDK_URL` | Full download URL of the Linux SDK `.zip` | + +### Variables (non-sensitive) + +| Name | Value example | +|---|---| +| `CIQ_SDK_VERSION` | `7.3.1` (used for caching the SDK between runs) | + +--- + +## Workflow Files + +Create the directory `.github/workflows/` in your repo root, then add these two files. + +--- + +### `.github/workflows/build.yml` — Build on push to `main` + +```yaml +name: Build + +on: + push: + branches: [main] + +jobs: + build: + name: Build (${{ matrix.device }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + device: + - fenix7 + - fenix7pro + - fenix7s + - fenix7x + - fr165 + - fr165m + - fr235 + - fr245 + - fr255 + - fr255m + - fr255s + - fr255sm + - fr265 + - fr265s + - fr955 + - vivoactive5 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Cache Connect IQ SDK + id: sdk-cache + uses: actions/cache@v4 + with: + path: ~/connectiq-sdk + key: connectiq-sdk-${{ vars.CIQ_SDK_VERSION }} + + - name: Install Connect IQ SDK + if: steps.sdk-cache.outputs.cache-hit != 'true' + run: | + wget -q "${{ secrets.CIQ_SDK_URL }}" -O /tmp/ciq-sdk.zip + mkdir -p ~/connectiq-sdk + unzip -q /tmp/ciq-sdk.zip -d ~/connectiq-sdk + + - name: Add SDK to PATH + run: | + MONKEYC_BIN=$(find ~/connectiq-sdk -name "monkeyc" | head -1 | xargs dirname) + echo "$MONKEYC_BIN" >> $GITHUB_PATH + + - name: Write developer key + run: echo "${{ secrets.DEVELOPER_KEY_B64 }}" | base64 --decode > developer_key.der + + - name: Build + run: | + mkdir -p bin + monkeyc \ + -o bin/garminsmartwatch_${{ matrix.device }}.prg \ + -f monkey.jungle \ + -y developer_key.der \ + -d ${{ matrix.device }} \ + --release + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.device }} + path: bin/garminsmartwatch_${{ matrix.device }}.prg + retention-days: 30 +``` + +--- + +### `.github/workflows/release.yml` — GitHub Release on version tag + +```yaml +name: Release + +on: + push: + tags: + - 'v*.*.*' + +jobs: + build: + name: Build (${{ matrix.device }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + device: + - fenix7 + - fenix7pro + - fenix7s + - fenix7x + - fr165 + - fr165m + - fr235 + - fr245 + - fr255 + - fr255m + - fr255s + - fr255sm + - fr265 + - fr265s + - fr955 + - vivoactive5 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Cache Connect IQ SDK + id: sdk-cache + uses: actions/cache@v4 + with: + path: ~/connectiq-sdk + key: connectiq-sdk-${{ vars.CIQ_SDK_VERSION }} + + - name: Install Connect IQ SDK + if: steps.sdk-cache.outputs.cache-hit != 'true' + run: | + wget -q "${{ secrets.CIQ_SDK_URL }}" -O /tmp/ciq-sdk.zip + mkdir -p ~/connectiq-sdk + unzip -q /tmp/ciq-sdk.zip -d ~/connectiq-sdk + + - name: Add SDK to PATH + run: | + MONKEYC_BIN=$(find ~/connectiq-sdk -name "monkeyc" | head -1 | xargs dirname) + echo "$MONKEYC_BIN" >> $GITHUB_PATH + + - name: Write developer key + run: echo "${{ secrets.DEVELOPER_KEY_B64 }}" | base64 --decode > developer_key.der + + - name: Build + run: | + mkdir -p bin + monkeyc \ + -o bin/garminsmartwatch_${{ matrix.device }}.prg \ + -f monkey.jungle \ + -y developer_key.der \ + -d ${{ matrix.device }} \ + --release + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.device }} + path: bin/garminsmartwatch_${{ matrix.device }}.prg + retention-days: 1 + + release: + name: Create GitHub Release + needs: build + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Download all build artifacts + uses: actions/download-artifact@v4 + with: + path: artifacts/ + merge-multiple: true + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + name: Release ${{ github.ref_name }} + files: artifacts/*.prg + generate_release_notes: true +``` + +--- + +## How to trigger a release + +```bash +# 1. Merge your feature branch into main +git checkout main +git merge feature/prod_Build_v1.0.2 + +# 2. Push main (triggers the build workflow) +git push origin main + +# 3. Tag the release (triggers the release workflow) +git tag -a v1.0.2 -m "Release v1.0.2" +git push origin v1.0.2 +``` + +GitHub will automatically create a Release page with all 16 `.prg` files attached. + +--- + +## Build artifact naming + +Each `.prg` file is named by device: + +``` +garminsmartwatch_fenix7.prg +garminsmartwatch_fr265.prg +garminsmartwatch_vivoactive5.prg +... (16 total) +``` + +--- + +## How to download the `.prg` file + +### After a push to `main` (workflow artifact) + +1. Go to your repo on GitHub +2. Click the **Actions** tab +3. Click the latest **Build** workflow run +4. Scroll down to the **Artifacts** section +5. Download the zip for your target device, unzip it to get the `.prg` + +> Artifacts are available for **30 days** then auto-deleted. + +--- + +### After pushing a version tag (GitHub Release) + +1. Go to your repo on GitHub +2. Click **Releases** in the right sidebar +3. Click the release (e.g. `v1.0.2`) +4. All 16 `.prg` files are listed — click any to download directly, no unzipping needed + +> Release files are **permanent** and publicly accessible. + +--- + +### Which `.prg` to use + +| Who needs it | Where to get it | +|---|---| +| You (testing after merge to main) | Actions → latest Build run → Artifacts | +| You (distributing / store upload) | Releases → v1.0.2 → download `.prg` | +| End users (via Garmin Connect IQ Store) | Upload the `.prg` from the Release to the store manually | + +The `.prg` from a **Release** is what you upload to the [Garmin Connect IQ Store](https://apps.garmin.com/developer) for publishing. + +--- + +## Notes + +- The 16 devices run in **parallel** (matrix strategy), so the full build completes in roughly the time it takes to build one device. +- The SDK is **cached** between runs using `actions/cache`. The cache key is the SDK version — update `CIQ_SDK_VERSION` when you upgrade the SDK. +- The developer key is written to disk only during the job and never persisted to artifacts or logs. diff --git a/README.md b/README.md index 0b1b695..e65c05b 100644 --- a/README.md +++ b/README.md @@ -267,10 +267,3 @@ If fr165 is not available in your SDK version, a similar device (e.g. venu2) can - Cadence Quality is experimental and intended for exploration and research - Thresholds, confidence bands, and weightings are configurable - The system is designed for iteration, validation, and future expansion -## Emulator Screenshots - -### Forerunner 235 -![Forerunner 235](screenshots/fr235.png) - -### Forerunner 245 -![Forerunner 245](screenshots/fr245.png) diff --git a/TestingCadence_CICD_Pipeline_Documentation.md b/TestingCadence_CICD_Pipeline_Documentation.md new file mode 100644 index 0000000..27be04e --- /dev/null +++ b/TestingCadence_CICD_Pipeline_Documentation.md @@ -0,0 +1,517 @@ + + +**TestingCadence** +Garmin Connect IQ Smartwatch Application + +**CI/CD Pipeline Documentation** + +Deployment Sub-Team +Deakin University — SIT764 Capstone Project + +SDK: Garmin Connect IQ 8.3.0 | API Level: 3.2.0 / 3.3.0 | Target: Forerunner 245 / 245M + +# **1\. Introduction** + +This document describes the Continuous Integration and Continuous Deployment (CI/CD) pipeline for the TestingCadence project. TestingCadence is a Garmin Connect IQ smartwatch application built in MonkeyC that provides real-time running cadence monitoring and calculates a Cadence Quality (CQ) score for Forerunner 245 and 245M devices. + +The CI/CD pipeline automates the build, validation, and release processes, ensuring that every change merged to the main branch produces a verified, deployable artefact without manual intervention. The pipeline is owned and maintained by the Deployment Sub-Team. + +## **1.1 Objectives** + +* Automate compilation of MonkeyC source code for all target devices on every push to main +* Enforce code quality gates through branch protection rules before any merge +* Produce signed, versioned .prg build artefacts for Forerunner 245 and 245M +* Automate release note generation for each tagged release +* Provide a reproducible, containerised build environment via Docker + +## **1.2 Scope** + +This document covers: + +* Pipeline architecture and tool stack +* GitHub Actions workflow definitions +* Branch strategy and protection rules +* Build, test, and release stages +* Secret and credential management +* Artefact handling and versioning +* Pipeline monitoring and failure response + +# **2\. Pipeline Architecture Overview** + +The TestingCadence CI/CD pipeline is hosted entirely on GitHub Actions and follows a linear stage model: Code → Build → Validate → Artefact → Release. All stages execute inside a Docker container that encapsulates the Garmin Connect IQ SDK 8.3.0, eliminating environment inconsistencies across runners. + + Developer Push / PR + + │ + + ▼ + + ┌────────────────────────────────┐ + + │ GitHub Actions Runner │ + + │ │ + + │ \[1\] Checkout source code │ + + │ │ │ + + │ ▼ │ + + │ \[2\] Build Docker image (SDK 8.3.0) │ + + │ │ │ + + │ ▼ │ + + │ \[3\] Compile MonkeyC (.prg output) │ + + │ │ │ + + │ ▼ │ + + │ \[4\] Upload build artefact │ + + │ │ │ + + │ ▼ (on git tag push only) │ + + │ \[5\] Generate release notes │ + + │ \[6\] Create GitHub Release │ + + └────────────────────────────────┘ + +# **3\. Tool Stack** + +| Tool / Service | Version / Plan | Role in Pipeline | +| :---- | :---- | :---- | +| GitHub | Free / Team | Source control, Actions runner, Releases | +| GitHub Actions | Latest | CI/CD workflow automation | +| Docker | 24.x | Containerised SDK build environment | +| Garmin Connect IQ SDK | 8.3.0 | MonkeyC compiler and device definitions | +| OpenJDK | 11 | SDK runtime dependency inside container | +| MonkeyC Compiler (monkeyc) | SDK-bundled | Compiles source to .prg device binary | +| GitHub Secrets | N/A | Secure storage for developer key | +| actions/checkout | v4 | Repository checkout in workflow | +| actions/upload-artifact | v4 | Artefact storage between jobs | +| docker/setup-buildx-action | v3 | Docker Buildx setup for CI runner | + +# **4\. Branch Strategy and Protection Rules** + +The TestingCadence repository follows a structured branching model enforced through GitHub branch protection rules configured by the Deployment Sub-Team. + +## **4.1 Branch Model** + +| Branch | Purpose | Pipeline Trigger | +| :---- | :---- | :---- | +| main | Production-ready, deployable code. Protected branch. | Build \+ Artefact \+ Release (on tag) | +| develop | Integration branch for completed features. | Build only | +| feature/\* | Individual feature or fix branches. | None (local only) | +| hotfix/\* | Urgent fixes applied directly off main. | Build on PR to main | +| release/\* | Release preparation branches. | Build \+ Artefact on PR to main | + +## **4.2 Branch Protection Rules (main)** + +The following protection rules are active on the main branch: + +* Require pull request before merging — direct pushes to main are blocked +* Require at least 1 approving review before merge +* Dismiss stale pull request approvals when new commits are pushed +* Require status checks to pass before merging (CI build workflow must succeed) +* Require branches to be up to date before merging +* Restrict who can push to main — Deployment Sub-Team Lead only +* Do not allow bypassing the above settings + +**NOTE:** *These rules were configured by the Deployment Sub-Team Lead in coordination with Tharun Chakrapani Venkatesh (Deployment Team Member).* + +# **5\. GitHub Actions Workflow Definitions** + +All workflows are stored under .github/workflows/ in the repository root. Two primary workflows are defined: + +* **build.yml — triggered on push/PR to main and develop** +* **release.yml — triggered on version tag push (v\*.\*.\*)** + +## **5.1 Build Workflow (build.yml)** + +Runs on every push to main or develop, and on all pull requests targeting main. Compiles the MonkeyC source for both target devices inside the Docker container. + +name: TestingCadence CI Build + +on: + + push: + + branches: + + \- main + + \- develop + + pull\_request: + + branches: + + \- main + +jobs: + + build: + + name: Build MonkeyC Application + + runs-on: ubuntu-latest + + steps: + + \- name: Checkout source code + + uses: actions/checkout@v4 + + \- name: Set up Docker Buildx + + uses: docker/setup-buildx-action@v3 + + \- name: Build Docker image with SDK + + run: | + + docker build \\ + + \--build-arg DEVELOPER\_KEY=${{ secrets.GARMIN\_DEVELOPER\_KEY }} \\ + + \-t testingcadence-build:${{ github.sha }} . + + \- name: Compile for Forerunner 245 + + run: | + + mkdir \-p bin + + docker run \--rm \\ + + \-v ${{ github.workspace }}/bin:/workspace/bin \\ + + \-e TARGET=fr245 \\ + + testingcadence-build:${{ github.sha }} + + \- name: Compile for Forerunner 245M + + run: | + + docker run \--rm \\ + + \-v ${{ github.workspace }}/bin:/workspace/bin \\ + + \-e TARGET=fr245m \\ + + testingcadence-build:${{ github.sha }} + + \- name: Upload build artefacts + + uses: actions/upload-artifact@v4 + + with: + + name: testingcadence-prg-${{ github.sha }} + + path: bin/\*.prg + + retention-days: 30 + +## **5.2 Release Workflow (release.yml)** + +Triggered when a version tag (e.g. v1.0.2) is pushed to the repository. Builds the application, generates release notes from the commit log, and creates a GitHub Release with the .prg artefacts attached. + +name: TestingCadence Release + +on: + + push: + + tags: + + \- 'v\*.\*.\*' + +jobs: + + release: + + name: Build and Publish Release + + runs-on: ubuntu-latest + + permissions: + + contents: write + + steps: + + \- name: Checkout source code + + uses: actions/checkout@v4 + + with: + + fetch-depth: 0 \# Required for full git log (release notes) + + \- name: Set up Docker Buildx + + uses: docker/setup-buildx-action@v3 + + \- name: Build Docker image + + run: | + + docker build \\ + + \--build-arg DEVELOPER\_KEY=${{ secrets.GARMIN\_DEVELOPER\_KEY }} \\ + + \-t testingcadence-build:${{ github.ref\_name }} . + + \- name: Compile for all targets + + run: | + + mkdir \-p bin + + for TARGET in fr245 fr245m; do + + docker run \--rm \\ + + \-v ${{ github.workspace }}/bin:/workspace/bin \\ + + \-e TARGET=$TARGET \\ + + testingcadence-build:${{ github.ref\_name }} + + done + + \- name: Generate release notes + + id: release\_notes + + run: | + + PREV\_TAG=$(git describe \--tags \--abbrev=0 HEAD^ 2\>/dev/null || echo '') + + if \[ \-z "$PREV\_TAG" \]; then + + NOTES=$(git log \--pretty=format:'- %s' HEAD) + + else + + NOTES=$(git log \--pretty=format:'- %s' ${PREV\_TAG}..HEAD) + + fi + + echo "notes\<\\> $GITHUB\_OUTPUT + + echo "$NOTES" \>\> $GITHUB\_OUTPUT + + echo "EOF" \>\> $GITHUB\_OUTPUT + + \- name: Create GitHub Release + + uses: softprops/action-gh-release@v2 + + with: + + tag\_name: ${{ github.ref\_name }} + + name: TestingCadence ${{ github.ref\_name }} + + body: | + + \#\# Changes in ${{ github.ref\_name }} + + ${{ steps.release\_notes.outputs.notes }} + + files: bin/\*.prg + + draft: false + + prerelease: false + +# **6\. Secret and Credential Management** + +The pipeline uses GitHub Actions Secrets to securely inject sensitive values at runtime. No credentials are stored in the repository or workflow YAML files. + +| Secret Name | Used In | Description | +| :---- | :---- | :---- | +| GARMIN\_DEVELOPER\_KEY | build.yml, release.yml | Garmin developer key (.der) used to sign the MonkeyC build. Must be base64-encoded before storing as a secret. | +| GITHUB\_TOKEN | release.yml (auto-provided) | Auto-injected by GitHub Actions. Used by softprops/action-gh-release to create releases. No manual setup required. | + +## **6.1 Adding the Developer Key as a Secret** + +1. Locate your Garmin developer key file (developer\_key.der) +2. Base64-encode the key: run openssl base64 \-in developer\_key.der \-out key.b64 in a terminal +3. Copy the contents of key.b64 +4. Navigate to the repository on GitHub: Settings → Secrets and variables → Actions +5. Click New repository secret +6. Name: GARMIN\_DEVELOPER\_KEY, Value: paste the base64-encoded key +7. Click Add secret + +**NOTE:** *The raw .der file must never be committed to the repository or included in Docker images pushed to public registries.* + +# **7\. Build Artefacts and Versioning** + +## **7.1 Artefact Naming Convention** + +| Artefact | Target Device | Naming Pattern | +| :---- | :---- | :---- | +| TestingCadence-fr245.prg | Forerunner 245 | testingcadence-{version}-fr245.prg | +| TestingCadence-fr245m.prg | Forerunner 245M | testingcadence-{version}-fr245m.prg | + +## **7.2 Versioning Scheme** + +TestingCadence follows Semantic Versioning (SemVer): MAJOR.MINOR.PATCH + +* MAJOR — breaking changes to cadence monitoring behaviour or API level +* MINOR — new features (e.g. new alert modes, new CQ scoring logic) +* PATCH — bug fixes, SDK updates, dependency changes + +The current release target is v1.0.2. Tags must be pushed to the repository to trigger the release workflow: + +\# Tag and push to trigger release workflow + +git tag \-a v1.0.2 \-m "Release v1.0.2 \- Forerunner 245/245M build" + +git push origin v1.0.2 + +## **7.3 Artefact Retention** + +* CI build artefacts (non-release): retained for 30 days on GitHub Actions +* Release artefacts: attached to GitHub Releases and retained indefinitely +* Local artefacts: stored in ./bin directory (excluded from source control via .gitignore) + +# **8\. Pipeline Stage Detail** + +| Stage | Trigger | Steps | Output | +| :---- | :---- | :---- | :---- | +| Checkout | All triggers | Clone repository at commit SHA; full depth for release | Source on runner | +| Docker Build | All triggers | Build image with SDK 8.3.0 and developer key build arg | Docker image | +| Compile (fr245) | All triggers | Run container; monkeyc \-d fr245; mount bin/ volume | .prg binary | +| Compile (fr245m) | All triggers | Run container; monkeyc \-d fr245m; mount bin/ volume | .prg binary | +| Upload Artefact | All triggers | Upload bin/\*.prg to Actions artefact storage | Downloadable .prg | +| Release Notes | Tag push only | Git log between previous and current tag | Markdown changelog | +| GitHub Release | Tag push only | Create release with notes and .prg files attached | Published release | + +# **9\. Pipeline Failure Handling** + +## **9.1 Build Failures** + +If the MonkeyC compilation step fails, the workflow exits with a non-zero code and the entire job is marked as failed. The following actions apply: + +* GitHub marks the PR check as failed — merge to main is blocked by branch protection rules +* GitHub notifies the commit author and PR reviewer by email +* No artefact is uploaded for a failed build +* The Deployment Sub-Team Lead reviews the Actions log to identify the error + +## **9.2 Common Failure Causes and Resolutions** + +| Failure | Likely Cause | Resolution | +| :---- | :---- | :---- | +| monkeyc: command not found | SDK not installed in Docker image; PATH misconfigured | Rebuild Docker image; verify SDK\_DIR/bin on PATH | +| Invalid or missing developer key | GARMIN\_DEVELOPER\_KEY secret not set or corrupted | Re-add secret; re-encode .der file in base64 | +| monkey.jungle not found | .dockerignore excluding project files | Review .dockerignore; ensure monkey.jungle is copied | +| API level mismatch | Source uses API \> 3.3.0 features on SDK 8.3.0 | Review manifest.xml; pin API level to 3.2.0/3.3.0 | +| Release workflow: permission denied | contents: write not set in workflow permissions | Add permissions: contents: write to release job | +| No previous tag for release notes | First release; git describe fails on no prior tag | Workflow handles gracefully — logs full history | + +## **9.3 Escalation** + +If a pipeline failure cannot be resolved within one working day, the Deployment Sub-Team Lead escalates to the senior lead meeting (Wednesday / Sunday) for cross-team support. + +# **10\. Running the Pipeline Locally** + +Developers can replicate the CI build locally before pushing to validate their changes. This requires Docker installed on the host machine. + +\# Step 1: Clone the repository + +git clone https://github.com/\/TestingCadence.git + +cd TestingCadence + +\# Step 2: Build the Docker image + +docker build \\ + + \--build-arg DEVELOPER\_KEY=/path/to/developer\_key.der \\ + + \-t testingcadence-build:local . + +\# Step 3: Create output directory + +mkdir \-p bin + +\# Step 4: Compile for Forerunner 245 + +docker run \--rm \\ + + \-v $(pwd)/bin:/workspace/bin \\ + + \-e TARGET=fr245 \\ + + testingcadence-build:local + +\# Step 5: Compile for Forerunner 245M + +docker run \--rm \\ + + \-v $(pwd)/bin:/workspace/bin \\ + + \-e TARGET=fr245m \\ + + testingcadence-build:local + +\# Artefacts will be in ./bin/ + +ls bin/ + +# **11\. Pipeline Monitoring** + +## **11.1 Viewing Workflow Runs** + +All workflow runs are visible under the Actions tab of the GitHub repository. Each run shows: + +* Trigger event (push, PR, tag) +* Commit SHA and branch/tag name +* Individual step logs with timestamps +* Artefact download links (for successful builds) +* Total run duration + +## **11.2 Build Status Badge** + +A build status badge can be added to the repository README to surface pipeline health at a glance: + +\!\[CI Build\](https://github.com/\/TestingCadence/actions/workflows/build.yml/badge.svg) + +## **11.3 Notification Settings** + +GitHub sends email notifications to the commit author when a workflow they triggered fails. Team-wide notifications can be configured under repository Settings → Notifications. + +# **12\. Future Pipeline Improvements** + +* Automated unit testing stage using Garmin Connect IQ simulator once simulator CI support is confirmed +* Hardware-in-the-loop validation step triggered on physical Forerunner 245/245M availability +* Docker image caching to reduce build times on repeated workflow runs +* Connect IQ Store automated submission via Garmin Publish API on release tag +* Slack or Teams notification integration for build status alerts to the sub-team +* Dependency vulnerability scanning on SDK and container base image + +# **13\. Related Documentation** + +* Dockerisation Documentation — Deployment Sub-Team, May 2026 +* Git Quick Reference Guide — Tharun Chakrapani Venkatesh, Deployment Sub-Team +* Branch Protection Configuration — GitHub Repository Settings +* TestingCadence v1.0.2 Build Notes — Forerunner 245 / 245M +* Garmin Connect IQ SDK 8.3.0 Developer Documentation — developer.garmin.com + +# **14\. Document Version History** + +| Version | Date | Author | Summary | +| :---- | :---- | :---- | :---- | +| 1.0 | May 2026 | Deployment Sub-Team Lead | Initial release | + diff --git a/TestingCadence_Dockerisation_Documentation (1).md b/TestingCadence_Dockerisation_Documentation (1).md new file mode 100644 index 0000000..7df4f18 --- /dev/null +++ b/TestingCadence_Dockerisation_Documentation (1).md @@ -0,0 +1,385 @@ + + +**TestingCadence** +Garmin Connect IQ Smartwatch Application + +**Dockerisation Documentation** + +Deployment Sub-Team +Deakin University — SIT764 Capstone Project + +Version 1.0 | SDK: Garmin Connect IQ 8.3.0 | Target: Forerunner 245/245M + +# **1\. Purpose and Scope** + +This document describes the Dockerisation strategy for the TestingCadence build and CI/CD pipeline. It covers the rationale for containerising the Garmin Connect IQ SDK build environment, the Docker image structure, configuration details, and how containers integrate with the GitHub Actions automation used by the Deployment Sub-Team. + +TestingCadence is a MonkeyC application built for Garmin wearable devices (Forerunner 245 and 245M). Because the Garmin Connect IQ SDK is an environment-specific toolchain, containerisation ensures consistent, reproducible builds across all developer machines and CI runners without manual SDK installation. + +# **2\. Why Dockerise the Build Environment?** + +The Garmin Connect IQ SDK requires a specific set of dependencies and environment variables that differ across operating systems. Without containerisation, developers on Windows, macOS, and Linux may experience build inconsistencies. Docker eliminates these discrepancies by packaging the complete SDK toolchain into a portable image. + +## **2.1 Key Benefits** + +* Consistent SDK version (8.3.0) across all builds regardless of host machine +* No manual SDK installation required for contributors +* Isolated build environment prevents dependency conflicts +* Enables automated CI/CD via GitHub Actions without runner setup overhead +* Faster onboarding for new sub-team members +* Reproducible release artifacts for v1.0.2 and subsequent versions + +# **3\. Container Architecture Overview** + +The Docker setup consists of a single build container that encapsulates the Garmin Connect IQ SDK, MonkeyC compiler, and project source. The container does not run as a service — it is invoked as a build step and exits after producing the compiled .prg output artifact. + +┌─────────────────────────────────────────────────┐ + +│ Docker Build Container │ + +│ │ + +│ Base Image : Ubuntu 22.04 LTS │ + +│ SDK : Garmin Connect IQ SDK 8.3.0 │ + +│ JDK : OpenJDK 11 │ + +│ Lang : MonkeyC (compiled via monkeyc) │ + +│ │ + +│ Input : /workspace (project source mount) │ + +│ Output : /workspace/bin/\*.prg (artifact) │ + +└─────────────────────────────────────────────────┘ + +# **4\. Prerequisites** + +Before using the Docker build environment, ensure the following are installed on the host machine: + +| Dependency | Version | Purpose | +| :---- | :---- | :---- | +| Docker Engine | 24.x or later | Container runtime | +| Docker Compose (optional) | v2.x | Multi-step build orchestration | +| Git | 2.x | Source code checkout | +| GitHub Actions Runner | Latest | CI/CD automation (server-side only) | + +No Garmin Connect IQ SDK installation is required on the host — this is handled entirely inside the container. + +# **5\. Dockerfile** + +The Dockerfile is located at the root of the TestingCadence repository. It defines the multi-stage build process to keep the final image lean. + +## **5.1 Dockerfile Contents** + +\# ── Stage 1: Base SDK image ────────────────────────── + +FROM ubuntu:22.04 AS sdk-base + +ENV DEBIAN\_FRONTEND=noninteractive + +ENV SDK\_VERSION=8.3.0 + +ENV SDK\_DIR=/opt/connectiq-sdk + +\# Install runtime dependencies + +RUN apt-get update && apt-get install \-y \\ + + openjdk-11-jdk \\ + + wget \\ + + unzip \\ + + curl \\ + + && rm \-rf /var/lib/apt/lists/\* + +\# Download and install Garmin Connect IQ SDK + +RUN mkdir \-p ${SDK\_DIR} && \\ + + wget \-q https://developer.garmin.com/downloads/connect-iq/sdks/\\ + +connectiq-sdk-lin-${SDK\_VERSION}-2024-01-01-00000000.zip \-O /tmp/sdk.zip && \\ + + unzip \-q /tmp/sdk.zip \-d ${SDK\_DIR} && \\ + + rm /tmp/sdk.zip + +\# Add SDK binaries to PATH + +ENV PATH="${SDK\_DIR}/bin:${PATH}" + +\# ── Stage 2: Build stage ────────────────────────────── + +FROM sdk-base AS builder + +WORKDIR /workspace + +\# Copy project source + +COPY . . + +\# Accept developer key (passed as build arg) + +ARG DEVELOPER\_KEY + +ENV DEVELOPER\_KEY=${DEVELOPER\_KEY} + +\# Compile the MonkeyC application + +RUN monkeyc \\ + + \-f monkey.jungle \\ + + \-o bin/TestingCadence.prg \\ + + \-y ${DEVELOPER\_KEY} \\ + + \-d fr245 + +\# Output artifact is at /workspace/bin/TestingCadence.prg + +## **5.2 Build Arguments** + +| DEVELOPER\_KEY | Path or value of the Garmin developer key (.der file). Must be passed at build time. Never commit to source control. | +| :---- | :---- | +| **SDK\_VERSION** | Garmin Connect IQ SDK version to install (default: 8.3.0). | + +# **6\. Building the Docker Image** + +## **6.1 Local Build** + +To build the Docker image locally from the project root: + +\# Build the image (replace \ with your developer key path) + +docker build \\ + + \--build-arg DEVELOPER\_KEY=/path/to/developer\_key.der \\ + + \-t testingcadence-build:latest . + +## **6.2 Running the Build Container** + +To compile the project and extract the .prg artifact to the host: + +\# Run build and copy output to host ./bin directory + +docker run \--rm \\ + + \-v $(pwd)/bin:/workspace/bin \\ + + testingcadence-build:latest + +After the container exits, the compiled TestingCadence.prg will be available in the ./bin directory on the host machine. + +# **7\. Docker Compose Configuration** + +A docker-compose.yml is provided to simplify build invocation, particularly for developers running local builds without needing to remember the full Docker CLI syntax. + +version: '3.8' + +services: + + build: + + build: + + context: . + + args: + + DEVELOPER\_KEY: ${DEVELOPER\_KEY} + + volumes: + + \- ./bin:/workspace/bin + + environment: + + \- SDK\_VERSION=8.3.0 + +To run with Compose: + +\# Export your developer key path first + +export DEVELOPER\_KEY=/path/to/developer\_key.der + +\# Run the build service + +docker compose run \--rm build + +# **8\. GitHub Actions CI/CD Integration** + +The Docker build environment integrates with the GitHub Actions workflow defined in .github/workflows/build.yml. Automated builds are triggered on every push to the main branch and on pull requests targeting main. + +## **8.1 Workflow Overview** + +name: TestingCadence Build + +on: + + push: + + branches: \[ main \] + + pull\_request: + + branches: \[ main \] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + + \- name: Checkout source + + uses: actions/checkout@v4 + + \- name: Set up Docker Buildx + + uses: docker/setup-buildx-action@v3 + + \- name: Build Docker image + + run: | + + docker build \\ + + \--build-arg DEVELOPER\_KEY=${{ secrets.GARMIN\_DEVELOPER\_KEY }} \\ + + \-t testingcadence-build:${{ github.sha }} . + + \- name: Run build and extract artifact + + run: | + + mkdir \-p bin + + docker run \--rm \\ + + \-v ${{ github.workspace }}/bin:/workspace/bin \\ + + testingcadence-build:${{ github.sha }} + + \- name: Upload build artifact + + uses: actions/upload-artifact@v4 + + with: + + name: TestingCadence-prg-${{ github.sha }} + + path: bin/TestingCadence.prg + +## **8.2 GitHub Secrets Required** + +| Secret Name | Description | +| :---- | :---- | +| GARMIN\_DEVELOPER\_KEY | Base64-encoded or path-referenced Garmin developer key (.der). Configured under repository Settings \> Secrets and variables \> Actions. | + +Note: The developer key must never be committed to the repository. It is injected at build time via GitHub Secrets only. + +# **9\. Environment Variables Reference** + +| Variable | Default | Description | +| :---- | :---- | :---- | +| SDK\_VERSION | 8.3.0 | Garmin Connect IQ SDK version installed in container | +| SDK\_DIR | /opt/connectiq-sdk | SDK installation directory inside container | +| DEVELOPER\_KEY | (required) | Path to Garmin developer key for signing the build | +| DEBIAN\_FRONTEND | noninteractive | Suppresses interactive prompts during apt-get | + +# **10\. Device Build Targets** + +TestingCadence v1.0.2 targets the following Garmin devices. The Docker build compiles a separate .prg for each target device identifier. + +| Device | SDK Identifier | Notes | +| :---- | :---- | :---- | +| Forerunner 245 | fr245 | Primary target device | +| Forerunner 245M | fr245m | Music variant — identical build pipeline | + +To compile for both targets, the monkeyc command is run twice within the container (or parameterised via a build script): + +\# Compile for Forerunner 245 + +monkeyc \-f monkey.jungle \-o bin/TestingCadence-fr245.prg \-y ${DEVELOPER\_KEY} \-d fr245 + +\# Compile for Forerunner 245M + +monkeyc \-f monkey.jungle \-o bin/TestingCadence-fr245m.prg \-y ${DEVELOPER\_KEY} \-d fr245m + +# **11\. Troubleshooting** + +## **11.1 Common Issues** + +| Issue | Resolution | +| :---- | :---- | +| Build fails: 'monkeyc: not found' | Ensure SDK\_DIR/bin is on PATH. Rebuild the image from scratch to confirm SDK installed correctly. | +| Build fails: 'invalid developer key' | Confirm DEVELOPER\_KEY points to a valid .der file. Check the key is not corrupted during base64 encoding for CI. | +| 'monkey.jungle: not found' | Ensure the COPY . . step in the Dockerfile includes monkey.jungle. Verify .dockerignore does not exclude it. | +| No .prg in ./bin after container run | Confirm the volume mount path matches: \-v $(pwd)/bin:/workspace/bin. The bin/ directory must exist on the host before running. | +| GitHub Actions: Secret not injected | Check secret name matches exactly: GARMIN\_DEVELOPER\_KEY. Confirm secret is set at repository level, not environment level. | + +## **11.2 Checking the Container Interactively** + +To debug inside the container without running the full build: + +\# Open a shell inside the build image + +docker run \--rm \-it testingcadence-build:latest /bin/bash + +\# Check SDK is accessible + +monkeyc \--version + +\# Verify device definitions are present + +ls ${SDK\_DIR}/devices/ + +# **12\. Security Considerations** + +* The Garmin developer key (.der file) must never be committed to the repository under any circumstances. +* In CI/CD, the key is passed via GitHub Secrets only — never hardcoded in workflow YAML files. +* The Docker image should not be pushed to a public registry as it may contain the compiled binary derived from a proprietary SDK. +* The .dockerignore file should exclude sensitive files such as .env, \*.der, and any local key files. + +## **12.1 Recommended .dockerignore Entries** + +\# .dockerignore + +.git + +.github + +\*.der + +\*.key + +.env + +bin/ + +\*.prg + +# **13\. Related Documentation** + +* Git Quick Reference Guide (authored by Tharun Chakrapani Venkatesh, Deployment Sub-Team) +* Branch Protection Configuration — GitHub repository settings +* GitHub Actions Release Notes Automation — Deployment Sub-Team +* TestingCadence v1.0.2 Build Notes — Forerunner 245/245M +* Garmin Connect IQ SDK 8.3.0 Developer Documentation — developer.garmin.com + +# **14\. Document Version History** + +| Version | Date | Author | Change | +| :---- | :---- | :---- | :---- | +| 1.0 | May 2026 | Deployment Sub-Team Lead | Initial release | + diff --git a/bin/app_fr265.prg b/bin/app_fr265.prg deleted file mode 100644 index 0837945..0000000 Binary files a/bin/app_fr265.prg and /dev/null differ diff --git a/bin/app_fr265.prg.debug.xml b/bin/app_fr265.prg.debug.xml deleted file mode 100644 index 64d6620..0000000 --- a/bin/app_fr265.prg.debug.xml +++ /dev/null @@ -1,3572 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/bin/garminsmartwatch.prg b/bin/garminsmartwatch.prg deleted file mode 100644 index 32706c0..0000000 Binary files a/bin/garminsmartwatch.prg and /dev/null differ diff --git a/bin/garminsmartwatch.prg.debug.xml b/bin/garminsmartwatch.prg.debug.xml deleted file mode 100644 index 282aa0b..0000000 --- a/bin/garminsmartwatch.prg.debug.xml +++ /dev/null @@ -1,4331 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/bin/mir/source/Delegates/AdvancedViewDelegate.mir b/bin/mir/source/Delegates/AdvancedViewDelegate.mir deleted file mode 100644 index 1ca4ccb..0000000 --- a/bin/mir/source/Delegates/AdvancedViewDelegate.mir +++ /dev/null @@ -1,493 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 6; @symbol_classdef = [AdvancedViewDelegate,6,6,26]; @symbol_extends<0> = [WatchUi,6,35,42]; @symbol_extends<1> = [BehaviorDelegate,6,43,59]; ] -class AdvancedViewDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 6; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 8; @position = 16; @symbol_vardef = [_upPressStartTime,8,16,33]; ] - private - var _upPressStartTime = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 9; @position = 16; @symbol_vardef = [_lastUpReleaseTime,9,16,34]; ] - private - var _lastUpReleaseTime = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 10; @position = 16; @symbol_vardef = [_doubleClickThreshold,10,16,37]; ] - private - var _doubleClickThreshold = 600; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 11; @position = 16; @symbol_vardef = [_longPressThreshold,11,16,35]; ] - private - var _longPressThreshold = 800; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 13; @symbol_functiondef = [initialize,13,13,23]; @symbol_param<0> = [view,13,24,28]; @symbol_param<0>_type<0> = [AdvancedView,13,32,44]; ] - function initialize(view as AdvancedView) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_13_46_15_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 14 8 ] - symbol [ BehaviorDelegate %tmp.2 14 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 14 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_13_46_15_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 17; @symbol_functiondef = [getTimeMs,17,13,22]; @symbol_return<0> = [Number,17,28,34]; ] - function getTimeMs() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_17_35_19_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 18 8 ] - symbol [ System %tmp.1 18 15 21 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ getTimer %tmp.2 18 22 30 ]; - %tmp.2 = getv function %tmp.1 :getTimer; - %tmp.3 = invoke %tmp.1 %tmp.2(); - ret %tmp.3; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_17_35_19_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 21; @symbol_functiondef = [onMenu,21,13,19]; @symbol_return<0> = [Boolean,21,25,32]; ] - function onMenu() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_21_33_26_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 23 8 ] - %tmp.1 = self; - symbol [ pushSettingsView %tmp.2 23 8 24 ]; - %tmp.2 = getv function %tmp.1 :pushSettingsView; - invoke %tmp.1 %tmp.2(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 24 8 ] - %tmp.3 = 0; - symbol [ _lastUpReleaseTime ? 24 8 26 ]; - putv self :_lastUpReleaseTime %tmp.3; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 25 8 ] - %tmp.4 = true; - ret %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_21_33_26_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 28; @symbol_functiondef = [onKeyPressed,28,13,25]; @symbol_param<0> = [keyEvent,28,26,34]; @symbol_param<0>_type<0> = [WatchUi,28,38,45]; @symbol_param<0>_type<1> = [KeyEvent,28,46,54]; @symbol_return<0> = [Boolean,28,59,66]; ] - function onKeyPressed(keyEvent as WatchUi.KeyEvent) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_28_67_37_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 29 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_28_67_37_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_28_67_37_4_stop" ] - %key.1 = local; - symbol [ key %key.1 29 12 15 ]; - %tmp.1 = lgetv %keyEvent; - symbol [ keyEvent %tmp.1 29 18 26 ]; - symbol [ getKey %tmp.2 29 27 33 ]; - %tmp.2 = getv function %tmp.1 :getKey; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %key.1 %tmp.3; - symbol [ key %key.1 29 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 31 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_31_8_34_8_if_stmt: - %tmp.4 = lgetv %key.1; - symbol [ key %tmp.4 31 12 15 ]; - symbol [ WatchUi %tmp.5 31 19 26 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ KEY_UP %tmp.6 31 27 33 ]; - %tmp.6 = getv %tmp.5 :KEY_UP; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_31_8_34_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_31_8_34_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_31_35_34_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 32 12 ] - %tmp.8 = self; - symbol [ getTimeMs %tmp.9 32 32 41 ]; - %tmp.9 = getv function %tmp.8 :getTimeMs; - %tmp.10 = invoke %tmp.8 %tmp.9(); - symbol [ _upPressStartTime ? 32 12 29 ]; - putv self :_upPressStartTime %tmp.10; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 33 12 ] - %tmp.11 = true; - ret %tmp.11; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_31_35_34_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_31_8_34_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_31_8_34_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 36 8 ] - %tmp.12 = false; - ret %tmp.12; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_28_67_37_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 39; @symbol_functiondef = [onKeyReleased,39,13,26]; @symbol_param<0> = [keyEvent,39,27,35]; @symbol_param<0>_type<0> = [WatchUi,39,39,46]; @symbol_param<0>_type<1> = [KeyEvent,39,47,55]; @symbol_return<0> = [Boolean,39,60,67]; ] - function onKeyReleased(keyEvent as WatchUi.KeyEvent) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_39_68_75_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 40 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_39_68_75_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_39_68_75_4_stop" ] - %key.1 = local; - symbol [ key %key.1 40 12 15 ]; - %tmp.1 = lgetv %keyEvent; - symbol [ keyEvent %tmp.1 40 18 26 ]; - symbol [ getKey %tmp.2 40 27 33 ]; - %tmp.2 = getv function %tmp.1 :getKey; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %key.1 %tmp.3; - symbol [ key %key.1 40 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 41 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_39_68_75_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_39_68_75_4_stop" ] - %currentTime.2 = local; - symbol [ currentTime %currentTime.2 41 12 23 ]; - %tmp.4 = self; - symbol [ getTimeMs %tmp.5 41 26 35 ]; - %tmp.5 = getv function %tmp.4 :getTimeMs; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %currentTime.2 %tmp.6; - symbol [ currentTime %currentTime.2 41 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 43 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_43_8_66_8_if_stmt: - %tmp.7 = lgetv %key.1; - symbol [ key %tmp.7 43 12 15 ]; - symbol [ WatchUi %tmp.8 43 19 26 ]; - %tmp.8 = getm $.Toybox.WatchUi; - symbol [ KEY_UP %tmp.9 43 27 33 ]; - %tmp.9 = getv %tmp.8 :KEY_UP; - %tmp.10 = eq %tmp.7 %tmp.9; - bf %tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_43_8_66_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_43_8_66_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_43_35_66_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 44 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_43_35_66_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_43_35_66_8_stop" ] - %pressDuration.3 = local; - symbol [ pressDuration %pressDuration.3 44 16 29 ]; - %tmp.11 = lgetv %currentTime.2; - symbol [ currentTime %tmp.11 44 32 43 ]; - symbol [ _upPressStartTime %tmp.13 44 46 63 ]; - %tmp.13 = getv ? :_upPressStartTime; - %tmp.14 = sub %tmp.11 %tmp.13; - lputv %pressDuration.3 %tmp.14; - symbol [ pressDuration %pressDuration.3 44 16 29 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 47 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_47_12_52_12_if_stmt: - %tmp.15 = lgetv %pressDuration.3; - symbol [ pressDuration %tmp.15 47 16 29 ]; - symbol [ _longPressThreshold %tmp.17 47 33 52 ]; - %tmp.17 = getv ? :_longPressThreshold; - %tmp.18 = gte %tmp.15 %tmp.17; - bf %tmp.18 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_47_12_52_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_47_12_52_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_47_54_52_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 48 16 ] - symbol [ System %tmp.19 48 16 22 ]; - %tmp.19 = getm $.Toybox.System; - symbol [ println %tmp.20 48 23 30 ]; - %tmp.20 = getv function %tmp.19 :println; - %tmp.21 = "[AdvancedView] Long press UP -> Settings"; - invoke %tmp.19 %tmp.20(%tmp.21); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 49 16 ] - %tmp.22 = self; - symbol [ pushSettingsView %tmp.23 49 16 32 ]; - %tmp.23 = getv function %tmp.22 :pushSettingsView; - invoke %tmp.22 %tmp.23(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 50 16 ] - %tmp.24 = 0; - symbol [ _lastUpReleaseTime ? 50 16 34 ]; - putv self :_lastUpReleaseTime %tmp.24; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 51 16 ] - %tmp.25 = true; - ret %tmp.25; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_47_54_52_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_47_12_52_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_47_12_52_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 55 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_12_60_12_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_16_55_80_begin: - symbol [ _lastUpReleaseTime %tmp.27 55 16 34 ]; - %tmp.27 = getv ? :_lastUpReleaseTime; - %tmp.28 = 0; - %tmp.29 = ne %tmp.27 %tmp.28; - bf %tmp.29 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_12_60_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_43_55_80_true: - %tmp.30 = lgetv %currentTime.2; - symbol [ currentTime %tmp.30 55 44 55 ]; - symbol [ _lastUpReleaseTime %tmp.32 55 58 76 ]; - %tmp.32 = getv ? :_lastUpReleaseTime; - %tmp.33 = sub %tmp.30 %tmp.32; - symbol [ _doubleClickThreshold %tmp.35 55 80 101 ]; - %tmp.35 = getv ? :_doubleClickThreshold; - %tmp.36 = lt %tmp.33 %tmp.35; - push %tmp.36; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_43_55_80_end: - %tmp.37 = phi [%tmp.29 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_16_55_80_begin] [%tmp.36 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_43_55_80_true] [%tmp.37 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_43_55_80_end]; - bf %tmp.37 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_12_60_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_12_60_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_103_60_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 56 16 ] - symbol [ System %tmp.38 56 16 22 ]; - %tmp.38 = getm $.Toybox.System; - symbol [ println %tmp.39 56 23 30 ]; - %tmp.39 = getv function %tmp.38 :println; - %tmp.40 = "[AdvancedView] Double click UP -> Vibration Toggle"; - invoke %tmp.38 %tmp.39(%tmp.40); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 57 16 ] - %tmp.41 = self; - symbol [ toggleVibration %tmp.42 57 16 31 ]; - %tmp.42 = getv function %tmp.41 :toggleVibration; - invoke %tmp.41 %tmp.42(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 58 16 ] - %tmp.43 = 0; - symbol [ _lastUpReleaseTime ? 58 16 34 ]; - putv self :_lastUpReleaseTime %tmp.43; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 59 16 ] - %tmp.44 = true; - ret %tmp.44; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_103_60_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_12_60_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_55_12_60_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 63 12 ] - symbol [ System %tmp.45 63 12 18 ]; - %tmp.45 = getm $.Toybox.System; - symbol [ println %tmp.46 63 19 26 ]; - %tmp.46 = getv function %tmp.45 :println; - %tmp.47 = "[AdvancedView] Single click UP -> Waiting for double..."; - invoke %tmp.45 %tmp.46(%tmp.47); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 64 12 ] - %tmp.48 = lgetv %currentTime.2; - symbol [ currentTime %tmp.48 64 33 44 ]; - symbol [ _lastUpReleaseTime ? 64 12 30 ]; - putv self :_lastUpReleaseTime %tmp.48; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 65 12 ] - %tmp.49 = true; - ret %tmp.49; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_43_35_66_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_43_8_66_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_43_8_66_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 69 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_69_8_72_8_if_stmt: - %tmp.50 = lgetv %key.1; - symbol [ key %tmp.50 69 12 15 ]; - symbol [ WatchUi %tmp.51 69 19 26 ]; - %tmp.51 = getm $.Toybox.WatchUi; - symbol [ KEY_DOWN %tmp.52 69 27 35 ]; - %tmp.52 = getv %tmp.51 :KEY_DOWN; - %tmp.53 = eq %tmp.50 %tmp.52; - bf %tmp.53 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_69_8_72_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_69_8_72_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_69_37_72_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 70 12 ] - %tmp.54 = self; - symbol [ pushSimpleView %tmp.55 70 12 26 ]; - %tmp.55 = getv function %tmp.54 :pushSimpleView; - invoke %tmp.54 %tmp.55(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 71 12 ] - %tmp.56 = true; - ret %tmp.56; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_69_37_72_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_69_8_72_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_69_8_72_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 74 8 ] - %tmp.57 = false; - ret %tmp.57; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_39_68_75_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 77; @symbol_functiondef = [toggleVibration,77,13,28]; ] - function toggleVibration() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_77_39_93_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 78 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_77_39_93_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_77_39_93_4_stop" ] - %app.1 = local; - symbol [ app %app.1 78 12 15 ]; - symbol [ Application %tmp.1 78 18 29 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 78 30 36 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 78 42 51 ]; - lputv %app.1 %tmp.4; - symbol [ app %app.1 78 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 80 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_77_39_93_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_77_39_93_4_stop" ] - %enabled.2 = local; - symbol [ enabled %enabled.2 80 12 19 ]; - %tmp.5 = lgetv %app.1; - symbol [ app %tmp.5 80 22 25 ]; - symbol [ getVibrationEnabled %tmp.6 80 26 45 ]; - %tmp.6 = getv function %tmp.5 :getVibrationEnabled; - %tmp.7 = invoke %tmp.5 %tmp.6(); - lputv %enabled.2 %tmp.7; - symbol [ enabled %enabled.2 80 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 81 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_77_39_93_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_77_39_93_4_stop" ] - %newEnabled.3 = local; - symbol [ newEnabled %newEnabled.3 81 12 22 ]; - %tmp.8 = lgetv %enabled.2; - symbol [ enabled %tmp.8 81 26 33 ]; - %tmp.9 = not %tmp.8; - lputv %newEnabled.3 %tmp.9; - symbol [ newEnabled %newEnabled.3 81 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 83 8 ] - %tmp.10 = lgetv %app.1; - symbol [ app %tmp.10 83 8 11 ]; - symbol [ setVibrationEnabled %tmp.11 83 12 31 ]; - %tmp.11 = getv function %tmp.10 :setVibrationEnabled; - %tmp.12 = lgetv %newEnabled.3; - symbol [ newEnabled %tmp.12 83 32 42 ]; - invoke %tmp.10 %tmp.11(%tmp.12); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 85 8 ] - symbol [ System %tmp.13 85 8 14 ]; - %tmp.13 = getm $.Toybox.System; - symbol [ println %tmp.14 85 15 22 ]; - %tmp.14 = getv function %tmp.13 :println; - %tmp.15 = "[AdvancedView] Vibration toggled: "; - %tmp.16 = lgetv %newEnabled.3; - symbol [ newEnabled %tmp.16 85 62 72 ]; - symbol [ toString %tmp.17 85 73 81 ]; - %tmp.17 = getv function %tmp.16 :toString; - %tmp.18 = invoke %tmp.16 %tmp.17(); - %tmp.19 = add %tmp.15 %tmp.18; - invoke %tmp.13 %tmp.14(%tmp.19); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 88 8 ] - symbol [ WatchUi %tmp.20 88 8 15 ]; - %tmp.20 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.21 88 16 24 ]; - %tmp.21 = getv function %tmp.20 :pushView; - symbol [ VibrationView %tmp.25 89 16 29 ]; - %tmp.25 = getv ? :VibrationView; - %tmp.26 = lgetv %newEnabled.3; - symbol [ newEnabled %tmp.26 89 30 40 ]; - %tmp.22 = newc %tmp.25 (%tmp.26); - symbol [ WatchUi %tmp.29 90 16 23 ]; - %tmp.29 = getm $.Toybox.WatchUi; - symbol [ BehaviorDelegate %tmp.30 90 24 40 ]; - %tmp.30 = getv function ? %tmp.29 :BehaviorDelegate; - %tmp.27 = newc %tmp.30 (); - symbol [ WatchUi %tmp.31 91 12 19 ]; - %tmp.31 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.32 91 20 35 ]; - %tmp.32 = getv %tmp.31 :SLIDE_IMMEDIATE; - invoke %tmp.20 %tmp.21(%tmp.22, %tmp.27, %tmp.32); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_77_39_93_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 95; @symbol_functiondef = [onSwipe,95,13,20]; @symbol_param<0> = [swipeEvent,95,21,31]; @symbol_param<0>_type<0> = [WatchUi,95,35,42]; @symbol_param<0>_type<1> = [SwipeEvent,95,43,53]; @symbol_return<0> = [Boolean,95,58,65]; ] - function onSwipe(swipeEvent as WatchUi.SwipeEvent) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_95_66_112_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 96 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_95_66_112_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_95_66_112_4_stop" ] - %direction.1 = local; - symbol [ direction %direction.1 96 12 21 ]; - %tmp.1 = lgetv %swipeEvent; - symbol [ swipeEvent %tmp.1 96 24 34 ]; - symbol [ getDirection %tmp.2 96 35 47 ]; - %tmp.2 = getv function %tmp.1 :getDirection; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %direction.1 %tmp.3; - symbol [ direction %direction.1 96 12 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 99 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_99_8_103_8_if_stmt: - %tmp.4 = lgetv %direction.1; - symbol [ direction %tmp.4 99 12 21 ]; - symbol [ WatchUi %tmp.5 99 25 32 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ SWIPE_DOWN %tmp.6 99 33 43 ]; - %tmp.6 = getv %tmp.5 :SWIPE_DOWN; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_99_8_103_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_99_8_103_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_99_45_103_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 100 12 ] - symbol [ System %tmp.8 100 12 18 ]; - %tmp.8 = getm $.Toybox.System; - symbol [ println %tmp.9 100 19 26 ]; - %tmp.9 = getv function %tmp.8 :println; - %tmp.10 = "[UI] Swiped down to SimpleView"; - invoke %tmp.8 %tmp.9(%tmp.10); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 101 12 ] - %tmp.11 = self; - symbol [ pushSimpleView %tmp.12 101 12 26 ]; - %tmp.12 = getv function %tmp.11 :pushSimpleView; - invoke %tmp.11 %tmp.12(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 102 12 ] - %tmp.13 = true; - ret %tmp.13; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_99_45_103_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_99_8_103_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_99_8_103_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 106 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_106_8_109_8_if_stmt: - %tmp.14 = lgetv %direction.1; - symbol [ direction %tmp.14 106 12 21 ]; - symbol [ WatchUi %tmp.15 106 25 32 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ SWIPE_LEFT %tmp.16 106 33 43 ]; - %tmp.16 = getv %tmp.15 :SWIPE_LEFT; - %tmp.17 = eq %tmp.14 %tmp.16; - bf %tmp.17 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_106_8_109_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_106_8_109_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_106_45_109_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 107 12 ] - %tmp.18 = self; - symbol [ pushSettingsView %tmp.19 107 12 28 ]; - %tmp.19 = getv function %tmp.18 :pushSettingsView; - invoke %tmp.18 %tmp.19(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 108 12 ] - %tmp.20 = true; - ret %tmp.20; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_106_45_109_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_106_8_109_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_106_8_109_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 111 8 ] - %tmp.21 = false; - ret %tmp.21; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_95_66_112_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 114; @symbol_functiondef = [onBack,114,13,19]; @symbol_return<0> = [Boolean,114,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_114_33_117_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 115 8 ] - %tmp.1 = self; - symbol [ pushSimpleView %tmp.2 115 8 22 ]; - %tmp.2 = getv function %tmp.1 :pushSimpleView; - invoke %tmp.1 %tmp.2(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 116 8 ] - %tmp.3 = true; - ret %tmp.3; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_114_33_117_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 119; @symbol_functiondef = [pushSettingsView,119,13,29]; ] - function pushSettingsView() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_119_40_121_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 120 8 ] - symbol [ WatchUi %tmp.1 120 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.2 120 16 28 ]; - %tmp.2 = getv function %tmp.1 :switchToView; - symbol [ SettingsView %tmp.6 120 33 45 ]; - %tmp.6 = getv ? :SettingsView; - %tmp.3 = newc %tmp.6 (); - symbol [ SettingsMenuDelegate %tmp.10 120 53 73 ]; - %tmp.10 = getv ? :SettingsMenuDelegate; - %tmp.7 = newc %tmp.10 (); - symbol [ WatchUi %tmp.11 120 77 84 ]; - %tmp.11 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.12 120 85 93 ]; - %tmp.12 = getv %tmp.11 :SLIDE_UP; - invoke %tmp.1 %tmp.2(%tmp.3, %tmp.7, %tmp.12); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_119_40_121_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 123; @symbol_functiondef = [pushSimpleView,123,13,27]; ] - function pushSimpleView() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_123_38_125_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc" 124 8 ] - symbol [ WatchUi %tmp.1 124 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.2 124 16 28 ]; - %tmp.2 = getv function %tmp.1 :switchToView; - symbol [ SimpleView %tmp.6 124 33 43 ]; - %tmp.6 = getv ? :SimpleView; - %tmp.3 = newc %tmp.6 (); - symbol [ SimpleViewDelegate %tmp.10 124 51 69 ]; - %tmp.10 = getv ? :SimpleViewDelegate; - %tmp.7 = newc %tmp.10 (); - symbol [ WatchUi %tmp.11 124 73 80 ]; - %tmp.11 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.12 124 81 89 ]; - %tmp.12 = getv %tmp.11 :SLIDE_UP; - invoke %tmp.1 %tmp.2(%tmp.3, %tmp.7, %tmp.12); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_AdvancedViewDelegate_mc_123_38_125_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\AdvancedViewDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/CadenceMaxDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/CadenceMaxDelegate.mir deleted file mode 100644 index 0888db6..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/CadenceMaxDelegate.mir +++ /dev/null @@ -1,269 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [System,3,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 6; @symbol_classdef = [CadenceMaxDelegate,6,6,24]; @symbol_extends<0> = [WatchUi,6,33,40]; @symbol_extends<1> = [BehaviorDelegate,6,41,57]; ] -class CadenceMaxDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 6; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 9; @position = 16; @symbol_vardef = [_max,9,16,20]; @symbol_type<0> = [Number,9,24,30]; ] - private - var _max as Number; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 11; @symbol_functiondef = [initialize,11,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_11_26_16_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 12 8 ] - symbol [ BehaviorDelegate %tmp.2 12 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 12 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 14 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_11_26_16_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_11_26_16_4_stop" ] - %app.1 = local; - symbol [ app %app.1 14 12 15 ]; - symbol [ Application %tmp.4 14 18 29 ]; - %tmp.4 = getm $.Toybox.Application; - symbol [ getApp %tmp.5 14 30 36 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - %tmp.7 = as %tmp.6 GarminApp; - symbol [ GarminApp %tmp.7 14 42 51 ]; - lputv %app.1 %tmp.7; - symbol [ app %app.1 14 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 15 8 ] - %tmp.8 = lgetv %app.1; - symbol [ app %tmp.8 15 15 18 ]; - symbol [ getMaxCadence %tmp.9 15 19 32 ]; - %tmp.9 = getv function %tmp.8 :getMaxCadence; - %tmp.10 = invoke %tmp.8 %tmp.9(); - symbol [ _max ? 15 8 12 ]; - putv self :_max %tmp.10; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_11_26_16_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 19; @symbol_functiondef = [onBack,19,13,19]; @symbol_return<0> = [Boolean,19,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_19_33_27_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 20 8 ] - symbol [ System %tmp.1 20 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 20 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[SETTINGS] CadenceMax: Back - returning to CadenceMinView"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 21 8 ] - symbol [ WatchUi %tmp.4 21 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.5 21 16 28 ]; - %tmp.5 = getv function %tmp.4 :switchToView; - symbol [ CadenceMinView %tmp.9 22 16 30 ]; - %tmp.9 = getv ? :CadenceMinView; - %tmp.6 = newc %tmp.9 (); - symbol [ CadenceMinDelegate %tmp.13 23 16 34 ]; - %tmp.13 = getv ? :CadenceMinDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 24 12 19 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 24 20 30 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 26 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_19_33_27_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 30; @symbol_functiondef = [onSelect,30,13,21]; @symbol_return<0> = [Boolean,30,27,34]; ] - function onSelect() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_30_35_40_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 31 8 ] - symbol [ System %tmp.1 31 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 31 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[SETTINGS] CadenceMax: Select - saving max and returning to CadenceSettingsMenu"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 32 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_30_35_40_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_30_35_40_4_stop" ] - %app.1 = local; - symbol [ app %app.1 32 12 15 ]; - symbol [ Application %tmp.4 32 18 29 ]; - %tmp.4 = getm $.Toybox.Application; - symbol [ getApp %tmp.5 32 30 36 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - %tmp.7 = as %tmp.6 GarminApp; - symbol [ GarminApp %tmp.7 32 42 51 ]; - lputv %app.1 %tmp.7; - symbol [ app %app.1 32 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 33 8 ] - %tmp.8 = lgetv %app.1; - symbol [ app %tmp.8 33 8 11 ]; - symbol [ setMaxCadence %tmp.9 33 12 25 ]; - %tmp.9 = getv function %tmp.8 :setMaxCadence; - symbol [ _max %tmp.11 33 26 30 ]; - %tmp.11 = getv ? :_max; - invoke %tmp.8 %tmp.9(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 34 8 ] - symbol [ WatchUi %tmp.12 34 8 15 ]; - %tmp.12 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.13 34 16 28 ]; - %tmp.13 = getv function %tmp.12 :switchToView; - symbol [ CadenceSettingsMenuView %tmp.17 35 16 39 ]; - %tmp.17 = getv ? :CadenceSettingsMenuView; - %tmp.14 = newc %tmp.17 (); - symbol [ CadenceSettingsMenuDelegate %tmp.21 36 16 43 ]; - %tmp.21 = getv ? :CadenceSettingsMenuDelegate; - %tmp.18 = newc %tmp.21 (); - symbol [ WatchUi %tmp.22 37 12 19 ]; - %tmp.22 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.23 37 20 28 ]; - %tmp.23 = getv %tmp.22 :SLIDE_UP; - invoke %tmp.12 %tmp.13(%tmp.14, %tmp.18, %tmp.23); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 39 8 ] - %tmp.24 = true; - ret %tmp.24; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_30_35_40_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 42; @symbol_functiondef = [onKey,42,13,18]; @symbol_param<0> = [keyEvent,42,19,27]; @symbol_param<0>_type<0> = [WatchUi,42,31,38]; @symbol_param<0>_type<1> = [KeyEvent,42,39,47]; @symbol_return<0> = [Boolean,42,52,59]; ] - function onKey(keyEvent as WatchUi.KeyEvent) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_42_60_65_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 43 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_42_60_65_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_42_60_65_4_stop" ] - %key.1 = local; - symbol [ key %key.1 43 12 15 ]; - %tmp.1 = lgetv %keyEvent; - symbol [ keyEvent %tmp.1 43 18 26 ]; - symbol [ getKey %tmp.2 43 27 33 ]; - %tmp.2 = getv function %tmp.1 :getKey; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %key.1 %tmp.3; - symbol [ key %key.1 43 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 44 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_42_60_65_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_42_60_65_4_stop" ] - %app.2 = local; - symbol [ app %app.2 44 12 15 ]; - symbol [ Application %tmp.4 44 18 29 ]; - %tmp.4 = getm $.Toybox.Application; - symbol [ getApp %tmp.5 44 30 36 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - %tmp.7 = as %tmp.6 GarminApp; - symbol [ GarminApp %tmp.7 44 42 51 ]; - lputv %app.2 %tmp.7; - symbol [ app %app.2 44 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 47 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_47_8_53_8_if_stmt: - %tmp.8 = lgetv %key.1; - symbol [ key %tmp.8 47 12 15 ]; - symbol [ WatchUi %tmp.9 47 19 26 ]; - %tmp.9 = getm $.Toybox.WatchUi; - symbol [ KEY_UP %tmp.10 47 27 33 ]; - %tmp.10 = getv %tmp.9 :KEY_UP; - %tmp.11 = eq %tmp.8 %tmp.10; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_47_8_53_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_47_8_53_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_47_35_53_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 48 12 ] - symbol [ _max %tmp.13 48 19 23 ]; - %tmp.13 = getv ? :_max; - %tmp.14 = 1; - %tmp.15 = add %tmp.13 %tmp.14; - symbol [ _max ? 48 12 16 ]; - putv self :_max %tmp.15; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 49 12 ] - %tmp.16 = lgetv %app.2; - symbol [ app %tmp.16 49 12 15 ]; - symbol [ setMaxCadence %tmp.17 49 16 29 ]; - %tmp.17 = getv function %tmp.16 :setMaxCadence; - symbol [ _max %tmp.19 49 30 34 ]; - %tmp.19 = getv ? :_max; - invoke %tmp.16 %tmp.17(%tmp.19); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 50 12 ] - symbol [ System %tmp.20 50 12 18 ]; - %tmp.20 = getm $.Toybox.System; - symbol [ println %tmp.21 50 19 26 ]; - %tmp.21 = getv function %tmp.20 :println; - %tmp.22 = "[SETTINGS] CadenceMax: UP - max is now "; - symbol [ _max %tmp.24 50 71 75 ]; - %tmp.24 = getv ? :_max; - %tmp.25 = add %tmp.22 %tmp.24; - invoke %tmp.20 %tmp.21(%tmp.25); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 51 12 ] - symbol [ WatchUi %tmp.26 51 12 19 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.27 51 20 33 ]; - %tmp.27 = getv function %tmp.26 :requestUpdate; - invoke %tmp.26 %tmp.27(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 52 12 ] - %tmp.28 = true; - ret %tmp.28; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_47_35_53_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_47_8_53_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_47_8_53_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 56 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_56_8_62_8_if_stmt: - %tmp.29 = lgetv %key.1; - symbol [ key %tmp.29 56 12 15 ]; - symbol [ WatchUi %tmp.30 56 19 26 ]; - %tmp.30 = getm $.Toybox.WatchUi; - symbol [ KEY_DOWN %tmp.31 56 27 35 ]; - %tmp.31 = getv %tmp.30 :KEY_DOWN; - %tmp.32 = eq %tmp.29 %tmp.31; - bf %tmp.32 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_56_8_62_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_56_8_62_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_56_37_62_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 57 12 ] - symbol [ _max %tmp.34 57 19 23 ]; - %tmp.34 = getv ? :_max; - %tmp.35 = 1; - %tmp.36 = sub %tmp.34 %tmp.35; - symbol [ _max ? 57 12 16 ]; - putv self :_max %tmp.36; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 58 12 ] - %tmp.37 = lgetv %app.2; - symbol [ app %tmp.37 58 12 15 ]; - symbol [ setMaxCadence %tmp.38 58 16 29 ]; - %tmp.38 = getv function %tmp.37 :setMaxCadence; - symbol [ _max %tmp.40 58 30 34 ]; - %tmp.40 = getv ? :_max; - invoke %tmp.37 %tmp.38(%tmp.40); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 59 12 ] - symbol [ System %tmp.41 59 12 18 ]; - %tmp.41 = getm $.Toybox.System; - symbol [ println %tmp.42 59 19 26 ]; - %tmp.42 = getv function %tmp.41 :println; - %tmp.43 = "[SETTINGS] CadenceMax: DOWN - max is now "; - symbol [ _max %tmp.45 59 73 77 ]; - %tmp.45 = getv ? :_max; - %tmp.46 = add %tmp.43 %tmp.45; - invoke %tmp.41 %tmp.42(%tmp.46); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 60 12 ] - symbol [ WatchUi %tmp.47 60 12 19 ]; - %tmp.47 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.48 60 20 33 ]; - %tmp.48 = getv function %tmp.47 :requestUpdate; - invoke %tmp.47 %tmp.48(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 61 12 ] - %tmp.49 = true; - ret %tmp.49; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_56_37_62_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_56_8_62_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_56_8_62_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc" 64 8 ] - %tmp.50 = false; - ret %tmp.50; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMaxDelegate_mc_42_60_65_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMaxDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/CadenceMinDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/CadenceMinDelegate.mir deleted file mode 100644 index 1c7aea1..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/CadenceMinDelegate.mir +++ /dev/null @@ -1,269 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [System,3,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 6; @symbol_classdef = [CadenceMinDelegate,6,6,24]; @symbol_extends<0> = [WatchUi,6,33,40]; @symbol_extends<1> = [BehaviorDelegate,6,41,57]; ] -class CadenceMinDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 6; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 10; @position = 16; @symbol_vardef = [_min,10,16,20]; @symbol_type<0> = [Number,10,24,30]; ] - private - var _min as Number; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 12; @symbol_functiondef = [initialize,12,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_12_26_17_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 13 8 ] - symbol [ BehaviorDelegate %tmp.2 13 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 13 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 15 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_12_26_17_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_12_26_17_4_stop" ] - %app.1 = local; - symbol [ app %app.1 15 12 15 ]; - symbol [ Application %tmp.4 15 18 29 ]; - %tmp.4 = getm $.Toybox.Application; - symbol [ getApp %tmp.5 15 30 36 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - %tmp.7 = as %tmp.6 GarminApp; - symbol [ GarminApp %tmp.7 15 42 51 ]; - lputv %app.1 %tmp.7; - symbol [ app %app.1 15 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 16 8 ] - %tmp.8 = lgetv %app.1; - symbol [ app %tmp.8 16 15 18 ]; - symbol [ getMinCadence %tmp.9 16 19 32 ]; - %tmp.9 = getv function %tmp.8 :getMinCadence; - %tmp.10 = invoke %tmp.8 %tmp.9(); - symbol [ _min ? 16 8 12 ]; - putv self :_min %tmp.10; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_12_26_17_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 20; @symbol_functiondef = [onBack,20,13,19]; @symbol_return<0> = [Boolean,20,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_20_33_28_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 21 8 ] - symbol [ System %tmp.1 21 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 21 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[SETTINGS] CadenceMin: Back - returning to CadenceSettingsMenu"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 22 8 ] - symbol [ WatchUi %tmp.4 22 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.5 22 16 28 ]; - %tmp.5 = getv function %tmp.4 :switchToView; - symbol [ CadenceSettingsMenuView %tmp.9 23 16 39 ]; - %tmp.9 = getv ? :CadenceSettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ CadenceSettingsMenuDelegate %tmp.13 24 16 43 ]; - %tmp.13 = getv ? :CadenceSettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 25 12 19 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 25 20 30 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 27 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_20_33_28_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 31; @symbol_functiondef = [onSelect,31,13,21]; @symbol_return<0> = [Boolean,31,27,34]; ] - function onSelect() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_31_35_41_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 32 8 ] - symbol [ System %tmp.1 32 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 32 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[SETTINGS] CadenceMin: Select - saving min and going to CadenceMaxView"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 33 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_31_35_41_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_31_35_41_4_stop" ] - %app.1 = local; - symbol [ app %app.1 33 12 15 ]; - symbol [ Application %tmp.4 33 18 29 ]; - %tmp.4 = getm $.Toybox.Application; - symbol [ getApp %tmp.5 33 30 36 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - %tmp.7 = as %tmp.6 GarminApp; - symbol [ GarminApp %tmp.7 33 42 51 ]; - lputv %app.1 %tmp.7; - symbol [ app %app.1 33 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 34 8 ] - %tmp.8 = lgetv %app.1; - symbol [ app %tmp.8 34 8 11 ]; - symbol [ setMinCadence %tmp.9 34 12 25 ]; - %tmp.9 = getv function %tmp.8 :setMinCadence; - symbol [ _min %tmp.11 34 26 30 ]; - %tmp.11 = getv ? :_min; - invoke %tmp.8 %tmp.9(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 35 8 ] - symbol [ WatchUi %tmp.12 35 8 15 ]; - %tmp.12 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.13 35 16 28 ]; - %tmp.13 = getv function %tmp.12 :switchToView; - symbol [ CadenceMaxView %tmp.17 36 16 30 ]; - %tmp.17 = getv ? :CadenceMaxView; - %tmp.14 = newc %tmp.17 (); - symbol [ CadenceMaxDelegate %tmp.21 37 16 34 ]; - %tmp.21 = getv ? :CadenceMaxDelegate; - %tmp.18 = newc %tmp.21 (); - symbol [ WatchUi %tmp.22 38 12 19 ]; - %tmp.22 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.23 38 20 28 ]; - %tmp.23 = getv %tmp.22 :SLIDE_UP; - invoke %tmp.12 %tmp.13(%tmp.14, %tmp.18, %tmp.23); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 40 8 ] - %tmp.24 = true; - ret %tmp.24; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_31_35_41_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 43; @symbol_functiondef = [onKey,43,13,18]; @symbol_param<0> = [keyEvent,43,19,27]; @symbol_param<0>_type<0> = [WatchUi,43,31,38]; @symbol_param<0>_type<1> = [KeyEvent,43,39,47]; @symbol_return<0> = [Boolean,43,52,59]; ] - function onKey(keyEvent as WatchUi.KeyEvent) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_43_60_66_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 44 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_43_60_66_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_43_60_66_4_stop" ] - %key.1 = local; - symbol [ key %key.1 44 12 15 ]; - %tmp.1 = lgetv %keyEvent; - symbol [ keyEvent %tmp.1 44 18 26 ]; - symbol [ getKey %tmp.2 44 27 33 ]; - %tmp.2 = getv function %tmp.1 :getKey; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %key.1 %tmp.3; - symbol [ key %key.1 44 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 45 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_43_60_66_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_43_60_66_4_stop" ] - %app.2 = local; - symbol [ app %app.2 45 12 15 ]; - symbol [ Application %tmp.4 45 18 29 ]; - %tmp.4 = getm $.Toybox.Application; - symbol [ getApp %tmp.5 45 30 36 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - %tmp.7 = as %tmp.6 GarminApp; - symbol [ GarminApp %tmp.7 45 42 51 ]; - lputv %app.2 %tmp.7; - symbol [ app %app.2 45 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 48 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_48_8_54_8_if_stmt: - %tmp.8 = lgetv %key.1; - symbol [ key %tmp.8 48 12 15 ]; - symbol [ WatchUi %tmp.9 48 19 26 ]; - %tmp.9 = getm $.Toybox.WatchUi; - symbol [ KEY_UP %tmp.10 48 27 33 ]; - %tmp.10 = getv %tmp.9 :KEY_UP; - %tmp.11 = eq %tmp.8 %tmp.10; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_48_8_54_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_48_8_54_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_48_35_54_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 49 12 ] - symbol [ _min %tmp.13 49 19 23 ]; - %tmp.13 = getv ? :_min; - %tmp.14 = 1; - %tmp.15 = add %tmp.13 %tmp.14; - symbol [ _min ? 49 12 16 ]; - putv self :_min %tmp.15; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 50 12 ] - %tmp.16 = lgetv %app.2; - symbol [ app %tmp.16 50 12 15 ]; - symbol [ setMinCadence %tmp.17 50 16 29 ]; - %tmp.17 = getv function %tmp.16 :setMinCadence; - symbol [ _min %tmp.19 50 30 34 ]; - %tmp.19 = getv ? :_min; - invoke %tmp.16 %tmp.17(%tmp.19); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 51 12 ] - symbol [ System %tmp.20 51 12 18 ]; - %tmp.20 = getm $.Toybox.System; - symbol [ println %tmp.21 51 19 26 ]; - %tmp.21 = getv function %tmp.20 :println; - %tmp.22 = "[SETTINGS] CadenceMin: UP - min is now "; - symbol [ _min %tmp.24 51 71 75 ]; - %tmp.24 = getv ? :_min; - %tmp.25 = add %tmp.22 %tmp.24; - invoke %tmp.20 %tmp.21(%tmp.25); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 52 12 ] - symbol [ WatchUi %tmp.26 52 12 19 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.27 52 20 33 ]; - %tmp.27 = getv function %tmp.26 :requestUpdate; - invoke %tmp.26 %tmp.27(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 53 12 ] - %tmp.28 = true; - ret %tmp.28; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_48_35_54_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_48_8_54_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_48_8_54_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 57 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_57_8_63_8_if_stmt: - %tmp.29 = lgetv %key.1; - symbol [ key %tmp.29 57 12 15 ]; - symbol [ WatchUi %tmp.30 57 19 26 ]; - %tmp.30 = getm $.Toybox.WatchUi; - symbol [ KEY_DOWN %tmp.31 57 27 35 ]; - %tmp.31 = getv %tmp.30 :KEY_DOWN; - %tmp.32 = eq %tmp.29 %tmp.31; - bf %tmp.32 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_57_8_63_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_57_8_63_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_57_37_63_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 58 12 ] - symbol [ _min %tmp.34 58 19 23 ]; - %tmp.34 = getv ? :_min; - %tmp.35 = 1; - %tmp.36 = sub %tmp.34 %tmp.35; - symbol [ _min ? 58 12 16 ]; - putv self :_min %tmp.36; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 59 12 ] - %tmp.37 = lgetv %app.2; - symbol [ app %tmp.37 59 12 15 ]; - symbol [ setMinCadence %tmp.38 59 16 29 ]; - %tmp.38 = getv function %tmp.37 :setMinCadence; - symbol [ _min %tmp.40 59 30 34 ]; - %tmp.40 = getv ? :_min; - invoke %tmp.37 %tmp.38(%tmp.40); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 60 12 ] - symbol [ System %tmp.41 60 12 18 ]; - %tmp.41 = getm $.Toybox.System; - symbol [ println %tmp.42 60 19 26 ]; - %tmp.42 = getv function %tmp.41 :println; - %tmp.43 = "[SETTINGS] CadenceMin: DOWN - min is now "; - symbol [ _min %tmp.45 60 73 77 ]; - %tmp.45 = getv ? :_min; - %tmp.46 = add %tmp.43 %tmp.45; - invoke %tmp.41 %tmp.42(%tmp.46); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 61 12 ] - symbol [ WatchUi %tmp.47 61 12 19 ]; - %tmp.47 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.48 61 20 33 ]; - %tmp.48 = getv function %tmp.47 :requestUpdate; - invoke %tmp.47 %tmp.48(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 62 12 ] - %tmp.49 = true; - ret %tmp.49; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_57_37_63_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_57_8_63_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_57_8_63_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc" 65 8 ] - %tmp.50 = false; - ret %tmp.50; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceMinDelegate_mc_43_60_66_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceMinDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/CadenceRangePickerDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/CadenceRangePickerDelegate.mir deleted file mode 100644 index 002c4d1..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/CadenceRangePickerDelegate.mir +++ /dev/null @@ -1,277 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [WatchUi,1,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [Application,3,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Lang,4,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 6; @symbol_classdef = [CadenceRangePickerDelegate,6,6,32]; @symbol_extends<0> = [WatchUi,6,41,48]; @symbol_extends<1> = [PickerDelegate,6,49,63]; ] -class CadenceRangePickerDelegate extends WatchUi.PickerDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 6; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 8; @position = 16; @symbol_vardef = [_typeId,8,16,23]; ] - private - var _typeId; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 9; @position = 16; @symbol_vardef = [_menu,9,16,21]; ] - private - var _menu; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 11; @symbol_functiondef = [initialize,11,13,23]; @symbol_param<0> = [typeId,11,24,30]; @symbol_param<1> = [menu,11,32,36]; ] - function initialize(typeId, menu) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_11_38_16_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 12 8 ] - symbol [ PickerDelegate %tmp.2 12 8 22 ]; - %tmp.2 = getv ? :PickerDelegate; - symbol [ initialize %tmp.3 12 23 33 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 13 8 ] - %tmp.4 = lgetv %typeId; - symbol [ typeId %tmp.4 13 18 24 ]; - symbol [ _typeId ? 13 8 15 ]; - putv self :_typeId %tmp.4; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 14 8 ] - %tmp.5 = lgetv %menu; - symbol [ menu %tmp.5 14 16 20 ]; - symbol [ _menu ? 14 8 13 ]; - putv self :_menu %tmp.5; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 15 8 ] - symbol [ System %tmp.6 15 8 14 ]; - %tmp.6 = getm $.Toybox.System; - symbol [ println %tmp.7 15 15 22 ]; - %tmp.7 = getv function %tmp.6 :println; - %tmp.8 = "[DEBUG] CadenceRangePickerDelegate initialized with typeId: "; - %tmp.9 = lgetv %typeId; - symbol [ typeId %tmp.9 15 88 94 ]; - %tmp.10 = add %tmp.8 %tmp.9; - invoke %tmp.6 %tmp.7(%tmp.10); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_11_38_16_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 18; @symbol_functiondef = [onAccept,18,13,21]; @symbol_param<0> = [values,18,22,28]; @symbol_param<0>_type<0> = [Array,18,32,37]; @symbol_return<0> = [Boolean,18,42,49]; ] - function onAccept(values as Array) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_18_50_46_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 19 8 ] - symbol [ System %tmp.1 19 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 19 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[DEBUG] CadenceRangePickerDelegate onAccept called"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 21 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_18_50_46_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_18_50_46_4_stop" ] - %pickedValue.1 = local; - symbol [ pickedValue %pickedValue.1 21 12 23 ]; - %tmp.4 = lgetv %values; - symbol [ values %tmp.4 21 26 32 ]; - %tmp.5 = 0; - %tmp.6 = agetv %tmp.4 %tmp.5; - lputv %pickedValue.1 %tmp.6; - symbol [ pickedValue %pickedValue.1 21 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 22 8 ] - symbol [ System %tmp.7 22 8 14 ]; - %tmp.7 = getm $.Toybox.System; - symbol [ println %tmp.8 22 15 22 ]; - %tmp.8 = getv function %tmp.7 :println; - %tmp.9 = "[DEBUG] Picked value: "; - %tmp.10 = lgetv %pickedValue.1; - symbol [ pickedValue %tmp.10 22 50 61 ]; - %tmp.11 = add %tmp.9 %tmp.10; - invoke %tmp.7 %tmp.8(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 24 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_18_50_46_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_18_50_46_4_stop" ] - %app.2 = local; - symbol [ app %app.2 24 12 15 ]; - symbol [ Application %tmp.12 24 18 29 ]; - %tmp.12 = getm $.Toybox.Application; - symbol [ getApp %tmp.13 24 30 36 ]; - %tmp.13 = getv function %tmp.12 :getApp; - %tmp.14 = invoke %tmp.12 %tmp.13(); - %tmp.15 = as %tmp.14 GarminApp; - symbol [ GarminApp %tmp.15 24 42 51 ]; - lputv %app.2 %tmp.15; - symbol [ app %app.2 24 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 26 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_26_8_33_8_if_stmt: - symbol [ _typeId %tmp.17 26 12 19 ]; - %tmp.17 = getv ? :_typeId; - %tmp.19 = const :cadence_min; - symbol [ cadence_min %tmp.19 26 24 35 const ]; - %tmp.20 = eq %tmp.17 %tmp.19; - bf %tmp.20 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_26_8_33_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_26_8_33_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_26_37_29_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 27 12 ] - symbol [ System %tmp.21 27 12 18 ]; - %tmp.21 = getm $.Toybox.System; - symbol [ println %tmp.22 27 19 26 ]; - %tmp.22 = getv function %tmp.21 :println; - %tmp.23 = "[INFO] Min Cadence Saved: "; - %tmp.24 = lgetv %pickedValue.1; - symbol [ pickedValue %tmp.24 27 58 69 ]; - %tmp.25 = add %tmp.23 %tmp.24; - invoke %tmp.21 %tmp.22(%tmp.25); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 28 12 ] - %tmp.26 = lgetv %app.2; - symbol [ app %tmp.26 28 12 15 ]; - symbol [ setMinCadence %tmp.27 28 16 29 ]; - %tmp.27 = getv function %tmp.26 :setMinCadence; - %tmp.28 = lgetv %pickedValue.1; - symbol [ pickedValue %tmp.28 28 30 41 ]; - invoke %tmp.26 %tmp.27(%tmp.28); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_26_37_29_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_26_8_33_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_26_8_33_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 30 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_30_13_33_8_if_stmt: - symbol [ _typeId %tmp.30 30 17 24 ]; - %tmp.30 = getv ? :_typeId; - %tmp.32 = const :cadence_max; - symbol [ cadence_max %tmp.32 30 29 40 const ]; - %tmp.33 = eq %tmp.30 %tmp.32; - bf %tmp.33 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_30_13_33_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_30_13_33_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_30_42_33_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 31 12 ] - symbol [ System %tmp.34 31 12 18 ]; - %tmp.34 = getm $.Toybox.System; - symbol [ println %tmp.35 31 19 26 ]; - %tmp.35 = getv function %tmp.34 :println; - %tmp.36 = "[INFO] Max Cadence Saved: "; - %tmp.37 = lgetv %pickedValue.1; - symbol [ pickedValue %tmp.37 31 58 69 ]; - %tmp.38 = add %tmp.36 %tmp.37; - invoke %tmp.34 %tmp.35(%tmp.38); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 32 12 ] - %tmp.39 = lgetv %app.2; - symbol [ app %tmp.39 32 12 15 ]; - symbol [ setMaxCadence %tmp.40 32 16 29 ]; - %tmp.40 = getv function %tmp.39 :setMaxCadence; - %tmp.41 = lgetv %pickedValue.1; - symbol [ pickedValue %tmp.41 32 30 41 ]; - invoke %tmp.39 %tmp.40(%tmp.41); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_30_42_33_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_30_13_33_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_30_13_33_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_26_8_33_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 36 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_8_42_8_if_stmt: - symbol [ _menu %tmp.43 36 12 17 ]; - %tmp.43 = getv ? :_menu; - %tmp.44 = null; - %tmp.45 = ne %tmp.43 %tmp.44; - bf %tmp.45 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_8_42_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_8_42_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_27_42_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 37 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_27_42_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_27_42_8_stop" ] - %newMin.3 = local; - symbol [ newMin %newMin.3 37 16 22 ]; - %tmp.46 = lgetv %app.2; - symbol [ app %tmp.46 37 25 28 ]; - symbol [ getMinCadence %tmp.47 37 29 42 ]; - %tmp.47 = getv function %tmp.46 :getMinCadence; - %tmp.48 = invoke %tmp.46 %tmp.47(); - lputv %newMin.3 %tmp.48; - symbol [ newMin %newMin.3 37 16 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 38 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_27_42_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_27_42_8_stop" ] - %newMax.4 = local; - symbol [ newMax %newMax.4 38 16 22 ]; - %tmp.49 = lgetv %app.2; - symbol [ app %tmp.49 38 25 28 ]; - symbol [ getMaxCadence %tmp.50 38 29 42 ]; - %tmp.50 = getv function %tmp.49 :getMaxCadence; - %tmp.51 = invoke %tmp.49 %tmp.50(); - lputv %newMax.4 %tmp.51; - symbol [ newMax %newMax.4 38 16 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 39 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_27_42_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_27_42_8_stop" ] - %newTitle.5 = local; - symbol [ newTitle %newTitle.5 39 16 24 ]; - symbol [ Lang %tmp.52 39 27 31 ]; - %tmp.52 = getm $.Toybox.Lang; - symbol [ format %tmp.53 39 32 38 ]; - %tmp.53 = getv function %tmp.52 :format; - %tmp.54 = "Cadence: $1$ - $2$"; - %tmp.55 = newa 2; - %tmp.56 = lgetv %newMin.3; - symbol [ newMin %tmp.56 39 62 68 ]; - %tmp.57 = dup %tmp.55; - %tmp.58 = aputv %tmp.57 0 %tmp.56; - %tmp.59 = lgetv %newMax.4; - symbol [ newMax %tmp.59 39 70 76 ]; - %tmp.60 = dup %tmp.58; - %tmp.61 = aputv %tmp.60 1 %tmp.59; - %tmp.62 = invoke %tmp.52 %tmp.53(%tmp.54, %tmp.61); - lputv %newTitle.5 %tmp.62; - symbol [ newTitle %newTitle.5 39 16 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 40 12 ] - symbol [ _menu %tmp.64 40 12 17 ]; - %tmp.64 = getv ? :_menu; - symbol [ setTitle %tmp.65 40 18 26 ]; - %tmp.65 = getv function %tmp.64 :setTitle; - %tmp.66 = lgetv %newTitle.5; - symbol [ newTitle %tmp.66 40 27 35 ]; - invoke %tmp.64 %tmp.65(%tmp.66); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 41 12 ] - symbol [ System %tmp.67 41 12 18 ]; - %tmp.67 = getm $.Toybox.System; - symbol [ println %tmp.68 41 19 26 ]; - %tmp.68 = getv function %tmp.67 :println; - %tmp.69 = "[DEBUG] Menu title updated to: "; - %tmp.70 = lgetv %newTitle.5; - symbol [ newTitle %tmp.70 41 63 71 ]; - %tmp.71 = add %tmp.69 %tmp.70; - invoke %tmp.67 %tmp.68(%tmp.71); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_27_42_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_8_42_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_36_8_42_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 44 8 ] - symbol [ WatchUi %tmp.72 44 8 15 ]; - %tmp.72 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.73 44 16 23 ]; - %tmp.73 = getv function %tmp.72 :popView; - symbol [ WatchUi %tmp.74 44 24 31 ]; - %tmp.74 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.75 44 32 43 ]; - %tmp.75 = getv %tmp.74 :SLIDE_RIGHT; - invoke %tmp.72 %tmp.73(%tmp.75); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 45 8 ] - %tmp.76 = true; - ret %tmp.76; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_18_50_46_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 48; @symbol_functiondef = [onCancel,48,13,21]; @symbol_return<0> = [Boolean,48,27,34]; ] - function onCancel() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_48_35_52_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 49 8 ] - symbol [ System %tmp.1 49 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 49 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[DEBUG] CadenceRangePickerDelegate onCancel called"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 50 8 ] - symbol [ WatchUi %tmp.4 50 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.5 50 16 23 ]; - %tmp.5 = getv function %tmp.4 :popView; - symbol [ WatchUi %tmp.6 50 24 31 ]; - %tmp.6 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.7 50 32 43 ]; - %tmp.7 = getv %tmp.6 :SLIDE_RIGHT; - invoke %tmp.4 %tmp.5(%tmp.7); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc" 51 8 ] - %tmp.8 = true; - ret %tmp.8; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CadenceRangePickerDelegate_mc_48_35_52_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CadenceRangePickerDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/CustomizableDelegates/SelectBarChartDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/CustomizableDelegates/SelectBarChartDelegate.mir deleted file mode 100644 index a067097..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/CustomizableDelegates/SelectBarChartDelegate.mir +++ /dev/null @@ -1,344 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 6; @symbol_classdef = [SelectBarChartDelegate,6,6,28]; @symbol_extends<0> = [WatchUi,6,37,44]; @symbol_extends<1> = [Menu2InputDelegate,6,45,63]; ] -class SelectBarChartDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 6; ] - { -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 9 8 ] - symbol [ Application %tmp.1 9 14 25 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 9 26 32 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 9 38 47 ]; - putv self :app %tmp.4; - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 8; @position = 16; @symbol_vardef = [_menu,8,16,21]; @symbol_type<0> = [WatchUi,8,25,32]; @symbol_type<1> = [Menu2,8,33,38]; ] - private - var _menu as WatchUi.Menu2; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 9; @position = 8; @symbol_vardef = [app,9,8,11]; ] - var app; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 11; @symbol_functiondef = [initialize,11,13,23]; @symbol_param<0> = [menu,11,24,28]; @symbol_param<0>_type<0> = [WatchUi,11,32,39]; @symbol_param<0>_type<1> = [Menu2,11,40,45]; ] - function initialize(menu as WatchUi.Menu2) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_11_47_34_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 12 8 ] - symbol [ Menu2InputDelegate %tmp.2 12 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 12 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 13 8 ] - %tmp.4 = lgetv %menu; - symbol [ menu %tmp.4 13 16 20 ]; - symbol [ _menu ? 13 8 13 ]; - putv self :_menu %tmp.4; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 16 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_11_47_34_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_11_47_34_4_stop" ] - %currentDur.1 = local; - symbol [ currentDur %currentDur.1 16 12 22 ]; - symbol [ app %tmp.6 16 25 28 ]; - %tmp.6 = getv ? :app; - symbol [ _chartDuration %tmp.7 16 29 43 ]; - %tmp.7 = getv %tmp.6 :_chartDuration; - lputv %currentDur.1 %tmp.7; - symbol [ currentDur %currentDur.1 16 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 17 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_11_47_34_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_11_47_34_4_stop" ] - %label.2 = local; - symbol [ label %label.2 17 12 17 ]; - %tmp.8 = "30 min"; - lputv %label.2 %tmp.8; - symbol [ label %label.2 17 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 19 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_19_8_31_8_if_stmt: - %tmp.9 = lgetv %currentDur.1; - symbol [ currentDur %tmp.9 19 12 22 ]; - %tmp.10 = 3; - %tmp.11 = eq %tmp.9 %tmp.10; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_19_8_31_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_19_8_31_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_19_29_22_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 20 12 ] - %tmp.12 = "15 min"; - lputv %label.2 %tmp.12; - symbol [ label %label.2 20 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 21 12 ] - symbol [ _menu %tmp.14 21 12 17 ]; - %tmp.14 = getv ? :_menu; - symbol [ setFocus %tmp.15 21 18 26 ]; - %tmp.15 = getv function %tmp.14 :setFocus; - %tmp.16 = 0; - invoke %tmp.14 %tmp.15(%tmp.16); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_19_29_22_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_19_8_31_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_19_8_31_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 22 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_22_15_31_8_if_stmt: - %tmp.17 = lgetv %currentDur.1; - symbol [ currentDur %tmp.17 22 19 29 ]; - %tmp.18 = 6; - %tmp.19 = eq %tmp.17 %tmp.18; - bf %tmp.19 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_22_15_31_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_22_15_31_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_22_36_25_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 23 12 ] - %tmp.20 = "30 min"; - lputv %label.2 %tmp.20; - symbol [ label %label.2 23 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 24 12 ] - symbol [ _menu %tmp.22 24 12 17 ]; - %tmp.22 = getv ? :_menu; - symbol [ setFocus %tmp.23 24 18 26 ]; - %tmp.23 = getv function %tmp.22 :setFocus; - %tmp.24 = 1; - invoke %tmp.22 %tmp.23(%tmp.24); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_22_36_25_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_22_15_31_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_22_15_31_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 25 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_25_15_31_8_if_stmt: - %tmp.25 = lgetv %currentDur.1; - symbol [ currentDur %tmp.25 25 19 29 ]; - %tmp.26 = 13; - %tmp.27 = eq %tmp.25 %tmp.26; - bf %tmp.27 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_25_15_31_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_25_15_31_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_25_37_28_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 26 12 ] - %tmp.28 = "1 hour"; - lputv %label.2 %tmp.28; - symbol [ label %label.2 26 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 27 12 ] - symbol [ _menu %tmp.30 27 12 17 ]; - %tmp.30 = getv ? :_menu; - symbol [ setFocus %tmp.31 27 18 26 ]; - %tmp.31 = getv function %tmp.30 :setFocus; - %tmp.32 = 2; - invoke %tmp.30 %tmp.31(%tmp.32); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_25_37_28_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_25_15_31_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_25_15_31_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 28 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_28_15_31_8_if_stmt: - %tmp.33 = lgetv %currentDur.1; - symbol [ currentDur %tmp.33 28 19 29 ]; - %tmp.34 = 26; - %tmp.35 = eq %tmp.33 %tmp.34; - bf %tmp.35 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_28_15_31_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_28_15_31_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_28_37_31_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 29 12 ] - %tmp.36 = "2 hour"; - lputv %label.2 %tmp.36; - symbol [ label %label.2 29 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 30 12 ] - symbol [ _menu %tmp.38 30 12 17 ]; - %tmp.38 = getv ? :_menu; - symbol [ setFocus %tmp.39 30 18 26 ]; - %tmp.39 = getv function %tmp.38 :setFocus; - %tmp.40 = 3; - invoke %tmp.38 %tmp.39(%tmp.40); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_28_37_31_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_28_15_31_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_28_15_31_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_25_15_31_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_22_15_31_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_19_8_31_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 33 8 ] - symbol [ _menu %tmp.42 33 8 13 ]; - %tmp.42 = getv ? :_menu; - symbol [ setTitle %tmp.43 33 14 22 ]; - %tmp.43 = getv function %tmp.42 :setTitle; - %tmp.44 = "Duration: "; - %tmp.45 = lgetv %label.2; - symbol [ label %tmp.45 33 38 43 ]; - %tmp.46 = add %tmp.44 %tmp.45; - invoke %tmp.42 %tmp.43(%tmp.46); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_11_47_34_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 36; @symbol_functiondef = [onSelect,36,13,21]; @symbol_param<0> = [item,36,22,26]; ] - function onSelect(item) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_36_36_62_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 37 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_36_36_62_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_36_36_62_4_stop" ] - %id.1 = local; - symbol [ id %id.1 37 12 14 ]; - %tmp.1 = lgetv %item; - symbol [ item %tmp.1 37 17 21 ]; - symbol [ getId %tmp.2 37 22 27 ]; - %tmp.2 = getv function %tmp.1 :getId; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %id.1 %tmp.3; - symbol [ id %id.1 37 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 40 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_40_8_58_8_if_stmt: - %tmp.4 = lgetv %id.1; - symbol [ id %tmp.4 40 12 14 ]; - %tmp.6 = const :chart_15m; - symbol [ chart_15m %tmp.6 40 19 28 const ]; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_40_8_58_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_40_8_58_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_40_30_43_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 41 12 ] - symbol [ app %tmp.9 41 12 15 ]; - %tmp.9 = getv ? :app; - symbol [ setChartDuration %tmp.10 41 16 32 ]; - %tmp.10 = getv function %tmp.9 :setChartDuration; - %tmp.11 = 3; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 42 12 ] - symbol [ System %tmp.12 42 12 18 ]; - %tmp.12 = getm $.Toybox.System; - symbol [ println %tmp.13 42 19 26 ]; - %tmp.13 = getv function %tmp.12 :println; - %tmp.14 = "Chart Duration: Fifteenmin"; - invoke %tmp.12 %tmp.13(%tmp.14); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_40_30_43_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_40_8_58_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_40_8_58_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 44 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_44_13_58_8_if_stmt: - %tmp.15 = lgetv %id.1; - symbol [ id %tmp.15 44 17 19 ]; - %tmp.17 = const :chart_30m; - symbol [ chart_30m %tmp.17 44 24 33 const ]; - %tmp.18 = eq %tmp.15 %tmp.17; - bf %tmp.18 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_44_13_58_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_44_13_58_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_44_35_47_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 45 12 ] - symbol [ app %tmp.20 45 12 15 ]; - %tmp.20 = getv ? :app; - symbol [ setChartDuration %tmp.21 45 16 32 ]; - %tmp.21 = getv function %tmp.20 :setChartDuration; - %tmp.22 = 6; - invoke %tmp.20 %tmp.21(%tmp.22); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 46 12 ] - symbol [ System %tmp.23 46 12 18 ]; - %tmp.23 = getm $.Toybox.System; - symbol [ println %tmp.24 46 19 26 ]; - %tmp.24 = getv function %tmp.23 :println; - %tmp.25 = "Chart Duration: Thirtymin"; - invoke %tmp.23 %tmp.24(%tmp.25); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_44_35_47_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_44_13_58_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_44_13_58_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 48 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_48_13_58_8_if_stmt: - %tmp.26 = lgetv %id.1; - symbol [ id %tmp.26 48 17 19 ]; - %tmp.28 = const :chart_1h; - symbol [ chart_1h %tmp.28 48 24 32 const ]; - %tmp.29 = eq %tmp.26 %tmp.28; - bf %tmp.29 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_48_13_58_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_48_13_58_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_48_34_51_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 49 12 ] - symbol [ app %tmp.31 49 12 15 ]; - %tmp.31 = getv ? :app; - symbol [ setChartDuration %tmp.32 49 16 32 ]; - %tmp.32 = getv function %tmp.31 :setChartDuration; - %tmp.33 = 13; - invoke %tmp.31 %tmp.32(%tmp.33); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 50 12 ] - symbol [ System %tmp.34 50 12 18 ]; - %tmp.34 = getm $.Toybox.System; - symbol [ println %tmp.35 50 19 26 ]; - %tmp.35 = getv function %tmp.34 :println; - %tmp.36 = "Chart Duration: OneHour"; - invoke %tmp.34 %tmp.35(%tmp.36); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_48_34_51_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_48_13_58_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_48_13_58_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 52 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_52_13_58_8_if_stmt: - %tmp.37 = lgetv %id.1; - symbol [ id %tmp.37 52 17 19 ]; - %tmp.39 = const :chart_2h; - symbol [ chart_2h %tmp.39 52 24 32 const ]; - %tmp.40 = eq %tmp.37 %tmp.39; - bf %tmp.40 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_52_13_58_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_52_13_58_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_52_34_55_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 53 12 ] - symbol [ app %tmp.42 53 12 15 ]; - %tmp.42 = getv ? :app; - symbol [ setChartDuration %tmp.43 53 16 32 ]; - %tmp.43 = getv function %tmp.42 :setChartDuration; - %tmp.44 = 26; - invoke %tmp.42 %tmp.43(%tmp.44); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 54 12 ] - symbol [ System %tmp.45 54 12 18 ]; - %tmp.45 = getm $.Toybox.System; - symbol [ println %tmp.46 54 19 26 ]; - %tmp.46 = getv function %tmp.45 :println; - %tmp.47 = "Chart Duration: TwoHour"; - invoke %tmp.45 %tmp.46(%tmp.47); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_52_34_55_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_52_13_58_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_52_13_58_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_56_13_58_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 57 12 ] - symbol [ System %tmp.48 57 12 18 ]; - %tmp.48 = getm $.Toybox.System; - symbol [ println %tmp.49 57 19 26 ]; - %tmp.49 = getv function %tmp.48 :println; - %tmp.50 = "ERROR"; - invoke %tmp.48 %tmp.49(%tmp.50); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_56_13_58_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_52_13_58_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_48_13_58_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_44_13_58_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_40_8_58_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 60 8 ] - symbol [ WatchUi %tmp.51 60 8 15 ]; - %tmp.51 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.52 60 16 29 ]; - %tmp.52 = getv function %tmp.51 :requestUpdate; - invoke %tmp.51 %tmp.52(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 61 8 ] - symbol [ WatchUi %tmp.53 61 8 15 ]; - %tmp.53 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.54 61 16 23 ]; - %tmp.54 = getv function %tmp.53 :popView; - symbol [ WatchUi %tmp.55 61 24 31 ]; - %tmp.55 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.56 61 32 43 ]; - %tmp.56 = getv %tmp.55 :SLIDE_RIGHT; - invoke %tmp.53 %tmp.54(%tmp.56); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_36_36_62_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 64; @symbol_functiondef = [onMenuItem,64,13,23]; @symbol_param<0> = [item,64,24,28]; @symbol_param<0>_type<0> = [Symbol,64,32,38]; ] - function onMenuItem(item as Symbol) as Void { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 66; @symbol_functiondef = [onBack,66,13,19]; ] - function onBack() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_66_30_68_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc" 67 8 ] - symbol [ WatchUi %tmp.1 67 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 67 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 67 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.4 67 32 43 ]; - %tmp.4 = getv %tmp.3 :SLIDE_RIGHT; - invoke %tmp.1 %tmp.2(%tmp.4); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_CustomizableDelegates_SelectBarChartDelegate_mc_66_30_68_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\CustomizableDelegates\SelectBarChartDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/FeedbackDelegates/SelectAudibleDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/FeedbackDelegates/SelectAudibleDelegate.mir deleted file mode 100644 index 9931b6c..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/FeedbackDelegates/SelectAudibleDelegate.mir +++ /dev/null @@ -1,194 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 6; @symbol_classdef = [SelectAudibleDelegate,6,6,27]; @symbol_extends<0> = [WatchUi,6,36,43]; @symbol_extends<1> = [Menu2InputDelegate,6,44,62]; ] -class SelectAudibleDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 6; ] - { -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 9 8 ] - symbol [ Application %tmp.1 9 14 25 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 9 26 32 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 9 38 47 ]; - putv self :app %tmp.4; - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 8; @position = 16; @symbol_vardef = [_menu,8,16,21]; @symbol_type<0> = [WatchUi,8,25,32]; @symbol_type<1> = [Menu2,8,33,38]; ] - private - var _menu as WatchUi.Menu2; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 9; @position = 8; @symbol_vardef = [app,9,8,11]; ] - var app; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 11; @position = 8; @symbol_vardef = [Audible,11,8,15]; ] - var Audible = "low"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 13; @symbol_functiondef = [initialize,13,13,23]; @symbol_param<0> = [menu,13,24,28]; @symbol_param<0>_type<0> = [WatchUi,13,32,39]; @symbol_param<0>_type<1> = [Menu2,13,40,45]; ] - function initialize(menu as WatchUi.Menu2) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_13_47_21_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 14 8 ] - symbol [ Menu2InputDelegate %tmp.2 14 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 14 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 15 8 ] - %tmp.4 = lgetv %menu; - symbol [ menu %tmp.4 15 16 20 ]; - symbol [ _menu ? 15 8 13 ]; - putv self :_menu %tmp.4; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 17 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_13_47_21_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_13_47_21_4_stop" ] - %newTitle.1 = local; - symbol [ newTitle %newTitle.1 17 12 20 ]; - symbol [ Lang %tmp.5 17 23 27 ]; - %tmp.5 = getm $.Toybox.Lang; - symbol [ format %tmp.6 17 28 34 ]; - %tmp.6 = getv function %tmp.5 :format; - %tmp.7 = "Audible: $1$"; - %tmp.8 = newa 1; - symbol [ Audible %tmp.10 17 52 59 ]; - %tmp.10 = getv ? :Audible; - %tmp.11 = dup %tmp.8; - %tmp.12 = aputv %tmp.11 0 %tmp.10; - %tmp.13 = invoke %tmp.5 %tmp.6(%tmp.7, %tmp.12); - lputv %newTitle.1 %tmp.13; - symbol [ newTitle %newTitle.1 17 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 20 8 ] - symbol [ _menu %tmp.15 20 8 13 ]; - %tmp.15 = getv ? :_menu; - symbol [ setTitle %tmp.16 20 14 22 ]; - %tmp.16 = getv function %tmp.15 :setTitle; - %tmp.17 = lgetv %newTitle.1; - symbol [ newTitle %tmp.17 20 23 31 ]; - invoke %tmp.15 %tmp.16(%tmp.17); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_13_47_21_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 23; @symbol_functiondef = [onSelect,23,13,21]; @symbol_param<0> = [item,23,22,26]; ] - function onSelect(item) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_23_36_42_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 25 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_23_36_42_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_23_36_42_4_stop" ] - %id.1 = local; - symbol [ id %id.1 25 12 14 ]; - %tmp.1 = lgetv %item; - symbol [ item %tmp.1 25 17 21 ]; - symbol [ getId %tmp.2 25 22 27 ]; - %tmp.2 = getv function %tmp.1 :getId; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %id.1 %tmp.3; - symbol [ id %id.1 25 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 28 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_28_8_39_40_if_stmt: - %tmp.4 = lgetv %id.1; - symbol [ id %tmp.4 28 12 14 ]; - %tmp.6 = const :audible_low; - symbol [ audible_low %tmp.6 28 19 30 const ]; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_28_8_39_40_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_28_8_39_40_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_28_31_31_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 29 12 ] - symbol [ System %tmp.8 29 12 18 ]; - %tmp.8 = getm $.Toybox.System; - symbol [ println %tmp.9 29 19 26 ]; - %tmp.9 = getv function %tmp.8 :println; - %tmp.10 = "Audible Feedback: LOW"; - invoke %tmp.8 %tmp.9(%tmp.10); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_28_31_31_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_28_8_39_40_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_28_8_39_40_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 32 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_32_13_39_40_if_stmt: - %tmp.11 = lgetv %id.1; - symbol [ id %tmp.11 32 17 19 ]; - %tmp.13 = const :audible_med; - symbol [ audible_med %tmp.13 32 24 35 const ]; - %tmp.14 = eq %tmp.11 %tmp.13; - bf %tmp.14 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_32_13_39_40_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_32_13_39_40_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_32_36_35_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 33 12 ] - symbol [ System %tmp.15 33 12 18 ]; - %tmp.15 = getm $.Toybox.System; - symbol [ println %tmp.16 33 19 26 ]; - %tmp.16 = getv function %tmp.15 :println; - %tmp.17 = "Audible Feedback: MEDIUM"; - invoke %tmp.15 %tmp.16(%tmp.17); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_32_36_35_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_32_13_39_40_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_32_13_39_40_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 36 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_36_13_39_40_if_stmt: - %tmp.18 = lgetv %id.1; - symbol [ id %tmp.18 36 17 19 ]; - %tmp.20 = const :audible_high; - symbol [ audible_high %tmp.20 36 24 36 const ]; - %tmp.21 = eq %tmp.18 %tmp.20; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_36_13_39_40_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_36_13_39_40_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_36_37_39_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 37 12 ] - symbol [ System %tmp.22 37 12 18 ]; - %tmp.22 = getm $.Toybox.System; - symbol [ println %tmp.23 37 19 26 ]; - %tmp.23 = getv function %tmp.22 :println; - %tmp.24 = "Audible Feedback: HIGH"; - invoke %tmp.22 %tmp.23(%tmp.24); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_36_37_39_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_36_13_39_40_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_36_13_39_40_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_39_15_39_40_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 39 16 ] - symbol [ System %tmp.25 39 16 22 ]; - %tmp.25 = getm $.Toybox.System; - symbol [ println %tmp.26 39 23 30 ]; - %tmp.26 = getv function %tmp.25 :println; - %tmp.27 = "ERROR"; - invoke %tmp.25 %tmp.26(%tmp.27); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_39_15_39_40_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_36_13_39_40_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_32_13_39_40_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_28_8_39_40_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 41 8 ] - symbol [ WatchUi %tmp.28 41 8 15 ]; - %tmp.28 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.29 41 16 23 ]; - %tmp.29 = getv function %tmp.28 :popView; - symbol [ WatchUi %tmp.30 41 24 31 ]; - %tmp.30 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.31 41 32 43 ]; - %tmp.31 = getv %tmp.30 :SLIDE_RIGHT; - invoke %tmp.28 %tmp.29(%tmp.31); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_23_36_42_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 44; @symbol_functiondef = [onMenuItem,44,13,23]; @symbol_param<0> = [item,44,24,28]; @symbol_param<0>_type<0> = [Symbol,44,32,38]; ] - function onMenuItem(item as Symbol) as Void { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 47; @symbol_functiondef = [onBack,47,13,19]; ] - function onBack() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_47_30_49_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc" 48 8 ] - symbol [ WatchUi %tmp.1 48 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 48 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 48 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.4 48 32 43 ]; - %tmp.4 = getv %tmp.3 :SLIDE_RIGHT; - invoke %tmp.1 %tmp.2(%tmp.4); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectAudibleDelegate_mc_47_30_49_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectAudibleDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/FeedbackDelegates/SelectFeedbackDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/FeedbackDelegates/SelectFeedbackDelegate.mir deleted file mode 100644 index 20c3383..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/FeedbackDelegates/SelectFeedbackDelegate.mir +++ /dev/null @@ -1,314 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 6; @symbol_classdef = [SelectFeedbackDelegate,6,6,28]; @symbol_extends<0> = [WatchUi,6,37,44]; @symbol_extends<1> = [Menu2InputDelegate,6,45,63]; ] -class SelectFeedbackDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 6; ] - { -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 9 8 ] - symbol [ Application %tmp.1 9 14 25 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 9 26 32 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 9 38 47 ]; - putv self :app %tmp.4; - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 9; @position = 8; @symbol_vardef = [app,9,8,11]; ] - var app; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 11; @position = 8; @symbol_vardef = [gender,11,8,14]; ] - var gender = "Other"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 13; @symbol_functiondef = [initialize,13,13,23]; @symbol_param<0> = [menu,13,24,28]; @symbol_param<0>_type<0> = [WatchUi,13,32,39]; @symbol_param<0>_type<1> = [Menu2,13,40,45]; ] - function initialize(menu as WatchUi.Menu2) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_13_47_16_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 14 8 ] - symbol [ Menu2InputDelegate %tmp.2 14 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 14 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_13_47_16_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 18; @symbol_functiondef = [onSelect,18,13,21]; @symbol_param<0> = [item,18,22,26]; ] - function onSelect(item) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_18_36_32_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 20 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_18_36_32_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_18_36_32_4_stop" ] - %id.1 = local; - symbol [ id %id.1 20 12 14 ]; - %tmp.1 = lgetv %item; - symbol [ item %tmp.1 20 17 21 ]; - symbol [ getId %tmp.2 20 22 27 ]; - %tmp.2 = getv function %tmp.1 :getId; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %id.1 %tmp.3; - symbol [ id %id.1 20 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 23 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_23_8_30_40_if_stmt: - %tmp.4 = lgetv %id.1; - symbol [ id %tmp.4 23 12 14 ]; - %tmp.6 = const :haptic_feedback; - symbol [ haptic_feedback %tmp.6 23 19 34 const ]; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_23_8_30_40_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_23_8_30_40_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_23_35_26_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 24 12 ] - symbol [ System %tmp.8 24 12 18 ]; - %tmp.8 = getm $.Toybox.System; - symbol [ println %tmp.9 24 19 26 ]; - %tmp.9 = getv function %tmp.8 :println; - %tmp.10 = "Haptic menu selected"; - invoke %tmp.8 %tmp.9(%tmp.10); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 25 12 ] - %tmp.11 = self; - symbol [ pushHapticSettings %tmp.12 25 12 30 ]; - %tmp.12 = getv function %tmp.11 :pushHapticSettings; - invoke %tmp.11 %tmp.12(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_23_35_26_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_23_8_30_40_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_23_8_30_40_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 27 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_27_13_30_40_if_stmt: - %tmp.13 = lgetv %id.1; - symbol [ id %tmp.13 27 17 19 ]; - %tmp.15 = const :audible_feedback; - symbol [ audible_feedback %tmp.15 27 24 40 const ]; - %tmp.16 = eq %tmp.13 %tmp.15; - bf %tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_27_13_30_40_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_27_13_30_40_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_27_41_30_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 28 12 ] - symbol [ System %tmp.17 28 12 18 ]; - %tmp.17 = getm $.Toybox.System; - symbol [ println %tmp.18 28 19 26 ]; - %tmp.18 = getv function %tmp.17 :println; - %tmp.19 = "Audible menu selected"; - invoke %tmp.17 %tmp.18(%tmp.19); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 29 12 ] - %tmp.20 = self; - symbol [ pushAudibleSettings %tmp.21 29 12 31 ]; - %tmp.21 = getv function %tmp.20 :pushAudibleSettings; - invoke %tmp.20 %tmp.21(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_27_41_30_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_27_13_30_40_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_27_13_30_40_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_30_15_30_40_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 30 16 ] - symbol [ System %tmp.22 30 16 22 ]; - %tmp.22 = getm $.Toybox.System; - symbol [ println %tmp.23 30 23 30 ]; - %tmp.23 = getv function %tmp.22 :println; - %tmp.24 = "ERROR"; - invoke %tmp.22 %tmp.23(%tmp.24); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_30_15_30_40_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_27_13_30_40_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_23_8_30_40_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_18_36_32_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 34; @symbol_functiondef = [pushHapticSettings,34,13,31]; ] - function pushHapticSettings() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_34_41_45_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 35 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_34_41_45_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_34_41_45_4_stop" ] - %menu.1 = local; - symbol [ menu %menu.1 35 12 16 ]; - symbol [ WatchUi %tmp.3 35 23 30 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.4 35 31 36 ]; - %tmp.4 = getv function ? %tmp.3 :Menu2; - %tmp.5 = newd 1; - %tmp.7 = const :title; - symbol [ title %tmp.7 36 13 18 const ]; - %tmp.8 = "Haptic Settings"; - %tmp.9 = dup %tmp.5; - %tmp.10 = aputv %tmp.9 %tmp.7 %tmp.8; - %tmp.1 = newc %tmp.4 (%tmp.10); - lputv %menu.1 %tmp.1; - symbol [ menu %menu.1 35 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 39 8 ] - %tmp.11 = lgetv %menu.1; - symbol [ menu %tmp.11 39 8 12 ]; - symbol [ addItem %tmp.12 39 13 20 ]; - %tmp.12 = getv function %tmp.11 :addItem; - symbol [ WatchUi %tmp.15 39 25 32 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.16 39 33 41 ]; - %tmp.16 = getv function ? %tmp.15 :MenuItem; - %tmp.17 = "Low"; - %tmp.18 = null; - %tmp.20 = const :haptic_low; - symbol [ haptic_low %tmp.20 39 56 66 const ]; - %tmp.21 = null; - %tmp.13 = newc %tmp.16 (%tmp.17, %tmp.18, %tmp.20, %tmp.21); - invoke %tmp.11 %tmp.12(%tmp.13); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 40 8 ] - %tmp.22 = lgetv %menu.1; - symbol [ menu %tmp.22 40 8 12 ]; - symbol [ addItem %tmp.23 40 13 20 ]; - %tmp.23 = getv function %tmp.22 :addItem; - symbol [ WatchUi %tmp.26 40 25 32 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.27 40 33 41 ]; - %tmp.27 = getv function ? %tmp.26 :MenuItem; - %tmp.28 = "Medium"; - %tmp.29 = null; - %tmp.31 = const :haptic_med; - symbol [ haptic_med %tmp.31 40 59 69 const ]; - %tmp.32 = null; - %tmp.24 = newc %tmp.27 (%tmp.28, %tmp.29, %tmp.31, %tmp.32); - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 41 8 ] - %tmp.33 = lgetv %menu.1; - symbol [ menu %tmp.33 41 8 12 ]; - symbol [ addItem %tmp.34 41 13 20 ]; - %tmp.34 = getv function %tmp.33 :addItem; - symbol [ WatchUi %tmp.37 41 25 32 ]; - %tmp.37 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.38 41 33 41 ]; - %tmp.38 = getv function ? %tmp.37 :MenuItem; - %tmp.39 = "High"; - %tmp.40 = null; - %tmp.42 = const :haptic_high; - symbol [ haptic_high %tmp.42 41 57 68 const ]; - %tmp.43 = null; - %tmp.35 = newc %tmp.38 (%tmp.39, %tmp.40, %tmp.42, %tmp.43); - invoke %tmp.33 %tmp.34(%tmp.35); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 44 8 ] - symbol [ WatchUi %tmp.44 44 8 15 ]; - %tmp.44 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.45 44 16 24 ]; - %tmp.45 = getv function %tmp.44 :pushView; - %tmp.46 = lgetv %menu.1; - symbol [ menu %tmp.46 44 25 29 ]; - symbol [ SelectHapticDelegate %tmp.50 44 35 55 ]; - %tmp.50 = getv ? :SelectHapticDelegate; - %tmp.51 = lgetv %menu.1; - symbol [ menu %tmp.51 44 56 60 ]; - %tmp.47 = newc %tmp.50 (%tmp.51); - symbol [ WatchUi %tmp.52 44 63 70 ]; - %tmp.52 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.53 44 71 81 ]; - %tmp.53 = getv %tmp.52 :SLIDE_LEFT; - invoke %tmp.44 %tmp.45(%tmp.46, %tmp.47, %tmp.53); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_34_41_45_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 47; @symbol_functiondef = [pushAudibleSettings,47,13,32]; ] - function pushAudibleSettings() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_47_42_58_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 48 16 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_47_42_58_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_47_42_58_4_stop" ] - %menu.1 = local; - symbol [ menu %menu.1 48 20 24 ]; - symbol [ WatchUi %tmp.3 48 31 38 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.4 48 39 44 ]; - %tmp.4 = getv function ? %tmp.3 :Menu2; - %tmp.5 = newd 1; - %tmp.7 = const :title; - symbol [ title %tmp.7 49 13 18 const ]; - %tmp.8 = "Audible Settings"; - %tmp.9 = dup %tmp.5; - %tmp.10 = aputv %tmp.9 %tmp.7 %tmp.8; - %tmp.1 = newc %tmp.4 (%tmp.10); - lputv %menu.1 %tmp.1; - symbol [ menu %menu.1 48 20 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 52 8 ] - %tmp.11 = lgetv %menu.1; - symbol [ menu %tmp.11 52 8 12 ]; - symbol [ addItem %tmp.12 52 13 20 ]; - %tmp.12 = getv function %tmp.11 :addItem; - symbol [ WatchUi %tmp.15 52 25 32 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.16 52 33 41 ]; - %tmp.16 = getv function ? %tmp.15 :MenuItem; - %tmp.17 = "Low"; - %tmp.18 = null; - %tmp.20 = const :audible_low; - symbol [ audible_low %tmp.20 52 56 67 const ]; - %tmp.21 = null; - %tmp.13 = newc %tmp.16 (%tmp.17, %tmp.18, %tmp.20, %tmp.21); - invoke %tmp.11 %tmp.12(%tmp.13); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 53 8 ] - %tmp.22 = lgetv %menu.1; - symbol [ menu %tmp.22 53 8 12 ]; - symbol [ addItem %tmp.23 53 13 20 ]; - %tmp.23 = getv function %tmp.22 :addItem; - symbol [ WatchUi %tmp.26 53 25 32 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.27 53 33 41 ]; - %tmp.27 = getv function ? %tmp.26 :MenuItem; - %tmp.28 = "Medium"; - %tmp.29 = null; - %tmp.31 = const :audible_med; - symbol [ audible_med %tmp.31 53 59 70 const ]; - %tmp.32 = null; - %tmp.24 = newc %tmp.27 (%tmp.28, %tmp.29, %tmp.31, %tmp.32); - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 54 8 ] - %tmp.33 = lgetv %menu.1; - symbol [ menu %tmp.33 54 8 12 ]; - symbol [ addItem %tmp.34 54 13 20 ]; - %tmp.34 = getv function %tmp.33 :addItem; - symbol [ WatchUi %tmp.37 54 25 32 ]; - %tmp.37 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.38 54 33 41 ]; - %tmp.38 = getv function ? %tmp.37 :MenuItem; - %tmp.39 = "High"; - %tmp.40 = null; - %tmp.42 = const :audible_high; - symbol [ audible_high %tmp.42 54 57 69 const ]; - %tmp.43 = null; - %tmp.35 = newc %tmp.38 (%tmp.39, %tmp.40, %tmp.42, %tmp.43); - invoke %tmp.33 %tmp.34(%tmp.35); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 57 8 ] - symbol [ WatchUi %tmp.44 57 8 15 ]; - %tmp.44 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.45 57 16 24 ]; - %tmp.45 = getv function %tmp.44 :pushView; - %tmp.46 = lgetv %menu.1; - symbol [ menu %tmp.46 57 25 29 ]; - symbol [ SelectAudibleDelegate %tmp.50 57 35 56 ]; - %tmp.50 = getv ? :SelectAudibleDelegate; - %tmp.51 = lgetv %menu.1; - symbol [ menu %tmp.51 57 57 61 ]; - %tmp.47 = newc %tmp.50 (%tmp.51); - symbol [ WatchUi %tmp.52 57 64 71 ]; - %tmp.52 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.53 57 72 82 ]; - %tmp.53 = getv %tmp.52 :SLIDE_LEFT; - invoke %tmp.44 %tmp.45(%tmp.46, %tmp.47, %tmp.53); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_47_42_58_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 60; @symbol_functiondef = [onMenuItem,60,13,23]; @symbol_param<0> = [item,60,24,28]; @symbol_param<0>_type<0> = [Symbol,60,32,38]; ] - function onMenuItem(item as Symbol) as Void { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 63; @symbol_functiondef = [onBack,63,13,19]; ] - function onBack() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_63_30_65_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc" 64 8 ] - symbol [ WatchUi %tmp.1 64 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 64 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 64 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.4 64 32 43 ]; - %tmp.4 = getv %tmp.3 :SLIDE_RIGHT; - invoke %tmp.1 %tmp.2(%tmp.4); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectFeedbackDelegate_mc_63_30_65_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectFeedbackDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/FeedbackDelegates/SelectHapticDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/FeedbackDelegates/SelectHapticDelegate.mir deleted file mode 100644 index 09d8686..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/FeedbackDelegates/SelectHapticDelegate.mir +++ /dev/null @@ -1,194 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 6; @symbol_classdef = [SelectHapticDelegate,6,6,26]; @symbol_extends<0> = [WatchUi,6,35,42]; @symbol_extends<1> = [Menu2InputDelegate,6,43,61]; ] -class SelectHapticDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 6; ] - { -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 9 8 ] - symbol [ Application %tmp.1 9 14 25 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 9 26 32 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 9 38 47 ]; - putv self :app %tmp.4; - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 8; @position = 16; @symbol_vardef = [_menu,8,16,21]; @symbol_type<0> = [WatchUi,8,25,32]; @symbol_type<1> = [Menu2,8,33,38]; ] - private - var _menu as WatchUi.Menu2; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 9; @position = 8; @symbol_vardef = [app,9,8,11]; ] - var app; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 11; @position = 8; @symbol_vardef = [haptic,11,8,14]; ] - var haptic = "low"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 13; @symbol_functiondef = [initialize,13,13,23]; @symbol_param<0> = [menu,13,24,28]; @symbol_param<0>_type<0> = [WatchUi,13,32,39]; @symbol_param<0>_type<1> = [Menu2,13,40,45]; ] - function initialize(menu as WatchUi.Menu2) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_13_47_21_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 14 8 ] - symbol [ Menu2InputDelegate %tmp.2 14 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 14 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 15 8 ] - %tmp.4 = lgetv %menu; - symbol [ menu %tmp.4 15 16 20 ]; - symbol [ _menu ? 15 8 13 ]; - putv self :_menu %tmp.4; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 17 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_13_47_21_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_13_47_21_4_stop" ] - %newTitle.1 = local; - symbol [ newTitle %newTitle.1 17 12 20 ]; - symbol [ Lang %tmp.5 17 23 27 ]; - %tmp.5 = getm $.Toybox.Lang; - symbol [ format %tmp.6 17 28 34 ]; - %tmp.6 = getv function %tmp.5 :format; - %tmp.7 = "Haptic: $1$"; - %tmp.8 = newa 1; - symbol [ haptic %tmp.10 17 51 57 ]; - %tmp.10 = getv ? :haptic; - %tmp.11 = dup %tmp.8; - %tmp.12 = aputv %tmp.11 0 %tmp.10; - %tmp.13 = invoke %tmp.5 %tmp.6(%tmp.7, %tmp.12); - lputv %newTitle.1 %tmp.13; - symbol [ newTitle %newTitle.1 17 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 20 8 ] - symbol [ _menu %tmp.15 20 8 13 ]; - %tmp.15 = getv ? :_menu; - symbol [ setTitle %tmp.16 20 14 22 ]; - %tmp.16 = getv function %tmp.15 :setTitle; - %tmp.17 = lgetv %newTitle.1; - symbol [ newTitle %tmp.17 20 23 31 ]; - invoke %tmp.15 %tmp.16(%tmp.17); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_13_47_21_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 23; @symbol_functiondef = [onSelect,23,13,21]; @symbol_param<0> = [item,23,22,26]; ] - function onSelect(item) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_23_36_42_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 25 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_23_36_42_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_23_36_42_4_stop" ] - %id.1 = local; - symbol [ id %id.1 25 12 14 ]; - %tmp.1 = lgetv %item; - symbol [ item %tmp.1 25 17 21 ]; - symbol [ getId %tmp.2 25 22 27 ]; - %tmp.2 = getv function %tmp.1 :getId; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %id.1 %tmp.3; - symbol [ id %id.1 25 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 28 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_28_8_39_40_if_stmt: - %tmp.4 = lgetv %id.1; - symbol [ id %tmp.4 28 12 14 ]; - %tmp.6 = const :haptic_low; - symbol [ haptic_low %tmp.6 28 19 29 const ]; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_28_8_39_40_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_28_8_39_40_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_28_30_31_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 29 12 ] - symbol [ System %tmp.8 29 12 18 ]; - %tmp.8 = getm $.Toybox.System; - symbol [ println %tmp.9 29 19 26 ]; - %tmp.9 = getv function %tmp.8 :println; - %tmp.10 = "Haptic Feedback: LOW"; - invoke %tmp.8 %tmp.9(%tmp.10); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_28_30_31_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_28_8_39_40_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_28_8_39_40_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 32 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_32_13_39_40_if_stmt: - %tmp.11 = lgetv %id.1; - symbol [ id %tmp.11 32 17 19 ]; - %tmp.13 = const :haptic_med; - symbol [ haptic_med %tmp.13 32 24 34 const ]; - %tmp.14 = eq %tmp.11 %tmp.13; - bf %tmp.14 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_32_13_39_40_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_32_13_39_40_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_32_35_35_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 33 12 ] - symbol [ System %tmp.15 33 12 18 ]; - %tmp.15 = getm $.Toybox.System; - symbol [ println %tmp.16 33 19 26 ]; - %tmp.16 = getv function %tmp.15 :println; - %tmp.17 = "Haptic Feedback: MEDIUM"; - invoke %tmp.15 %tmp.16(%tmp.17); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_32_35_35_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_32_13_39_40_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_32_13_39_40_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 36 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_36_13_39_40_if_stmt: - %tmp.18 = lgetv %id.1; - symbol [ id %tmp.18 36 17 19 ]; - %tmp.20 = const :haptic_high; - symbol [ haptic_high %tmp.20 36 24 35 const ]; - %tmp.21 = eq %tmp.18 %tmp.20; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_36_13_39_40_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_36_13_39_40_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_36_36_39_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 37 12 ] - symbol [ System %tmp.22 37 12 18 ]; - %tmp.22 = getm $.Toybox.System; - symbol [ println %tmp.23 37 19 26 ]; - %tmp.23 = getv function %tmp.22 :println; - %tmp.24 = "Haptic Feedback: HIGH"; - invoke %tmp.22 %tmp.23(%tmp.24); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_36_36_39_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_36_13_39_40_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_36_13_39_40_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_39_15_39_40_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 39 16 ] - symbol [ System %tmp.25 39 16 22 ]; - %tmp.25 = getm $.Toybox.System; - symbol [ println %tmp.26 39 23 30 ]; - %tmp.26 = getv function %tmp.25 :println; - %tmp.27 = "ERROR"; - invoke %tmp.25 %tmp.26(%tmp.27); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_39_15_39_40_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_36_13_39_40_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_32_13_39_40_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_28_8_39_40_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 41 8 ] - symbol [ WatchUi %tmp.28 41 8 15 ]; - %tmp.28 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.29 41 16 23 ]; - %tmp.29 = getv function %tmp.28 :popView; - symbol [ WatchUi %tmp.30 41 24 31 ]; - %tmp.30 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.31 41 32 43 ]; - %tmp.31 = getv %tmp.30 :SLIDE_RIGHT; - invoke %tmp.28 %tmp.29(%tmp.31); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_23_36_42_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 44; @symbol_functiondef = [onMenuItem,44,13,23]; @symbol_param<0> = [item,44,24,28]; @symbol_param<0>_type<0> = [Symbol,44,32,38]; ] - function onMenuItem(item as Symbol) as Void { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 47; @symbol_functiondef = [onBack,47,13,19]; ] - function onBack() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_47_30_49_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc" 48 8 ] - symbol [ WatchUi %tmp.1 48 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 48 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 48 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.4 48 32 43 ]; - %tmp.4 = getv %tmp.3 :SLIDE_RIGHT; - invoke %tmp.1 %tmp.2(%tmp.4); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_FeedbackDelegates_SelectHapticDelegate_mc_47_30_49_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\FeedbackDelegates\SelectHapticDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/ProfilePickerDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/ProfilePickerDelegate.mir deleted file mode 100644 index b1f8e78..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/ProfilePickerDelegate.mir +++ /dev/null @@ -1,175 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [WatchUi,1,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [Application,2,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc"; @line = 4; @symbol_classdef = [ProfilePickerDelegate,4,6,27]; @symbol_extends<0> = [WatchUi,4,36,43]; @symbol_extends<1> = [PickerDelegate,4,44,58]; ] -class ProfilePickerDelegate extends WatchUi.PickerDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc"; @line = 4; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc"; @line = 4; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc"; @line = 5; @position = 16; @symbol_vardef = [_type,5,16,21]; ] - private - var _type; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc"; @line = 7; @symbol_functiondef = [initialize,7,13,23]; @symbol_param<0> = [type,7,24,28]; ] - function initialize(type) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_7_30_10_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 8 8 ] - symbol [ PickerDelegate %tmp.2 8 8 22 ]; - %tmp.2 = getv ? :PickerDelegate; - symbol [ initialize %tmp.3 8 23 33 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 9 8 ] - %tmp.4 = lgetv %type; - symbol [ type %tmp.4 9 16 20 ]; - symbol [ _type ? 9 8 13 ]; - putv self :_type %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_7_30_10_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc"; @line = 12; @symbol_functiondef = [onAccept,12,13,21]; @symbol_param<0> = [values,12,22,28]; ] - function onAccept(values) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_12_30_26_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 13 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_12_30_26_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_12_30_26_4_stop" ] - %app.1 = local; - symbol [ app %app.1 13 12 15 ]; - symbol [ Application %tmp.1 13 18 29 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 13 30 36 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 13 42 51 ]; - lputv %app.1 %tmp.4; - symbol [ app %app.1 13 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 14 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_12_30_26_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_12_30_26_4_stop" ] - %selectedValue.2 = local; - symbol [ selectedValue %selectedValue.2 14 12 25 ]; - %tmp.5 = lgetv %values; - symbol [ values %tmp.5 14 28 34 ]; - %tmp.6 = 0; - %tmp.7 = agetv %tmp.5 %tmp.6; - lputv %selectedValue.2 %tmp.7; - symbol [ selectedValue %selectedValue.2 14 12 25 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 16 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_16_8_22_8_if_stmt: - symbol [ _type %tmp.9 16 12 17 ]; - %tmp.9 = getv ? :_type; - %tmp.11 = const :prof_height; - symbol [ prof_height %tmp.11 16 22 33 const ]; - %tmp.12 = eq %tmp.9 %tmp.11; - bf %tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_16_8_22_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_16_8_22_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_16_35_18_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 17 12 ] - %tmp.13 = lgetv %app.1; - symbol [ app %tmp.13 17 12 15 ]; - %tmp.14 = lgetv %selectedValue.2; - symbol [ selectedValue %tmp.14 17 30 43 ]; - symbol [ _userHeight ? 17 16 27 ]; - putv %tmp.13 :_userHeight %tmp.14; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_16_35_18_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_16_8_22_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_16_8_22_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 19 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_13_22_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_17_19_51_begin: - symbol [ _type %tmp.16 19 17 22 ]; - %tmp.16 = getv ? :_type; - %tmp.18 = const :prof_speed; - symbol [ prof_speed %tmp.18 19 27 37 const ]; - %tmp.19 = eq %tmp.16 %tmp.18; - bt %tmp.19 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_13_22_8_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_41_19_51_false: - symbol [ _type %tmp.21 19 41 46 ]; - %tmp.21 = getv ? :_type; - %tmp.23 = const :profile_speed; - symbol [ profile_speed %tmp.23 19 51 64 const ]; - %tmp.24 = eq %tmp.21 %tmp.23; - push %tmp.24; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_41_19_51_end: - %tmp.25 = phi [%tmp.19 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_17_19_51_begin] [%tmp.24 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_41_19_51_false] [%tmp.25 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_41_19_51_end]; - bf %tmp.25 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_13_22_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_13_22_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_66_22_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 20 12 ] - %tmp.26 = lgetv %app.1; - symbol [ app %tmp.26 20 12 15 ]; - %tmp.27 = lgetv %selectedValue.2; - symbol [ selectedValue %tmp.27 20 29 42 ]; - symbol [ _userSpeed ? 20 16 26 ]; - putv %tmp.26 :_userSpeed %tmp.27; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 21 12 ] - symbol [ System %tmp.29 21 12 18 ]; - %tmp.29 = getv ? :System; - symbol [ println %tmp.30 21 19 26 ]; - %tmp.30 = getv function %tmp.29 :println; - %tmp.31 = "Speed saved to App: "; - %tmp.32 = lgetv %selectedValue.2; - symbol [ selectedValue %tmp.32 21 52 65 ]; - %tmp.33 = add %tmp.31 %tmp.32; - invoke %tmp.29 %tmp.30(%tmp.33); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_66_22_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_13_22_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_19_13_22_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_16_8_22_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 24 8 ] - symbol [ WatchUi %tmp.34 24 8 15 ]; - %tmp.34 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.35 24 16 23 ]; - %tmp.35 = getv function %tmp.34 :popView; - symbol [ WatchUi %tmp.36 24 24 31 ]; - %tmp.36 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.37 24 32 43 ]; - %tmp.37 = getv %tmp.36 :SLIDE_RIGHT; - invoke %tmp.34 %tmp.35(%tmp.37); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 25 8 ] - %tmp.38 = true; - ret %tmp.38; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_12_30_26_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc"; @line = 28; @symbol_functiondef = [onCancel,28,13,21]; ] - function onCancel() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_28_24_31_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 29 8 ] - symbol [ WatchUi %tmp.1 29 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 29 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 29 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.4 29 32 43 ]; - %tmp.4 = getv %tmp.3 :SLIDE_RIGHT; - invoke %tmp.1 %tmp.2(%tmp.4); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 30 8 ] - %tmp.5 = true; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_28_24_31_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc"; @line = 33; @symbol_functiondef = [onBack,33,13,19]; ] - function onBack() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_33_22_36_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 34 8 ] - symbol [ WatchUi %tmp.1 34 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 34 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 34 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.4 34 32 43 ]; - %tmp.4 = getv %tmp.3 :SLIDE_RIGHT; - invoke %tmp.1 %tmp.2(%tmp.4); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc" 35 8 ] - %tmp.5 = true; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerDelegate_mc_33_22_36_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/ProfilePickerFactory.mir b/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/ProfilePickerFactory.mir deleted file mode 100644 index f40b3cf..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/ProfilePickerFactory.mir +++ /dev/null @@ -1,283 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [WatchUi,1,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [Graphics,2,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [Lang,3,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 5; @symbol_classdef = [ProfilePickerFactory,5,6,26]; @symbol_extends<0> = [WatchUi,5,35,42]; @symbol_extends<1> = [PickerFactory,5,43,56]; ] -class ProfilePickerFactory extends WatchUi.PickerFactory { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 5; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 5; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 6; @position = 16; @symbol_vardef = [_start,6,16,22]; @symbol_type<0> = [Number,6,26,32]; ] - private - var _start as Number; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 7; @position = 16; @symbol_vardef = [_stop,7,16,21]; @symbol_type<0> = [Number,7,25,31]; ] - private - var _stop as Number; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 8; @position = 16; @symbol_vardef = [_increment,8,16,26]; @symbol_type<0> = [Number,8,30,36]; ] - private - var _increment as Number; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 9; @position = 16; @symbol_vardef = [_label,9,16,22]; @symbol_type<0> = [String,9,26,32]; ] - private - var _label as String; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 11; @symbol_functiondef = [initialize,11,13,23]; @symbol_param<0> = [start,11,24,29]; @symbol_param<0>_type<0> = [Number,11,33,39]; @symbol_param<1> = [stop,11,41,45]; @symbol_param<1>_type<0> = [Number,11,49,55]; @symbol_param<2> = [increment,11,57,66]; @symbol_param<2>_type<0> = [Number,11,70,76]; @symbol_param<3> = [options,11,78,85]; @symbol_param<3>_type<0> = [Dictionary,11,89,99]; ] - function initialize(start as Number, stop as Number, increment as Number, options as Dictionary or Null) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_11_102_23_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 12 8 ] - symbol [ PickerFactory %tmp.2 12 8 21 ]; - %tmp.2 = getv ? :PickerFactory; - symbol [ initialize %tmp.3 12 22 32 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 13 8 ] - %tmp.4 = lgetv %start; - symbol [ start %tmp.4 13 17 22 ]; - symbol [ _start ? 13 8 14 ]; - putv self :_start %tmp.4; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 14 8 ] - %tmp.5 = lgetv %stop; - symbol [ stop %tmp.5 14 16 20 ]; - symbol [ _stop ? 14 8 13 ]; - putv self :_stop %tmp.5; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 15 8 ] - %tmp.6 = lgetv %increment; - symbol [ increment %tmp.6 15 21 30 ]; - symbol [ _increment ? 15 8 18 ]; - putv self :_increment %tmp.6; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 16 8 ] - %tmp.7 = ""; - symbol [ _label ? 16 8 14 ]; - putv self :_label %tmp.7; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 18 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_18_8_22_8_if_stmt: - %tmp.8 = lgetv %options; - symbol [ options %tmp.8 18 12 19 ]; - %tmp.9 = null; - %tmp.10 = ne %tmp.8 %tmp.9; - bf %tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_18_8_22_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_18_8_22_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_18_29_22_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 19 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_19_12_21_12_if_stmt: - %tmp.11 = lgetv %options; - symbol [ options %tmp.11 19 16 23 ]; - %tmp.12 = as %tmp.11 { (!Null) }; - symbol [ hasKey %tmp.13 19 24 30 ]; - %tmp.13 = getv function %tmp.12 :hasKey; - %tmp.15 = const :label; - symbol [ label %tmp.15 19 32 37 const ]; - %tmp.16 = invoke %tmp.12 %tmp.13(%tmp.15); - bf %tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_19_12_21_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_19_12_21_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_19_40_21_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 20 16 ] - %tmp.17 = lgetv %options; - symbol [ options %tmp.17 20 25 32 ]; - %tmp.18 = as %tmp.17 { (!Null) }; - %tmp.20 = const :label; - symbol [ label %tmp.20 20 34 39 const ]; - %tmp.21 = agetv %tmp.18 %tmp.20; - %tmp.22 = as %tmp.21 String; - symbol [ String %tmp.22 20 44 50 ]; - symbol [ _label ? 20 16 22 ]; - putv self :_label %tmp.22; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_19_40_21_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_19_12_21_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_19_12_21_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_18_29_22_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_18_8_22_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_18_8_22_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_11_102_23_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 25; @symbol_functiondef = [getSize,25,13,20]; @symbol_return<0> = [Number,25,26,32]; ] - function getSize() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_25_33_27_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 26 8 ] - symbol [ _stop %tmp.2 26 16 21 ]; - %tmp.2 = getv ? :_stop; - symbol [ _start %tmp.4 26 24 30 ]; - %tmp.4 = getv ? :_start; - %tmp.5 = sub %tmp.2 %tmp.4; - symbol [ _increment %tmp.7 26 34 44 ]; - %tmp.7 = getv ? :_increment; - %tmp.8 = div %tmp.5 %tmp.7; - %tmp.9 = 1; - %tmp.10 = add %tmp.8 %tmp.9; - ret %tmp.10; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_25_33_27_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 29; @symbol_functiondef = [getValue,29,13,21]; @symbol_param<0> = [index,29,22,27]; @symbol_param<0>_type<0> = [Number,29,31,37]; @symbol_return<0> = [Object,29,42,48]; ] - function getValue(index as Number) as Object or Null { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_29_50_31_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 30 8 ] - symbol [ _start %tmp.2 30 15 21 ]; - %tmp.2 = getv ? :_start; - %tmp.3 = lgetv %index; - symbol [ index %tmp.3 30 25 30 ]; - symbol [ _increment %tmp.5 30 33 43 ]; - %tmp.5 = getv ? :_increment; - %tmp.6 = mul %tmp.3 %tmp.5; - %tmp.7 = add %tmp.2 %tmp.6; - ret %tmp.7; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_29_50_31_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 33; @symbol_functiondef = [getDrawable,33,13,24]; @symbol_param<0> = [index,33,25,30]; @symbol_param<0>_type<0> = [Number,33,34,40]; @symbol_param<1> = [selected,33,42,50]; @symbol_param<1>_type<0> = [Boolean,33,54,61]; @symbol_return<0> = [Drawable,33,66,74]; ] - function getDrawable(index as Number, selected as Boolean) as Drawable or Null { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_33_76_53_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 36 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_33_76_53_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_33_76_53_4_stop" ] - %val.1 = local; - symbol [ val %val.1 36 12 15 ]; - %tmp.1 = self; - symbol [ getValue %tmp.2 36 18 26 ]; - %tmp.2 = getv function %tmp.1 :getValue; - %tmp.3 = lgetv %index; - symbol [ index %tmp.3 36 27 32 ]; - %tmp.4 = invoke %tmp.1 %tmp.2(%tmp.3); - lputv %val.1 %tmp.4; - symbol [ val %val.1 36 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 39 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_39_8_41_8_if_stmt: - %tmp.5 = lgetv %val.1; - symbol [ val %tmp.5 39 12 15 ]; - %tmp.7 = const :toNumber; - symbol [ toNumber %tmp.7 39 21 29 const ]; - %tmp.8 = canhazplz %tmp.5 %tmp.7; - bf %tmp.8 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_39_8_41_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_39_8_41_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_39_31_41_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 40 12 ] - %tmp.9 = lgetv %val.1; - symbol [ val %tmp.9 40 18 21 ]; - %tmp.10 = as %tmp.9 { (interface { var toNumber; }) }; - symbol [ toNumber %tmp.11 40 22 30 ]; - %tmp.11 = getv function %tmp.10 :toNumber; - %tmp.12 = invoke %tmp.10 %tmp.11(); - lputv %val.1 %tmp.12; - symbol [ val %val.1 40 12 15 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_39_31_41_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_39_8_41_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_39_8_41_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 44 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_33_76_53_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_33_76_53_4_stop" ] - %displayString.2 = local; - symbol [ displayString %displayString.2 44 12 25 ]; - symbol [ Lang %tmp.13 44 28 32 ]; - %tmp.13 = getm $.Toybox.Lang; - symbol [ format %tmp.14 44 33 39 ]; - %tmp.14 = getv function %tmp.13 :format; - %tmp.15 = "$1$$2$"; - %tmp.16 = newa 2; - %tmp.17 = lgetv %val.1; - symbol [ val %tmp.17 44 51 54 ]; - %tmp.18 = dup %tmp.16; - %tmp.19 = aputv %tmp.18 0 %tmp.17; - symbol [ _label %tmp.21 44 56 62 ]; - %tmp.21 = getv ? :_label; - %tmp.22 = dup %tmp.19; - %tmp.23 = aputv %tmp.22 1 %tmp.21; - %tmp.24 = invoke %tmp.13 %tmp.14(%tmp.15, %tmp.23); - lputv %displayString.2 %tmp.24; - symbol [ displayString %displayString.2 44 12 25 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 46 8 ] - symbol [ WatchUi %tmp.27 46 19 26 ]; - %tmp.27 = getm $.Toybox.WatchUi; - symbol [ Text %tmp.28 46 27 31 ]; - %tmp.28 = getv function ? %tmp.27 :Text; - %tmp.29 = newd 5; - %tmp.31 = const :text; - symbol [ text %tmp.31 47 13 17 const ]; - %tmp.32 = lgetv %displayString.2; - symbol [ displayString %tmp.32 47 21 34 ]; - %tmp.33 = dup %tmp.29; - %tmp.34 = aputv %tmp.33 %tmp.31 %tmp.32; - %tmp.36 = const :color; - symbol [ color %tmp.36 48 13 18 const ]; - symbol [ Graphics %tmp.37 48 22 30 ]; - %tmp.37 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.38 48 31 42 ]; - %tmp.38 = getv %tmp.37 :COLOR_WHITE; - %tmp.39 = dup %tmp.34; - %tmp.40 = aputv %tmp.39 %tmp.36 %tmp.38; - %tmp.42 = const :font; - symbol [ font %tmp.42 49 13 17 const ]; - symbol [ Graphics %tmp.43 49 21 29 ]; - %tmp.43 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.44 49 30 41 ]; - %tmp.44 = getv %tmp.43 :FONT_MEDIUM; - %tmp.45 = dup %tmp.40; - %tmp.46 = aputv %tmp.45 %tmp.42 %tmp.44; - %tmp.48 = const :locX; - symbol [ locX %tmp.48 50 13 17 const ]; - symbol [ WatchUi %tmp.49 50 21 28 ]; - %tmp.49 = getm $.Toybox.WatchUi; - symbol [ LAYOUT_HALIGN_CENTER %tmp.50 50 29 49 ]; - %tmp.50 = getv %tmp.49 :LAYOUT_HALIGN_CENTER; - %tmp.51 = dup %tmp.46; - %tmp.52 = aputv %tmp.51 %tmp.48 %tmp.50; - %tmp.54 = const :locY; - symbol [ locY %tmp.54 51 13 17 const ]; - symbol [ WatchUi %tmp.55 51 21 28 ]; - %tmp.55 = getm $.Toybox.WatchUi; - symbol [ LAYOUT_VALIGN_CENTER %tmp.56 51 29 49 ]; - %tmp.56 = getv %tmp.55 :LAYOUT_VALIGN_CENTER; - %tmp.57 = dup %tmp.52; - %tmp.58 = aputv %tmp.57 %tmp.54 %tmp.56; - %tmp.25 = newc %tmp.28 (%tmp.58); - ret %tmp.25; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_33_76_53_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 55; @symbol_functiondef = [getIndex,55,13,21]; @symbol_param<0> = [value,55,22,27]; @symbol_param<0>_type<0> = [Number,55,31,37]; @symbol_return<0> = [Number,55,42,48]; ] - function getIndex(value as Number) as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_55_49_63_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 57 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_55_49_63_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_55_49_63_4_stop" ] - %safeValue.1 = local; - symbol [ safeValue %safeValue.1 57 12 21 ]; - %tmp.1 = lgetv %value; - symbol [ value %tmp.1 57 24 29 ]; - lputv %safeValue.1 %tmp.1; - symbol [ safeValue %safeValue.1 57 12 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 58 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_58_8_60_8_if_stmt: - %tmp.2 = lgetv %safeValue.1; - symbol [ safeValue %tmp.2 58 12 21 ]; - %tmp.4 = const :toNumber; - symbol [ toNumber %tmp.4 58 27 35 const ]; - %tmp.5 = canhazplz %tmp.2 %tmp.4; - bf %tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_58_8_60_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_58_8_60_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_58_37_60_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 59 12 ] - %tmp.6 = lgetv %safeValue.1; - symbol [ safeValue %tmp.6 59 24 33 ]; - %tmp.7 = as %tmp.6 { (interface { var toNumber; }) }; - symbol [ toNumber %tmp.8 59 34 42 ]; - %tmp.8 = getv function %tmp.7 :toNumber; - %tmp.9 = invoke %tmp.7 %tmp.8(); - lputv %safeValue.1 %tmp.9; - symbol [ safeValue %safeValue.1 59 12 21 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_58_37_60_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_58_8_60_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_58_8_60_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc" 62 8 ] - %tmp.10 = lgetv %safeValue.1; - symbol [ safeValue %tmp.10 62 16 25 ]; - symbol [ _start %tmp.12 62 28 34 ]; - %tmp.12 = getv ? :_start; - %tmp.13 = sub %tmp.10 %tmp.12; - symbol [ _increment %tmp.15 62 38 48 ]; - %tmp.15 = getv ? :_increment; - %tmp.16 = div %tmp.13 %tmp.15; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_ProfilePickerFactory_mc_55_49_63_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\ProfilePickerFactory.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/SelectExperienceDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/SelectExperienceDelegate.mir deleted file mode 100644 index 2e327ea..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/SelectExperienceDelegate.mir +++ /dev/null @@ -1,279 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 6; @symbol_classdef = [SelectExperienceDelegate,6,6,30]; @symbol_extends<0> = [WatchUi,6,39,46]; @symbol_extends<1> = [Menu2InputDelegate,6,47,65]; ] -class SelectExperienceDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 6; ] - { -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 9 8 ] - symbol [ Application %tmp.1 9 14 25 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 9 26 32 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 9 38 47 ]; - putv self :app %tmp.4; - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 8; @position = 16; @symbol_vardef = [_menu,8,16,21]; @symbol_type<0> = [WatchUi,8,25,32]; @symbol_type<1> = [Menu2,8,33,38]; ] - private - var _menu as WatchUi.Menu2; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 9; @position = 8; @symbol_vardef = [app,9,8,11]; ] - var app; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 11; @position = 8; @symbol_vardef = [experienceLvl,11,8,21]; ] - var experienceLvl = 1.06; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 13; @symbol_functiondef = [initialize,13,13,23]; @symbol_param<0> = [menu,13,24,28]; @symbol_param<0>_type<0> = [WatchUi,13,32,39]; @symbol_param<0>_type<1> = [Menu2,13,40,45]; ] - function initialize(menu as WatchUi.Menu2) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_13_47_37_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 14 8 ] - symbol [ Menu2InputDelegate %tmp.2 14 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 14 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 15 8 ] - %tmp.4 = lgetv %menu; - symbol [ menu %tmp.4 15 16 20 ]; - symbol [ _menu ? 15 8 13 ]; - putv self :_menu %tmp.4; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 18 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_13_47_37_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_13_47_37_4_stop" ] - %currentExp.1 = local; - symbol [ currentExp %currentExp.1 18 12 22 ]; - symbol [ app %tmp.6 18 25 28 ]; - %tmp.6 = getv ? :app; - symbol [ _experienceLvl %tmp.7 18 29 43 ]; - %tmp.7 = getv %tmp.6 :_experienceLvl; - lputv %currentExp.1 %tmp.7; - symbol [ currentExp %currentExp.1 18 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 19 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_13_47_37_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_13_47_37_4_stop" ] - %expLabel.2 = local; - symbol [ expLabel %expLabel.2 19 12 20 ]; - %tmp.8 = "Beginner"; - lputv %expLabel.2 %tmp.8; - symbol [ expLabel %expLabel.2 19 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 23 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_23_8_32_8_if_stmt: - %tmp.9 = lgetv %currentExp.1; - symbol [ currentExp %tmp.9 23 12 22 ]; - %tmp.10 = 1.06; - %tmp.11 = eq %tmp.9 %tmp.10; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_23_8_32_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_23_8_32_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_23_32_26_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 24 12 ] - %tmp.12 = "Beginner"; - lputv %expLabel.2 %tmp.12; - symbol [ expLabel %expLabel.2 24 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 25 12 ] - symbol [ _menu %tmp.14 25 12 17 ]; - %tmp.14 = getv ? :_menu; - symbol [ setFocus %tmp.15 25 18 26 ]; - %tmp.15 = getv function %tmp.14 :setFocus; - %tmp.16 = 0; - invoke %tmp.14 %tmp.15(%tmp.16); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_23_32_26_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_23_8_32_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_23_8_32_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 26 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_26_15_32_8_if_stmt: - %tmp.17 = lgetv %currentExp.1; - symbol [ currentExp %tmp.17 26 19 29 ]; - %tmp.18 = 1.04; - %tmp.19 = eq %tmp.17 %tmp.18; - bf %tmp.19 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_26_15_32_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_26_15_32_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_26_39_29_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 27 12 ] - %tmp.20 = "Intermediate"; - lputv %expLabel.2 %tmp.20; - symbol [ expLabel %expLabel.2 27 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 28 12 ] - symbol [ _menu %tmp.22 28 12 17 ]; - %tmp.22 = getv ? :_menu; - symbol [ setFocus %tmp.23 28 18 26 ]; - %tmp.23 = getv function %tmp.22 :setFocus; - %tmp.24 = 1; - invoke %tmp.22 %tmp.23(%tmp.24); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_26_39_29_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_26_15_32_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_26_15_32_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 29 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_29_15_32_8_if_stmt: - %tmp.25 = lgetv %currentExp.1; - symbol [ currentExp %tmp.25 29 19 29 ]; - %tmp.26 = 1.02; - %tmp.27 = eq %tmp.25 %tmp.26; - bf %tmp.27 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_29_15_32_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_29_15_32_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_29_39_32_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 30 12 ] - %tmp.28 = "Advanced"; - lputv %expLabel.2 %tmp.28; - symbol [ expLabel %expLabel.2 30 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 31 12 ] - symbol [ _menu %tmp.30 31 12 17 ]; - %tmp.30 = getv ? :_menu; - symbol [ setFocus %tmp.31 31 18 26 ]; - %tmp.31 = getv function %tmp.30 :setFocus; - %tmp.32 = 2; - invoke %tmp.30 %tmp.31(%tmp.32); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_29_39_32_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_29_15_32_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_29_15_32_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_26_15_32_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_23_8_32_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 35 8 ] - symbol [ _menu %tmp.34 35 8 13 ]; - %tmp.34 = getv ? :_menu; - symbol [ setTitle %tmp.35 35 14 22 ]; - %tmp.35 = getv function %tmp.34 :setTitle; - %tmp.36 = "Exp: "; - %tmp.37 = lgetv %expLabel.2; - symbol [ expLabel %tmp.37 35 33 41 ]; - %tmp.38 = add %tmp.36 %tmp.37; - invoke %tmp.34 %tmp.35(%tmp.38); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_13_47_37_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 39; @symbol_functiondef = [onSelect,39,13,21]; @symbol_param<0> = [item,39,22,26]; ] - function onSelect(item) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_39_28_50_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 40 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_39_28_50_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_39_28_50_4_stop" ] - %id.1 = local; - symbol [ id %id.1 40 12 14 ]; - %tmp.1 = lgetv %item; - symbol [ item %tmp.1 40 17 21 ]; - symbol [ getId %tmp.2 40 22 27 ]; - %tmp.2 = getv function %tmp.1 :getId; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %id.1 %tmp.3; - symbol [ id %id.1 40 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 41 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_39_28_50_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_39_28_50_4_stop" ] - %app.2 = local; - symbol [ app %app.2 41 12 15 ]; - symbol [ Application %tmp.4 41 18 29 ]; - %tmp.4 = getm $.Toybox.Application; - symbol [ getApp %tmp.5 41 30 36 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - %tmp.7 = as %tmp.6 GarminApp; - symbol [ GarminApp %tmp.7 41 42 51 ]; - lputv %app.2 %tmp.7; - symbol [ app %app.2 41 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 43 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_43_8_45_67_if_stmt: - %tmp.8 = lgetv %id.1; - symbol [ id %tmp.8 43 12 14 ]; - %tmp.10 = const :exp_beginner; - symbol [ exp_beginner %tmp.10 43 19 31 const ]; - %tmp.11 = eq %tmp.8 %tmp.10; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_43_8_45_67_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_43_8_45_67_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_43_33_43_62_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 43 35 ] - %tmp.12 = lgetv %app.2; - symbol [ app %tmp.12 43 35 38 ]; - %tmp.13 = 1.06; - symbol [ _experienceLvl ? 43 39 53 ]; - putv %tmp.12 :_experienceLvl %tmp.13; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_43_33_43_62_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_43_8_45_67_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_43_8_45_67_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 44 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_44_13_45_67_if_stmt: - %tmp.14 = lgetv %id.1; - symbol [ id %tmp.14 44 17 19 ]; - %tmp.16 = const :exp_intermediate; - symbol [ exp_intermediate %tmp.16 44 24 40 const ]; - %tmp.17 = eq %tmp.14 %tmp.16; - bf %tmp.17 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_44_13_45_67_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_44_13_45_67_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_44_42_44_71_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 44 44 ] - %tmp.18 = lgetv %app.2; - symbol [ app %tmp.18 44 44 47 ]; - %tmp.19 = 1.04; - symbol [ _experienceLvl ? 44 48 62 ]; - putv %tmp.18 :_experienceLvl %tmp.19; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_44_42_44_71_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_44_13_45_67_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_44_13_45_67_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 45 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_45_13_45_67_if_stmt: - %tmp.20 = lgetv %id.1; - symbol [ id %tmp.20 45 17 19 ]; - %tmp.22 = const :exp_advanced; - symbol [ exp_advanced %tmp.22 45 24 36 const ]; - %tmp.23 = eq %tmp.20 %tmp.22; - bf %tmp.23 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_45_13_45_67_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_45_13_45_67_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_45_38_45_67_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 45 40 ] - %tmp.24 = lgetv %app.2; - symbol [ app %tmp.24 45 40 43 ]; - %tmp.25 = 1.02; - symbol [ _experienceLvl ? 45 44 58 ]; - putv %tmp.24 :_experienceLvl %tmp.25; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_45_38_45_67_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_45_13_45_67_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_45_13_45_67_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_44_13_45_67_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_43_8_45_67_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 47 8 ] - symbol [ System %tmp.26 47 8 14 ]; - %tmp.26 = getm $.Toybox.System; - symbol [ println %tmp.27 47 15 22 ]; - %tmp.27 = getv function %tmp.26 :println; - %tmp.28 = "Experience updated to: "; - %tmp.29 = lgetv %app.2; - symbol [ app %tmp.29 47 51 54 ]; - symbol [ _experienceLvl %tmp.30 47 55 69 ]; - %tmp.30 = getv %tmp.29 :_experienceLvl; - %tmp.31 = add %tmp.28 %tmp.30; - invoke %tmp.26 %tmp.27(%tmp.31); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 48 8 ] - symbol [ WatchUi %tmp.32 48 8 15 ]; - %tmp.32 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.33 48 16 23 ]; - %tmp.33 = getv function %tmp.32 :popView; - symbol [ WatchUi %tmp.34 48 24 31 ]; - %tmp.34 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.35 48 32 43 ]; - %tmp.35 = getv %tmp.34 :SLIDE_RIGHT; - invoke %tmp.32 %tmp.33(%tmp.35); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_39_28_50_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 52; @symbol_functiondef = [onMenuItem,52,13,23]; @symbol_param<0> = [item,52,24,28]; @symbol_param<0>_type<0> = [Symbol,52,32,38]; ] - function onMenuItem(item as Symbol) as Void { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 55; @symbol_functiondef = [onBack,55,13,19]; ] - function onBack() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_55_30_58_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc" 56 8 ] - symbol [ WatchUi %tmp.1 56 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 56 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 56 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.4 56 32 43 ]; - %tmp.4 = getv %tmp.3 :SLIDE_RIGHT; - invoke %tmp.1 %tmp.2(%tmp.4); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectExperienceDelegate_mc_55_30_58_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectExperienceDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/SelectGenderDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/SelectGenderDelegate.mir deleted file mode 100644 index a8d0d74..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/SelectGenderDelegate.mir +++ /dev/null @@ -1,267 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 6; @symbol_classdef = [SelectGenderDelegate,6,6,26]; @symbol_extends<0> = [WatchUi,6,35,42]; @symbol_extends<1> = [Menu2InputDelegate,6,43,61]; ] -class SelectGenderDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 6; ] - { -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 9 8 ] - symbol [ Application %tmp.1 9 14 25 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 9 26 32 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 9 38 47 ]; - putv self :app %tmp.4; - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 8; @position = 16; @symbol_vardef = [_menu,8,16,21]; @symbol_type<0> = [WatchUi,8,25,32]; @symbol_type<1> = [Menu2,8,33,38]; ] - private - var _menu as WatchUi.Menu2; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 9; @position = 8; @symbol_vardef = [app,9,8,11]; ] - var app; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 11; @position = 8; @symbol_vardef = [gender,11,8,14]; ] - var gender = "Other"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 13; @symbol_functiondef = [initialize,13,13,23]; @symbol_param<0> = [menu,13,24,28]; @symbol_param<0>_type<0> = [WatchUi,13,32,39]; @symbol_param<0>_type<1> = [Menu2,13,40,45]; ] - function initialize(menu as WatchUi.Menu2) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_13_47_33_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 14 8 ] - symbol [ Menu2InputDelegate %tmp.2 14 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 14 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 15 8 ] - %tmp.4 = lgetv %menu; - symbol [ menu %tmp.4 15 16 20 ]; - symbol [ _menu ? 15 8 13 ]; - putv self :_menu %tmp.4; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 17 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_13_47_33_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_13_47_33_4_stop" ] - %currentGender.1 = local; - symbol [ currentGender %currentGender.1 17 12 25 ]; - symbol [ app %tmp.6 17 28 31 ]; - %tmp.6 = getv ? :app; - symbol [ _userGender %tmp.7 17 32 43 ]; - %tmp.7 = getv %tmp.6 :_userGender; - lputv %currentGender.1 %tmp.7; - symbol [ currentGender %currentGender.1 17 12 25 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 18 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_13_47_33_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_13_47_33_4_stop" ] - %genderLabel.2 = local; - symbol [ genderLabel %genderLabel.2 18 12 23 ]; - %tmp.8 = "Other"; - lputv %genderLabel.2 %tmp.8; - symbol [ genderLabel %genderLabel.2 18 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 20 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_20_8_30_8_if_stmt: - %tmp.9 = lgetv %currentGender.1; - symbol [ currentGender %tmp.9 20 12 25 ]; - %tmp.10 = 0; - %tmp.11 = eq %tmp.9 %tmp.10; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_20_8_30_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_20_8_30_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_20_32_24_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 21 12 ] - %tmp.12 = "Male"; - lputv %genderLabel.2 %tmp.12; - symbol [ genderLabel %genderLabel.2 21 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 23 12 ] - symbol [ _menu %tmp.14 23 12 17 ]; - %tmp.14 = getv ? :_menu; - symbol [ setFocus %tmp.15 23 18 26 ]; - %tmp.15 = getv function %tmp.14 :setFocus; - %tmp.16 = 0; - invoke %tmp.14 %tmp.15(%tmp.16); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_20_32_24_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_20_8_30_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_20_8_30_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 24 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_24_15_30_8_if_stmt: - %tmp.17 = lgetv %currentGender.1; - symbol [ currentGender %tmp.17 24 19 32 ]; - %tmp.18 = 1; - %tmp.19 = eq %tmp.17 %tmp.18; - bf %tmp.19 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_24_15_30_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_24_15_30_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_24_39_28_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 25 12 ] - %tmp.20 = "Female"; - lputv %genderLabel.2 %tmp.20; - symbol [ genderLabel %genderLabel.2 25 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 27 12 ] - symbol [ _menu %tmp.22 27 12 17 ]; - %tmp.22 = getv ? :_menu; - symbol [ setFocus %tmp.23 27 18 26 ]; - %tmp.23 = getv function %tmp.22 :setFocus; - %tmp.24 = 1; - invoke %tmp.22 %tmp.23(%tmp.24); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_24_39_28_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_24_15_30_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_24_15_30_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_28_15_30_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 29 12 ] - symbol [ _menu %tmp.26 29 12 17 ]; - %tmp.26 = getv ? :_menu; - symbol [ setFocus %tmp.27 29 18 26 ]; - %tmp.27 = getv function %tmp.26 :setFocus; - %tmp.28 = 2; - invoke %tmp.26 %tmp.27(%tmp.28); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_28_15_30_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_24_15_30_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_20_8_30_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 32 8 ] - symbol [ _menu %tmp.30 32 8 13 ]; - %tmp.30 = getv ? :_menu; - symbol [ setTitle %tmp.31 32 14 22 ]; - %tmp.31 = getv function %tmp.30 :setTitle; - %tmp.32 = "Gender: "; - %tmp.33 = lgetv %genderLabel.2; - symbol [ genderLabel %tmp.33 32 36 47 ]; - %tmp.34 = add %tmp.32 %tmp.33; - invoke %tmp.30 %tmp.31(%tmp.34); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_13_47_33_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 35; @symbol_functiondef = [onSelect,35,13,21]; @symbol_param<0> = [item,35,22,26]; ] - function onSelect(item) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_35_28_47_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 36 8 ] - symbol [ System %tmp.1 36 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 36 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "DEBUG: I clicked on "; - %tmp.4 = lgetv %item; - symbol [ item %tmp.4 36 48 52 ]; - symbol [ getId %tmp.5 36 53 58 ]; - %tmp.5 = getv function %tmp.4 :getId; - %tmp.6 = invoke %tmp.4 %tmp.5(); - %tmp.7 = add %tmp.3 %tmp.6; - invoke %tmp.1 %tmp.2(%tmp.7); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 37 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_35_28_47_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_35_28_47_4_stop" ] - %id.1 = local; - symbol [ id %id.1 37 12 14 ]; - %tmp.8 = lgetv %item; - symbol [ item %tmp.8 37 17 21 ]; - symbol [ getId %tmp.9 37 22 27 ]; - %tmp.9 = getv function %tmp.8 :getId; - %tmp.10 = invoke %tmp.8 %tmp.9(); - lputv %id.1 %tmp.10; - symbol [ id %id.1 37 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 38 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_35_28_47_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_35_28_47_4_stop" ] - %app.2 = local; - symbol [ app %app.2 38 12 15 ]; - symbol [ Application %tmp.11 38 18 29 ]; - %tmp.11 = getm $.Toybox.Application; - symbol [ getApp %tmp.12 38 30 36 ]; - %tmp.12 = getv function %tmp.11 :getApp; - %tmp.13 = invoke %tmp.11 %tmp.12(); - %tmp.14 = as %tmp.13 GarminApp; - symbol [ GarminApp %tmp.14 38 42 51 ]; - lputv %app.2 %tmp.14; - symbol [ app %app.2 38 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 40 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_40_8_42_36_if_stmt: - %tmp.15 = lgetv %id.1; - symbol [ id %tmp.15 40 12 14 ]; - %tmp.17 = const :user_male; - symbol [ user_male %tmp.17 40 19 28 const ]; - %tmp.18 = eq %tmp.15 %tmp.17; - bf %tmp.18 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_40_8_42_36_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_40_8_42_36_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_40_30_40_53_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 40 32 ] - %tmp.19 = lgetv %app.2; - symbol [ app %tmp.19 40 32 35 ]; - %tmp.20 = 0; - symbol [ _userGender ? 40 36 47 ]; - putv %tmp.19 :_userGender %tmp.20; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_40_30_40_53_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_40_8_42_36_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_40_8_42_36_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 41 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_41_13_42_36_if_stmt: - %tmp.21 = lgetv %id.1; - symbol [ id %tmp.21 41 17 19 ]; - %tmp.23 = const :user_female; - symbol [ user_female %tmp.23 41 24 35 const ]; - %tmp.24 = eq %tmp.21 %tmp.23; - bf %tmp.24 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_41_13_42_36_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_41_13_42_36_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_41_37_41_60_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 41 39 ] - %tmp.25 = lgetv %app.2; - symbol [ app %tmp.25 41 39 42 ]; - %tmp.26 = 1; - symbol [ _userGender ? 41 43 54 ]; - putv %tmp.25 :_userGender %tmp.26; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_41_37_41_60_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_41_13_42_36_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_41_13_42_36_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_42_13_42_36_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 42 15 ] - %tmp.27 = lgetv %app.2; - symbol [ app %tmp.27 42 15 18 ]; - %tmp.28 = 2; - symbol [ _userGender ? 42 19 30 ]; - putv %tmp.27 :_userGender %tmp.28; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_42_13_42_36_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_41_13_42_36_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_40_8_42_36_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 44 8 ] - symbol [ System %tmp.29 44 8 14 ]; - %tmp.29 = getm $.Toybox.System; - symbol [ println %tmp.30 44 15 22 ]; - %tmp.30 = getv function %tmp.29 :println; - %tmp.31 = "Gender updated to: "; - %tmp.32 = lgetv %app.2; - symbol [ app %tmp.32 44 47 50 ]; - symbol [ _userGender %tmp.33 44 51 62 ]; - %tmp.33 = getv %tmp.32 :_userGender; - %tmp.34 = add %tmp.31 %tmp.33; - invoke %tmp.29 %tmp.30(%tmp.34); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 45 8 ] - symbol [ WatchUi %tmp.35 45 8 15 ]; - %tmp.35 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.36 45 16 23 ]; - %tmp.36 = getv function %tmp.35 :popView; - symbol [ WatchUi %tmp.37 45 24 31 ]; - %tmp.37 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.38 45 32 43 ]; - %tmp.38 = getv %tmp.37 :SLIDE_RIGHT; - invoke %tmp.35 %tmp.36(%tmp.38); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_35_28_47_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 49; @symbol_functiondef = [onMenuItem,49,13,23]; @symbol_param<0> = [item,49,24,28]; @symbol_param<0>_type<0> = [Symbol,49,32,38]; ] - function onMenuItem(item as Symbol) as Void { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 52; @symbol_functiondef = [onBack,52,13,19]; ] - function onBack() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_52_30_54_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc" 53 8 ] - symbol [ WatchUi %tmp.1 53 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 53 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 53 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.4 53 32 43 ]; - %tmp.4 = getv %tmp.3 :SLIDE_RIGHT; - invoke %tmp.1 %tmp.2(%tmp.4); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectGenderDelegate_mc_52_30_54_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectGenderDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/SelectProfileDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/SelectProfileDelegate.mir deleted file mode 100644 index 9ae18fc..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/ProfileDelegates/SelectProfileDelegate.mir +++ /dev/null @@ -1,621 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 5; @symbol_importdef<0> = [Toybox,5,7,13]; @symbol_importdef<1> = [Graphics,5,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 7; @symbol_classdef = [SelectProfileDelegate,7,6,27]; @symbol_extends<0> = [WatchUi,7,36,43]; @symbol_extends<1> = [Menu2InputDelegate,7,44,62]; ] -class SelectProfileDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 7; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 7; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 9; @position = 16; @symbol_vardef = [_menu,9,16,21]; @symbol_type<0> = [WatchUi,9,25,32]; @symbol_type<1> = [Menu2,9,33,38]; ] - private - var _menu as WatchUi.Menu2; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 11; @symbol_functiondef = [initialize,11,13,23]; @symbol_param<0> = [menu,11,24,28]; @symbol_param<0>_type<0> = [WatchUi,11,32,39]; @symbol_param<0>_type<1> = [Menu2,11,40,45]; ] - function initialize(menu as WatchUi.Menu2) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_11_47_17_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 12 8 ] - symbol [ Menu2InputDelegate %tmp.2 12 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 12 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 13 8 ] - %tmp.4 = lgetv %menu; - symbol [ menu %tmp.4 13 16 20 ]; - symbol [ _menu ? 13 8 13 ]; - putv self :_menu %tmp.4; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 16 8 ] - symbol [ _menu %tmp.6 16 8 13 ]; - %tmp.6 = getv ? :_menu; - symbol [ setTitle %tmp.7 16 14 22 ]; - %tmp.7 = getv function %tmp.6 :setTitle; - %tmp.8 = "Profile Settings"; - invoke %tmp.6 %tmp.7(%tmp.8); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_11_47_17_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 19; @symbol_functiondef = [onSelect,19,13,21]; @symbol_param<0> = [item,19,22,26]; ] - function onSelect(item) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_19_36_36_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 21 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_19_36_36_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_19_36_36_4_stop" ] - %id.1 = local; - symbol [ id %id.1 21 12 14 ]; - %tmp.1 = lgetv %item; - symbol [ item %tmp.1 21 17 21 ]; - symbol [ getId %tmp.2 21 22 27 ]; - %tmp.2 = getv function %tmp.1 :getId; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %id.1 %tmp.3; - symbol [ id %id.1 21 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 24 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_24_8_35_8_if_stmt: - %tmp.4 = lgetv %id.1; - symbol [ id %tmp.4 24 12 14 ]; - %tmp.6 = const :profile_height; - symbol [ profile_height %tmp.6 24 19 33 const ]; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_24_8_35_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_24_8_35_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_24_34_26_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 25 12 ] - %tmp.8 = self; - symbol [ heightPicker %tmp.9 25 12 24 ]; - %tmp.9 = getv function %tmp.8 :heightPicker; - invoke %tmp.8 %tmp.9(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_24_34_26_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_24_8_35_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_24_8_35_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 27 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_27_13_35_8_if_stmt: - %tmp.10 = lgetv %id.1; - symbol [ id %tmp.10 27 17 19 ]; - %tmp.12 = const :profile_speed; - symbol [ profile_speed %tmp.12 27 24 37 const ]; - %tmp.13 = eq %tmp.10 %tmp.12; - bf %tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_27_13_35_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_27_13_35_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_27_38_29_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 28 12 ] - %tmp.14 = self; - symbol [ speedPicker %tmp.15 28 12 23 ]; - %tmp.15 = getv function %tmp.14 :speedPicker; - invoke %tmp.14 %tmp.15(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_27_38_29_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_27_13_35_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_27_13_35_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 30 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_30_13_35_8_if_stmt: - %tmp.16 = lgetv %id.1; - symbol [ id %tmp.16 30 17 19 ]; - %tmp.18 = const :profile_experience; - symbol [ profile_experience %tmp.18 30 24 42 const ]; - %tmp.19 = eq %tmp.16 %tmp.18; - bf %tmp.19 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_30_13_35_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_30_13_35_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_30_43_32_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 31 12 ] - %tmp.20 = self; - symbol [ experienceMenu %tmp.21 31 12 26 ]; - %tmp.21 = getv function %tmp.20 :experienceMenu; - invoke %tmp.20 %tmp.21(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_30_43_32_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_30_13_35_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_30_13_35_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 33 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_33_13_35_8_if_stmt: - %tmp.22 = lgetv %id.1; - symbol [ id %tmp.22 33 17 19 ]; - %tmp.24 = const :profile_gender; - symbol [ profile_gender %tmp.24 33 24 38 const ]; - %tmp.25 = eq %tmp.22 %tmp.24; - bf %tmp.25 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_33_13_35_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_33_13_35_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_33_39_35_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 34 12 ] - %tmp.26 = self; - symbol [ genderMenu %tmp.27 34 12 22 ]; - %tmp.27 = getv function %tmp.26 :genderMenu; - invoke %tmp.26 %tmp.27(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_33_39_35_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_33_13_35_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_33_13_35_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_30_13_35_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_27_13_35_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_24_8_35_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_19_36_36_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 38; @symbol_functiondef = [onMenuItem,38,13,23]; @symbol_param<0> = [item,38,24,28]; @symbol_param<0>_type<0> = [Symbol,38,32,38]; ] - function onMenuItem(item as Symbol) as Void { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 41; @symbol_functiondef = [onBack,41,13,19]; ] - function onBack() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_41_30_43_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 42 8 ] - symbol [ WatchUi %tmp.1 42 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 42 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 42 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.4 42 32 43 ]; - %tmp.4 = getv %tmp.3 :SLIDE_RIGHT; - invoke %tmp.1 %tmp.2(%tmp.4); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_41_30_43_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 45; @symbol_functiondef = [heightPicker,45,13,25]; ] - function heightPicker() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_45_36_59_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 46 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_45_36_59_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_45_36_59_4_stop" ] - %app.1 = local; - symbol [ app %app.1 46 12 15 ]; - symbol [ Application %tmp.1 46 18 29 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 46 30 36 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %app.1 %tmp.3; - symbol [ app %app.1 46 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 47 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_45_36_59_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_45_36_59_4_stop" ] - %currentHeight.2 = local; - symbol [ currentHeight %currentHeight.2 47 12 25 ]; - %tmp.4 = lgetv %app.1; - symbol [ app %tmp.4 47 28 31 ]; - symbol [ getUserHeight %tmp.5 47 32 45 ]; - %tmp.5 = getv function %tmp.4 :getUserHeight; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %currentHeight.2 %tmp.6; - symbol [ currentHeight %currentHeight.2 47 12 25 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 49 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_45_36_59_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_45_36_59_4_stop" ] - %factory.3 = local; - symbol [ factory %factory.3 49 12 19 ]; - symbol [ ProfilePickerFactory %tmp.10 49 26 46 ]; - %tmp.10 = getv ? :ProfilePickerFactory; - %tmp.11 = 100; - %tmp.12 = 250; - %tmp.13 = 1; - %tmp.14 = newd 1; - %tmp.16 = const :label; - symbol [ label %tmp.16 49 62 67 const ]; - %tmp.17 = " cm"; - %tmp.18 = dup %tmp.14; - %tmp.19 = aputv %tmp.18 %tmp.16 %tmp.17; - %tmp.7 = newc %tmp.10 (%tmp.11, %tmp.12, %tmp.13, %tmp.19); - lputv %factory.3 %tmp.7; - symbol [ factory %factory.3 49 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 51 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_45_36_59_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_45_36_59_4_stop" ] - %picker.4 = local; - symbol [ picker %picker.4 51 12 18 ]; - symbol [ WatchUi %tmp.22 51 25 32 ]; - %tmp.22 = getm $.Toybox.WatchUi; - symbol [ Picker %tmp.23 51 33 39 ]; - %tmp.23 = getv function ? %tmp.22 :Picker; - %tmp.24 = newd 3; - %tmp.26 = const :title; - symbol [ title %tmp.26 52 13 18 const ]; - symbol [ WatchUi %tmp.29 52 26 33 ]; - %tmp.29 = getm $.Toybox.WatchUi; - symbol [ Text %tmp.30 52 34 38 ]; - %tmp.30 = getv function ? %tmp.29 :Text; - %tmp.31 = newd 4; - %tmp.33 = const :text; - symbol [ text %tmp.33 52 41 45 const ]; - %tmp.34 = "Set Height"; - %tmp.35 = dup %tmp.31; - %tmp.36 = aputv %tmp.35 %tmp.33 %tmp.34; - %tmp.38 = const :locX; - symbol [ locX %tmp.38 52 62 66 const ]; - symbol [ WatchUi %tmp.39 52 68 75 ]; - %tmp.39 = getm $.Toybox.WatchUi; - symbol [ LAYOUT_HALIGN_CENTER %tmp.40 52 76 96 ]; - %tmp.40 = getv %tmp.39 :LAYOUT_HALIGN_CENTER; - %tmp.41 = dup %tmp.36; - %tmp.42 = aputv %tmp.41 %tmp.38 %tmp.40; - %tmp.44 = const :locY; - symbol [ locY %tmp.44 52 99 103 const ]; - symbol [ WatchUi %tmp.45 52 105 112 ]; - %tmp.45 = getm $.Toybox.WatchUi; - symbol [ LAYOUT_VALIGN_BOTTOM %tmp.46 52 113 133 ]; - %tmp.46 = getv %tmp.45 :LAYOUT_VALIGN_BOTTOM; - %tmp.47 = dup %tmp.42; - %tmp.48 = aputv %tmp.47 %tmp.44 %tmp.46; - %tmp.50 = const :color; - symbol [ color %tmp.50 52 136 141 const ]; - symbol [ Graphics %tmp.51 52 143 151 ]; - %tmp.51 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.52 52 152 163 ]; - %tmp.52 = getv %tmp.51 :COLOR_WHITE; - %tmp.53 = dup %tmp.48; - %tmp.54 = aputv %tmp.53 %tmp.50 %tmp.52; - %tmp.27 = newc %tmp.30 (%tmp.54); - %tmp.55 = dup %tmp.24; - %tmp.56 = aputv %tmp.55 %tmp.26 %tmp.27; - %tmp.58 = const :pattern; - symbol [ pattern %tmp.58 53 13 20 const ]; - %tmp.59 = newa 1; - %tmp.60 = lgetv %factory.3; - symbol [ factory %tmp.60 53 25 32 ]; - %tmp.61 = dup %tmp.59; - %tmp.62 = aputv %tmp.61 0 %tmp.60; - %tmp.63 = dup %tmp.56; - %tmp.64 = aputv %tmp.63 %tmp.58 %tmp.62; - %tmp.66 = const :defaults; - symbol [ defaults %tmp.66 54 13 21 const ]; - %tmp.67 = newa 1; - %tmp.68 = lgetv %factory.3; - symbol [ factory %tmp.68 54 26 33 ]; - symbol [ getIndex %tmp.69 54 34 42 ]; - %tmp.69 = getv function %tmp.68 :getIndex; - %tmp.70 = lgetv %currentHeight.2; - symbol [ currentHeight %tmp.70 54 43 56 ]; - %tmp.71 = invoke %tmp.68 %tmp.69(%tmp.70); - %tmp.72 = dup %tmp.67; - %tmp.73 = aputv %tmp.72 0 %tmp.71; - %tmp.74 = dup %tmp.64; - %tmp.75 = aputv %tmp.74 %tmp.66 %tmp.73; - %tmp.20 = newc %tmp.23 (%tmp.75); - lputv %picker.4 %tmp.20; - symbol [ picker %picker.4 51 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 57 8 ] - symbol [ WatchUi %tmp.76 57 8 15 ]; - %tmp.76 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.77 57 16 24 ]; - %tmp.77 = getv function %tmp.76 :pushView; - %tmp.78 = lgetv %picker.4; - symbol [ picker %tmp.78 57 25 31 ]; - symbol [ ProfilePickerDelegate %tmp.82 57 37 58 ]; - %tmp.82 = getv ? :ProfilePickerDelegate; - %tmp.84 = const :prof_height; - symbol [ prof_height %tmp.84 57 60 71 const ]; - %tmp.79 = newc %tmp.82 (%tmp.84); - symbol [ WatchUi %tmp.85 57 74 81 ]; - %tmp.85 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.86 57 82 92 ]; - %tmp.86 = getv %tmp.85 :SLIDE_LEFT; - invoke %tmp.76 %tmp.77(%tmp.78, %tmp.79, %tmp.86); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_45_36_59_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 61; @symbol_functiondef = [speedPicker,61,13,24]; ] - function speedPicker() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_61_35_88_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 63 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_61_35_88_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_61_35_88_4_stop" ] - %app.1 = local; - symbol [ app %app.1 63 8 11 ]; - symbol [ Application %tmp.1 63 14 25 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 63 26 32 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 63 38 47 ]; - lputv %app.1 %tmp.4; - symbol [ app %app.1 63 8 11 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 64 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_61_35_88_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_61_35_88_4_stop" ] - %currentSpeed.2 = local; - symbol [ currentSpeed %currentSpeed.2 64 8 20 ]; - %tmp.5 = lgetv %app.1; - symbol [ app %tmp.5 64 23 26 ]; - symbol [ _userSpeed %tmp.6 64 27 37 ]; - %tmp.6 = getv %tmp.5 :_userSpeed; - lputv %currentSpeed.2 %tmp.6; - symbol [ currentSpeed %currentSpeed.2 64 8 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 67 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_67_4_69_4_if_stmt: - %tmp.7 = lgetv %currentSpeed.2; - symbol [ currentSpeed %tmp.7 67 8 20 ]; - %tmp.8 = null; - %tmp.9 = eq %tmp.7 %tmp.8; - bf %tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_67_4_69_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_67_4_69_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_67_30_69_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 68 8 ] - %tmp.10 = 10; - lputv %currentSpeed.2 %tmp.10; - symbol [ currentSpeed %currentSpeed.2 68 8 20 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_67_30_69_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_67_4_69_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_67_4_69_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 73 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_61_35_88_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_61_35_88_4_stop" ] - %factory.3 = local; - symbol [ factory %factory.3 73 8 15 ]; - symbol [ ProfilePickerFactory %tmp.14 73 22 42 ]; - %tmp.14 = getv ? :ProfilePickerFactory; - %tmp.15 = 5; - %tmp.16 = 30; - %tmp.17 = 1; - %tmp.18 = newd 1; - %tmp.20 = const :label; - symbol [ label %tmp.20 73 55 60 const ]; - %tmp.21 = " km/h"; - %tmp.22 = dup %tmp.18; - %tmp.23 = aputv %tmp.22 %tmp.20 %tmp.21; - %tmp.11 = newc %tmp.14 (%tmp.15, %tmp.16, %tmp.17, %tmp.23); - lputv %factory.3 %tmp.11; - symbol [ factory %factory.3 73 8 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 75 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_61_35_88_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_61_35_88_4_stop" ] - %picker.4 = local; - symbol [ picker %picker.4 75 8 14 ]; - symbol [ WatchUi %tmp.26 75 21 28 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ Picker %tmp.27 75 29 35 ]; - %tmp.27 = getv function ? %tmp.26 :Picker; - %tmp.28 = newd 3; - %tmp.30 = const :title; - symbol [ title %tmp.30 76 9 14 const ]; - symbol [ WatchUi %tmp.33 76 22 29 ]; - %tmp.33 = getm $.Toybox.WatchUi; - symbol [ Text %tmp.34 76 30 34 ]; - %tmp.34 = getv function ? %tmp.33 :Text; - %tmp.35 = newd 4; - %tmp.37 = const :text; - symbol [ text %tmp.37 77 13 17 const ]; - %tmp.38 = "Set Speed"; - %tmp.39 = dup %tmp.35; - %tmp.40 = aputv %tmp.39 %tmp.37 %tmp.38; - %tmp.42 = const :locX; - symbol [ locX %tmp.42 78 13 17 const ]; - symbol [ WatchUi %tmp.43 78 19 26 ]; - %tmp.43 = getm $.Toybox.WatchUi; - symbol [ LAYOUT_HALIGN_CENTER %tmp.44 78 27 47 ]; - %tmp.44 = getv %tmp.43 :LAYOUT_HALIGN_CENTER; - %tmp.45 = dup %tmp.40; - %tmp.46 = aputv %tmp.45 %tmp.42 %tmp.44; - %tmp.48 = const :locY; - symbol [ locY %tmp.48 79 13 17 const ]; - symbol [ WatchUi %tmp.49 79 19 26 ]; - %tmp.49 = getm $.Toybox.WatchUi; - symbol [ LAYOUT_VALIGN_BOTTOM %tmp.50 79 27 47 ]; - %tmp.50 = getv %tmp.49 :LAYOUT_VALIGN_BOTTOM; - %tmp.51 = dup %tmp.46; - %tmp.52 = aputv %tmp.51 %tmp.48 %tmp.50; - %tmp.54 = const :color; - symbol [ color %tmp.54 80 13 18 const ]; - symbol [ Graphics %tmp.55 80 20 28 ]; - %tmp.55 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.56 80 29 40 ]; - %tmp.56 = getv %tmp.55 :COLOR_WHITE; - %tmp.57 = dup %tmp.52; - %tmp.58 = aputv %tmp.57 %tmp.54 %tmp.56; - %tmp.31 = newc %tmp.34 (%tmp.58); - %tmp.59 = dup %tmp.28; - %tmp.60 = aputv %tmp.59 %tmp.30 %tmp.31; - %tmp.62 = const :pattern; - symbol [ pattern %tmp.62 82 9 16 const ]; - %tmp.63 = newa 1; - %tmp.64 = lgetv %factory.3; - symbol [ factory %tmp.64 82 21 28 ]; - %tmp.65 = dup %tmp.63; - %tmp.66 = aputv %tmp.65 0 %tmp.64; - %tmp.67 = dup %tmp.60; - %tmp.68 = aputv %tmp.67 %tmp.62 %tmp.66; - %tmp.70 = const :defaults; - symbol [ defaults %tmp.70 84 9 17 const ]; - %tmp.71 = newa 1; - %tmp.72 = lgetv %factory.3; - symbol [ factory %tmp.72 84 22 29 ]; - symbol [ getIndex %tmp.73 84 30 38 ]; - %tmp.73 = getv function %tmp.72 :getIndex; - %tmp.74 = lgetv %currentSpeed.2; - symbol [ currentSpeed %tmp.74 84 39 51 ]; - %tmp.75 = invoke %tmp.72 %tmp.73(%tmp.74); - %tmp.76 = dup %tmp.71; - %tmp.77 = aputv %tmp.76 0 %tmp.75; - %tmp.78 = dup %tmp.68; - %tmp.79 = aputv %tmp.78 %tmp.70 %tmp.77; - %tmp.24 = newc %tmp.27 (%tmp.79); - lputv %picker.4 %tmp.24; - symbol [ picker %picker.4 75 8 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 87 4 ] - symbol [ WatchUi %tmp.80 87 4 11 ]; - %tmp.80 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.81 87 12 20 ]; - %tmp.81 = getv function %tmp.80 :pushView; - %tmp.82 = lgetv %picker.4; - symbol [ picker %tmp.82 87 21 27 ]; - symbol [ ProfilePickerDelegate %tmp.86 87 33 54 ]; - %tmp.86 = getv ? :ProfilePickerDelegate; - %tmp.88 = const :prof_speed; - symbol [ prof_speed %tmp.88 87 56 66 const ]; - %tmp.83 = newc %tmp.86 (%tmp.88); - symbol [ WatchUi %tmp.89 87 69 76 ]; - %tmp.89 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.90 87 77 87 ]; - %tmp.90 = getv %tmp.89 :SLIDE_LEFT; - invoke %tmp.80 %tmp.81(%tmp.82, %tmp.83, %tmp.90); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_61_35_88_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 90; @symbol_functiondef = [experienceMenu,90,13,27]; ] - function experienceMenu() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_90_38_101_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 91 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_90_38_101_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_90_38_101_4_stop" ] - %menu.1 = local; - symbol [ menu %menu.1 91 12 16 ]; - symbol [ WatchUi %tmp.3 91 23 30 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.4 91 31 36 ]; - %tmp.4 = getv function ? %tmp.3 :Menu2; - %tmp.5 = newd 1; - %tmp.7 = const :title; - symbol [ title %tmp.7 92 13 18 const ]; - %tmp.8 = "Set Experience"; - %tmp.9 = dup %tmp.5; - %tmp.10 = aputv %tmp.9 %tmp.7 %tmp.8; - %tmp.1 = newc %tmp.4 (%tmp.10); - lputv %menu.1 %tmp.1; - symbol [ menu %menu.1 91 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 95 8 ] - %tmp.11 = lgetv %menu.1; - symbol [ menu %tmp.11 95 8 12 ]; - symbol [ addItem %tmp.12 95 13 20 ]; - %tmp.12 = getv function %tmp.11 :addItem; - symbol [ WatchUi %tmp.15 95 25 32 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.16 95 33 41 ]; - %tmp.16 = getv function ? %tmp.15 :MenuItem; - %tmp.17 = "Beginner"; - %tmp.18 = null; - %tmp.20 = const :exp_beginner; - symbol [ exp_beginner %tmp.20 95 61 73 const ]; - %tmp.21 = null; - %tmp.13 = newc %tmp.16 (%tmp.17, %tmp.18, %tmp.20, %tmp.21); - invoke %tmp.11 %tmp.12(%tmp.13); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 96 8 ] - %tmp.22 = lgetv %menu.1; - symbol [ menu %tmp.22 96 8 12 ]; - symbol [ addItem %tmp.23 96 13 20 ]; - %tmp.23 = getv function %tmp.22 :addItem; - symbol [ WatchUi %tmp.26 96 25 32 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.27 96 33 41 ]; - %tmp.27 = getv function ? %tmp.26 :MenuItem; - %tmp.28 = "Intermediate"; - %tmp.29 = null; - %tmp.31 = const :exp_intermediate; - symbol [ exp_intermediate %tmp.31 96 65 81 const ]; - %tmp.32 = null; - %tmp.24 = newc %tmp.27 (%tmp.28, %tmp.29, %tmp.31, %tmp.32); - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 97 8 ] - %tmp.33 = lgetv %menu.1; - symbol [ menu %tmp.33 97 8 12 ]; - symbol [ addItem %tmp.34 97 13 20 ]; - %tmp.34 = getv function %tmp.33 :addItem; - symbol [ WatchUi %tmp.37 97 25 32 ]; - %tmp.37 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.38 97 33 41 ]; - %tmp.38 = getv function ? %tmp.37 :MenuItem; - %tmp.39 = "Advanced"; - %tmp.40 = null; - %tmp.42 = const :exp_advanced; - symbol [ exp_advanced %tmp.42 97 61 73 const ]; - %tmp.43 = null; - %tmp.35 = newc %tmp.38 (%tmp.39, %tmp.40, %tmp.42, %tmp.43); - invoke %tmp.33 %tmp.34(%tmp.35); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 100 8 ] - symbol [ WatchUi %tmp.44 100 8 15 ]; - %tmp.44 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.45 100 16 24 ]; - %tmp.45 = getv function %tmp.44 :pushView; - %tmp.46 = lgetv %menu.1; - symbol [ menu %tmp.46 100 25 29 ]; - symbol [ SelectExperienceDelegate %tmp.50 100 35 59 ]; - %tmp.50 = getv ? :SelectExperienceDelegate; - %tmp.51 = lgetv %menu.1; - symbol [ menu %tmp.51 100 60 64 ]; - %tmp.47 = newc %tmp.50 (%tmp.51); - symbol [ WatchUi %tmp.52 100 67 74 ]; - %tmp.52 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.53 100 75 85 ]; - %tmp.53 = getv %tmp.52 :SLIDE_LEFT; - invoke %tmp.44 %tmp.45(%tmp.46, %tmp.47, %tmp.53); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_90_38_101_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 103; @symbol_functiondef = [genderMenu,103,13,23]; ] - function genderMenu() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_103_34_114_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 104 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_103_34_114_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_103_34_114_4_stop" ] - %menu.1 = local; - symbol [ menu %menu.1 104 12 16 ]; - symbol [ WatchUi %tmp.3 104 23 30 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.4 104 31 36 ]; - %tmp.4 = getv function ? %tmp.3 :Menu2; - %tmp.5 = newd 1; - %tmp.7 = const :title; - symbol [ title %tmp.7 105 13 18 const ]; - %tmp.8 = "Set Gender"; - %tmp.9 = dup %tmp.5; - %tmp.10 = aputv %tmp.9 %tmp.7 %tmp.8; - %tmp.1 = newc %tmp.4 (%tmp.10); - lputv %menu.1 %tmp.1; - symbol [ menu %menu.1 104 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 108 8 ] - %tmp.11 = lgetv %menu.1; - symbol [ menu %tmp.11 108 8 12 ]; - symbol [ addItem %tmp.12 108 13 20 ]; - %tmp.12 = getv function %tmp.11 :addItem; - symbol [ WatchUi %tmp.15 108 25 32 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.16 108 33 41 ]; - %tmp.16 = getv function ? %tmp.15 :MenuItem; - %tmp.17 = "Male"; - %tmp.18 = null; - %tmp.20 = const :user_male; - symbol [ user_male %tmp.20 108 57 66 const ]; - %tmp.21 = null; - %tmp.13 = newc %tmp.16 (%tmp.17, %tmp.18, %tmp.20, %tmp.21); - invoke %tmp.11 %tmp.12(%tmp.13); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 109 8 ] - %tmp.22 = lgetv %menu.1; - symbol [ menu %tmp.22 109 8 12 ]; - symbol [ addItem %tmp.23 109 13 20 ]; - %tmp.23 = getv function %tmp.22 :addItem; - symbol [ WatchUi %tmp.26 109 25 32 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.27 109 33 41 ]; - %tmp.27 = getv function ? %tmp.26 :MenuItem; - %tmp.28 = "Female"; - %tmp.29 = null; - %tmp.31 = const :user_female; - symbol [ user_female %tmp.31 109 59 70 const ]; - %tmp.32 = null; - %tmp.24 = newc %tmp.27 (%tmp.28, %tmp.29, %tmp.31, %tmp.32); - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 110 8 ] - %tmp.33 = lgetv %menu.1; - symbol [ menu %tmp.33 110 8 12 ]; - symbol [ addItem %tmp.34 110 13 20 ]; - %tmp.34 = getv function %tmp.33 :addItem; - symbol [ WatchUi %tmp.37 110 25 32 ]; - %tmp.37 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.38 110 33 41 ]; - %tmp.38 = getv function ? %tmp.37 :MenuItem; - %tmp.39 = "Other"; - %tmp.40 = null; - %tmp.42 = const :user_other; - symbol [ user_other %tmp.42 110 58 68 const ]; - %tmp.43 = null; - %tmp.35 = newc %tmp.38 (%tmp.39, %tmp.40, %tmp.42, %tmp.43); - invoke %tmp.33 %tmp.34(%tmp.35); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc" 113 8 ] - symbol [ WatchUi %tmp.44 113 8 15 ]; - %tmp.44 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.45 113 16 24 ]; - %tmp.45 = getv function %tmp.44 :pushView; - %tmp.46 = lgetv %menu.1; - symbol [ menu %tmp.46 113 25 29 ]; - symbol [ SelectGenderDelegate %tmp.50 113 35 55 ]; - %tmp.50 = getv ? :SelectGenderDelegate; - %tmp.51 = lgetv %menu.1; - symbol [ menu %tmp.51 113 56 60 ]; - %tmp.47 = newc %tmp.50 (%tmp.51); - symbol [ WatchUi %tmp.52 113 63 70 ]; - %tmp.52 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.53 113 71 81 ]; - %tmp.53 = getv %tmp.52 :SLIDE_LEFT; - invoke %tmp.44 %tmp.45(%tmp.46, %tmp.47, %tmp.53); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_ProfileDelegates_SelectProfileDelegate_mc_103_34_114_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\ProfileDelegates\SelectProfileDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/SelectCadenceDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/SelectCadenceDelegate.mir deleted file mode 100644 index 4247a25..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/SelectCadenceDelegate.mir +++ /dev/null @@ -1,628 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 5; @symbol_importdef<0> = [Toybox,5,7,13]; @symbol_importdef<1> = [Graphics,5,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 7; @symbol_classdef = [SelectCadenceDelegate,7,6,27]; @symbol_extends<0> = [WatchUi,7,36,43]; @symbol_extends<1> = [Menu2InputDelegate,7,44,62]; ] -class SelectCadenceDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 7; ] - { -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 10 8 ] - symbol [ Application %tmp.1 10 14 25 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 10 26 32 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 10 38 47 ]; - putv self :app %tmp.4; - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 7; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 9; @position = 16; @symbol_vardef = [_menu,9,16,21]; @symbol_type<0> = [WatchUi,9,25,32]; @symbol_type<1> = [Menu2,9,33,38]; ] - private - var _menu as WatchUi.Menu2; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 10; @position = 8; @symbol_vardef = [app,10,8,11]; ] - var app; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 12; @symbol_functiondef = [initialize,12,13,23]; @symbol_param<0> = [menu,12,24,28]; @symbol_param<0>_type<0> = [WatchUi,12,32,39]; @symbol_param<0>_type<1> = [Menu2,12,40,45]; ] - function initialize(menu as WatchUi.Menu2) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_12_47_15_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 13 8 ] - symbol [ Menu2InputDelegate %tmp.2 13 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 13 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 14 8 ] - %tmp.4 = lgetv %menu; - symbol [ menu %tmp.4 14 16 20 ]; - symbol [ _menu ? 14 8 13 ]; - putv self :_menu %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_12_47_15_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 17; @symbol_functiondef = [onSelect,17,13,21]; @symbol_param<0> = [item,17,22,26]; ] - function onSelect(item) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_17_36_34_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 18 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_17_36_34_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_17_36_34_4_stop" ] - %id.1 = local; - symbol [ id %id.1 18 12 14 ]; - %tmp.1 = lgetv %item; - symbol [ item %tmp.1 18 17 21 ]; - symbol [ getId %tmp.2 18 22 27 ]; - %tmp.2 = getv function %tmp.1 :getId; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %id.1 %tmp.3; - symbol [ id %id.1 18 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 20 8 ] - symbol [ System %tmp.4 20 8 14 ]; - %tmp.4 = getm $.Toybox.System; - symbol [ println %tmp.5 20 15 22 ]; - %tmp.5 = getv function %tmp.4 :println; - %tmp.6 = "[DEBUG] SelectCadenceDelegate onSelect called with id: "; - %tmp.7 = lgetv %id.1; - symbol [ id %tmp.7 20 83 85 ]; - %tmp.8 = add %tmp.6 %tmp.7; - invoke %tmp.4 %tmp.5(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 23 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_23_8_33_8_if_stmt: - %tmp.9 = lgetv %id.1; - symbol [ id %tmp.9 23 12 14 ]; - %tmp.11 = const :item_set_min; - symbol [ item_set_min %tmp.11 23 19 31 const ]; - %tmp.12 = eq %tmp.9 %tmp.11; - bf %tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_23_8_33_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_23_8_33_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_23_33_26_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 24 12 ] - symbol [ System %tmp.13 24 12 18 ]; - %tmp.13 = getm $.Toybox.System; - symbol [ println %tmp.14 24 19 26 ]; - %tmp.14 = getv function %tmp.13 :println; - %tmp.15 = "[DEBUG] Opening minCadencePicker"; - invoke %tmp.13 %tmp.14(%tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 25 12 ] - %tmp.16 = self; - symbol [ minCadencePicker %tmp.17 25 12 28 ]; - %tmp.17 = getv function %tmp.16 :minCadencePicker; - invoke %tmp.16 %tmp.17(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_23_33_26_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_23_8_33_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_23_8_33_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 27 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_27_13_33_8_if_stmt: - %tmp.18 = lgetv %id.1; - symbol [ id %tmp.18 27 17 19 ]; - %tmp.20 = const :item_set_max; - symbol [ item_set_max %tmp.20 27 24 36 const ]; - %tmp.21 = eq %tmp.18 %tmp.20; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_27_13_33_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_27_13_33_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_27_38_30_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 28 12 ] - symbol [ System %tmp.22 28 12 18 ]; - %tmp.22 = getm $.Toybox.System; - symbol [ println %tmp.23 28 19 26 ]; - %tmp.23 = getv function %tmp.22 :println; - %tmp.24 = "[DEBUG] Opening maxCadencePicker"; - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 29 12 ] - %tmp.25 = self; - symbol [ maxCadencePicker %tmp.26 29 12 28 ]; - %tmp.26 = getv function %tmp.25 :maxCadencePicker; - invoke %tmp.25 %tmp.26(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_27_38_30_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_27_13_33_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_27_13_33_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_31_13_33_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 32 12 ] - symbol [ System %tmp.27 32 12 18 ]; - %tmp.27 = getm $.Toybox.System; - symbol [ println %tmp.28 32 19 26 ]; - %tmp.28 = getv function %tmp.27 :println; - %tmp.29 = "[DEBUG] Unknown menu item id: "; - %tmp.30 = lgetv %id.1; - symbol [ id %tmp.30 32 62 64 ]; - %tmp.31 = add %tmp.29 %tmp.30; - invoke %tmp.27 %tmp.28(%tmp.31); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_31_13_33_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_27_13_33_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_23_8_33_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_17_36_34_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 36; @symbol_functiondef = [onMenuItem,36,13,23]; @symbol_param<0> = [item,36,24,28]; @symbol_param<0>_type<0> = [Symbol,36,32,38]; ] - function onMenuItem(item as Symbol) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_36_48_40_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 37 8 ] - symbol [ System %tmp.1 37 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 37 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[DEBUG] onMenuItem called with: "; - %tmp.4 = lgetv %item; - symbol [ item %tmp.4 37 60 64 ]; - %tmp.5 = add %tmp.3 %tmp.4; - invoke %tmp.1 %tmp.2(%tmp.5); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_36_48_40_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 43; @symbol_functiondef = [onBack,43,13,19]; ] - function onBack() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_43_30_46_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 44 8 ] - symbol [ System %tmp.1 44 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 44 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[DEBUG] SelectCadenceDelegate onBack called"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 45 8 ] - symbol [ WatchUi %tmp.4 45 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.5 45 16 23 ]; - %tmp.5 = getv function %tmp.4 :popView; - symbol [ WatchUi %tmp.6 45 24 31 ]; - %tmp.6 = getm $.Toybox.WatchUi; - symbol [ SLIDE_BLINK %tmp.7 45 32 43 ]; - %tmp.7 = getv %tmp.6 :SLIDE_BLINK; - invoke %tmp.4 %tmp.5(%tmp.7); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_43_30_46_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 48; @symbol_functiondef = [minCadencePicker,48,13,29]; ] - function minCadencePicker() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_48_40_79_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 49 8 ] - symbol [ System %tmp.1 49 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 49 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[DEBUG] minCadencePicker() started"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 51 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_48_40_79_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_48_40_79_4_stop" ] - %currentMin.1 = local; - symbol [ currentMin %currentMin.1 51 12 22 ]; - symbol [ app %tmp.5 51 25 28 ]; - %tmp.5 = getv ? :app; - symbol [ getMinCadence %tmp.6 51 29 42 ]; - %tmp.6 = getv function %tmp.5 :getMinCadence; - %tmp.7 = invoke %tmp.5 %tmp.6(); - lputv %currentMin.1 %tmp.7; - symbol [ currentMin %currentMin.1 51 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 52 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_52_8_52_52_if_stmt: - %tmp.8 = lgetv %currentMin.1; - symbol [ currentMin %tmp.8 52 12 22 ]; - %tmp.9 = null; - %tmp.10 = eq %tmp.8 %tmp.9; - bf %tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_52_8_52_52_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_52_8_52_52_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_52_32_52_52_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 52 34 ] - %tmp.11 = 120; - lputv %currentMin.1 %tmp.11; - symbol [ currentMin %currentMin.1 52 34 44 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_52_32_52_52_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_52_8_52_52_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_52_8_52_52_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 54 8 ] - symbol [ System %tmp.12 54 8 14 ]; - %tmp.12 = getm $.Toybox.System; - symbol [ println %tmp.13 54 15 22 ]; - %tmp.13 = getv function %tmp.12 :println; - %tmp.14 = "[DEBUG] Current min cadence: "; - %tmp.15 = lgetv %currentMin.1; - symbol [ currentMin %tmp.15 54 57 67 ]; - %tmp.16 = add %tmp.14 %tmp.15; - invoke %tmp.12 %tmp.13(%tmp.16); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 56 8 ] - try @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_beginTry @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_endTry @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_catch @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_finally; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_beginTry: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_12_75_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 58 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_12_75_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_12_75_8_stop" ] - %factory.2 = local; - symbol [ factory %factory.2 58 16 23 ]; - symbol [ ProfilePickerFactory %tmp.20 58 30 50 ]; - %tmp.20 = getv ? :ProfilePickerFactory; - %tmp.21 = 50; - %tmp.22 = 200; - %tmp.23 = 1; - %tmp.24 = newd 1; - %tmp.26 = const :label; - symbol [ label %tmp.26 58 65 70 const ]; - %tmp.27 = " spm"; - %tmp.28 = dup %tmp.24; - %tmp.29 = aputv %tmp.28 %tmp.26 %tmp.27; - %tmp.17 = newc %tmp.20 (%tmp.21, %tmp.22, %tmp.23, %tmp.29); - lputv %factory.2 %tmp.17; - symbol [ factory %factory.2 58 16 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 59 12 ] - symbol [ System %tmp.30 59 12 18 ]; - %tmp.30 = getm $.Toybox.System; - symbol [ println %tmp.31 59 19 26 ]; - %tmp.31 = getv function %tmp.30 :println; - %tmp.32 = "[DEBUG] ProfilePickerFactory created"; - invoke %tmp.30 %tmp.31(%tmp.32); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 61 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_12_75_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_12_75_8_stop" ] - %picker.3 = local; - symbol [ picker %picker.3 61 16 22 ]; - symbol [ WatchUi %tmp.35 61 29 36 ]; - %tmp.35 = getm $.Toybox.WatchUi; - symbol [ Picker %tmp.36 61 37 43 ]; - %tmp.36 = getv function ? %tmp.35 :Picker; - %tmp.37 = newd 3; - %tmp.39 = const :title; - symbol [ title %tmp.39 62 17 22 const ]; - symbol [ WatchUi %tmp.42 62 30 37 ]; - %tmp.42 = getm $.Toybox.WatchUi; - symbol [ Text %tmp.43 62 38 42 ]; - %tmp.43 = getv function ? %tmp.42 :Text; - %tmp.44 = newd 4; - %tmp.46 = const :text; - symbol [ text %tmp.46 63 21 25 const ]; - %tmp.47 = "Min Cadence"; - %tmp.48 = dup %tmp.44; - %tmp.49 = aputv %tmp.48 %tmp.46 %tmp.47; - %tmp.51 = const :locX; - symbol [ locX %tmp.51 64 21 25 const ]; - symbol [ WatchUi %tmp.52 64 27 34 ]; - %tmp.52 = getm $.Toybox.WatchUi; - symbol [ LAYOUT_HALIGN_CENTER %tmp.53 64 35 55 ]; - %tmp.53 = getv %tmp.52 :LAYOUT_HALIGN_CENTER; - %tmp.54 = dup %tmp.49; - %tmp.55 = aputv %tmp.54 %tmp.51 %tmp.53; - %tmp.57 = const :locY; - symbol [ locY %tmp.57 65 21 25 const ]; - symbol [ WatchUi %tmp.58 65 27 34 ]; - %tmp.58 = getm $.Toybox.WatchUi; - symbol [ LAYOUT_VALIGN_BOTTOM %tmp.59 65 35 55 ]; - %tmp.59 = getv %tmp.58 :LAYOUT_VALIGN_BOTTOM; - %tmp.60 = dup %tmp.55; - %tmp.61 = aputv %tmp.60 %tmp.57 %tmp.59; - %tmp.63 = const :color; - symbol [ color %tmp.63 66 21 26 const ]; - symbol [ Graphics %tmp.64 66 28 36 ]; - %tmp.64 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.65 66 37 48 ]; - %tmp.65 = getv %tmp.64 :COLOR_WHITE; - %tmp.66 = dup %tmp.61; - %tmp.67 = aputv %tmp.66 %tmp.63 %tmp.65; - %tmp.40 = newc %tmp.43 (%tmp.67); - %tmp.68 = dup %tmp.37; - %tmp.69 = aputv %tmp.68 %tmp.39 %tmp.40; - %tmp.71 = const :pattern; - symbol [ pattern %tmp.71 68 17 24 const ]; - %tmp.72 = newa 1; - %tmp.73 = lgetv %factory.2; - symbol [ factory %tmp.73 68 29 36 ]; - %tmp.74 = dup %tmp.72; - %tmp.75 = aputv %tmp.74 0 %tmp.73; - %tmp.76 = dup %tmp.69; - %tmp.77 = aputv %tmp.76 %tmp.71 %tmp.75; - %tmp.79 = const :defaults; - symbol [ defaults %tmp.79 69 17 25 const ]; - %tmp.80 = newa 1; - %tmp.81 = lgetv %factory.2; - symbol [ factory %tmp.81 69 30 37 ]; - symbol [ getIndex %tmp.82 69 38 46 ]; - %tmp.82 = getv function %tmp.81 :getIndex; - %tmp.83 = lgetv %currentMin.1; - symbol [ currentMin %tmp.83 69 47 57 ]; - %tmp.84 = invoke %tmp.81 %tmp.82(%tmp.83); - %tmp.85 = dup %tmp.80; - %tmp.86 = aputv %tmp.85 0 %tmp.84; - %tmp.87 = dup %tmp.77; - %tmp.88 = aputv %tmp.87 %tmp.79 %tmp.86; - %tmp.33 = newc %tmp.36 (%tmp.88); - lputv %picker.3 %tmp.33; - symbol [ picker %picker.3 61 16 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 71 12 ] - symbol [ System %tmp.89 71 12 18 ]; - %tmp.89 = getm $.Toybox.System; - symbol [ println %tmp.90 71 19 26 ]; - %tmp.90 = getv function %tmp.89 :println; - %tmp.91 = "[DEBUG] Picker created"; - invoke %tmp.89 %tmp.90(%tmp.91); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 73 12 ] - symbol [ WatchUi %tmp.92 73 12 19 ]; - %tmp.92 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.93 73 20 28 ]; - %tmp.93 = getv function %tmp.92 :pushView; - %tmp.94 = lgetv %picker.3; - symbol [ picker %tmp.94 73 29 35 ]; - symbol [ CadenceRangePickerDelegate %tmp.98 73 41 67 ]; - %tmp.98 = getv ? :CadenceRangePickerDelegate; - %tmp.100 = const :cadence_min; - symbol [ cadence_min %tmp.100 73 69 80 const ]; - symbol [ _menu %tmp.102 73 82 87 ]; - %tmp.102 = getv ? :_menu; - %tmp.95 = newc %tmp.98 (%tmp.100, %tmp.102); - symbol [ WatchUi %tmp.103 73 90 97 ]; - %tmp.103 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.104 73 98 108 ]; - %tmp.104 = getv %tmp.103 :SLIDE_LEFT; - invoke %tmp.92 %tmp.93(%tmp.94, %tmp.95, %tmp.104); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 74 12 ] - symbol [ System %tmp.105 74 12 18 ]; - %tmp.105 = getm $.Toybox.System; - symbol [ println %tmp.106 74 19 26 ]; - %tmp.106 = getv function %tmp.105 :println; - %tmp.107 = "[DEBUG] Picker pushed to view"; - invoke %tmp.105 %tmp.106(%tmp.107); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_12_75_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_endTry: - jsr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_finally; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_catch: - %tmp.108 = exception; - push %tmp.108; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 76 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_catch" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_76_8_78_8_end" ] - %ex.4 = local; - symbol [ ex %ex.4 76 15 17 ]; - %tmp.109 = dup %tmp.108; - lputv %ex.4 %tmp.109; - symbol [ ex %ex.4 76 15 17 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_76_19_78_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 77 12 ] - symbol [ System %tmp.110 77 12 18 ]; - %tmp.110 = getm $.Toybox.System; - symbol [ println %tmp.111 77 19 26 ]; - %tmp.111 = getv function %tmp.110 :println; - %tmp.112 = "[ERROR] Exception in minCadencePicker: "; - %tmp.113 = lgetv %ex.4; - symbol [ ex %tmp.113 77 71 73 ]; - symbol [ getErrorMessage %tmp.114 77 74 89 ]; - %tmp.114 = getv function %tmp.113 :getErrorMessage; - %tmp.115 = invoke %tmp.113 %tmp.114(); - %tmp.116 = add %tmp.112 %tmp.115; - invoke %tmp.110 %tmp.111(%tmp.116); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_76_19_78_8_stop: - jsr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_finally; - pop; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_76_8_78_8_end: - try @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_catch @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_76_8_78_8_end @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_76_8_78_8_end @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_finally; - jsr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_finally; - throw %tmp.108; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_finally: - jsrret; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_56_8_78_8_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_48_40_79_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 81; @symbol_functiondef = [maxCadencePicker,81,13,29]; ] - function maxCadencePicker() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_81_40_112_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 82 8 ] - symbol [ System %tmp.1 82 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 82 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[DEBUG] maxCadencePicker() started"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 84 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_81_40_112_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_81_40_112_4_stop" ] - %currentMax.1 = local; - symbol [ currentMax %currentMax.1 84 12 22 ]; - symbol [ app %tmp.5 84 25 28 ]; - %tmp.5 = getv ? :app; - symbol [ getMaxCadence %tmp.6 84 29 42 ]; - %tmp.6 = getv function %tmp.5 :getMaxCadence; - %tmp.7 = invoke %tmp.5 %tmp.6(); - lputv %currentMax.1 %tmp.7; - symbol [ currentMax %currentMax.1 84 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 85 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_85_8_85_52_if_stmt: - %tmp.8 = lgetv %currentMax.1; - symbol [ currentMax %tmp.8 85 12 22 ]; - %tmp.9 = null; - %tmp.10 = eq %tmp.8 %tmp.9; - bf %tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_85_8_85_52_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_85_8_85_52_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_85_32_85_52_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 85 34 ] - %tmp.11 = 150; - lputv %currentMax.1 %tmp.11; - symbol [ currentMax %currentMax.1 85 34 44 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_85_32_85_52_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_85_8_85_52_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_85_8_85_52_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 87 8 ] - symbol [ System %tmp.12 87 8 14 ]; - %tmp.12 = getm $.Toybox.System; - symbol [ println %tmp.13 87 15 22 ]; - %tmp.13 = getv function %tmp.12 :println; - %tmp.14 = "[DEBUG] Current max cadence: "; - %tmp.15 = lgetv %currentMax.1; - symbol [ currentMax %tmp.15 87 57 67 ]; - %tmp.16 = add %tmp.14 %tmp.15; - invoke %tmp.12 %tmp.13(%tmp.16); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 89 8 ] - try @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_beginTry @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_endTry @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_catch @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_finally; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_beginTry: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_12_108_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 91 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_12_108_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_12_108_8_stop" ] - %factory.2 = local; - symbol [ factory %factory.2 91 16 23 ]; - symbol [ ProfilePickerFactory %tmp.20 91 30 50 ]; - %tmp.20 = getv ? :ProfilePickerFactory; - %tmp.21 = 50; - %tmp.22 = 200; - %tmp.23 = 1; - %tmp.24 = newd 1; - %tmp.26 = const :label; - symbol [ label %tmp.26 91 65 70 const ]; - %tmp.27 = " spm"; - %tmp.28 = dup %tmp.24; - %tmp.29 = aputv %tmp.28 %tmp.26 %tmp.27; - %tmp.17 = newc %tmp.20 (%tmp.21, %tmp.22, %tmp.23, %tmp.29); - lputv %factory.2 %tmp.17; - symbol [ factory %factory.2 91 16 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 92 12 ] - symbol [ System %tmp.30 92 12 18 ]; - %tmp.30 = getm $.Toybox.System; - symbol [ println %tmp.31 92 19 26 ]; - %tmp.31 = getv function %tmp.30 :println; - %tmp.32 = "[DEBUG] ProfilePickerFactory created"; - invoke %tmp.30 %tmp.31(%tmp.32); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 94 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_12_108_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_12_108_8_stop" ] - %picker.3 = local; - symbol [ picker %picker.3 94 16 22 ]; - symbol [ WatchUi %tmp.35 94 29 36 ]; - %tmp.35 = getm $.Toybox.WatchUi; - symbol [ Picker %tmp.36 94 37 43 ]; - %tmp.36 = getv function ? %tmp.35 :Picker; - %tmp.37 = newd 3; - %tmp.39 = const :title; - symbol [ title %tmp.39 95 17 22 const ]; - symbol [ WatchUi %tmp.42 95 30 37 ]; - %tmp.42 = getm $.Toybox.WatchUi; - symbol [ Text %tmp.43 95 38 42 ]; - %tmp.43 = getv function ? %tmp.42 :Text; - %tmp.44 = newd 4; - %tmp.46 = const :text; - symbol [ text %tmp.46 96 21 25 const ]; - %tmp.47 = "Max Cadence"; - %tmp.48 = dup %tmp.44; - %tmp.49 = aputv %tmp.48 %tmp.46 %tmp.47; - %tmp.51 = const :locX; - symbol [ locX %tmp.51 97 21 25 const ]; - symbol [ WatchUi %tmp.52 97 27 34 ]; - %tmp.52 = getm $.Toybox.WatchUi; - symbol [ LAYOUT_HALIGN_CENTER %tmp.53 97 35 55 ]; - %tmp.53 = getv %tmp.52 :LAYOUT_HALIGN_CENTER; - %tmp.54 = dup %tmp.49; - %tmp.55 = aputv %tmp.54 %tmp.51 %tmp.53; - %tmp.57 = const :locY; - symbol [ locY %tmp.57 98 21 25 const ]; - symbol [ WatchUi %tmp.58 98 27 34 ]; - %tmp.58 = getm $.Toybox.WatchUi; - symbol [ LAYOUT_VALIGN_BOTTOM %tmp.59 98 35 55 ]; - %tmp.59 = getv %tmp.58 :LAYOUT_VALIGN_BOTTOM; - %tmp.60 = dup %tmp.55; - %tmp.61 = aputv %tmp.60 %tmp.57 %tmp.59; - %tmp.63 = const :color; - symbol [ color %tmp.63 99 21 26 const ]; - symbol [ Graphics %tmp.64 99 28 36 ]; - %tmp.64 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.65 99 37 48 ]; - %tmp.65 = getv %tmp.64 :COLOR_WHITE; - %tmp.66 = dup %tmp.61; - %tmp.67 = aputv %tmp.66 %tmp.63 %tmp.65; - %tmp.40 = newc %tmp.43 (%tmp.67); - %tmp.68 = dup %tmp.37; - %tmp.69 = aputv %tmp.68 %tmp.39 %tmp.40; - %tmp.71 = const :pattern; - symbol [ pattern %tmp.71 101 17 24 const ]; - %tmp.72 = newa 1; - %tmp.73 = lgetv %factory.2; - symbol [ factory %tmp.73 101 29 36 ]; - %tmp.74 = dup %tmp.72; - %tmp.75 = aputv %tmp.74 0 %tmp.73; - %tmp.76 = dup %tmp.69; - %tmp.77 = aputv %tmp.76 %tmp.71 %tmp.75; - %tmp.79 = const :defaults; - symbol [ defaults %tmp.79 102 17 25 const ]; - %tmp.80 = newa 1; - %tmp.81 = lgetv %factory.2; - symbol [ factory %tmp.81 102 30 37 ]; - symbol [ getIndex %tmp.82 102 38 46 ]; - %tmp.82 = getv function %tmp.81 :getIndex; - %tmp.83 = lgetv %currentMax.1; - symbol [ currentMax %tmp.83 102 47 57 ]; - %tmp.84 = invoke %tmp.81 %tmp.82(%tmp.83); - %tmp.85 = dup %tmp.80; - %tmp.86 = aputv %tmp.85 0 %tmp.84; - %tmp.87 = dup %tmp.77; - %tmp.88 = aputv %tmp.87 %tmp.79 %tmp.86; - %tmp.33 = newc %tmp.36 (%tmp.88); - lputv %picker.3 %tmp.33; - symbol [ picker %picker.3 94 16 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 104 12 ] - symbol [ System %tmp.89 104 12 18 ]; - %tmp.89 = getm $.Toybox.System; - symbol [ println %tmp.90 104 19 26 ]; - %tmp.90 = getv function %tmp.89 :println; - %tmp.91 = "[DEBUG] Picker created"; - invoke %tmp.89 %tmp.90(%tmp.91); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 106 12 ] - symbol [ WatchUi %tmp.92 106 12 19 ]; - %tmp.92 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.93 106 20 28 ]; - %tmp.93 = getv function %tmp.92 :pushView; - %tmp.94 = lgetv %picker.3; - symbol [ picker %tmp.94 106 29 35 ]; - symbol [ CadenceRangePickerDelegate %tmp.98 106 41 67 ]; - %tmp.98 = getv ? :CadenceRangePickerDelegate; - %tmp.100 = const :cadence_max; - symbol [ cadence_max %tmp.100 106 69 80 const ]; - symbol [ _menu %tmp.102 106 82 87 ]; - %tmp.102 = getv ? :_menu; - %tmp.95 = newc %tmp.98 (%tmp.100, %tmp.102); - symbol [ WatchUi %tmp.103 106 90 97 ]; - %tmp.103 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.104 106 98 108 ]; - %tmp.104 = getv %tmp.103 :SLIDE_LEFT; - invoke %tmp.92 %tmp.93(%tmp.94, %tmp.95, %tmp.104); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 107 12 ] - symbol [ System %tmp.105 107 12 18 ]; - %tmp.105 = getm $.Toybox.System; - symbol [ println %tmp.106 107 19 26 ]; - %tmp.106 = getv function %tmp.105 :println; - %tmp.107 = "[DEBUG] Picker pushed to view"; - invoke %tmp.105 %tmp.106(%tmp.107); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_12_108_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_endTry: - jsr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_finally; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_catch: - %tmp.108 = exception; - push %tmp.108; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 109 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_catch" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_109_8_111_8_end" ] - %ex.4 = local; - symbol [ ex %ex.4 109 15 17 ]; - %tmp.109 = dup %tmp.108; - lputv %ex.4 %tmp.109; - symbol [ ex %ex.4 109 15 17 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_109_19_111_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc" 110 12 ] - symbol [ System %tmp.110 110 12 18 ]; - %tmp.110 = getm $.Toybox.System; - symbol [ println %tmp.111 110 19 26 ]; - %tmp.111 = getv function %tmp.110 :println; - %tmp.112 = "[ERROR] Exception in maxCadencePicker: "; - %tmp.113 = lgetv %ex.4; - symbol [ ex %tmp.113 110 71 73 ]; - symbol [ getErrorMessage %tmp.114 110 74 89 ]; - %tmp.114 = getv function %tmp.113 :getErrorMessage; - %tmp.115 = invoke %tmp.113 %tmp.114(); - %tmp.116 = add %tmp.112 %tmp.115; - invoke %tmp.110 %tmp.111(%tmp.116); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_109_19_111_8_stop: - jsr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_finally; - pop; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_109_8_111_8_end: - try @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_catch @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_109_8_111_8_end @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_109_8_111_8_end @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_finally; - jsr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_finally; - throw %tmp.108; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_finally: - jsrret; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_89_8_111_8_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SelectCadenceDelegate_mc_81_40_112_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SelectCadenceDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegate.mir deleted file mode 100644 index 5851e17..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegate.mir +++ /dev/null @@ -1,158 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 6; @symbol_classdef = [SettingsMenuDelegate,6,6,26]; @symbol_extends<0> = [WatchUi,6,35,42]; @symbol_extends<1> = [BehaviorDelegate,6,43,59]; ] -class SettingsMenuDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 6; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 8; @symbol_functiondef = [initialize,8,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegate_mc_8_26_10_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 9 8 ] - symbol [ WatchUi %tmp.1 9 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ BehaviorDelegate %tmp.2 9 16 32 ]; - %tmp.2 = getv %tmp.1 :BehaviorDelegate; - symbol [ initialize %tmp.3 9 33 43 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegate_mc_8_26_10_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 13; @symbol_functiondef = [onBack,13,13,19]; @symbol_return<0> = [Boolean,13,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegate_mc_13_32_18_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 14 8 ] - symbol [ System %tmp.1 14 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 14 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Back pressed: Returning to main view"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 16 8 ] - symbol [ WatchUi %tmp.4 16 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 16 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ SimpleView %tmp.9 16 29 39 ]; - %tmp.9 = getv ? :SimpleView; - %tmp.6 = newc %tmp.9 (); - symbol [ SimpleViewDelegate %tmp.13 16 47 65 ]; - %tmp.13 = getv ? :SimpleViewDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 16 69 76 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 16 77 87 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 17 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegate_mc_13_32_18_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 21; @symbol_functiondef = [onSelect,21,13,21]; @symbol_return<0> = [Boolean,21,27,34]; ] - function onSelect() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegate_mc_21_35_27_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 22 8 ] - symbol [ System %tmp.1 22 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 22 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Select/Tap pressed: Opening cadence settings"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 25 8 ] - symbol [ WatchUi %tmp.4 25 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 25 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ CadenceSettingsMenuView %tmp.9 25 29 52 ]; - %tmp.9 = getv ? :CadenceSettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ CadenceSettingsMenuDelegate %tmp.13 25 60 87 ]; - %tmp.13 = getv ? :CadenceSettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 25 91 98 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.15 25 99 107 ]; - %tmp.15 = getv %tmp.14 :SLIDE_UP; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 26 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegate_mc_21_35_27_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 30; @symbol_functiondef = [onNextPage,30,13,23]; @symbol_return<0> = [Boolean,30,29,36]; ] - function onNextPage() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegate_mc_30_37_37_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 31 8 ] - symbol [ System %tmp.1 31 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 31 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Down button pressed"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 34 8 ] - symbol [ WatchUi %tmp.4 34 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 34 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ CadenceSettingsMenuView %tmp.9 34 29 52 ]; - %tmp.9 = getv ? :CadenceSettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ CadenceSettingsMenuDelegate %tmp.13 34 60 87 ]; - %tmp.13 = getv ? :CadenceSettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 34 91 98 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.15 34 99 107 ]; - %tmp.15 = getv %tmp.14 :SLIDE_UP; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 36 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegate_mc_30_37_37_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 40; @symbol_functiondef = [onPreviousPage,40,13,27]; @symbol_return<0> = [Boolean,40,33,40]; ] - function onPreviousPage() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegate_mc_40_41_47_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 41 8 ] - symbol [ System %tmp.1 41 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 41 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Up button pressed"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 44 8 ] - symbol [ WatchUi %tmp.4 44 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 44 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ SummarySettingsMenuView %tmp.9 44 29 52 ]; - %tmp.9 = getv ? :SummarySettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ SummarySettingsMenuDelegate %tmp.13 44 60 87 ]; - %tmp.13 = getv ? :SummarySettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 44 91 98 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 44 99 109 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc" 46 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegate_mc_40_41_47_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/BarChartSettingsMenuDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/BarChartSettingsMenuDelegate.mir deleted file mode 100644 index d430248..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/BarChartSettingsMenuDelegate.mir +++ /dev/null @@ -1,248 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 6; @symbol_classdef = [BarChartSettingsMenuDelegate,6,6,34]; @symbol_extends<0> = [WatchUi,6,43,50]; @symbol_extends<1> = [BehaviorDelegate,6,51,67]; ] -class BarChartSettingsMenuDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 6; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 8; @symbol_functiondef = [initialize,8,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_8_26_10_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 9 8 ] - symbol [ BehaviorDelegate %tmp.2 9 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 9 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_8_26_10_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 13; @symbol_functiondef = [onBack,13,13,19]; @symbol_return<0> = [Boolean,13,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_13_32_18_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 14 8 ] - symbol [ System %tmp.1 14 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 14 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Back pressed: Returning to main view"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 16 8 ] - symbol [ WatchUi %tmp.4 16 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 16 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ SimpleView %tmp.9 16 29 39 ]; - %tmp.9 = getv ? :SimpleView; - %tmp.6 = newc %tmp.9 (); - symbol [ SimpleViewDelegate %tmp.13 16 47 65 ]; - %tmp.13 = getv ? :SimpleViewDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 16 69 76 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 16 77 87 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 17 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_13_32_18_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 21; @symbol_functiondef = [onSelect,21,13,21]; @symbol_return<0> = [Boolean,21,27,34]; ] - function onSelect() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_21_35_27_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 22 8 ] - symbol [ System %tmp.1 22 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 22 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Select/Tap pressed: Opening bar chart settings"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 25 8 ] - %tmp.4 = self; - symbol [ pushBarChartMenu %tmp.5 25 8 24 ]; - %tmp.5 = getv function %tmp.4 :pushBarChartMenu; - invoke %tmp.4 %tmp.5(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 26 8 ] - %tmp.6 = true; - ret %tmp.6; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_21_35_27_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 30; @symbol_functiondef = [onNextPage,30,13,23]; @symbol_return<0> = [Boolean,30,29,36]; ] - function onNextPage() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_30_37_37_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 31 8 ] - symbol [ System %tmp.1 31 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 31 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Down button pressed"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 34 8 ] - symbol [ WatchUi %tmp.4 34 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 34 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ SummarySettingsMenuView %tmp.9 34 29 52 ]; - %tmp.9 = getv ? :SummarySettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ SummarySettingsMenuDelegate %tmp.13 34 60 87 ]; - %tmp.13 = getv ? :SummarySettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 34 91 98 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.15 34 99 107 ]; - %tmp.15 = getv %tmp.14 :SLIDE_UP; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 36 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_30_37_37_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 40; @symbol_functiondef = [onPreviousPage,40,13,27]; @symbol_return<0> = [Boolean,40,33,40]; ] - function onPreviousPage() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_40_41_47_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 41 8 ] - symbol [ System %tmp.1 41 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 41 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Up button pressed"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 44 8 ] - symbol [ WatchUi %tmp.4 44 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 44 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ CadenceSettingsMenuView %tmp.9 44 29 52 ]; - %tmp.9 = getv ? :CadenceSettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ CadenceSettingsMenuDelegate %tmp.13 44 60 87 ]; - %tmp.13 = getv ? :CadenceSettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 44 91 98 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 44 99 109 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 46 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_40_41_47_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 50; @symbol_functiondef = [pushBarChartMenu,50,13,29]; ] - function pushBarChartMenu() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_50_40_62_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 51 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_50_40_62_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_50_40_62_4_stop" ] - %menu.1 = local; - symbol [ menu %menu.1 51 12 16 ]; - symbol [ WatchUi %tmp.3 51 23 30 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.4 51 31 36 ]; - %tmp.4 = getv function ? %tmp.3 :Menu2; - %tmp.5 = newd 1; - %tmp.7 = const :title; - symbol [ title %tmp.7 52 13 18 const ]; - %tmp.8 = "Bar Chart Length:"; - %tmp.9 = dup %tmp.5; - %tmp.10 = aputv %tmp.9 %tmp.7 %tmp.8; - %tmp.1 = newc %tmp.4 (%tmp.10); - lputv %menu.1 %tmp.1; - symbol [ menu %menu.1 51 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 55 8 ] - %tmp.11 = lgetv %menu.1; - symbol [ menu %tmp.11 55 8 12 ]; - symbol [ addItem %tmp.12 55 13 20 ]; - %tmp.12 = getv function %tmp.11 :addItem; - symbol [ WatchUi %tmp.15 55 25 32 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.16 55 33 41 ]; - %tmp.16 = getv function ? %tmp.15 :MenuItem; - %tmp.17 = "15 Minute"; - %tmp.18 = null; - %tmp.20 = const :chart_15m; - symbol [ chart_15m %tmp.20 55 62 71 const ]; - %tmp.21 = null; - %tmp.13 = newc %tmp.16 (%tmp.17, %tmp.18, %tmp.20, %tmp.21); - invoke %tmp.11 %tmp.12(%tmp.13); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 56 8 ] - %tmp.22 = lgetv %menu.1; - symbol [ menu %tmp.22 56 8 12 ]; - symbol [ addItem %tmp.23 56 13 20 ]; - %tmp.23 = getv function %tmp.22 :addItem; - symbol [ WatchUi %tmp.26 56 25 32 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.27 56 33 41 ]; - %tmp.27 = getv function ? %tmp.26 :MenuItem; - %tmp.28 = "30 Minute"; - %tmp.29 = null; - %tmp.31 = const :chart_30m; - symbol [ chart_30m %tmp.31 56 62 71 const ]; - %tmp.32 = null; - %tmp.24 = newc %tmp.27 (%tmp.28, %tmp.29, %tmp.31, %tmp.32); - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 57 8 ] - %tmp.33 = lgetv %menu.1; - symbol [ menu %tmp.33 57 8 12 ]; - symbol [ addItem %tmp.34 57 13 20 ]; - %tmp.34 = getv function %tmp.33 :addItem; - symbol [ WatchUi %tmp.37 57 25 32 ]; - %tmp.37 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.38 57 33 41 ]; - %tmp.38 = getv function ? %tmp.37 :MenuItem; - %tmp.39 = "1 Hour"; - %tmp.40 = null; - %tmp.42 = const :chart_1h; - symbol [ chart_1h %tmp.42 57 59 67 const ]; - %tmp.43 = null; - %tmp.35 = newc %tmp.38 (%tmp.39, %tmp.40, %tmp.42, %tmp.43); - invoke %tmp.33 %tmp.34(%tmp.35); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 58 8 ] - %tmp.44 = lgetv %menu.1; - symbol [ menu %tmp.44 58 8 12 ]; - symbol [ addItem %tmp.45 58 13 20 ]; - %tmp.45 = getv function %tmp.44 :addItem; - symbol [ WatchUi %tmp.48 58 25 32 ]; - %tmp.48 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.49 58 33 41 ]; - %tmp.49 = getv function ? %tmp.48 :MenuItem; - %tmp.50 = "2 Hour"; - %tmp.51 = null; - %tmp.53 = const :chart_2h; - symbol [ chart_2h %tmp.53 58 59 67 const ]; - %tmp.54 = null; - %tmp.46 = newc %tmp.49 (%tmp.50, %tmp.51, %tmp.53, %tmp.54); - invoke %tmp.44 %tmp.45(%tmp.46); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc" 61 8 ] - symbol [ WatchUi %tmp.55 61 8 15 ]; - %tmp.55 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.56 61 16 24 ]; - %tmp.56 = getv function %tmp.55 :pushView; - %tmp.57 = lgetv %menu.1; - symbol [ menu %tmp.57 61 25 29 ]; - symbol [ SelectBarChartDelegate %tmp.61 61 35 57 ]; - %tmp.61 = getv ? :SelectBarChartDelegate; - %tmp.62 = lgetv %menu.1; - symbol [ menu %tmp.62 61 58 62 ]; - %tmp.58 = newc %tmp.61 (%tmp.62); - symbol [ WatchUi %tmp.63 61 65 72 ]; - %tmp.63 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.64 61 73 83 ]; - %tmp.64 = getv %tmp.63 :SLIDE_LEFT; - invoke %tmp.55 %tmp.56(%tmp.57, %tmp.58, %tmp.64); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_BarChartSettingsMenuDelegate_mc_50_40_62_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\BarChartSettingsMenuDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/CadenceSettingsMenuDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/CadenceSettingsMenuDelegate.mir deleted file mode 100644 index b1ab4d3..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/CadenceSettingsMenuDelegate.mir +++ /dev/null @@ -1,296 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 6; @symbol_classdef = [CadenceSettingsMenuDelegate,6,6,33]; @symbol_extends<0> = [WatchUi,6,42,49]; @symbol_extends<1> = [BehaviorDelegate,6,50,66]; ] -class CadenceSettingsMenuDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 6; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 8; @symbol_functiondef = [initialize,8,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_8_26_10_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 9 8 ] - symbol [ BehaviorDelegate %tmp.2 9 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 9 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_8_26_10_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 13; @symbol_functiondef = [onBack,13,13,19]; @symbol_return<0> = [Boolean,13,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_13_33_18_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 14 8 ] - symbol [ System %tmp.1 14 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 14 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Back pressed: Returning to main view"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 16 8 ] - symbol [ WatchUi %tmp.4 16 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 16 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ SimpleView %tmp.9 16 29 39 ]; - %tmp.9 = getv ? :SimpleView; - %tmp.6 = newc %tmp.9 (); - symbol [ SimpleViewDelegate %tmp.13 16 47 65 ]; - %tmp.13 = getv ? :SimpleViewDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 16 69 76 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 16 77 87 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 17 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_13_33_18_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 21; @symbol_functiondef = [onSelect,21,13,21]; @symbol_return<0> = [Boolean,21,27,34]; ] - function onSelect() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_21_35_29_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 22 8 ] - symbol [ System %tmp.1 22 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 22 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Select pressed: Opening CadenceMinView"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 23 8 ] - symbol [ WatchUi %tmp.4 23 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.5 23 16 28 ]; - %tmp.5 = getv function %tmp.4 :switchToView; - symbol [ CadenceMinView %tmp.9 24 16 30 ]; - %tmp.9 = getv ? :CadenceMinView; - %tmp.6 = newc %tmp.9 (); - symbol [ CadenceMinDelegate %tmp.13 25 16 34 ]; - %tmp.13 = getv ? :CadenceMinDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 26 12 19 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.15 26 20 28 ]; - %tmp.15 = getv %tmp.14 :SLIDE_UP; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 28 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_21_35_29_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 32; @symbol_functiondef = [onNextPage,32,13,23]; @symbol_return<0> = [Boolean,32,29,36]; ] - function onNextPage() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_32_37_39_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 33 8 ] - symbol [ System %tmp.1 33 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 33 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Down button pressed"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 36 8 ] - symbol [ WatchUi %tmp.4 36 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 36 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ BarChartSettingsMenuView %tmp.9 36 29 53 ]; - %tmp.9 = getv ? :BarChartSettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ BarChartSettingsMenuDelegate %tmp.13 36 61 89 ]; - %tmp.13 = getv ? :BarChartSettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 36 93 100 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.15 36 101 109 ]; - %tmp.15 = getv %tmp.14 :SLIDE_UP; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 38 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_32_37_39_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 42; @symbol_functiondef = [onPreviousPage,42,13,27]; @symbol_return<0> = [Boolean,42,33,40]; ] - function onPreviousPage() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_42_41_49_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 43 8 ] - symbol [ System %tmp.1 43 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 43 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Up button pressed"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 46 8 ] - symbol [ WatchUi %tmp.4 46 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 46 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ SummarySettingsMenuView %tmp.9 46 29 52 ]; - %tmp.9 = getv ? :SummarySettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ SummarySettingsMenuDelegate %tmp.13 46 60 87 ]; - %tmp.13 = getv ? :SummarySettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 46 91 98 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 46 99 109 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 48 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_42_41_49_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 52; @symbol_functiondef = [pushCadenceMenu,52,13,28]; ] - function pushCadenceMenu() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_52_39_68_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 55 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_52_39_68_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_52_39_68_4_stop" ] - %app.1 = local; - symbol [ app %app.1 55 12 15 ]; - symbol [ Application %tmp.1 55 18 29 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 55 30 36 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 55 42 51 ]; - lputv %app.1 %tmp.4; - symbol [ app %app.1 55 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 56 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_52_39_68_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_52_39_68_4_stop" ] - %minCadence.2 = local; - symbol [ minCadence %minCadence.2 56 12 22 ]; - %tmp.5 = lgetv %app.1; - symbol [ app %tmp.5 56 25 28 ]; - symbol [ getMinCadence %tmp.6 56 29 42 ]; - %tmp.6 = getv function %tmp.5 :getMinCadence; - %tmp.7 = invoke %tmp.5 %tmp.6(); - lputv %minCadence.2 %tmp.7; - symbol [ minCadence %minCadence.2 56 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 57 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_52_39_68_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_52_39_68_4_stop" ] - %maxCadence.3 = local; - symbol [ maxCadence %maxCadence.3 57 12 22 ]; - %tmp.8 = lgetv %app.1; - symbol [ app %tmp.8 57 25 28 ]; - symbol [ getMaxCadence %tmp.9 57 29 42 ]; - %tmp.9 = getv function %tmp.8 :getMaxCadence; - %tmp.10 = invoke %tmp.8 %tmp.9(); - lputv %maxCadence.3 %tmp.10; - symbol [ maxCadence %maxCadence.3 57 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 59 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_52_39_68_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_52_39_68_4_stop" ] - %menu.4 = local; - symbol [ menu %menu.4 59 12 16 ]; - symbol [ WatchUi %tmp.13 59 23 30 ]; - %tmp.13 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.14 59 31 36 ]; - %tmp.14 = getv function ? %tmp.13 :Menu2; - %tmp.15 = newd 1; - %tmp.17 = const :title; - symbol [ title %tmp.17 60 13 18 const ]; - symbol [ Lang %tmp.18 60 22 26 ]; - %tmp.18 = getm $.Toybox.Lang; - symbol [ format %tmp.19 60 27 33 ]; - %tmp.19 = getv function %tmp.18 :format; - %tmp.20 = "Cadence: $1$ - $2$"; - %tmp.21 = newa 2; - %tmp.22 = lgetv %minCadence.2; - symbol [ minCadence %tmp.22 60 57 67 ]; - %tmp.23 = dup %tmp.21; - %tmp.24 = aputv %tmp.23 0 %tmp.22; - %tmp.25 = lgetv %maxCadence.3; - symbol [ maxCadence %tmp.25 60 69 79 ]; - %tmp.26 = dup %tmp.24; - %tmp.27 = aputv %tmp.26 1 %tmp.25; - %tmp.28 = invoke %tmp.18 %tmp.19(%tmp.20, %tmp.27); - %tmp.29 = dup %tmp.15; - %tmp.30 = aputv %tmp.29 %tmp.17 %tmp.28; - %tmp.11 = newc %tmp.14 (%tmp.30); - lputv %menu.4 %tmp.11; - symbol [ menu %menu.4 59 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 63 8 ] - %tmp.31 = lgetv %menu.4; - symbol [ menu %tmp.31 63 8 12 ]; - symbol [ addItem %tmp.32 63 13 20 ]; - %tmp.32 = getv function %tmp.31 :addItem; - symbol [ WatchUi %tmp.35 63 25 32 ]; - %tmp.35 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.36 63 33 41 ]; - %tmp.36 = getv function ? %tmp.35 :MenuItem; - symbol [ WatchUi %tmp.37 63 42 49 ]; - %tmp.37 = getm $.Toybox.WatchUi; - symbol [ loadResource %tmp.38 63 50 62 ]; - %tmp.38 = getv function %tmp.37 :loadResource; - symbol [ Rez %tmp.40 63 63 66 ]; - %tmp.40 = getv ? :Rez; - symbol [ Strings %tmp.41 63 67 74 ]; - %tmp.41 = getv %tmp.40 :Strings; - symbol [ menu_set_min %tmp.42 63 75 87 ]; - %tmp.42 = getv %tmp.41 :menu_set_min; - %tmp.43 = invoke %tmp.37 %tmp.38(%tmp.42); - %tmp.44 = null; - %tmp.46 = const :item_set_min; - symbol [ item_set_min %tmp.46 63 97 109 const ]; - %tmp.47 = null; - %tmp.33 = newc %tmp.36 (%tmp.43, %tmp.44, %tmp.46, %tmp.47); - invoke %tmp.31 %tmp.32(%tmp.33); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 64 8 ] - %tmp.48 = lgetv %menu.4; - symbol [ menu %tmp.48 64 8 12 ]; - symbol [ addItem %tmp.49 64 13 20 ]; - %tmp.49 = getv function %tmp.48 :addItem; - symbol [ WatchUi %tmp.52 64 25 32 ]; - %tmp.52 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.53 64 33 41 ]; - %tmp.53 = getv function ? %tmp.52 :MenuItem; - symbol [ WatchUi %tmp.54 64 42 49 ]; - %tmp.54 = getm $.Toybox.WatchUi; - symbol [ loadResource %tmp.55 64 50 62 ]; - %tmp.55 = getv function %tmp.54 :loadResource; - symbol [ Rez %tmp.57 64 63 66 ]; - %tmp.57 = getv ? :Rez; - symbol [ Strings %tmp.58 64 67 74 ]; - %tmp.58 = getv %tmp.57 :Strings; - symbol [ menu_set_max %tmp.59 64 75 87 ]; - %tmp.59 = getv %tmp.58 :menu_set_max; - %tmp.60 = invoke %tmp.54 %tmp.55(%tmp.59); - %tmp.61 = null; - %tmp.63 = const :item_set_max; - symbol [ item_set_max %tmp.63 64 97 109 const ]; - %tmp.64 = null; - %tmp.50 = newc %tmp.53 (%tmp.60, %tmp.61, %tmp.63, %tmp.64); - invoke %tmp.48 %tmp.49(%tmp.50); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc" 66 8 ] - symbol [ WatchUi %tmp.65 66 8 15 ]; - %tmp.65 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.66 66 16 24 ]; - %tmp.66 = getv function %tmp.65 :pushView; - %tmp.67 = lgetv %menu.4; - symbol [ menu %tmp.67 66 25 29 ]; - symbol [ SelectCadenceDelegate %tmp.71 66 35 56 ]; - %tmp.71 = getv ? :SelectCadenceDelegate; - %tmp.72 = lgetv %menu.4; - symbol [ menu %tmp.72 66 57 61 ]; - %tmp.68 = newc %tmp.71 (%tmp.72); - symbol [ WatchUi %tmp.73 66 64 71 ]; - %tmp.73 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.74 66 72 82 ]; - %tmp.74 = getv %tmp.73 :SLIDE_LEFT; - invoke %tmp.65 %tmp.66(%tmp.67, %tmp.68, %tmp.74); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_CadenceSettingsMenuDelegate_mc_52_39_68_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\CadenceSettingsMenuDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/ProfileSettingsMenuDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/ProfileSettingsMenuDelegate.mir deleted file mode 100644 index 919fd0b..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/ProfileSettingsMenuDelegate.mir +++ /dev/null @@ -1,248 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 6; @symbol_classdef = [ProfileSettingsMenuDelegate,6,6,33]; @symbol_extends<0> = [WatchUi,6,42,49]; @symbol_extends<1> = [BehaviorDelegate,6,50,66]; ] -class ProfileSettingsMenuDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 6; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 8; @symbol_functiondef = [initialize,8,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_8_26_10_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 9 8 ] - symbol [ BehaviorDelegate %tmp.2 9 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 9 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_8_26_10_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 13; @symbol_functiondef = [onBack,13,13,19]; @symbol_return<0> = [Boolean,13,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_13_33_18_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 14 8 ] - symbol [ System %tmp.1 14 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 14 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Back pressed: Returning to main view"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 16 8 ] - symbol [ WatchUi %tmp.4 16 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 16 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ SimpleView %tmp.9 16 29 39 ]; - %tmp.9 = getv ? :SimpleView; - %tmp.6 = newc %tmp.9 (); - symbol [ SimpleViewDelegate %tmp.13 16 47 65 ]; - %tmp.13 = getv ? :SimpleViewDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 16 69 76 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 16 77 87 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 17 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_13_33_18_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 21; @symbol_functiondef = [onSelect,21,13,21]; @symbol_return<0> = [Boolean,21,27,34]; ] - function onSelect() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_21_35_27_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 22 8 ] - symbol [ System %tmp.1 22 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 22 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Select/Tap pressed: toggle summary on/off "; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 25 8 ] - %tmp.4 = self; - symbol [ pushProfileMenu %tmp.5 25 8 23 ]; - %tmp.5 = getv function %tmp.4 :pushProfileMenu; - invoke %tmp.4 %tmp.5(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 26 8 ] - %tmp.6 = true; - ret %tmp.6; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_21_35_27_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 30; @symbol_functiondef = [onNextPage,30,13,23]; @symbol_return<0> = [Boolean,30,29,36]; ] - function onNextPage() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_30_37_38_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 31 8 ] - symbol [ System %tmp.1 31 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 31 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Down button pressed"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 35 8 ] - symbol [ WatchUi %tmp.4 35 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 35 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ CadenceSettingsMenuView %tmp.9 35 29 52 ]; - %tmp.9 = getv ? :CadenceSettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ CadenceSettingsMenuDelegate %tmp.13 35 60 87 ]; - %tmp.13 = getv ? :CadenceSettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 35 91 98 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.15 35 99 107 ]; - %tmp.15 = getv %tmp.14 :SLIDE_UP; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 37 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_30_37_38_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 41; @symbol_functiondef = [onPreviousPage,41,13,27]; @symbol_return<0> = [Boolean,41,33,40]; ] - function onPreviousPage() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_41_41_49_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 42 8 ] - symbol [ System %tmp.1 42 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 42 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Up button pressed"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 45 8 ] - symbol [ WatchUi %tmp.4 45 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 45 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ SummarySettingsMenuView %tmp.9 45 29 52 ]; - %tmp.9 = getv ? :SummarySettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ SummarySettingsMenuDelegate %tmp.13 45 60 87 ]; - %tmp.13 = getv ? :SummarySettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 45 91 98 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 45 99 109 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 48 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_41_41_49_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 51; @symbol_functiondef = [pushProfileMenu,51,17,32]; ] - function pushProfileMenu() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_51_42_67_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 54 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_51_42_67_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_51_42_67_4_stop" ] - %menu.1 = local; - symbol [ menu %menu.1 54 12 16 ]; - symbol [ WatchUi %tmp.3 54 23 30 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.4 54 31 36 ]; - %tmp.4 = getv function ? %tmp.3 :Menu2; - %tmp.5 = newd 1; - %tmp.7 = const :title; - symbol [ title %tmp.7 55 13 18 const ]; - %tmp.8 = "Profile Options"; - %tmp.9 = dup %tmp.5; - %tmp.10 = aputv %tmp.9 %tmp.7 %tmp.8; - %tmp.1 = newc %tmp.4 (%tmp.10); - lputv %menu.1 %tmp.1; - symbol [ menu %menu.1 54 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 59 8 ] - %tmp.11 = lgetv %menu.1; - symbol [ menu %tmp.11 59 8 12 ]; - symbol [ addItem %tmp.12 59 13 20 ]; - %tmp.12 = getv function %tmp.11 :addItem; - symbol [ WatchUi %tmp.15 59 25 32 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.16 59 33 41 ]; - %tmp.16 = getv function ? %tmp.15 :MenuItem; - %tmp.17 = "Height"; - %tmp.18 = null; - %tmp.20 = const :profile_height; - symbol [ profile_height %tmp.20 59 59 73 const ]; - %tmp.21 = null; - %tmp.13 = newc %tmp.16 (%tmp.17, %tmp.18, %tmp.20, %tmp.21); - invoke %tmp.11 %tmp.12(%tmp.13); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 60 8 ] - %tmp.22 = lgetv %menu.1; - symbol [ menu %tmp.22 60 8 12 ]; - symbol [ addItem %tmp.23 60 13 20 ]; - %tmp.23 = getv function %tmp.22 :addItem; - symbol [ WatchUi %tmp.26 60 25 32 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.27 60 33 41 ]; - %tmp.27 = getv function ? %tmp.26 :MenuItem; - %tmp.28 = "Speed"; - %tmp.29 = null; - %tmp.31 = const :profile_speed; - symbol [ profile_speed %tmp.31 60 58 71 const ]; - %tmp.32 = null; - %tmp.24 = newc %tmp.27 (%tmp.28, %tmp.29, %tmp.31, %tmp.32); - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 61 8 ] - %tmp.33 = lgetv %menu.1; - symbol [ menu %tmp.33 61 8 12 ]; - symbol [ addItem %tmp.34 61 13 20 ]; - %tmp.34 = getv function %tmp.33 :addItem; - symbol [ WatchUi %tmp.37 61 25 32 ]; - %tmp.37 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.38 61 33 41 ]; - %tmp.38 = getv function ? %tmp.37 :MenuItem; - %tmp.39 = "Experience level"; - %tmp.40 = null; - %tmp.42 = const :profile_experience; - symbol [ profile_experience %tmp.42 61 69 87 const ]; - %tmp.43 = null; - %tmp.35 = newc %tmp.38 (%tmp.39, %tmp.40, %tmp.42, %tmp.43); - invoke %tmp.33 %tmp.34(%tmp.35); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 62 8 ] - %tmp.44 = lgetv %menu.1; - symbol [ menu %tmp.44 62 8 12 ]; - symbol [ addItem %tmp.45 62 13 20 ]; - %tmp.45 = getv function %tmp.44 :addItem; - symbol [ WatchUi %tmp.48 62 25 32 ]; - %tmp.48 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.49 62 33 41 ]; - %tmp.49 = getv function ? %tmp.48 :MenuItem; - %tmp.50 = "Gender"; - %tmp.51 = null; - %tmp.53 = const :profile_gender; - symbol [ profile_gender %tmp.53 62 59 73 const ]; - %tmp.54 = null; - %tmp.46 = newc %tmp.49 (%tmp.50, %tmp.51, %tmp.53, %tmp.54); - invoke %tmp.44 %tmp.45(%tmp.46); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc" 65 8 ] - symbol [ WatchUi %tmp.55 65 8 15 ]; - %tmp.55 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.56 65 16 24 ]; - %tmp.56 = getv function %tmp.55 :pushView; - %tmp.57 = lgetv %menu.1; - symbol [ menu %tmp.57 65 25 29 ]; - symbol [ SelectProfileDelegate %tmp.61 65 35 56 ]; - %tmp.61 = getv ? :SelectProfileDelegate; - %tmp.62 = lgetv %menu.1; - symbol [ menu %tmp.62 65 57 61 ]; - %tmp.58 = newc %tmp.61 (%tmp.62); - symbol [ WatchUi %tmp.63 65 64 71 ]; - %tmp.63 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.64 65 72 82 ]; - %tmp.64 = getv %tmp.63 :SLIDE_LEFT; - invoke %tmp.55 %tmp.56(%tmp.57, %tmp.58, %tmp.64); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_ProfileSettingsMenuDelegate_mc_51_42_67_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\ProfileSettingsMenuDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/SummarySettingsMenuDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/SummarySettingsMenuDelegate.mir deleted file mode 100644 index ac344a6..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/SettingsMenuDelegates/SummarySettingsMenuDelegate.mir +++ /dev/null @@ -1,140 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Application,4,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 6; @symbol_classdef = [SummarySettingsMenuDelegate,6,6,33]; @symbol_extends<0> = [WatchUi,6,42,49]; @symbol_extends<1> = [BehaviorDelegate,6,50,66]; ] -class SummarySettingsMenuDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 6; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 8; @symbol_functiondef = [initialize,8,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_SummarySettingsMenuDelegate_mc_8_26_10_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 9 8 ] - symbol [ BehaviorDelegate %tmp.2 9 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 9 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_SummarySettingsMenuDelegate_mc_8_26_10_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 13; @symbol_functiondef = [onBack,13,13,19]; @symbol_return<0> = [Boolean,13,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_SummarySettingsMenuDelegate_mc_13_33_18_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 14 8 ] - symbol [ System %tmp.1 14 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 14 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Back pressed: Returning to main view"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 16 8 ] - symbol [ WatchUi %tmp.4 16 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 16 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ SimpleView %tmp.9 16 29 39 ]; - %tmp.9 = getv ? :SimpleView; - %tmp.6 = newc %tmp.9 (); - symbol [ SimpleViewDelegate %tmp.13 16 47 65 ]; - %tmp.13 = getv ? :SimpleViewDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 16 69 76 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 16 77 87 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 17 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_SummarySettingsMenuDelegate_mc_13_33_18_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 21; @symbol_functiondef = [onSelect,21,13,21]; @symbol_return<0> = [Boolean,21,27,34]; ] - function onSelect() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_SummarySettingsMenuDelegate_mc_21_35_26_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 22 8 ] - symbol [ System %tmp.1 22 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 22 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Select/Tap pressed: toggle summary on/off "; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 25 8 ] - %tmp.4 = true; - ret %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_SummarySettingsMenuDelegate_mc_21_35_26_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 29; @symbol_functiondef = [onNextPage,29,13,23]; @symbol_return<0> = [Boolean,29,29,36]; ] - function onNextPage() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_SummarySettingsMenuDelegate_mc_29_37_36_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 30 8 ] - symbol [ System %tmp.1 30 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 30 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Down button pressed"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 33 8 ] - symbol [ WatchUi %tmp.4 33 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 33 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ CadenceSettingsMenuView %tmp.9 33 29 52 ]; - %tmp.9 = getv ? :CadenceSettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ CadenceSettingsMenuDelegate %tmp.13 33 60 87 ]; - %tmp.13 = getv ? :CadenceSettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 33 91 98 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.15 33 99 107 ]; - %tmp.15 = getv %tmp.14 :SLIDE_UP; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 35 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_SummarySettingsMenuDelegate_mc_29_37_36_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 39; @symbol_functiondef = [onPreviousPage,39,13,27]; @symbol_return<0> = [Boolean,39,33,40]; ] - function onPreviousPage() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_SummarySettingsMenuDelegate_mc_39_41_46_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 40 8 ] - symbol [ System %tmp.1 40 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 40 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "Up button pressed"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 43 8 ] - symbol [ WatchUi %tmp.4 43 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.5 43 16 24 ]; - %tmp.5 = getv function %tmp.4 :pushView; - symbol [ BarChartSettingsMenuView %tmp.9 43 29 53 ]; - %tmp.9 = getv ? :BarChartSettingsMenuView; - %tmp.6 = newc %tmp.9 (); - symbol [ BarChartSettingsMenuDelegate %tmp.13 43 61 89 ]; - %tmp.13 = getv ? :BarChartSettingsMenuDelegate; - %tmp.10 = newc %tmp.13 (); - symbol [ WatchUi %tmp.14 43 93 100 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.15 43 101 111 ]; - %tmp.15 = getv %tmp.14 :SLIDE_DOWN; - invoke %tmp.4 %tmp.5(%tmp.6, %tmp.10, %tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc" 45 8 ] - %tmp.16 = true; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_SettingsMenuDelegates_SummarySettingsMenuDelegate_mc_39_41_46_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\SettingsMenuDelegates\SummarySettingsMenuDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SettingsDelegates/WatchFaceMenuDelegate.mir b/bin/mir/source/Delegates/SettingsDelegates/WatchFaceMenuDelegate.mir deleted file mode 100644 index aa43752..0000000 --- a/bin/mir/source/Delegates/SettingsDelegates/WatchFaceMenuDelegate.mir +++ /dev/null @@ -1,228 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 8; @symbol_classdef = [WatchFaceMenuDelegate,8,6,27]; @symbol_extends<0> = [WatchUi,8,36,43]; @symbol_extends<1> = [Menu2InputDelegate,8,44,62]; ] -class WatchFaceMenuDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 8; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 8; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 11; @symbol_functiondef = [initialize,11,13,23]; @symbol_param<0> = [menu,11,24,28]; @symbol_param<0>_type<0> = [WatchUi,11,32,39]; @symbol_param<0>_type<1> = [Menu2,11,40,45]; ] - function initialize(menu as WatchUi.Menu2) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_11_47_13_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 12 8 ] - symbol [ Menu2InputDelegate %tmp.2 12 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 12 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_11_47_13_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 17; @symbol_functiondef = [onSelect,17,13,21]; @symbol_param<0> = [item,17,22,26]; @symbol_param<0>_type<0> = [WatchUi,17,30,37]; @symbol_param<0>_type<1> = [MenuItem,17,38,46]; ] - function onSelect(item as WatchUi.MenuItem) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_17_56_27_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 18 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_17_56_27_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_17_56_27_4_stop" ] - %id.1 = local; - symbol [ id %id.1 18 12 14 ]; - %tmp.1 = lgetv %item; - symbol [ item %tmp.1 18 17 21 ]; - symbol [ getId %tmp.2 18 22 27 ]; - %tmp.2 = getv function %tmp.1 :getId; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %id.1 %tmp.3; - symbol [ id %id.1 18 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 20 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_20_8_26_8_if_stmt: - %tmp.4 = lgetv %id.1; - symbol [ id %tmp.4 20 12 14 ]; - %tmp.6 = const :simple_view; - symbol [ simple_view %tmp.6 20 19 30 const ]; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_20_8_26_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_20_8_26_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_20_32_23_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 21 12 ] - symbol [ System %tmp.8 21 12 18 ]; - %tmp.8 = getm $.Toybox.System; - symbol [ println %tmp.9 21 19 26 ]; - %tmp.9 = getv function %tmp.8 :println; - %tmp.10 = "Selected: Simple View"; - invoke %tmp.8 %tmp.9(%tmp.10); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 22 12 ] - %tmp.11 = self; - symbol [ switchToSimpleView %tmp.12 22 12 30 ]; - %tmp.12 = getv function %tmp.11 :switchToSimpleView; - invoke %tmp.11 %tmp.12(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_20_32_23_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_20_8_26_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_20_8_26_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 23 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_23_15_26_8_if_stmt: - %tmp.13 = lgetv %id.1; - symbol [ id %tmp.13 23 19 21 ]; - %tmp.15 = const :time_view; - symbol [ time_view %tmp.15 23 26 35 const ]; - %tmp.16 = eq %tmp.13 %tmp.15; - bf %tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_23_15_26_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_23_15_26_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_23_37_26_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 24 12 ] - symbol [ System %tmp.17 24 12 18 ]; - %tmp.17 = getm $.Toybox.System; - symbol [ println %tmp.18 24 19 26 ]; - %tmp.18 = getv function %tmp.17 :println; - %tmp.19 = "Selected: Time View"; - invoke %tmp.17 %tmp.18(%tmp.19); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 25 12 ] - %tmp.20 = self; - symbol [ switchToTimeView %tmp.21 25 12 28 ]; - %tmp.21 = getv function %tmp.20 :switchToTimeView; - invoke %tmp.20 %tmp.21(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_23_37_26_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_23_15_26_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_23_15_26_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_20_8_26_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_17_56_27_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 30; @symbol_functiondef = [onBack,30,13,19]; ] - function onBack() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_30_30_32_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 31 8 ] - symbol [ WatchUi %tmp.1 31 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 31 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 31 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_RIGHT %tmp.4 31 32 43 ]; - %tmp.4 = getv %tmp.3 :SLIDE_RIGHT; - invoke %tmp.1 %tmp.2(%tmp.4); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_30_30_32_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 36; @symbol_functiondef = [switchToSimpleView,36,21,39]; ] - private - function switchToSimpleView() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_36_50_42_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 37 8 ] - symbol [ WatchUi %tmp.1 37 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 37 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 37 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.4 37 32 42 ]; - %tmp.4 = getv %tmp.3 :SLIDE_DOWN; - invoke %tmp.1 %tmp.2(%tmp.4); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 38 8 ] - symbol [ WatchUi %tmp.5 38 8 15 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.6 38 16 23 ]; - %tmp.6 = getv function %tmp.5 :popView; - symbol [ WatchUi %tmp.7 38 24 31 ]; - %tmp.7 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.8 38 32 42 ]; - %tmp.8 = getv %tmp.7 :SLIDE_DOWN; - invoke %tmp.5 %tmp.6(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 39 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_36_50_42_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_36_50_42_4_stop" ] - %view.1 = local; - symbol [ view %view.1 39 12 16 ]; - symbol [ SimpleView %tmp.12 39 23 33 ]; - %tmp.12 = getv ? :SimpleView; - %tmp.9 = newc %tmp.12 (); - lputv %view.1 %tmp.9; - symbol [ view %view.1 39 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 40 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_36_50_42_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_36_50_42_4_stop" ] - %delegate.2 = local; - symbol [ delegate %delegate.2 40 12 20 ]; - symbol [ SimpleViewDelegate %tmp.16 40 27 45 ]; - %tmp.16 = getv ? :SimpleViewDelegate; - %tmp.13 = newc %tmp.16 (); - lputv %delegate.2 %tmp.13; - symbol [ delegate %delegate.2 40 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 41 8 ] - symbol [ WatchUi %tmp.17 41 8 15 ]; - %tmp.17 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.18 41 16 24 ]; - %tmp.18 = getv function %tmp.17 :pushView; - %tmp.19 = lgetv %view.1; - symbol [ view %tmp.19 41 25 29 ]; - %tmp.20 = lgetv %delegate.2; - symbol [ delegate %tmp.20 41 31 39 ]; - symbol [ WatchUi %tmp.21 41 41 48 ]; - %tmp.21 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.22 41 49 64 ]; - %tmp.22 = getv %tmp.21 :SLIDE_IMMEDIATE; - invoke %tmp.17 %tmp.18(%tmp.19, %tmp.20, %tmp.22); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_36_50_42_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 46; @symbol_functiondef = [switchToTimeView,46,21,37]; ] - private - function switchToTimeView() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_46_48_52_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 47 8 ] - symbol [ WatchUi %tmp.1 47 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 47 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 47 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.4 47 32 42 ]; - %tmp.4 = getv %tmp.3 :SLIDE_DOWN; - invoke %tmp.1 %tmp.2(%tmp.4); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 48 8 ] - symbol [ WatchUi %tmp.5 48 8 15 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.6 48 16 23 ]; - %tmp.6 = getv function %tmp.5 :popView; - symbol [ WatchUi %tmp.7 48 24 31 ]; - %tmp.7 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.8 48 32 42 ]; - %tmp.8 = getv %tmp.7 :SLIDE_DOWN; - invoke %tmp.5 %tmp.6(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 49 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_46_48_52_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_46_48_52_4_stop" ] - %view.1 = local; - symbol [ view %view.1 49 12 16 ]; - symbol [ TimeView %tmp.12 49 23 31 ]; - %tmp.12 = getv ? :TimeView; - %tmp.9 = newc %tmp.12 (); - lputv %view.1 %tmp.9; - symbol [ view %view.1 49 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 50 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_46_48_52_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_46_48_52_4_stop" ] - %delegate.2 = local; - symbol [ delegate %delegate.2 50 12 20 ]; - symbol [ TimeViewDelegate %tmp.16 50 27 43 ]; - %tmp.16 = getv ? :TimeViewDelegate; - %tmp.13 = newc %tmp.16 (); - lputv %delegate.2 %tmp.13; - symbol [ delegate %delegate.2 50 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc" 51 8 ] - symbol [ WatchUi %tmp.17 51 8 15 ]; - %tmp.17 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.18 51 16 24 ]; - %tmp.18 = getv function %tmp.17 :pushView; - %tmp.19 = lgetv %view.1; - symbol [ view %tmp.19 51 25 29 ]; - %tmp.20 = lgetv %delegate.2; - symbol [ delegate %tmp.20 51 31 39 ]; - symbol [ WatchUi %tmp.21 51 41 48 ]; - %tmp.21 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.22 51 49 64 ]; - %tmp.22 = getv %tmp.21 :SLIDE_IMMEDIATE; - invoke %tmp.17 %tmp.18(%tmp.19, %tmp.20, %tmp.22); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SettingsDelegates_WatchFaceMenuDelegate_mc_46_48_52_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SettingsDelegates\WatchFaceMenuDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SimpleViewDelegate.mir b/bin/mir/source/Delegates/SimpleViewDelegate.mir deleted file mode 100644 index 5ca2ccf..0000000 --- a/bin/mir/source/Delegates/SimpleViewDelegate.mir +++ /dev/null @@ -1,1688 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [System,3,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Timer,4,14,19]; ] -import Toybox.Timer; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 6; @symbol_classdef = [SimpleViewDelegate,6,6,24]; @symbol_extends<0> = [WatchUi,6,33,40]; @symbol_extends<1> = [BehaviorDelegate,6,41,57]; ] -class SimpleViewDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 6; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 8; @position = 16; @symbol_vardef = [_currentView,8,16,28]; ] - private - var _currentView = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 9; @position = 16; @symbol_vardef = [_initTime,9,16,25]; ] - private - var _initTime = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 10; @position = 16; @symbol_vardef = [_menuActive,10,16,27]; ] - private - var _menuActive = false; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 13; @position = 16; @symbol_vardef = [_lastUpReleaseTime,13,16,34]; ] - private - var _lastUpReleaseTime = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 14; @position = 16; @symbol_vardef = [_doubleClickThreshold,14,16,37]; ] - private - var _doubleClickThreshold = 600; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 15; @position = 16; @symbol_vardef = [_longPressThreshold,15,16,35]; ] - private - var _longPressThreshold = 800; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 18; @position = 16; @symbol_vardef = [_longPressTimer,18,16,31]; ] - private - var _longPressTimer = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 19; @position = 16; @symbol_vardef = [_handledLongPress,19,16,33]; ] - private - var _handledLongPress = false; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 21; @symbol_functiondef = [initialize,21,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_21_26_24_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 22 8 ] - symbol [ BehaviorDelegate %tmp.2 22 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 22 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 23 8 ] - %tmp.4 = self; - symbol [ getTimeMs %tmp.5 23 20 29 ]; - %tmp.5 = getv function %tmp.4 :getTimeMs; - %tmp.6 = invoke %tmp.4 %tmp.5(); - symbol [ _initTime ? 23 8 17 ]; - putv self :_initTime %tmp.6; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_21_26_24_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 26; @symbol_functiondef = [getTimeMs,26,13,22]; @symbol_return<0> = [Number,26,28,34]; ] - function getTimeMs() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_26_35_28_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 27 8 ] - symbol [ System %tmp.1 27 15 21 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ getTimer %tmp.2 27 22 30 ]; - %tmp.2 = getv function %tmp.1 :getTimer; - %tmp.3 = invoke %tmp.1 %tmp.2(); - ret %tmp.3; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_26_35_28_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 30; @symbol_functiondef = [onMenu,30,13,19]; @symbol_return<0> = [Boolean,30,25,32]; ] - function onMenu() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_30_33_34_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 32 8 ] - %tmp.1 = 0; - symbol [ _lastUpReleaseTime ? 32 8 26 ]; - putv self :_lastUpReleaseTime %tmp.1; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 33 8 ] - %tmp.2 = true; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_30_33_34_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 36; @symbol_functiondef = [onSelect,36,13,21]; @symbol_return<0> = [Boolean,36,27,34]; ] - function onSelect() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_36_35_51_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 37 8 ] - symbol [ System %tmp.1 37 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 37 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[DEBUG] onSelect called, menuActive="; - symbol [ _menuActive %tmp.5 37 64 75 ]; - %tmp.5 = getv ? :_menuActive; - %tmp.6 = add %tmp.3 %tmp.5; - invoke %tmp.1 %tmp.2(%tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 39 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_8_42_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_12_39_61_begin: - symbol [ _initTime %tmp.8 39 12 21 ]; - %tmp.8 = getv ? :_initTime; - %tmp.9 = null; - %tmp.10 = ne %tmp.8 %tmp.9; - bf %tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_8_42_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_33_39_61_true: - %tmp.11 = self; - symbol [ getTimeMs %tmp.12 39 34 43 ]; - %tmp.12 = getv function %tmp.11 :getTimeMs; - %tmp.13 = invoke %tmp.11 %tmp.12(); - symbol [ _initTime %tmp.15 39 48 57 ]; - %tmp.15 = getv ? :_initTime; - %tmp.16 = sub %tmp.13 %tmp.15; - %tmp.17 = 1000; - %tmp.18 = lt %tmp.16 %tmp.17; - push %tmp.18; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_33_39_61_end: - %tmp.19 = phi [%tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_12_39_61_begin] [%tmp.18 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_33_39_61_true] [%tmp.19 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_33_39_61_end]; - bf %tmp.19 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_8_42_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_8_42_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_67_42_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 40 12 ] - symbol [ System %tmp.20 40 12 18 ]; - %tmp.20 = getm $.Toybox.System; - symbol [ println %tmp.21 40 19 26 ]; - %tmp.21 = getv function %tmp.20 :println; - %tmp.22 = "[DEBUG] Ignoring onSelect during initialization"; - invoke %tmp.20 %tmp.21(%tmp.22); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 41 12 ] - %tmp.23 = false; - ret %tmp.23; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_67_42_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_8_42_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_39_8_42_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 44 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_44_8_47_8_if_stmt: - symbol [ _menuActive %tmp.25 44 12 23 ]; - %tmp.25 = getv ? :_menuActive; - bf %tmp.25 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_44_8_47_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_44_8_47_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_44_25_47_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 45 12 ] - symbol [ System %tmp.26 45 12 18 ]; - %tmp.26 = getm $.Toybox.System; - symbol [ println %tmp.27 45 19 26 ]; - %tmp.27 = getv function %tmp.26 :println; - %tmp.28 = "[DEBUG] Menu active, letting menu delegate handle it"; - invoke %tmp.26 %tmp.27(%tmp.28); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 46 12 ] - %tmp.29 = false; - ret %tmp.29; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_44_25_47_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_44_8_47_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_44_8_47_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 49 8 ] - symbol [ System %tmp.30 49 8 14 ]; - %tmp.30 = getm $.Toybox.System; - symbol [ println %tmp.31 49 15 22 ]; - %tmp.31 = getv function %tmp.30 :println; - %tmp.32 = "[DEBUG] Handling START/STOP button press"; - invoke %tmp.30 %tmp.31(%tmp.32); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 50 8 ] - %tmp.33 = self; - symbol [ handleStartStopButton %tmp.34 50 15 36 ]; - %tmp.34 = getv function %tmp.33 :handleStartStopButton; - %tmp.35 = invoke %tmp.33 %tmp.34(); - ret %tmp.35; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_36_35_51_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 53; @symbol_functiondef = [handleStartStopButton,53,13,34]; @symbol_return<0> = [Boolean,53,40,47]; ] - function handleStartStopButton() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_53_48_74_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 54 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_53_48_74_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_53_48_74_4_stop" ] - %app.1 = local; - symbol [ app %app.1 54 12 15 ]; - %tmp.1 = self; - symbol [ getApp %tmp.2 54 18 24 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %app.1 %tmp.3; - symbol [ app %app.1 54 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 56 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_56_8_72_8_if_stmt: - %tmp.4 = lgetv %app.1; - symbol [ app %tmp.4 56 12 15 ]; - symbol [ isIdle %tmp.5 56 16 22 ]; - %tmp.5 = getv function %tmp.4 :isIdle; - %tmp.6 = invoke %tmp.4 %tmp.5(); - bf %tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_56_8_72_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_56_8_72_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_56_26_60_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 57 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_56_26_60_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_56_26_60_8_stop" ] - %view.2 = local; - symbol [ view %view.2 57 16 20 ]; - symbol [ StartConfirmView %tmp.10 57 27 43 ]; - %tmp.10 = getv ? :StartConfirmView; - %tmp.7 = newc %tmp.10 (); - lputv %view.2 %tmp.7; - symbol [ view %view.2 57 16 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 58 12 ] - symbol [ WatchUi %tmp.11 58 12 19 ]; - %tmp.11 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.12 58 20 28 ]; - %tmp.12 = getv function %tmp.11 :pushView; - %tmp.13 = lgetv %view.2; - symbol [ view %tmp.13 58 29 33 ]; - symbol [ StartConfirmViewDelegate %tmp.17 58 39 63 ]; - %tmp.17 = getv ? :StartConfirmViewDelegate; - %tmp.18 = lgetv %view.2; - symbol [ view %tmp.18 58 64 68 ]; - %tmp.14 = newc %tmp.17 (%tmp.18); - symbol [ WatchUi %tmp.19 58 71 78 ]; - %tmp.19 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.20 58 79 87 ]; - %tmp.20 = getv %tmp.19 :SLIDE_UP; - invoke %tmp.11 %tmp.12(%tmp.13, %tmp.14, %tmp.20); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 59 12 ] - symbol [ WatchUi %tmp.21 59 12 19 ]; - %tmp.21 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.22 59 20 33 ]; - %tmp.22 = getv function %tmp.21 :requestUpdate; - invoke %tmp.21 %tmp.22(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_56_26_60_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_56_8_72_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_56_8_72_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 61 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_61_13_72_8_if_stmt: - %tmp.23 = lgetv %app.1; - symbol [ app %tmp.23 61 17 20 ]; - symbol [ isRecording %tmp.24 61 21 32 ]; - %tmp.24 = getv function %tmp.23 :isRecording; - %tmp.25 = invoke %tmp.23 %tmp.24(); - bf %tmp.25 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_61_13_72_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_61_13_72_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_61_36_64_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 62 12 ] - %tmp.26 = true; - symbol [ _menuActive ? 62 12 23 ]; - putv self :_menuActive %tmp.26; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 63 12 ] - %tmp.27 = self; - symbol [ showActivityControlMenu %tmp.28 63 12 35 ]; - %tmp.28 = getv function %tmp.27 :showActivityControlMenu; - invoke %tmp.27 %tmp.28(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_61_36_64_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_61_13_72_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_61_13_72_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 65 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_65_13_72_8_if_stmt: - %tmp.29 = lgetv %app.1; - symbol [ app %tmp.29 65 17 20 ]; - symbol [ isPaused %tmp.30 65 21 29 ]; - %tmp.30 = getv function %tmp.29 :isPaused; - %tmp.31 = invoke %tmp.29 %tmp.30(); - bf %tmp.31 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_65_13_72_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_65_13_72_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_65_33_68_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 66 12 ] - %tmp.32 = true; - symbol [ _menuActive ? 66 12 23 ]; - putv self :_menuActive %tmp.32; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 67 12 ] - %tmp.33 = self; - symbol [ showPausedControlMenu %tmp.34 67 12 33 ]; - %tmp.34 = getv function %tmp.33 :showPausedControlMenu; - invoke %tmp.33 %tmp.34(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_65_33_68_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_65_13_72_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_65_13_72_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 69 13 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_69_13_72_8_if_stmt: - %tmp.35 = lgetv %app.1; - symbol [ app %tmp.35 69 17 20 ]; - symbol [ isStopped %tmp.36 69 21 30 ]; - %tmp.36 = getv function %tmp.35 :isStopped; - %tmp.37 = invoke %tmp.35 %tmp.36(); - bf %tmp.37 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_69_13_72_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_69_13_72_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_69_34_72_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 70 12 ] - %tmp.38 = true; - symbol [ _menuActive ? 70 12 23 ]; - putv self :_menuActive %tmp.38; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 71 12 ] - %tmp.39 = self; - symbol [ showSaveDiscardMenu %tmp.40 71 12 31 ]; - %tmp.40 = getv function %tmp.39 :showSaveDiscardMenu; - invoke %tmp.39 %tmp.40(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_69_34_72_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_69_13_72_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_69_13_72_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_65_13_72_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_61_13_72_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_56_8_72_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 73 8 ] - %tmp.41 = true; - ret %tmp.41; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_53_48_74_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 76; @symbol_functiondef = [onKeyPressed,76,13,25]; @symbol_param<0> = [keyEvent,76,26,34]; @symbol_param<0>_type<0> = [WatchUi,76,38,45]; @symbol_param<0>_type<1> = [KeyEvent,76,46,54]; @symbol_return<0> = [Boolean,76,59,66]; ] - function onKeyPressed(keyEvent as WatchUi.KeyEvent) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_76_67_90_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 77 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_76_67_90_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_76_67_90_4_stop" ] - %key.1 = local; - symbol [ key %key.1 77 12 15 ]; - %tmp.1 = lgetv %keyEvent; - symbol [ keyEvent %tmp.1 77 18 26 ]; - symbol [ getKey %tmp.2 77 27 33 ]; - %tmp.2 = getv function %tmp.1 :getKey; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %key.1 %tmp.3; - symbol [ key %key.1 77 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 79 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_79_8_87_8_if_stmt: - %tmp.4 = lgetv %key.1; - symbol [ key %tmp.4 79 12 15 ]; - symbol [ WatchUi %tmp.5 79 19 26 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ KEY_UP %tmp.6 79 27 33 ]; - %tmp.6 = getv %tmp.5 :KEY_UP; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_79_8_87_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_79_8_87_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_79_35_87_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 81 12 ] - %tmp.8 = false; - symbol [ _handledLongPress ? 81 12 29 ]; - putv self :_handledLongPress %tmp.8; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 84 12 ] - symbol [ Timer %tmp.11 84 34 39 ]; - %tmp.11 = getm $.Toybox.Timer; - symbol [ Timer %tmp.12 84 40 45 ]; - %tmp.12 = getv function ? %tmp.11 :Timer; - %tmp.9 = newc %tmp.12 (); - symbol [ _longPressTimer ? 84 12 27 ]; - putv self :_longPressTimer %tmp.9; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 85 12 ] - symbol [ _longPressTimer %tmp.14 85 12 27 ]; - %tmp.14 = getv ? :_longPressTimer; - symbol [ start %tmp.15 85 28 33 ]; - %tmp.15 = getv function %tmp.14 :start; - %tmp.16 = self; - symbol [ method %tmp.17 85 34 40 ]; - %tmp.17 = getv function %tmp.16 :method; - %tmp.19 = const :triggerLongPress; - symbol [ triggerLongPress %tmp.19 85 42 58 const ]; - %tmp.20 = invoke %tmp.16 %tmp.17(%tmp.19); - symbol [ _longPressThreshold %tmp.22 85 61 80 ]; - %tmp.22 = getv ? :_longPressThreshold; - %tmp.23 = false; - invoke %tmp.14 %tmp.15(%tmp.20, %tmp.22, %tmp.23); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 86 12 ] - %tmp.24 = true; - ret %tmp.24; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_79_35_87_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_79_8_87_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_79_8_87_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 89 8 ] - %tmp.25 = false; - ret %tmp.25; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_76_67_90_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 93; @symbol_functiondef = [triggerLongPress,93,13,29]; ] - function triggerLongPress() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_93_40_98_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 94 8 ] - symbol [ System %tmp.1 94 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 94 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[DEBUG] Long press UP detected (Live) -> Settings"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 95 8 ] - %tmp.4 = true; - symbol [ _handledLongPress ? 95 8 25 ]; - putv self :_handledLongPress %tmp.4; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 96 8 ] - %tmp.5 = 0; - symbol [ _lastUpReleaseTime ? 96 8 26 ]; - putv self :_lastUpReleaseTime %tmp.5; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 97 8 ] - %tmp.6 = self; - symbol [ pushSettingsView %tmp.7 97 8 24 ]; - %tmp.7 = getv function %tmp.6 :pushSettingsView; - invoke %tmp.6 %tmp.7(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_93_40_98_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 100; @symbol_functiondef = [onKeyReleased,100,13,26]; @symbol_param<0> = [keyEvent,100,27,35]; @symbol_param<0>_type<0> = [WatchUi,100,39,46]; @symbol_param<0>_type<1> = [KeyEvent,100,47,55]; @symbol_return<0> = [Boolean,100,60,67]; ] - function onKeyReleased(keyEvent as WatchUi.KeyEvent) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_100_68_147_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 101 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_100_68_147_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_100_68_147_4_stop" ] - %key.1 = local; - symbol [ key %key.1 101 12 15 ]; - %tmp.1 = lgetv %keyEvent; - symbol [ keyEvent %tmp.1 101 18 26 ]; - symbol [ getKey %tmp.2 101 27 33 ]; - %tmp.2 = getv function %tmp.1 :getKey; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %key.1 %tmp.3; - symbol [ key %key.1 101 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 102 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_100_68_147_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_100_68_147_4_stop" ] - %currentTime.2 = local; - symbol [ currentTime %currentTime.2 102 12 23 ]; - %tmp.4 = self; - symbol [ getTimeMs %tmp.5 102 26 35 ]; - %tmp.5 = getv function %tmp.4 :getTimeMs; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %currentTime.2 %tmp.6; - symbol [ currentTime %currentTime.2 102 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 105 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_105_8_133_8_if_stmt: - %tmp.7 = lgetv %key.1; - symbol [ key %tmp.7 105 12 15 ]; - symbol [ WatchUi %tmp.8 105 19 26 ]; - %tmp.8 = getm $.Toybox.WatchUi; - symbol [ KEY_UP %tmp.9 105 27 33 ]; - %tmp.9 = getv %tmp.8 :KEY_UP; - %tmp.10 = eq %tmp.7 %tmp.9; - bf %tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_105_8_133_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_105_8_133_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_105_35_133_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 108 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_108_12_111_12_if_stmt: - symbol [ _longPressTimer %tmp.12 108 16 31 ]; - %tmp.12 = getv ? :_longPressTimer; - %tmp.13 = null; - %tmp.14 = ne %tmp.12 %tmp.13; - bf %tmp.14 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_108_12_111_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_108_12_111_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_108_41_111_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 109 16 ] - symbol [ _longPressTimer %tmp.16 109 16 31 ]; - %tmp.16 = getv ? :_longPressTimer; - %tmp.17 = as %tmp.16 { (!Null) }; - symbol [ stop %tmp.18 109 32 36 ]; - %tmp.18 = getv function %tmp.17 :stop; - invoke %tmp.17 %tmp.18(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 110 16 ] - %tmp.19 = null; - symbol [ _longPressTimer ? 110 16 31 ]; - putv self :_longPressTimer %tmp.19; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_108_41_111_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_108_12_111_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_108_12_111_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 114 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_114_12_117_12_if_stmt: - symbol [ _handledLongPress %tmp.21 114 16 33 ]; - %tmp.21 = getv ? :_handledLongPress; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_114_12_117_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_114_12_117_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_114_35_117_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 115 16 ] - %tmp.22 = false; - symbol [ _handledLongPress ? 115 16 33 ]; - putv self :_handledLongPress %tmp.22; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 116 16 ] - %tmp.23 = true; - ret %tmp.23; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_114_35_117_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_114_12_117_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_114_12_117_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 122 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_12_127_12_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_16_122_80_begin: - symbol [ _lastUpReleaseTime %tmp.25 122 16 34 ]; - %tmp.25 = getv ? :_lastUpReleaseTime; - %tmp.26 = 0; - %tmp.27 = ne %tmp.25 %tmp.26; - bf %tmp.27 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_12_127_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_43_122_80_true: - %tmp.28 = lgetv %currentTime.2; - symbol [ currentTime %tmp.28 122 44 55 ]; - symbol [ _lastUpReleaseTime %tmp.30 122 58 76 ]; - %tmp.30 = getv ? :_lastUpReleaseTime; - %tmp.31 = sub %tmp.28 %tmp.30; - symbol [ _doubleClickThreshold %tmp.33 122 80 101 ]; - %tmp.33 = getv ? :_doubleClickThreshold; - %tmp.34 = lt %tmp.31 %tmp.33; - push %tmp.34; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_43_122_80_end: - %tmp.35 = phi [%tmp.27 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_16_122_80_begin] [%tmp.34 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_43_122_80_true] [%tmp.35 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_43_122_80_end]; - bf %tmp.35 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_12_127_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_12_127_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_103_127_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 123 16 ] - symbol [ System %tmp.36 123 16 22 ]; - %tmp.36 = getm $.Toybox.System; - symbol [ println %tmp.37 123 23 30 ]; - %tmp.37 = getv function %tmp.36 :println; - %tmp.38 = "[DEBUG] Double click UP detected -> Vibration Toggle"; - invoke %tmp.36 %tmp.37(%tmp.38); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 124 16 ] - %tmp.39 = self; - symbol [ toggleVibration %tmp.40 124 16 31 ]; - %tmp.40 = getv function %tmp.39 :toggleVibration; - invoke %tmp.39 %tmp.40(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 125 16 ] - %tmp.41 = 0; - symbol [ _lastUpReleaseTime ? 125 16 34 ]; - putv self :_lastUpReleaseTime %tmp.41; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 126 16 ] - %tmp.42 = true; - ret %tmp.42; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_103_127_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_12_127_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_122_12_127_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 130 12 ] - symbol [ System %tmp.43 130 12 18 ]; - %tmp.43 = getm $.Toybox.System; - symbol [ println %tmp.44 130 19 26 ]; - %tmp.44 = getv function %tmp.43 :println; - %tmp.45 = "[DEBUG] Single click UP -> Waiting for double..."; - invoke %tmp.43 %tmp.44(%tmp.45); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 131 12 ] - %tmp.46 = lgetv %currentTime.2; - symbol [ currentTime %tmp.46 131 33 44 ]; - symbol [ _lastUpReleaseTime ? 131 12 30 ]; - putv self :_lastUpReleaseTime %tmp.46; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 132 12 ] - %tmp.47 = true; - ret %tmp.47; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_105_35_133_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_105_8_133_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_105_8_133_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 136 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_136_8_144_8_if_stmt: - %tmp.48 = lgetv %key.1; - symbol [ key %tmp.48 136 12 15 ]; - symbol [ WatchUi %tmp.49 136 19 26 ]; - %tmp.49 = getm $.Toybox.WatchUi; - symbol [ KEY_DOWN %tmp.50 136 27 35 ]; - %tmp.50 = getv %tmp.49 :KEY_DOWN; - %tmp.51 = eq %tmp.48 %tmp.50; - bf %tmp.51 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_136_8_144_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_136_8_144_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_136_37_144_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 137 12 ] - symbol [ AdvancedView %tmp.55 137 31 43 ]; - %tmp.55 = getv ? :AdvancedView; - %tmp.52 = newc %tmp.55 (); - symbol [ _currentView ? 137 12 24 ]; - putv self :_currentView %tmp.52; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 138 12 ] - symbol [ WatchUi %tmp.56 138 12 19 ]; - %tmp.56 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.57 138 20 28 ]; - %tmp.57 = getv function %tmp.56 :pushView; - symbol [ _currentView %tmp.59 139 16 28 ]; - %tmp.59 = getv ? :_currentView; - symbol [ AdvancedViewDelegate %tmp.63 140 20 40 ]; - %tmp.63 = getv ? :AdvancedViewDelegate; - symbol [ _currentView %tmp.65 140 41 53 ]; - %tmp.65 = getv ? :_currentView; - %tmp.60 = newc %tmp.63 (%tmp.65); - symbol [ WatchUi %tmp.66 141 16 23 ]; - %tmp.66 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.67 141 24 34 ]; - %tmp.67 = getv %tmp.66 :SLIDE_DOWN; - invoke %tmp.56 %tmp.57(%tmp.59, %tmp.60, %tmp.67); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 143 12 ] - %tmp.68 = true; - ret %tmp.68; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_136_37_144_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_136_8_144_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_136_8_144_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 146 8 ] - %tmp.69 = false; - ret %tmp.69; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_100_68_147_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 149; @symbol_functiondef = [toggleVibration,149,13,28]; ] - function toggleVibration() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_149_39_164_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 150 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_149_39_164_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_149_39_164_4_stop" ] - %app.1 = local; - symbol [ app %app.1 150 12 15 ]; - %tmp.1 = self; - symbol [ getApp %tmp.2 150 18 24 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %app.1 %tmp.3; - symbol [ app %app.1 150 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 152 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_149_39_164_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_149_39_164_4_stop" ] - %enabled.2 = local; - symbol [ enabled %enabled.2 152 12 19 ]; - %tmp.4 = lgetv %app.1; - symbol [ app %tmp.4 152 22 25 ]; - symbol [ getVibrationEnabled %tmp.5 152 26 45 ]; - %tmp.5 = getv function %tmp.4 :getVibrationEnabled; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %enabled.2 %tmp.6; - symbol [ enabled %enabled.2 152 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 153 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_149_39_164_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_149_39_164_4_stop" ] - %newEnabled.3 = local; - symbol [ newEnabled %newEnabled.3 153 12 22 ]; - %tmp.7 = lgetv %enabled.2; - symbol [ enabled %tmp.7 153 26 33 ]; - %tmp.8 = not %tmp.7; - lputv %newEnabled.3 %tmp.8; - symbol [ newEnabled %newEnabled.3 153 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 154 8 ] - %tmp.9 = lgetv %app.1; - symbol [ app %tmp.9 154 8 11 ]; - symbol [ setVibrationEnabled %tmp.10 154 12 31 ]; - %tmp.10 = getv function %tmp.9 :setVibrationEnabled; - %tmp.11 = lgetv %newEnabled.3; - symbol [ newEnabled %tmp.11 154 32 42 ]; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 156 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_149_39_164_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_149_39_164_4_stop" ] - %statusText.4 = local; - symbol [ statusText %statusText.4 156 12 22 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_156_25_156_55_begin: - %tmp.12 = lgetv %newEnabled.3; - symbol [ newEnabled %tmp.12 156 25 35 ]; - bf %tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_156_25_156_55_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_156_25_156_55_true: - %tmp.13 = "Vibration ON"; - push %tmp.13; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_156_25_156_55_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_156_25_156_55_else_false: - %tmp.14 = "Vibration OFF"; - push %tmp.14; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_156_25_156_55_end: - %tmp.15 = phi [%tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_156_25_156_55_begin] [%tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_156_25_156_55_true] [%tmp.14 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_156_25_156_55_else_false] [%tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_156_25_156_55_end]; - lputv %statusText.4 %tmp.15; - symbol [ statusText %statusText.4 156 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 157 8 ] - symbol [ System %tmp.16 157 8 14 ]; - %tmp.16 = getm $.Toybox.System; - symbol [ println %tmp.17 157 15 22 ]; - %tmp.17 = getv function %tmp.16 :println; - %tmp.18 = "[UI] "; - %tmp.19 = lgetv %statusText.4; - symbol [ statusText %tmp.19 157 33 43 ]; - %tmp.20 = add %tmp.18 %tmp.19; - invoke %tmp.16 %tmp.17(%tmp.20); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 159 8 ] - symbol [ WatchUi %tmp.21 159 8 15 ]; - %tmp.21 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.22 159 16 24 ]; - %tmp.22 = getv function %tmp.21 :pushView; - symbol [ VibrationView %tmp.26 160 16 29 ]; - %tmp.26 = getv ? :VibrationView; - %tmp.27 = lgetv %newEnabled.3; - symbol [ newEnabled %tmp.27 160 30 40 ]; - %tmp.23 = newc %tmp.26 (%tmp.27); - symbol [ WatchUi %tmp.30 161 16 23 ]; - %tmp.30 = getm $.Toybox.WatchUi; - symbol [ BehaviorDelegate %tmp.31 161 24 40 ]; - %tmp.31 = getv function ? %tmp.30 :BehaviorDelegate; - %tmp.28 = newc %tmp.31 (); - symbol [ WatchUi %tmp.32 162 12 19 ]; - %tmp.32 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.33 162 20 28 ]; - %tmp.33 = getv %tmp.32 :SLIDE_UP; - invoke %tmp.21 %tmp.22(%tmp.23, %tmp.28, %tmp.33); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_149_39_164_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 166; @symbol_functiondef = [onSwipe,166,13,20]; @symbol_param<0> = [event,166,21,26]; @symbol_param<0>_type<0> = [WatchUi,166,30,37]; @symbol_param<0>_type<1> = [SwipeEvent,166,38,48]; @symbol_return<0> = [Boolean,166,53,60]; ] - function onSwipe(event as WatchUi.SwipeEvent) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_166_61_179_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 167 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_166_61_179_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_166_61_179_4_stop" ] - %direction.1 = local; - symbol [ direction %direction.1 167 12 21 ]; - %tmp.1 = lgetv %event; - symbol [ event %tmp.1 167 24 29 ]; - symbol [ getDirection %tmp.2 167 30 42 ]; - %tmp.2 = getv function %tmp.1 :getDirection; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %direction.1 %tmp.3; - symbol [ direction %direction.1 167 12 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 169 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_169_8_177_8_if_stmt: - %tmp.4 = lgetv %direction.1; - symbol [ direction %tmp.4 169 12 21 ]; - symbol [ WatchUi %tmp.5 169 25 32 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ SWIPE_UP %tmp.6 169 33 41 ]; - %tmp.6 = getv %tmp.5 :SWIPE_UP; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_169_8_177_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_169_8_177_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_169_43_177_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 170 12 ] - symbol [ AdvancedView %tmp.11 170 31 43 ]; - %tmp.11 = getv ? :AdvancedView; - %tmp.8 = newc %tmp.11 (); - symbol [ _currentView ? 170 12 24 ]; - putv self :_currentView %tmp.8; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 171 12 ] - symbol [ WatchUi %tmp.12 171 12 19 ]; - %tmp.12 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.13 171 20 28 ]; - %tmp.13 = getv function %tmp.12 :pushView; - symbol [ _currentView %tmp.15 172 16 28 ]; - %tmp.15 = getv ? :_currentView; - symbol [ AdvancedViewDelegate %tmp.19 173 20 40 ]; - %tmp.19 = getv ? :AdvancedViewDelegate; - symbol [ _currentView %tmp.21 173 41 53 ]; - %tmp.21 = getv ? :_currentView; - %tmp.16 = newc %tmp.19 (%tmp.21); - symbol [ WatchUi %tmp.22 174 16 23 ]; - %tmp.22 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.23 174 24 34 ]; - %tmp.23 = getv %tmp.22 :SLIDE_DOWN; - invoke %tmp.12 %tmp.13(%tmp.15, %tmp.16, %tmp.23); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 176 12 ] - %tmp.24 = true; - ret %tmp.24; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_169_43_177_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_169_8_177_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_169_8_177_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 178 8 ] - %tmp.25 = false; - ret %tmp.25; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_166_61_179_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 181; @symbol_functiondef = [showActivityControlMenu,181,13,36]; ] - function showActivityControlMenu() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_181_47_188_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 182 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_181_47_188_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_181_47_188_4_stop" ] - %menu.1 = local; - symbol [ menu %menu.1 182 12 16 ]; - symbol [ WatchUi %tmp.3 182 23 30 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.4 182 31 36 ]; - %tmp.4 = getv function ? %tmp.3 :Menu2; - %tmp.5 = newd 1; - %tmp.7 = const :title; - symbol [ title %tmp.7 182 40 45 const ]; - %tmp.8 = "Activity"; - %tmp.9 = dup %tmp.5; - %tmp.10 = aputv %tmp.9 %tmp.7 %tmp.8; - %tmp.1 = newc %tmp.4 (%tmp.10); - lputv %menu.1 %tmp.1; - symbol [ menu %menu.1 182 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 183 8 ] - %tmp.11 = lgetv %menu.1; - symbol [ menu %tmp.11 183 8 12 ]; - symbol [ addItem %tmp.12 183 13 20 ]; - %tmp.12 = getv function %tmp.11 :addItem; - symbol [ WatchUi %tmp.15 183 25 32 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.16 183 33 41 ]; - %tmp.16 = getv function ? %tmp.15 :MenuItem; - %tmp.17 = "Resume"; - %tmp.18 = "Continue"; - %tmp.20 = const :resume_activity; - symbol [ resume_activity %tmp.20 183 65 80 const ]; - %tmp.21 = null; - %tmp.13 = newc %tmp.16 (%tmp.17, %tmp.18, %tmp.20, %tmp.21); - invoke %tmp.11 %tmp.12(%tmp.13); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 184 8 ] - %tmp.22 = lgetv %menu.1; - symbol [ menu %tmp.22 184 8 12 ]; - symbol [ addItem %tmp.23 184 13 20 ]; - %tmp.23 = getv function %tmp.22 :addItem; - symbol [ WatchUi %tmp.26 184 25 32 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.27 184 33 41 ]; - %tmp.27 = getv function ? %tmp.26 :MenuItem; - %tmp.28 = "Pause"; - %tmp.29 = "Pause activity"; - %tmp.31 = const :pause_activity; - symbol [ pause_activity %tmp.31 184 70 84 const ]; - %tmp.32 = null; - %tmp.24 = newc %tmp.27 (%tmp.28, %tmp.29, %tmp.31, %tmp.32); - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 185 8 ] - %tmp.33 = lgetv %menu.1; - symbol [ menu %tmp.33 185 8 12 ]; - symbol [ addItem %tmp.34 185 13 20 ]; - %tmp.34 = getv function %tmp.33 :addItem; - symbol [ WatchUi %tmp.37 185 25 32 ]; - %tmp.37 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.38 185 33 41 ]; - %tmp.38 = getv function ? %tmp.37 :MenuItem; - %tmp.39 = "Stop"; - %tmp.40 = "Stop activity"; - %tmp.42 = const :stop_activity; - symbol [ stop_activity %tmp.42 185 68 81 const ]; - %tmp.43 = null; - %tmp.35 = newc %tmp.38 (%tmp.39, %tmp.40, %tmp.42, %tmp.43); - invoke %tmp.33 %tmp.34(%tmp.35); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 187 8 ] - symbol [ WatchUi %tmp.44 187 8 15 ]; - %tmp.44 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.45 187 16 24 ]; - %tmp.45 = getv function %tmp.44 :pushView; - %tmp.46 = lgetv %menu.1; - symbol [ menu %tmp.46 187 25 29 ]; - symbol [ ActivityControlMenuDelegate %tmp.50 187 35 62 ]; - %tmp.50 = getv ? :ActivityControlMenuDelegate; - %tmp.51 = self; - symbol [ self %tmp.51 187 63 67 ]; - %tmp.47 = newc %tmp.50 (%tmp.51); - symbol [ WatchUi %tmp.52 187 70 77 ]; - %tmp.52 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.53 187 78 86 ]; - %tmp.53 = getv %tmp.52 :SLIDE_UP; - invoke %tmp.44 %tmp.45(%tmp.46, %tmp.47, %tmp.53); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_181_47_188_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 190; @symbol_functiondef = [showPausedControlMenu,190,13,34]; ] - function showPausedControlMenu() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_190_45_196_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 191 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_190_45_196_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_190_45_196_4_stop" ] - %menu.1 = local; - symbol [ menu %menu.1 191 12 16 ]; - symbol [ WatchUi %tmp.3 191 23 30 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.4 191 31 36 ]; - %tmp.4 = getv function ? %tmp.3 :Menu2; - %tmp.5 = newd 1; - %tmp.7 = const :title; - symbol [ title %tmp.7 191 40 45 const ]; - %tmp.8 = "Activity Paused"; - %tmp.9 = dup %tmp.5; - %tmp.10 = aputv %tmp.9 %tmp.7 %tmp.8; - %tmp.1 = newc %tmp.4 (%tmp.10); - lputv %menu.1 %tmp.1; - symbol [ menu %menu.1 191 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 192 8 ] - %tmp.11 = lgetv %menu.1; - symbol [ menu %tmp.11 192 8 12 ]; - symbol [ addItem %tmp.12 192 13 20 ]; - %tmp.12 = getv function %tmp.11 :addItem; - symbol [ WatchUi %tmp.15 192 25 32 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.16 192 33 41 ]; - %tmp.16 = getv function ? %tmp.15 :MenuItem; - %tmp.17 = "Resume"; - %tmp.18 = "Continue"; - %tmp.20 = const :resume_activity; - symbol [ resume_activity %tmp.20 192 65 80 const ]; - %tmp.21 = null; - %tmp.13 = newc %tmp.16 (%tmp.17, %tmp.18, %tmp.20, %tmp.21); - invoke %tmp.11 %tmp.12(%tmp.13); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 193 8 ] - %tmp.22 = lgetv %menu.1; - symbol [ menu %tmp.22 193 8 12 ]; - symbol [ addItem %tmp.23 193 13 20 ]; - %tmp.23 = getv function %tmp.22 :addItem; - symbol [ WatchUi %tmp.26 193 25 32 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.27 193 33 41 ]; - %tmp.27 = getv function ? %tmp.26 :MenuItem; - %tmp.28 = "Stop"; - %tmp.29 = "Stop activity"; - %tmp.31 = const :stop_activity; - symbol [ stop_activity %tmp.31 193 68 81 const ]; - %tmp.32 = null; - %tmp.24 = newc %tmp.27 (%tmp.28, %tmp.29, %tmp.31, %tmp.32); - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 195 8 ] - symbol [ WatchUi %tmp.33 195 8 15 ]; - %tmp.33 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.34 195 16 24 ]; - %tmp.34 = getv function %tmp.33 :pushView; - %tmp.35 = lgetv %menu.1; - symbol [ menu %tmp.35 195 25 29 ]; - symbol [ ActivityControlMenuDelegate %tmp.39 195 35 62 ]; - %tmp.39 = getv ? :ActivityControlMenuDelegate; - %tmp.40 = self; - symbol [ self %tmp.40 195 63 67 ]; - %tmp.36 = newc %tmp.39 (%tmp.40); - symbol [ WatchUi %tmp.41 195 70 77 ]; - %tmp.41 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.42 195 78 86 ]; - %tmp.42 = getv %tmp.41 :SLIDE_UP; - invoke %tmp.33 %tmp.34(%tmp.35, %tmp.36, %tmp.42); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_190_45_196_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 198; @symbol_functiondef = [showSaveDiscardMenu,198,13,32]; ] - function showSaveDiscardMenu() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_198_43_204_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 199 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_198_43_204_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_198_43_204_4_stop" ] - %menu.1 = local; - symbol [ menu %menu.1 199 12 16 ]; - symbol [ WatchUi %tmp.3 199 23 30 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.4 199 31 36 ]; - %tmp.4 = getv function ? %tmp.3 :Menu2; - %tmp.5 = newd 1; - %tmp.7 = const :title; - symbol [ title %tmp.7 199 40 45 const ]; - %tmp.8 = "Save Activity?"; - %tmp.9 = dup %tmp.5; - %tmp.10 = aputv %tmp.9 %tmp.7 %tmp.8; - %tmp.1 = newc %tmp.4 (%tmp.10); - lputv %menu.1 %tmp.1; - symbol [ menu %menu.1 199 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 200 8 ] - %tmp.11 = lgetv %menu.1; - symbol [ menu %tmp.11 200 8 12 ]; - symbol [ addItem %tmp.12 200 13 20 ]; - %tmp.12 = getv function %tmp.11 :addItem; - symbol [ WatchUi %tmp.15 200 25 32 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.16 200 33 41 ]; - %tmp.16 = getv function ? %tmp.15 :MenuItem; - %tmp.17 = "Save"; - %tmp.18 = "Save session"; - %tmp.20 = const :save_session; - symbol [ save_session %tmp.20 200 67 79 const ]; - %tmp.21 = null; - %tmp.13 = newc %tmp.16 (%tmp.17, %tmp.18, %tmp.20, %tmp.21); - invoke %tmp.11 %tmp.12(%tmp.13); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 201 8 ] - %tmp.22 = lgetv %menu.1; - symbol [ menu %tmp.22 201 8 12 ]; - symbol [ addItem %tmp.23 201 13 20 ]; - %tmp.23 = getv function %tmp.22 :addItem; - symbol [ WatchUi %tmp.26 201 25 32 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.27 201 33 41 ]; - %tmp.27 = getv function ? %tmp.26 :MenuItem; - %tmp.28 = "Discard"; - %tmp.29 = "Discard session"; - %tmp.31 = const :discard_session; - symbol [ discard_session %tmp.31 201 73 88 const ]; - %tmp.32 = null; - %tmp.24 = newc %tmp.27 (%tmp.28, %tmp.29, %tmp.31, %tmp.32); - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 203 8 ] - symbol [ WatchUi %tmp.33 203 8 15 ]; - %tmp.33 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.34 203 16 24 ]; - %tmp.34 = getv function %tmp.33 :pushView; - %tmp.35 = lgetv %menu.1; - symbol [ menu %tmp.35 203 25 29 ]; - symbol [ SaveDiscardMenuDelegate %tmp.39 203 35 58 ]; - %tmp.39 = getv ? :SaveDiscardMenuDelegate; - %tmp.40 = self; - symbol [ self %tmp.40 203 59 63 ]; - %tmp.36 = newc %tmp.39 (%tmp.40); - symbol [ WatchUi %tmp.41 203 66 73 ]; - %tmp.41 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.42 203 74 82 ]; - %tmp.42 = getv %tmp.41 :SLIDE_UP; - invoke %tmp.33 %tmp.34(%tmp.35, %tmp.36, %tmp.42); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_198_43_204_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 206; @symbol_functiondef = [pushSettingsView,206,13,29]; ] - function pushSettingsView() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_206_40_208_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 207 8 ] - symbol [ WatchUi %tmp.1 207 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.2 207 16 28 ]; - %tmp.2 = getv function %tmp.1 :switchToView; - symbol [ SettingsView %tmp.6 207 33 45 ]; - %tmp.6 = getv ? :SettingsView; - %tmp.3 = newc %tmp.6 (); - symbol [ SettingsMenuDelegate %tmp.10 207 53 73 ]; - %tmp.10 = getv ? :SettingsMenuDelegate; - %tmp.7 = newc %tmp.10 (); - symbol [ WatchUi %tmp.11 207 77 84 ]; - %tmp.11 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.12 207 85 93 ]; - %tmp.12 = getv %tmp.11 :SLIDE_UP; - invoke %tmp.1 %tmp.2(%tmp.3, %tmp.7, %tmp.12); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_206_40_208_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 210; @symbol_functiondef = [setMenuActive,210,13,26]; @symbol_param<0> = [active,210,27,33]; @symbol_param<0>_type<0> = [Boolean,210,37,44]; ] - function setMenuActive(active as Boolean) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_210_54_213_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 211 8 ] - %tmp.1 = lgetv %active; - symbol [ active %tmp.1 211 22 28 ]; - symbol [ _menuActive ? 211 8 19 ]; - putv self :_menuActive %tmp.1; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 212 8 ] - symbol [ System %tmp.2 212 8 14 ]; - %tmp.2 = getm $.Toybox.System; - symbol [ println %tmp.3 212 15 22 ]; - %tmp.3 = getv function %tmp.2 :println; - %tmp.4 = "[DEBUG] Menu active state set to: "; - %tmp.5 = lgetv %active; - symbol [ active %tmp.5 212 62 68 ]; - %tmp.6 = add %tmp.4 %tmp.5; - invoke %tmp.2 %tmp.3(%tmp.6); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_210_54_213_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 215; @symbol_functiondef = [onBack,215,13,19]; @symbol_return<0> = [Boolean,215,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_215_33_232_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 216 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_215_33_232_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_215_33_232_4_stop" ] - %app.1 = local; - symbol [ app %app.1 216 12 15 ]; - %tmp.1 = self; - symbol [ getApp %tmp.2 216 18 24 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %app.1 %tmp.3; - symbol [ app %app.1 216 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 218 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_8_222_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_12_218_65_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_12_218_46_begin: - %tmp.4 = lgetv %app.1; - symbol [ app %tmp.4 218 12 15 ]; - symbol [ isRecording %tmp.5 218 16 27 ]; - %tmp.5 = getv function %tmp.4 :isRecording; - %tmp.6 = invoke %tmp.4 %tmp.5(); - bt %tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_8_222_8_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_33_218_46_false: - %tmp.7 = lgetv %app.1; - symbol [ app %tmp.7 218 33 36 ]; - symbol [ isPaused %tmp.8 218 37 45 ]; - %tmp.8 = getv function %tmp.7 :isPaused; - %tmp.9 = invoke %tmp.7 %tmp.8(); - push %tmp.9; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_33_218_46_end: - %tmp.10 = phi [%tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_12_218_46_begin] [%tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_33_218_46_false] [%tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_33_218_46_end]; - bt %tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_8_222_8_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_51_218_65_false: - %tmp.11 = lgetv %app.1; - symbol [ app %tmp.11 218 51 54 ]; - symbol [ isStopped %tmp.12 218 55 64 ]; - %tmp.12 = getv function %tmp.11 :isStopped; - %tmp.13 = invoke %tmp.11 %tmp.12(); - push %tmp.13; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_51_218_65_end: - %tmp.14 = phi [%tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_12_218_65_begin] [%tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_51_218_65_false] [%tmp.14 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_51_218_65_end]; - bf %tmp.14 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_8_222_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_8_222_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_68_222_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 220 11 ] - symbol [ System %tmp.15 220 11 17 ]; - %tmp.15 = getm $.Toybox.System; - symbol [ println %tmp.16 220 18 25 ]; - %tmp.16 = getv function %tmp.15 :println; - %tmp.17 = "[UI] Finish or discard current session first"; - invoke %tmp.15 %tmp.16(%tmp.17); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 221 11 ] - %tmp.18 = true; - ret %tmp.18; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_68_222_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_8_222_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_218_8_222_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 225 8 ] - symbol [ WatchUi %tmp.19 225 8 15 ]; - %tmp.19 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.20 225 16 28 ]; - %tmp.20 = getv function %tmp.19 :switchToView; - symbol [ SimpleView %tmp.24 226 16 26 ]; - %tmp.24 = getv ? :SimpleView; - %tmp.21 = newc %tmp.24 (); - symbol [ SimpleViewDelegate %tmp.28 227 16 34 ]; - %tmp.28 = getv ? :SimpleViewDelegate; - %tmp.25 = newc %tmp.28 (); - symbol [ WatchUi %tmp.29 228 12 19 ]; - %tmp.29 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.30 228 20 35 ]; - %tmp.30 = getv %tmp.29 :SLIDE_IMMEDIATE; - invoke %tmp.19 %tmp.20(%tmp.21, %tmp.25, %tmp.30); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 231 8 ] - %tmp.31 = true; - ret %tmp.31; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_215_33_232_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 235; @symbol_classdef = [ActivityControlMenuDelegate,235,6,33]; @symbol_extends<0> = [WatchUi,235,42,49]; @symbol_extends<1> = [Menu2InputDelegate,235,50,68]; ] -class ActivityControlMenuDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 235; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 235; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 237; @position = 16; @symbol_vardef = [_parentDelegate,237,16,31]; ] - private - var _parentDelegate; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 239; @symbol_functiondef = [initialize,239,13,23]; @symbol_param<0> = [parentDelegate,239,24,38]; ] - function initialize(parentDelegate) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_239_40_242_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 240 8 ] - symbol [ Menu2InputDelegate %tmp.2 240 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 240 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 241 8 ] - %tmp.4 = lgetv %parentDelegate; - symbol [ parentDelegate %tmp.4 241 26 40 ]; - symbol [ _parentDelegate ? 241 8 23 ]; - putv self :_parentDelegate %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_239_40_242_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 244; @symbol_functiondef = [onSelect,244,13,21]; @symbol_param<0> = [item,244,22,26]; @symbol_param<0>_type<0> = [WatchUi,244,30,37]; @symbol_param<0>_type<1> = [MenuItem,244,38,46]; ] - function onSelect(item as WatchUi.MenuItem) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_244_56_277_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 245 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_244_56_277_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_244_56_277_4_stop" ] - %id.1 = local; - symbol [ id %id.1 245 12 14 ]; - %tmp.1 = lgetv %item; - symbol [ item %tmp.1 245 17 21 ]; - symbol [ getId %tmp.2 245 22 27 ]; - %tmp.2 = getv function %tmp.1 :getId; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %id.1 %tmp.3; - symbol [ id %id.1 245 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 246 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_244_56_277_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_244_56_277_4_stop" ] - %app.2 = local; - symbol [ app %app.2 246 12 15 ]; - %tmp.4 = self; - symbol [ getApp %tmp.5 246 18 24 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %app.2 %tmp.6; - symbol [ app %app.2 246 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 248 8 ] - symbol [ System %tmp.7 248 8 14 ]; - %tmp.7 = getm $.Toybox.System; - symbol [ println %tmp.8 248 15 22 ]; - %tmp.8 = getv function %tmp.7 :println; - %tmp.9 = "[DEBUG] Menu item selected: "; - %tmp.10 = lgetv %id.1; - symbol [ id %tmp.10 248 56 58 ]; - %tmp.11 = add %tmp.9 %tmp.10; - invoke %tmp.7 %tmp.8(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 250 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_250_8_276_8_if_stmt: - %tmp.12 = lgetv %id.1; - symbol [ id %tmp.12 250 12 14 ]; - %tmp.14 = const :pause_activity; - symbol [ pause_activity %tmp.14 250 19 33 const ]; - %tmp.15 = eq %tmp.12 %tmp.14; - bf %tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_250_8_276_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_250_8_276_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_250_35_257_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 251 12 ] - %tmp.16 = lgetv %app.2; - symbol [ app %tmp.16 251 12 15 ]; - symbol [ pauseRecording %tmp.17 251 16 30 ]; - %tmp.17 = getv function %tmp.16 :pauseRecording; - invoke %tmp.16 %tmp.17(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 252 12 ] - symbol [ System %tmp.18 252 12 18 ]; - %tmp.18 = getm $.Toybox.System; - symbol [ println %tmp.19 252 19 26 ]; - %tmp.19 = getv function %tmp.18 :println; - %tmp.20 = "[UI] Activity paused"; - invoke %tmp.18 %tmp.19(%tmp.20); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 253 12 ] - symbol [ _parentDelegate %tmp.22 253 12 27 ]; - %tmp.22 = getv ? :_parentDelegate; - symbol [ setMenuActive %tmp.23 253 28 41 ]; - %tmp.23 = getv function %tmp.22 :setMenuActive; - %tmp.24 = false; - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 254 12 ] - symbol [ WatchUi %tmp.25 254 12 19 ]; - %tmp.25 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.26 254 20 27 ]; - %tmp.26 = getv function %tmp.25 :popView; - symbol [ WatchUi %tmp.27 254 28 35 ]; - %tmp.27 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.28 254 36 51 ]; - %tmp.28 = getv %tmp.27 :SLIDE_IMMEDIATE; - invoke %tmp.25 %tmp.26(%tmp.28); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 255 12 ] - symbol [ WatchUi %tmp.29 255 12 19 ]; - %tmp.29 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.30 255 20 33 ]; - %tmp.30 = getv function %tmp.29 :requestUpdate; - invoke %tmp.29 %tmp.30(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_250_35_257_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_250_8_276_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_250_8_276_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 257 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_257_15_276_8_if_stmt: - %tmp.31 = lgetv %id.1; - symbol [ id %tmp.31 257 19 21 ]; - %tmp.33 = const :resume_activity; - symbol [ resume_activity %tmp.33 257 26 41 const ]; - %tmp.34 = eq %tmp.31 %tmp.33; - bf %tmp.34 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_257_15_276_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_257_15_276_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_257_43_266_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 258 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_258_12_261_12_if_stmt: - %tmp.35 = lgetv %app.2; - symbol [ app %tmp.35 258 16 19 ]; - symbol [ isPaused %tmp.36 258 20 28 ]; - %tmp.36 = getv function %tmp.35 :isPaused; - %tmp.37 = invoke %tmp.35 %tmp.36(); - bf %tmp.37 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_258_12_261_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_258_12_261_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_258_32_261_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 259 16 ] - %tmp.38 = lgetv %app.2; - symbol [ app %tmp.38 259 16 19 ]; - symbol [ resumeRecording %tmp.39 259 20 35 ]; - %tmp.39 = getv function %tmp.38 :resumeRecording; - invoke %tmp.38 %tmp.39(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 260 16 ] - symbol [ System %tmp.40 260 16 22 ]; - %tmp.40 = getm $.Toybox.System; - symbol [ println %tmp.41 260 23 30 ]; - %tmp.41 = getv function %tmp.40 :println; - %tmp.42 = "[UI] Activity resumed"; - invoke %tmp.40 %tmp.41(%tmp.42); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_258_32_261_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_258_12_261_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_258_12_261_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 262 12 ] - symbol [ _parentDelegate %tmp.44 262 12 27 ]; - %tmp.44 = getv ? :_parentDelegate; - symbol [ setMenuActive %tmp.45 262 28 41 ]; - %tmp.45 = getv function %tmp.44 :setMenuActive; - %tmp.46 = false; - invoke %tmp.44 %tmp.45(%tmp.46); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 263 12 ] - symbol [ WatchUi %tmp.47 263 12 19 ]; - %tmp.47 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.48 263 20 27 ]; - %tmp.48 = getv function %tmp.47 :popView; - symbol [ WatchUi %tmp.49 263 28 35 ]; - %tmp.49 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.50 263 36 51 ]; - %tmp.50 = getv %tmp.49 :SLIDE_IMMEDIATE; - invoke %tmp.47 %tmp.48(%tmp.50); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 264 12 ] - symbol [ WatchUi %tmp.51 264 12 19 ]; - %tmp.51 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.52 264 20 33 ]; - %tmp.52 = getv function %tmp.51 :requestUpdate; - invoke %tmp.51 %tmp.52(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_257_43_266_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_257_15_276_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_257_15_276_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 266 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_266_15_276_8_if_stmt: - %tmp.53 = lgetv %id.1; - symbol [ id %tmp.53 266 19 21 ]; - %tmp.55 = const :stop_activity; - symbol [ stop_activity %tmp.55 266 26 39 const ]; - %tmp.56 = eq %tmp.53 %tmp.55; - bf %tmp.56 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_266_15_276_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_266_15_276_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_266_41_276_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 267 12 ] - %tmp.57 = lgetv %app.2; - symbol [ app %tmp.57 267 12 15 ]; - symbol [ stopRecording %tmp.58 267 16 29 ]; - %tmp.58 = getv function %tmp.57 :stopRecording; - invoke %tmp.57 %tmp.58(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 268 12 ] - symbol [ System %tmp.59 268 12 18 ]; - %tmp.59 = getm $.Toybox.System; - symbol [ println %tmp.60 268 19 26 ]; - %tmp.60 = getv function %tmp.59 :println; - %tmp.61 = "[UI] Activity stopped"; - invoke %tmp.59 %tmp.60(%tmp.61); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 269 12 ] - symbol [ WatchUi %tmp.62 269 12 19 ]; - %tmp.62 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.63 269 20 27 ]; - %tmp.63 = getv function %tmp.62 :popView; - symbol [ WatchUi %tmp.64 269 28 35 ]; - %tmp.64 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.65 269 36 51 ]; - %tmp.65 = getv %tmp.64 :SLIDE_IMMEDIATE; - invoke %tmp.62 %tmp.63(%tmp.65); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 270 12 ] - symbol [ _parentDelegate %tmp.67 270 12 27 ]; - %tmp.67 = getv ? :_parentDelegate; - symbol [ setMenuActive %tmp.68 270 28 41 ]; - %tmp.68 = getv function %tmp.67 :setMenuActive; - %tmp.69 = false; - invoke %tmp.67 %tmp.68(%tmp.69); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 272 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_266_41_276_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_266_41_276_8_stop" ] - %menu.3 = local; - symbol [ menu %menu.3 272 16 20 ]; - symbol [ WatchUi %tmp.72 272 27 34 ]; - %tmp.72 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.73 272 35 40 ]; - %tmp.73 = getv function ? %tmp.72 :Menu2; - %tmp.74 = newd 1; - %tmp.76 = const :title; - symbol [ title %tmp.76 272 44 49 const ]; - %tmp.77 = "Save Activity?"; - %tmp.78 = dup %tmp.74; - %tmp.79 = aputv %tmp.78 %tmp.76 %tmp.77; - %tmp.70 = newc %tmp.73 (%tmp.79); - lputv %menu.3 %tmp.70; - symbol [ menu %menu.3 272 16 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 273 12 ] - %tmp.80 = lgetv %menu.3; - symbol [ menu %tmp.80 273 12 16 ]; - symbol [ addItem %tmp.81 273 17 24 ]; - %tmp.81 = getv function %tmp.80 :addItem; - symbol [ WatchUi %tmp.84 273 29 36 ]; - %tmp.84 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.85 273 37 45 ]; - %tmp.85 = getv function ? %tmp.84 :MenuItem; - %tmp.86 = "Save"; - %tmp.87 = "Save session"; - %tmp.89 = const :save_session; - symbol [ save_session %tmp.89 273 71 83 const ]; - %tmp.90 = null; - %tmp.82 = newc %tmp.85 (%tmp.86, %tmp.87, %tmp.89, %tmp.90); - invoke %tmp.80 %tmp.81(%tmp.82); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 274 12 ] - %tmp.91 = lgetv %menu.3; - symbol [ menu %tmp.91 274 12 16 ]; - symbol [ addItem %tmp.92 274 17 24 ]; - %tmp.92 = getv function %tmp.91 :addItem; - symbol [ WatchUi %tmp.95 274 29 36 ]; - %tmp.95 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.96 274 37 45 ]; - %tmp.96 = getv function ? %tmp.95 :MenuItem; - %tmp.97 = "Discard"; - %tmp.98 = "Discard session"; - %tmp.100 = const :discard_session; - symbol [ discard_session %tmp.100 274 77 92 const ]; - %tmp.101 = null; - %tmp.93 = newc %tmp.96 (%tmp.97, %tmp.98, %tmp.100, %tmp.101); - invoke %tmp.91 %tmp.92(%tmp.93); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 275 12 ] - symbol [ WatchUi %tmp.102 275 12 19 ]; - %tmp.102 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.103 275 20 28 ]; - %tmp.103 = getv function %tmp.102 :pushView; - %tmp.104 = lgetv %menu.3; - symbol [ menu %tmp.104 275 29 33 ]; - symbol [ SaveDiscardMenuDelegate %tmp.108 275 39 62 ]; - %tmp.108 = getv ? :SaveDiscardMenuDelegate; - symbol [ _parentDelegate %tmp.110 275 63 78 ]; - %tmp.110 = getv ? :_parentDelegate; - %tmp.105 = newc %tmp.108 (%tmp.110); - symbol [ WatchUi %tmp.111 275 81 88 ]; - %tmp.111 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.112 275 89 97 ]; - %tmp.112 = getv %tmp.111 :SLIDE_UP; - invoke %tmp.102 %tmp.103(%tmp.104, %tmp.105, %tmp.112); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_266_41_276_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_266_15_276_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_266_15_276_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_257_15_276_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_250_8_276_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_244_56_277_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 279; @symbol_functiondef = [onBack,279,13,19]; ] - function onBack() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_279_30_282_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 280 8 ] - symbol [ _parentDelegate %tmp.2 280 8 23 ]; - %tmp.2 = getv ? :_parentDelegate; - symbol [ setMenuActive %tmp.3 280 24 37 ]; - %tmp.3 = getv function %tmp.2 :setMenuActive; - %tmp.4 = false; - invoke %tmp.2 %tmp.3(%tmp.4); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 281 8 ] - symbol [ WatchUi %tmp.5 281 8 15 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.6 281 16 23 ]; - %tmp.6 = getv function %tmp.5 :popView; - symbol [ WatchUi %tmp.7 281 24 31 ]; - %tmp.7 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.8 281 32 47 ]; - %tmp.8 = getv %tmp.7 :SLIDE_IMMEDIATE; - invoke %tmp.5 %tmp.6(%tmp.8); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_279_30_282_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 285; @symbol_classdef = [SaveDiscardMenuDelegate,285,6,29]; @symbol_extends<0> = [WatchUi,285,38,45]; @symbol_extends<1> = [Menu2InputDelegate,285,46,64]; ] -class SaveDiscardMenuDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 285; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 285; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 287; @position = 16; @symbol_vardef = [_parentDelegate,287,16,31]; ] - private - var _parentDelegate; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 289; @symbol_functiondef = [initialize,289,13,23]; @symbol_param<0> = [parentDelegate,289,24,38]; ] - function initialize(parentDelegate) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_289_40_292_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 290 8 ] - symbol [ Menu2InputDelegate %tmp.2 290 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 290 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 291 8 ] - %tmp.4 = lgetv %parentDelegate; - symbol [ parentDelegate %tmp.4 291 26 40 ]; - symbol [ _parentDelegate ? 291 8 23 ]; - putv self :_parentDelegate %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_289_40_292_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 294; @symbol_functiondef = [onSelect,294,13,21]; @symbol_param<0> = [item,294,22,26]; @symbol_param<0>_type<0> = [WatchUi,294,30,37]; @symbol_param<0>_type<1> = [MenuItem,294,38,46]; ] - function onSelect(item as WatchUi.MenuItem) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_294_56_322_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 295 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_294_56_322_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_294_56_322_4_stop" ] - %id.1 = local; - symbol [ id %id.1 295 12 14 ]; - %tmp.1 = lgetv %item; - symbol [ item %tmp.1 295 17 21 ]; - symbol [ getId %tmp.2 295 22 27 ]; - %tmp.2 = getv function %tmp.1 :getId; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %id.1 %tmp.3; - symbol [ id %id.1 295 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 296 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_294_56_322_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_294_56_322_4_stop" ] - %app.2 = local; - symbol [ app %app.2 296 12 15 ]; - %tmp.4 = self; - symbol [ getApp %tmp.5 296 18 24 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %app.2 %tmp.6; - symbol [ app %app.2 296 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 298 8 ] - symbol [ System %tmp.7 298 8 14 ]; - %tmp.7 = getm $.Toybox.System; - symbol [ println %tmp.8 298 15 22 ]; - %tmp.8 = getv function %tmp.7 :println; - %tmp.9 = "[DEBUG] Save/Discard selected: "; - %tmp.10 = lgetv %id.1; - symbol [ id %tmp.10 298 59 61 ]; - %tmp.11 = add %tmp.9 %tmp.10; - invoke %tmp.7 %tmp.8(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 300 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_300_8_319_8_if_stmt: - %tmp.12 = lgetv %id.1; - symbol [ id %tmp.12 300 12 14 ]; - %tmp.14 = const :save_session; - symbol [ save_session %tmp.14 300 19 31 const ]; - %tmp.15 = eq %tmp.12 %tmp.14; - bf %tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_300_8_319_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_300_8_319_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_300_33_311_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 301 13 ] - %tmp.16 = lgetv %app.2; - symbol [ app %tmp.16 301 13 16 ]; - symbol [ saveSession %tmp.17 301 17 28 ]; - %tmp.17 = getv function %tmp.16 :saveSession; - invoke %tmp.16 %tmp.17(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 302 13 ] - symbol [ System %tmp.18 302 13 19 ]; - %tmp.18 = getm $.Toybox.System; - symbol [ println %tmp.19 302 20 27 ]; - %tmp.19 = getv function %tmp.18 :println; - %tmp.20 = "[UI] Activity saved"; - invoke %tmp.18 %tmp.19(%tmp.20); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 303 12 ] - symbol [ _parentDelegate %tmp.22 303 12 27 ]; - %tmp.22 = getv ? :_parentDelegate; - symbol [ setMenuActive %tmp.23 303 28 41 ]; - %tmp.23 = getv function %tmp.22 :setMenuActive; - %tmp.24 = false; - invoke %tmp.22 %tmp.23(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 306 13 ] - symbol [ WatchUi %tmp.25 306 13 20 ]; - %tmp.25 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.26 306 21 33 ]; - %tmp.26 = getv function %tmp.25 :switchToView; - symbol [ SummaryView %tmp.30 307 17 28 ]; - %tmp.30 = getv ? :SummaryView; - %tmp.27 = newc %tmp.30 (); - symbol [ SummaryViewDelegate %tmp.34 308 17 36 ]; - %tmp.34 = getv ? :SummaryViewDelegate; - %tmp.31 = newc %tmp.34 (); - symbol [ WatchUi %tmp.35 309 13 20 ]; - %tmp.35 = getm $.Toybox.WatchUi; - symbol [ SLIDE_UP %tmp.36 309 21 29 ]; - %tmp.36 = getv %tmp.35 :SLIDE_UP; - invoke %tmp.25 %tmp.26(%tmp.27, %tmp.31, %tmp.36); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_300_33_311_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_300_8_319_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_300_8_319_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 311 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_311_15_319_8_if_stmt: - %tmp.37 = lgetv %id.1; - symbol [ id %tmp.37 311 19 21 ]; - %tmp.39 = const :discard_session; - symbol [ discard_session %tmp.39 311 26 41 const ]; - %tmp.40 = eq %tmp.37 %tmp.39; - bf %tmp.40 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_311_15_319_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_311_15_319_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_311_43_319_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 312 12 ] - %tmp.41 = lgetv %app.2; - symbol [ app %tmp.41 312 12 15 ]; - symbol [ discardSession %tmp.42 312 16 30 ]; - %tmp.42 = getv function %tmp.41 :discardSession; - invoke %tmp.41 %tmp.42(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 313 12 ] - symbol [ System %tmp.43 313 12 18 ]; - %tmp.43 = getm $.Toybox.System; - symbol [ println %tmp.44 313 19 26 ]; - %tmp.44 = getv function %tmp.43 :println; - %tmp.45 = "[UI] Activity discarded"; - invoke %tmp.43 %tmp.44(%tmp.45); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 314 12 ] - symbol [ _parentDelegate %tmp.47 314 12 27 ]; - %tmp.47 = getv ? :_parentDelegate; - symbol [ setMenuActive %tmp.48 314 28 41 ]; - %tmp.48 = getv function %tmp.47 :setMenuActive; - %tmp.49 = false; - invoke %tmp.47 %tmp.48(%tmp.49); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 316 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_311_43_319_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_311_43_319_8_stop" ] - %confirmationMenu.3 = local; - symbol [ confirmationMenu %confirmationMenu.3 316 16 32 ]; - symbol [ WatchUi %tmp.52 316 39 46 ]; - %tmp.52 = getm $.Toybox.WatchUi; - symbol [ Menu2 %tmp.53 316 47 52 ]; - %tmp.53 = getv function ? %tmp.52 :Menu2; - %tmp.54 = newd 1; - %tmp.56 = const :title; - symbol [ title %tmp.56 316 56 61 const ]; - %tmp.57 = "Activity Discarded"; - %tmp.58 = dup %tmp.54; - %tmp.59 = aputv %tmp.58 %tmp.56 %tmp.57; - %tmp.50 = newc %tmp.53 (%tmp.59); - lputv %confirmationMenu.3 %tmp.50; - symbol [ confirmationMenu %confirmationMenu.3 316 16 32 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 317 12 ] - %tmp.60 = lgetv %confirmationMenu.3; - symbol [ confirmationMenu %tmp.60 317 12 28 ]; - symbol [ addItem %tmp.61 317 29 36 ]; - %tmp.61 = getv function %tmp.60 :addItem; - symbol [ WatchUi %tmp.64 317 41 48 ]; - %tmp.64 = getm $.Toybox.WatchUi; - symbol [ MenuItem %tmp.65 317 49 57 ]; - %tmp.65 = getv function ? %tmp.64 :MenuItem; - %tmp.66 = "Done"; - %tmp.67 = null; - %tmp.69 = const :done; - symbol [ done %tmp.69 317 73 77 const ]; - %tmp.70 = null; - %tmp.62 = newc %tmp.65 (%tmp.66, %tmp.67, %tmp.69, %tmp.70); - invoke %tmp.60 %tmp.61(%tmp.62); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 318 12 ] - symbol [ WatchUi %tmp.71 318 12 19 ]; - %tmp.71 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.72 318 20 28 ]; - %tmp.72 = getv function %tmp.71 :pushView; - %tmp.73 = lgetv %confirmationMenu.3; - symbol [ confirmationMenu %tmp.73 318 29 45 ]; - symbol [ ConfirmationDelegate %tmp.77 318 51 71 ]; - %tmp.77 = getv ? :ConfirmationDelegate; - symbol [ _parentDelegate %tmp.79 318 72 87 ]; - %tmp.79 = getv ? :_parentDelegate; - %tmp.74 = newc %tmp.77 (%tmp.79); - symbol [ WatchUi %tmp.80 318 90 97 ]; - %tmp.80 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.81 318 98 113 ]; - %tmp.81 = getv %tmp.80 :SLIDE_IMMEDIATE; - invoke %tmp.71 %tmp.72(%tmp.73, %tmp.74, %tmp.81); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_311_43_319_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_311_15_319_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_311_15_319_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_300_8_319_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 321 8 ] - symbol [ WatchUi %tmp.82 321 8 15 ]; - %tmp.82 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.83 321 16 29 ]; - %tmp.83 = getv function %tmp.82 :requestUpdate; - invoke %tmp.82 %tmp.83(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_294_56_322_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 324; @symbol_functiondef = [onBack,324,13,19]; ] - function onBack() as Void { - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 329; @symbol_classdef = [ConfirmationDelegate,329,6,26]; @symbol_extends<0> = [WatchUi,329,35,42]; @symbol_extends<1> = [Menu2InputDelegate,329,43,61]; ] -class ConfirmationDelegate extends WatchUi.Menu2InputDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 329; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 329; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 331; @position = 16; @symbol_vardef = [_parentDelegate,331,16,31]; ] - private - var _parentDelegate; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 333; @symbol_functiondef = [initialize,333,13,23]; @symbol_param<0> = [parentDelegate,333,24,38]; ] - function initialize(parentDelegate) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_333_40_336_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 334 8 ] - symbol [ Menu2InputDelegate %tmp.2 334 8 26 ]; - %tmp.2 = getv ? :Menu2InputDelegate; - symbol [ initialize %tmp.3 334 27 37 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 335 8 ] - %tmp.4 = lgetv %parentDelegate; - symbol [ parentDelegate %tmp.4 335 26 40 ]; - symbol [ _parentDelegate ? 335 8 23 ]; - putv self :_parentDelegate %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_333_40_336_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 338; @symbol_functiondef = [onSelect,338,13,21]; @symbol_param<0> = [item,338,22,26]; @symbol_param<0>_type<0> = [WatchUi,338,30,37]; @symbol_param<0>_type<1> = [MenuItem,338,38,46]; ] - function onSelect(item as WatchUi.MenuItem) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_338_56_342_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 339 8 ] - symbol [ _parentDelegate %tmp.2 339 8 23 ]; - %tmp.2 = getv ? :_parentDelegate; - symbol [ setMenuActive %tmp.3 339 24 37 ]; - %tmp.3 = getv function %tmp.2 :setMenuActive; - %tmp.4 = false; - invoke %tmp.2 %tmp.3(%tmp.4); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 340 8 ] - symbol [ WatchUi %tmp.5 340 8 15 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.6 340 16 23 ]; - %tmp.6 = getv function %tmp.5 :popView; - symbol [ WatchUi %tmp.7 340 24 31 ]; - %tmp.7 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.8 340 32 47 ]; - %tmp.8 = getv %tmp.7 :SLIDE_IMMEDIATE; - invoke %tmp.5 %tmp.6(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 341 8 ] - symbol [ WatchUi %tmp.9 341 8 15 ]; - %tmp.9 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.10 341 16 23 ]; - %tmp.10 = getv function %tmp.9 :popView; - symbol [ WatchUi %tmp.11 341 24 31 ]; - %tmp.11 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.12 341 32 47 ]; - %tmp.12 = getv %tmp.11 :SLIDE_IMMEDIATE; - invoke %tmp.9 %tmp.10(%tmp.12); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_338_56_342_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 344; @symbol_functiondef = [onBack,344,13,19]; ] - function onBack() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_344_30_348_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 345 8 ] - symbol [ _parentDelegate %tmp.2 345 8 23 ]; - %tmp.2 = getv ? :_parentDelegate; - symbol [ setMenuActive %tmp.3 345 24 37 ]; - %tmp.3 = getv function %tmp.2 :setMenuActive; - %tmp.4 = false; - invoke %tmp.2 %tmp.3(%tmp.4); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 346 8 ] - symbol [ WatchUi %tmp.5 346 8 15 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.6 346 16 23 ]; - %tmp.6 = getv function %tmp.5 :popView; - symbol [ WatchUi %tmp.7 346 24 31 ]; - %tmp.7 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.8 346 32 47 ]; - %tmp.8 = getv %tmp.7 :SLIDE_IMMEDIATE; - invoke %tmp.5 %tmp.6(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc" 347 8 ] - symbol [ WatchUi %tmp.9 347 8 15 ]; - %tmp.9 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.10 347 16 23 ]; - %tmp.10 = getv function %tmp.9 :popView; - symbol [ WatchUi %tmp.11 347 24 31 ]; - %tmp.11 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.12 347 32 47 ]; - %tmp.12 = getv %tmp.11 :SLIDE_IMMEDIATE; - invoke %tmp.9 %tmp.10(%tmp.12); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SimpleViewDelegate_mc_344_30_348_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SimpleViewDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/StartConfirmDelgate.mir b/bin/mir/source/Delegates/StartConfirmDelgate.mir deleted file mode 100644 index 4b22669..0000000 --- a/bin/mir/source/Delegates/StartConfirmDelgate.mir +++ /dev/null @@ -1,305 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [WatchUi,1,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 4; @symbol_classdef = [StartConfirmViewDelegate,4,6,30]; @symbol_extends<0> = [WatchUi,4,39,46]; @symbol_extends<1> = [BehaviorDelegate,4,47,63]; ] -class StartConfirmViewDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 4; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 4; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 6; @position = 12; @symbol_vardef = [_confirmView,6,12,24]; ] - private - var _confirmView; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 8; @symbol_functiondef = [initialize,8,13,23]; @symbol_param<0> = [confirmView,8,24,35]; ] - function initialize(confirmView) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_8_37_11_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 9 8 ] - symbol [ BehaviorDelegate %tmp.2 9 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 9 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 10 8 ] - %tmp.4 = lgetv %confirmView; - symbol [ confirmView %tmp.4 10 23 34 ]; - symbol [ _confirmView ? 10 8 20 ]; - putv self :_confirmView %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_8_37_11_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 14; @symbol_functiondef = [onKey,14,13,18]; @symbol_param<0> = [keyEvent,14,19,27]; ] - function onKey(keyEvent) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_14_29_30_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 15 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_14_29_30_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_14_29_30_4_stop" ] - %key.1 = local; - symbol [ key %key.1 15 12 15 ]; - %tmp.1 = lgetv %keyEvent; - symbol [ keyEvent %tmp.1 15 18 26 ]; - symbol [ getKey %tmp.2 15 27 33 ]; - %tmp.2 = getv function %tmp.1 :getKey; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %key.1 %tmp.3; - symbol [ key %key.1 15 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 17 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_17_8_21_8_if_stmt: - %tmp.4 = lgetv %key.1; - symbol [ key %tmp.4 17 12 15 ]; - symbol [ WatchUi %tmp.5 17 19 26 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ KEY_UP %tmp.6 17 27 33 ]; - %tmp.6 = getv %tmp.5 :KEY_UP; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_17_8_21_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_17_8_21_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_17_35_21_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 18 12 ] - symbol [ _confirmView %tmp.9 18 12 24 ]; - %tmp.9 = getv ? :_confirmView; - symbol [ setSelectedOption %tmp.10 18 25 42 ]; - %tmp.10 = getv function %tmp.9 :setSelectedOption; - %tmp.11 = 0; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 19 12 ] - symbol [ WatchUi %tmp.12 19 12 19 ]; - %tmp.12 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.13 19 20 33 ]; - %tmp.13 = getv function %tmp.12 :requestUpdate; - invoke %tmp.12 %tmp.13(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 20 12 ] - %tmp.14 = true; - ret %tmp.14; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_17_35_21_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_17_8_21_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_17_8_21_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 23 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_23_8_27_8_if_stmt: - %tmp.15 = lgetv %key.1; - symbol [ key %tmp.15 23 12 15 ]; - symbol [ WatchUi %tmp.16 23 19 26 ]; - %tmp.16 = getm $.Toybox.WatchUi; - symbol [ KEY_DOWN %tmp.17 23 27 35 ]; - %tmp.17 = getv %tmp.16 :KEY_DOWN; - %tmp.18 = eq %tmp.15 %tmp.17; - bf %tmp.18 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_23_8_27_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_23_8_27_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_23_37_27_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 24 12 ] - symbol [ _confirmView %tmp.20 24 12 24 ]; - %tmp.20 = getv ? :_confirmView; - symbol [ setSelectedOption %tmp.21 24 25 42 ]; - %tmp.21 = getv function %tmp.20 :setSelectedOption; - %tmp.22 = 1; - invoke %tmp.20 %tmp.21(%tmp.22); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 25 12 ] - symbol [ WatchUi %tmp.23 25 12 19 ]; - %tmp.23 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.24 25 20 33 ]; - %tmp.24 = getv function %tmp.23 :requestUpdate; - invoke %tmp.23 %tmp.24(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 26 12 ] - %tmp.25 = true; - ret %tmp.25; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_23_37_27_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_23_8_27_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_23_8_27_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 29 8 ] - %tmp.26 = false; - ret %tmp.26; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_14_29_30_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 33; @symbol_functiondef = [onSwipe,33,13,20]; @symbol_param<0> = [event,33,21,26]; ] - function onSwipe(event) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_33_28_49_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 34 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_33_28_49_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_33_28_49_4_stop" ] - %direction.1 = local; - symbol [ direction %direction.1 34 12 21 ]; - %tmp.1 = lgetv %event; - symbol [ event %tmp.1 34 24 29 ]; - symbol [ getDirection %tmp.2 34 30 42 ]; - %tmp.2 = getv function %tmp.1 :getDirection; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %direction.1 %tmp.3; - symbol [ direction %direction.1 34 12 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 36 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_36_8_40_8_if_stmt: - %tmp.4 = lgetv %direction.1; - symbol [ direction %tmp.4 36 12 21 ]; - symbol [ WatchUi %tmp.5 36 25 32 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ SWIPE_DOWN %tmp.6 36 33 43 ]; - %tmp.6 = getv %tmp.5 :SWIPE_DOWN; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_36_8_40_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_36_8_40_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_36_45_40_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 37 12 ] - symbol [ _confirmView %tmp.9 37 12 24 ]; - %tmp.9 = getv ? :_confirmView; - symbol [ setSelectedOption %tmp.10 37 25 42 ]; - %tmp.10 = getv function %tmp.9 :setSelectedOption; - %tmp.11 = 0; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 38 12 ] - symbol [ WatchUi %tmp.12 38 12 19 ]; - %tmp.12 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.13 38 20 33 ]; - %tmp.13 = getv function %tmp.12 :requestUpdate; - invoke %tmp.12 %tmp.13(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 39 12 ] - %tmp.14 = true; - ret %tmp.14; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_36_45_40_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_36_8_40_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_36_8_40_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 42 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_42_8_46_8_if_stmt: - %tmp.15 = lgetv %direction.1; - symbol [ direction %tmp.15 42 12 21 ]; - symbol [ WatchUi %tmp.16 42 25 32 ]; - %tmp.16 = getm $.Toybox.WatchUi; - symbol [ SWIPE_UP %tmp.17 42 33 41 ]; - %tmp.17 = getv %tmp.16 :SWIPE_UP; - %tmp.18 = eq %tmp.15 %tmp.17; - bf %tmp.18 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_42_8_46_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_42_8_46_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_42_43_46_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 43 12 ] - symbol [ _confirmView %tmp.20 43 12 24 ]; - %tmp.20 = getv ? :_confirmView; - symbol [ setSelectedOption %tmp.21 43 25 42 ]; - %tmp.21 = getv function %tmp.20 :setSelectedOption; - %tmp.22 = 1; - invoke %tmp.20 %tmp.21(%tmp.22); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 44 12 ] - symbol [ WatchUi %tmp.23 44 12 19 ]; - %tmp.23 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.24 44 20 33 ]; - %tmp.24 = getv function %tmp.23 :requestUpdate; - invoke %tmp.23 %tmp.24(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 45 12 ] - %tmp.25 = true; - ret %tmp.25; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_42_43_46_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_42_8_46_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_42_8_46_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 48 8 ] - %tmp.26 = false; - ret %tmp.26; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_33_28_49_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 51; @symbol_functiondef = [onSelect,51,13,21]; ] - function onSelect() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_51_24_67_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 52 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_51_24_67_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_51_24_67_4_stop" ] - %app.1 = local; - symbol [ app %app.1 52 12 15 ]; - %tmp.1 = self; - symbol [ getApp %tmp.2 52 18 24 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %app.1 %tmp.3; - symbol [ app %app.1 52 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 54 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_54_8_64_8_if_stmt: - symbol [ _confirmView %tmp.5 54 12 24 ]; - %tmp.5 = getv ? :_confirmView; - symbol [ getSelectedOption %tmp.6 54 25 42 ]; - %tmp.6 = getv function %tmp.5 :getSelectedOption; - %tmp.7 = invoke %tmp.5 %tmp.6(); - %tmp.8 = 0; - %tmp.9 = eq %tmp.7 %tmp.8; - bf %tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_54_8_64_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_54_8_64_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_54_51_60_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 56 12 ] - %tmp.10 = lgetv %app.1; - symbol [ app %tmp.10 56 12 15 ]; - symbol [ startRecording %tmp.11 56 16 30 ]; - %tmp.11 = getv function %tmp.10 :startRecording; - invoke %tmp.10 %tmp.11(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 57 12 ] - symbol [ System %tmp.12 57 12 18 ]; - %tmp.12 = getm $.Toybox.System; - symbol [ println %tmp.13 57 19 26 ]; - %tmp.13 = getv function %tmp.12 :println; - %tmp.14 = "[UI] Activity started from confirmation screen"; - invoke %tmp.12 %tmp.13(%tmp.14); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 58 12 ] - symbol [ WatchUi %tmp.15 58 12 19 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.16 58 20 27 ]; - %tmp.16 = getv function %tmp.15 :popView; - symbol [ WatchUi %tmp.17 58 28 35 ]; - %tmp.17 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.18 58 36 51 ]; - %tmp.18 = getv %tmp.17 :SLIDE_IMMEDIATE; - invoke %tmp.15 %tmp.16(%tmp.18); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 59 12 ] - symbol [ WatchUi %tmp.19 59 12 19 ]; - %tmp.19 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.20 59 20 33 ]; - %tmp.20 = getv function %tmp.19 :requestUpdate; - invoke %tmp.19 %tmp.20(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_54_51_60_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_54_8_64_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_54_8_64_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_60_15_64_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 62 12 ] - symbol [ System %tmp.21 62 12 18 ]; - %tmp.21 = getm $.Toybox.System; - symbol [ println %tmp.22 62 19 26 ]; - %tmp.22 = getv function %tmp.21 :println; - %tmp.23 = "[UI] Start recording cancelled"; - invoke %tmp.21 %tmp.22(%tmp.23); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 63 12 ] - symbol [ WatchUi %tmp.24 63 12 19 ]; - %tmp.24 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.25 63 20 27 ]; - %tmp.25 = getv function %tmp.24 :popView; - symbol [ WatchUi %tmp.26 63 28 35 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.27 63 36 51 ]; - %tmp.27 = getv %tmp.26 :SLIDE_IMMEDIATE; - invoke %tmp.24 %tmp.25(%tmp.27); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_60_15_64_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_54_8_64_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 66 8 ] - %tmp.28 = true; - ret %tmp.28; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_51_24_67_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 69; @symbol_functiondef = [onBack,69,13,19]; ] - function onBack() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_69_22_73_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 70 8 ] - symbol [ System %tmp.1 70 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 70 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[UI] Back pressed - returning to main screen"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 71 8 ] - symbol [ WatchUi %tmp.4 71 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.5 71 16 23 ]; - %tmp.5 = getv function %tmp.4 :popView; - symbol [ WatchUi %tmp.6 71 24 31 ]; - %tmp.6 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.7 71 32 47 ]; - %tmp.7 = getv %tmp.6 :SLIDE_IMMEDIATE; - invoke %tmp.4 %tmp.5(%tmp.7); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc" 72 8 ] - %tmp.8 = true; - ret %tmp.8; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmDelgate_mc_69_22_73_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmDelgate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/StartConfirmViewDelgate.mir b/bin/mir/source/Delegates/StartConfirmViewDelgate.mir deleted file mode 100644 index 9beebf1..0000000 --- a/bin/mir/source/Delegates/StartConfirmViewDelgate.mir +++ /dev/null @@ -1,305 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [WatchUi,1,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [System,2,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 4; @symbol_classdef = [StartConfirmViewDelegate,4,6,30]; @symbol_extends<0> = [WatchUi,4,39,46]; @symbol_extends<1> = [BehaviorDelegate,4,47,63]; ] -class StartConfirmViewDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 4; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 4; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 6; @position = 12; @symbol_vardef = [_confirmView,6,12,24]; ] - private - var _confirmView; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 8; @symbol_functiondef = [initialize,8,13,23]; @symbol_param<0> = [confirmView,8,24,35]; ] - function initialize(confirmView) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_8_37_11_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 9 8 ] - symbol [ BehaviorDelegate %tmp.2 9 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 9 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 10 8 ] - %tmp.4 = lgetv %confirmView; - symbol [ confirmView %tmp.4 10 23 34 ]; - symbol [ _confirmView ? 10 8 20 ]; - putv self :_confirmView %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_8_37_11_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 14; @symbol_functiondef = [onKey,14,13,18]; @symbol_param<0> = [keyEvent,14,19,27]; ] - function onKey(keyEvent) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_14_29_30_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 15 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_14_29_30_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_14_29_30_4_stop" ] - %key.1 = local; - symbol [ key %key.1 15 12 15 ]; - %tmp.1 = lgetv %keyEvent; - symbol [ keyEvent %tmp.1 15 18 26 ]; - symbol [ getKey %tmp.2 15 27 33 ]; - %tmp.2 = getv function %tmp.1 :getKey; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %key.1 %tmp.3; - symbol [ key %key.1 15 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 17 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_17_8_21_8_if_stmt: - %tmp.4 = lgetv %key.1; - symbol [ key %tmp.4 17 12 15 ]; - symbol [ WatchUi %tmp.5 17 19 26 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ KEY_UP %tmp.6 17 27 33 ]; - %tmp.6 = getv %tmp.5 :KEY_UP; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_17_8_21_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_17_8_21_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_17_35_21_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 18 12 ] - symbol [ _confirmView %tmp.9 18 12 24 ]; - %tmp.9 = getv ? :_confirmView; - symbol [ setSelectedOption %tmp.10 18 25 42 ]; - %tmp.10 = getv function %tmp.9 :setSelectedOption; - %tmp.11 = 0; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 19 12 ] - symbol [ WatchUi %tmp.12 19 12 19 ]; - %tmp.12 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.13 19 20 33 ]; - %tmp.13 = getv function %tmp.12 :requestUpdate; - invoke %tmp.12 %tmp.13(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 20 12 ] - %tmp.14 = true; - ret %tmp.14; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_17_35_21_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_17_8_21_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_17_8_21_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 23 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_23_8_27_8_if_stmt: - %tmp.15 = lgetv %key.1; - symbol [ key %tmp.15 23 12 15 ]; - symbol [ WatchUi %tmp.16 23 19 26 ]; - %tmp.16 = getm $.Toybox.WatchUi; - symbol [ KEY_DOWN %tmp.17 23 27 35 ]; - %tmp.17 = getv %tmp.16 :KEY_DOWN; - %tmp.18 = eq %tmp.15 %tmp.17; - bf %tmp.18 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_23_8_27_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_23_8_27_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_23_37_27_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 24 12 ] - symbol [ _confirmView %tmp.20 24 12 24 ]; - %tmp.20 = getv ? :_confirmView; - symbol [ setSelectedOption %tmp.21 24 25 42 ]; - %tmp.21 = getv function %tmp.20 :setSelectedOption; - %tmp.22 = 1; - invoke %tmp.20 %tmp.21(%tmp.22); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 25 12 ] - symbol [ WatchUi %tmp.23 25 12 19 ]; - %tmp.23 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.24 25 20 33 ]; - %tmp.24 = getv function %tmp.23 :requestUpdate; - invoke %tmp.23 %tmp.24(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 26 12 ] - %tmp.25 = true; - ret %tmp.25; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_23_37_27_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_23_8_27_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_23_8_27_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 29 8 ] - %tmp.26 = false; - ret %tmp.26; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_14_29_30_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 33; @symbol_functiondef = [onSwipe,33,13,20]; @symbol_param<0> = [event,33,21,26]; ] - function onSwipe(event) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_33_28_49_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 34 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_33_28_49_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_33_28_49_4_stop" ] - %direction.1 = local; - symbol [ direction %direction.1 34 12 21 ]; - %tmp.1 = lgetv %event; - symbol [ event %tmp.1 34 24 29 ]; - symbol [ getDirection %tmp.2 34 30 42 ]; - %tmp.2 = getv function %tmp.1 :getDirection; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %direction.1 %tmp.3; - symbol [ direction %direction.1 34 12 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 36 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_36_8_40_8_if_stmt: - %tmp.4 = lgetv %direction.1; - symbol [ direction %tmp.4 36 12 21 ]; - symbol [ WatchUi %tmp.5 36 25 32 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ SWIPE_DOWN %tmp.6 36 33 43 ]; - %tmp.6 = getv %tmp.5 :SWIPE_DOWN; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_36_8_40_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_36_8_40_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_36_45_40_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 37 12 ] - symbol [ _confirmView %tmp.9 37 12 24 ]; - %tmp.9 = getv ? :_confirmView; - symbol [ setSelectedOption %tmp.10 37 25 42 ]; - %tmp.10 = getv function %tmp.9 :setSelectedOption; - %tmp.11 = 0; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 38 12 ] - symbol [ WatchUi %tmp.12 38 12 19 ]; - %tmp.12 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.13 38 20 33 ]; - %tmp.13 = getv function %tmp.12 :requestUpdate; - invoke %tmp.12 %tmp.13(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 39 12 ] - %tmp.14 = true; - ret %tmp.14; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_36_45_40_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_36_8_40_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_36_8_40_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 42 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_42_8_46_8_if_stmt: - %tmp.15 = lgetv %direction.1; - symbol [ direction %tmp.15 42 12 21 ]; - symbol [ WatchUi %tmp.16 42 25 32 ]; - %tmp.16 = getm $.Toybox.WatchUi; - symbol [ SWIPE_UP %tmp.17 42 33 41 ]; - %tmp.17 = getv %tmp.16 :SWIPE_UP; - %tmp.18 = eq %tmp.15 %tmp.17; - bf %tmp.18 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_42_8_46_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_42_8_46_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_42_43_46_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 43 12 ] - symbol [ _confirmView %tmp.20 43 12 24 ]; - %tmp.20 = getv ? :_confirmView; - symbol [ setSelectedOption %tmp.21 43 25 42 ]; - %tmp.21 = getv function %tmp.20 :setSelectedOption; - %tmp.22 = 1; - invoke %tmp.20 %tmp.21(%tmp.22); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 44 12 ] - symbol [ WatchUi %tmp.23 44 12 19 ]; - %tmp.23 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.24 44 20 33 ]; - %tmp.24 = getv function %tmp.23 :requestUpdate; - invoke %tmp.23 %tmp.24(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 45 12 ] - %tmp.25 = true; - ret %tmp.25; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_42_43_46_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_42_8_46_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_42_8_46_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 48 8 ] - %tmp.26 = false; - ret %tmp.26; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_33_28_49_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 51; @symbol_functiondef = [onSelect,51,13,21]; ] - function onSelect() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_51_24_67_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 52 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_51_24_67_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_51_24_67_4_stop" ] - %app.1 = local; - symbol [ app %app.1 52 12 15 ]; - %tmp.1 = self; - symbol [ getApp %tmp.2 52 18 24 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %app.1 %tmp.3; - symbol [ app %app.1 52 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 54 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_54_8_64_8_if_stmt: - symbol [ _confirmView %tmp.5 54 12 24 ]; - %tmp.5 = getv ? :_confirmView; - symbol [ getSelectedOption %tmp.6 54 25 42 ]; - %tmp.6 = getv function %tmp.5 :getSelectedOption; - %tmp.7 = invoke %tmp.5 %tmp.6(); - %tmp.8 = 0; - %tmp.9 = eq %tmp.7 %tmp.8; - bf %tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_54_8_64_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_54_8_64_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_54_51_60_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 56 12 ] - %tmp.10 = lgetv %app.1; - symbol [ app %tmp.10 56 12 15 ]; - symbol [ startRecording %tmp.11 56 16 30 ]; - %tmp.11 = getv function %tmp.10 :startRecording; - invoke %tmp.10 %tmp.11(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 57 12 ] - symbol [ System %tmp.12 57 12 18 ]; - %tmp.12 = getm $.Toybox.System; - symbol [ println %tmp.13 57 19 26 ]; - %tmp.13 = getv function %tmp.12 :println; - %tmp.14 = "[UI] Activity started from confirmation screen"; - invoke %tmp.12 %tmp.13(%tmp.14); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 58 12 ] - symbol [ WatchUi %tmp.15 58 12 19 ]; - %tmp.15 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.16 58 20 27 ]; - %tmp.16 = getv function %tmp.15 :popView; - symbol [ WatchUi %tmp.17 58 28 35 ]; - %tmp.17 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.18 58 36 51 ]; - %tmp.18 = getv %tmp.17 :SLIDE_IMMEDIATE; - invoke %tmp.15 %tmp.16(%tmp.18); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 59 12 ] - symbol [ WatchUi %tmp.19 59 12 19 ]; - %tmp.19 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.20 59 20 33 ]; - %tmp.20 = getv function %tmp.19 :requestUpdate; - invoke %tmp.19 %tmp.20(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_54_51_60_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_54_8_64_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_54_8_64_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_60_15_64_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 62 12 ] - symbol [ System %tmp.21 62 12 18 ]; - %tmp.21 = getm $.Toybox.System; - symbol [ println %tmp.22 62 19 26 ]; - %tmp.22 = getv function %tmp.21 :println; - %tmp.23 = "[UI] Start recording cancelled"; - invoke %tmp.21 %tmp.22(%tmp.23); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 63 12 ] - symbol [ WatchUi %tmp.24 63 12 19 ]; - %tmp.24 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.25 63 20 27 ]; - %tmp.25 = getv function %tmp.24 :popView; - symbol [ WatchUi %tmp.26 63 28 35 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.27 63 36 51 ]; - %tmp.27 = getv %tmp.26 :SLIDE_IMMEDIATE; - invoke %tmp.24 %tmp.25(%tmp.27); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_60_15_64_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_54_8_64_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 66 8 ] - %tmp.28 = true; - ret %tmp.28; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_51_24_67_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 69; @symbol_functiondef = [onBack,69,13,19]; ] - function onBack() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_69_22_73_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 70 8 ] - symbol [ System %tmp.1 70 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 70 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[UI] Back pressed - returning to main screen"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 71 8 ] - symbol [ WatchUi %tmp.4 71 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.5 71 16 23 ]; - %tmp.5 = getv function %tmp.4 :popView; - symbol [ WatchUi %tmp.6 71 24 31 ]; - %tmp.6 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.7 71 32 47 ]; - %tmp.7 = getv %tmp.6 :SLIDE_IMMEDIATE; - invoke %tmp.4 %tmp.5(%tmp.7); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc" 72 8 ] - %tmp.8 = true; - ret %tmp.8; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_StartConfirmViewDelgate_mc_69_22_73_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\StartConfirmViewDelgate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/SummaryViewDelegate.mir b/bin/mir/source/Delegates/SummaryViewDelegate.mir deleted file mode 100644 index 503e245..0000000 --- a/bin/mir/source/Delegates/SummaryViewDelegate.mir +++ /dev/null @@ -1,282 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [System,3,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 5; @symbol_classdef = [SummaryViewDelegate,5,6,25]; @symbol_extends<0> = [WatchUi,5,34,41]; @symbol_extends<1> = [BehaviorDelegate,5,42,58]; ] -class SummaryViewDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 5; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 5; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 7; @symbol_functiondef = [initialize,7,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_7_26_9_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 8 8 ] - symbol [ BehaviorDelegate %tmp.2 8 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 8 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_7_26_9_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 19; @symbol_functiondef = [onSelect,19,13,21]; @symbol_return<0> = [Boolean,19,27,34]; ] - function onSelect() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_19_35_27_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 20 4 ] - symbol [ System %tmp.1 20 4 10 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 20 11 18 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[SUMMARY] Returning to main view"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 22 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_19_35_27_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_19_35_27_4_stop" ] - %app.1 = local; - symbol [ app %app.1 22 8 11 ]; - %tmp.4 = self; - symbol [ getApp %tmp.5 22 14 20 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %app.1 %tmp.6; - symbol [ app %app.1 22 8 11 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 23 4 ] - %tmp.7 = lgetv %app.1; - symbol [ app %tmp.7 23 4 7 ]; - symbol [ resetSession %tmp.8 23 8 20 ]; - %tmp.8 = getv function %tmp.7 :resetSession; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 25 4 ] - symbol [ WatchUi %tmp.9 25 4 11 ]; - %tmp.9 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.10 25 12 24 ]; - %tmp.10 = getv function %tmp.9 :switchToView; - symbol [ SimpleView %tmp.14 25 29 39 ]; - %tmp.14 = getv ? :SimpleView; - %tmp.11 = newc %tmp.14 (); - symbol [ SimpleViewDelegate %tmp.18 25 47 65 ]; - %tmp.18 = getv ? :SimpleViewDelegate; - %tmp.15 = newc %tmp.18 (); - symbol [ WatchUi %tmp.19 25 69 76 ]; - %tmp.19 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.20 25 77 87 ]; - %tmp.20 = getv %tmp.19 :SLIDE_DOWN; - invoke %tmp.9 %tmp.10(%tmp.11, %tmp.15, %tmp.20); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 26 4 ] - %tmp.21 = true; - ret %tmp.21; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_19_35_27_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 35; @symbol_functiondef = [onBack,35,13,19]; @symbol_return<0> = [Boolean,35,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_35_33_41_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 36 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_35_33_41_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_35_33_41_4_stop" ] - %app.1 = local; - symbol [ app %app.1 36 8 11 ]; - %tmp.1 = self; - symbol [ getApp %tmp.2 36 14 20 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %app.1 %tmp.3; - symbol [ app %app.1 36 8 11 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 37 4 ] - %tmp.4 = lgetv %app.1; - symbol [ app %tmp.4 37 4 7 ]; - symbol [ resetSession %tmp.5 37 8 20 ]; - %tmp.5 = getv function %tmp.4 :resetSession; - invoke %tmp.4 %tmp.5(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 39 4 ] - symbol [ WatchUi %tmp.6 39 4 11 ]; - %tmp.6 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.7 39 12 24 ]; - %tmp.7 = getv function %tmp.6 :switchToView; - symbol [ SimpleView %tmp.11 39 29 39 ]; - %tmp.11 = getv ? :SimpleView; - %tmp.8 = newc %tmp.11 (); - symbol [ SimpleViewDelegate %tmp.15 39 47 65 ]; - %tmp.15 = getv ? :SimpleViewDelegate; - %tmp.12 = newc %tmp.15 (); - symbol [ WatchUi %tmp.16 39 69 76 ]; - %tmp.16 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.17 39 77 87 ]; - %tmp.17 = getv %tmp.16 :SLIDE_DOWN; - invoke %tmp.6 %tmp.7(%tmp.8, %tmp.12, %tmp.17); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 40 4 ] - %tmp.18 = true; - ret %tmp.18; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_35_33_41_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 44; @symbol_functiondef = [onSwipe,44,13,20]; @symbol_param<0> = [event,44,21,26]; @symbol_param<0>_type<0> = [WatchUi,44,30,37]; @symbol_param<0>_type<1> = [SwipeEvent,44,38,48]; @symbol_return<0> = [Boolean,44,53,60]; ] - function onSwipe(event as WatchUi.SwipeEvent) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_44_61_54_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 45 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_44_61_54_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_44_61_54_4_stop" ] - %direction.1 = local; - symbol [ direction %direction.1 45 12 21 ]; - %tmp.1 = lgetv %event; - symbol [ event %tmp.1 45 24 29 ]; - symbol [ getDirection %tmp.2 45 30 42 ]; - %tmp.2 = getv function %tmp.1 :getDirection; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %direction.1 %tmp.3; - symbol [ direction %direction.1 45 12 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 47 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_8_51_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_12_47_68_begin: - %tmp.4 = lgetv %direction.1; - symbol [ direction %tmp.4 47 12 21 ]; - symbol [ WatchUi %tmp.5 47 25 32 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ SWIPE_LEFT %tmp.6 47 33 43 ]; - %tmp.6 = getv %tmp.5 :SWIPE_LEFT; - %tmp.7 = eq %tmp.4 %tmp.6; - bt %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_8_51_8_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_47_47_68_false: - %tmp.8 = lgetv %direction.1; - symbol [ direction %tmp.8 47 47 56 ]; - symbol [ WatchUi %tmp.9 47 60 67 ]; - %tmp.9 = getm $.Toybox.WatchUi; - symbol [ SWIPE_DOWN %tmp.10 47 68 78 ]; - %tmp.10 = getv %tmp.9 :SWIPE_DOWN; - %tmp.11 = eq %tmp.8 %tmp.10; - push %tmp.11; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_47_47_68_end: - %tmp.12 = phi [%tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_12_47_68_begin] [%tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_47_47_68_false] [%tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_47_47_68_end]; - bf %tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_8_51_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_8_51_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_80_51_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 48 12 ] - symbol [ System %tmp.13 48 12 18 ]; - %tmp.13 = getm $.Toybox.System; - symbol [ println %tmp.14 48 19 26 ]; - %tmp.14 = getv function %tmp.13 :println; - %tmp.15 = "[SUMMARY] Swiped to dismiss"; - invoke %tmp.13 %tmp.14(%tmp.15); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 49 12 ] - symbol [ WatchUi %tmp.16 49 12 19 ]; - %tmp.16 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.17 49 20 32 ]; - %tmp.17 = getv function %tmp.16 :switchToView; - symbol [ SimpleView %tmp.21 49 37 47 ]; - %tmp.21 = getv ? :SimpleView; - %tmp.18 = newc %tmp.21 (); - symbol [ SimpleViewDelegate %tmp.25 49 55 73 ]; - %tmp.25 = getv ? :SimpleViewDelegate; - %tmp.22 = newc %tmp.25 (); - symbol [ WatchUi %tmp.26 49 77 84 ]; - %tmp.26 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.27 49 85 95 ]; - %tmp.27 = getv %tmp.26 :SLIDE_DOWN; - invoke %tmp.16 %tmp.17(%tmp.18, %tmp.22, %tmp.27); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 50 12 ] - %tmp.28 = true; - ret %tmp.28; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_80_51_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_8_51_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_47_8_51_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 53 8 ] - %tmp.29 = false; - ret %tmp.29; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_44_61_54_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 57; @symbol_functiondef = [onKey,57,13,18]; @symbol_param<0> = [keyEvent,57,19,27]; @symbol_param<0>_type<0> = [WatchUi,57,31,38]; @symbol_param<0>_type<1> = [KeyEvent,57,39,47]; @symbol_return<0> = [Boolean,57,52,59]; ] - function onKey(keyEvent as WatchUi.KeyEvent) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_57_60_68_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 58 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_57_60_68_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_57_60_68_4_stop" ] - %key.1 = local; - symbol [ key %key.1 58 12 15 ]; - %tmp.1 = lgetv %keyEvent; - symbol [ keyEvent %tmp.1 58 18 26 ]; - symbol [ getKey %tmp.2 58 27 33 ]; - %tmp.2 = getv function %tmp.1 :getKey; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %key.1 %tmp.3; - symbol [ key %key.1 58 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 61 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_8_65_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_12_62_55_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_12_62_27_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_12_61_52_begin: - %tmp.4 = lgetv %key.1; - symbol [ key %tmp.4 61 12 15 ]; - symbol [ WatchUi %tmp.5 61 19 26 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ KEY_UP %tmp.6 61 27 33 ]; - %tmp.6 = getv %tmp.5 :KEY_UP; - %tmp.7 = eq %tmp.4 %tmp.6; - bt %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_8_65_8_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_37_61_52_false: - %tmp.8 = lgetv %key.1; - symbol [ key %tmp.8 61 37 40 ]; - symbol [ WatchUi %tmp.9 61 44 51 ]; - %tmp.9 = getm $.Toybox.WatchUi; - symbol [ KEY_DOWN %tmp.10 61 52 60 ]; - %tmp.10 = getv %tmp.9 :KEY_DOWN; - %tmp.11 = eq %tmp.8 %tmp.10; - push %tmp.11; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_37_61_52_end: - %tmp.12 = phi [%tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_12_61_52_begin] [%tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_37_61_52_false] [%tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_37_61_52_end]; - bt %tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_8_65_8_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_62_12_62_27_false: - %tmp.13 = lgetv %key.1; - symbol [ key %tmp.13 62 12 15 ]; - symbol [ WatchUi %tmp.14 62 19 26 ]; - %tmp.14 = getm $.Toybox.WatchUi; - symbol [ KEY_ENTER %tmp.15 62 27 36 ]; - %tmp.15 = getv %tmp.14 :KEY_ENTER; - %tmp.16 = eq %tmp.13 %tmp.15; - push %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_62_12_62_27_end: - %tmp.17 = phi [%tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_12_62_27_begin] [%tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_62_12_62_27_false] [%tmp.17 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_62_12_62_27_end]; - bt %tmp.17 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_8_65_8_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_62_40_62_55_false: - %tmp.18 = lgetv %key.1; - symbol [ key %tmp.18 62 40 43 ]; - symbol [ WatchUi %tmp.19 62 47 54 ]; - %tmp.19 = getm $.Toybox.WatchUi; - symbol [ KEY_MENU %tmp.20 62 55 63 ]; - %tmp.20 = getv %tmp.19 :KEY_MENU; - %tmp.21 = eq %tmp.18 %tmp.20; - push %tmp.21; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_62_40_62_55_end: - %tmp.22 = phi [%tmp.17 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_12_62_55_begin] [%tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_62_40_62_55_false] [%tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_62_40_62_55_end]; - bf %tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_8_65_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_8_65_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_62_65_65_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 63 12 ] - symbol [ WatchUi %tmp.23 63 12 19 ]; - %tmp.23 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.24 63 20 32 ]; - %tmp.24 = getv function %tmp.23 :switchToView; - symbol [ SimpleView %tmp.28 63 37 47 ]; - %tmp.28 = getv ? :SimpleView; - %tmp.25 = newc %tmp.28 (); - symbol [ SimpleViewDelegate %tmp.32 63 55 73 ]; - %tmp.32 = getv ? :SimpleViewDelegate; - %tmp.29 = newc %tmp.32 (); - symbol [ WatchUi %tmp.33 63 77 84 ]; - %tmp.33 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.34 63 85 95 ]; - %tmp.34 = getv %tmp.33 :SLIDE_DOWN; - invoke %tmp.23 %tmp.24(%tmp.25, %tmp.29, %tmp.34); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 64 12 ] - %tmp.35 = true; - ret %tmp.35; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_62_65_65_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_8_65_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_61_8_65_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc" 67 8 ] - %tmp.36 = false; - ret %tmp.36; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_SummaryViewDelegate_mc_57_60_68_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\SummaryViewDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Delegates/TimeViewDelegate.mir b/bin/mir/source/Delegates/TimeViewDelegate.mir deleted file mode 100644 index 18e485b..0000000 --- a/bin/mir/source/Delegates/TimeViewDelegate.mir +++ /dev/null @@ -1,188 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 4; @symbol_classdef = [TimeViewDelegate,4,6,22]; @symbol_extends<0> = [WatchUi,4,31,38]; @symbol_extends<1> = [BehaviorDelegate,4,39,55]; ] -class TimeViewDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 4; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 4; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 6; @symbol_functiondef = [initialize,6,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_6_26_8_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 7 8 ] - symbol [ BehaviorDelegate %tmp.2 7 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 7 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_6_26_8_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 11; @symbol_functiondef = [onMenu,11,13,19]; @symbol_return<0> = [Boolean,11,25,32]; ] - function onMenu() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_11_33_14_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 12 8 ] - %tmp.1 = self; - symbol [ pushSettingsView %tmp.2 12 8 24 ]; - %tmp.2 = getv function %tmp.1 :pushSettingsView; - invoke %tmp.1 %tmp.2(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 13 8 ] - %tmp.3 = true; - ret %tmp.3; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_11_33_14_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 17; @symbol_functiondef = [onKey,17,13,18]; @symbol_param<0> = [keyEvent,17,19,27]; @symbol_param<0>_type<0> = [WatchUi,17,31,38]; @symbol_param<0>_type<1> = [KeyEvent,17,39,47]; @symbol_return<0> = [Boolean,17,52,59]; ] - function onKey(keyEvent as WatchUi.KeyEvent) as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_17_60_35_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 18 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_17_60_35_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_17_60_35_4_stop" ] - %key.1 = local; - symbol [ key %key.1 18 12 15 ]; - %tmp.1 = lgetv %keyEvent; - symbol [ keyEvent %tmp.1 18 18 26 ]; - symbol [ getKey %tmp.2 18 27 33 ]; - %tmp.2 = getv function %tmp.1 :getKey; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %key.1 %tmp.3; - symbol [ key %key.1 18 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 20 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_20_8_28_8_if_stmt: - %tmp.4 = lgetv %key.1; - symbol [ key %tmp.4 20 12 15 ]; - symbol [ WatchUi %tmp.5 20 19 26 ]; - %tmp.5 = getm $.Toybox.WatchUi; - symbol [ KEY_DOWN %tmp.6 20 27 35 ]; - %tmp.6 = getv %tmp.5 :KEY_DOWN; - %tmp.7 = eq %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_20_8_28_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_20_8_28_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_20_37_28_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 21 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_20_37_28_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_20_37_28_8_stop" ] - %advancedView.2 = local; - symbol [ advancedView %advancedView.2 21 16 28 ]; - symbol [ AdvancedView %tmp.11 21 35 47 ]; - %tmp.11 = getv ? :AdvancedView; - %tmp.8 = newc %tmp.11 (); - lputv %advancedView.2 %tmp.8; - symbol [ advancedView %advancedView.2 21 16 28 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 22 12 ] - symbol [ WatchUi %tmp.12 22 12 19 ]; - %tmp.12 = getm $.Toybox.WatchUi; - symbol [ switchToView %tmp.13 22 20 32 ]; - %tmp.13 = getv function %tmp.12 :switchToView; - %tmp.14 = lgetv %advancedView.2; - symbol [ advancedView %tmp.14 23 16 28 ]; - symbol [ AdvancedViewDelegate %tmp.18 24 20 40 ]; - %tmp.18 = getv ? :AdvancedViewDelegate; - %tmp.19 = lgetv %advancedView.2; - symbol [ advancedView %tmp.19 24 41 53 ]; - %tmp.15 = newc %tmp.18 (%tmp.19); - symbol [ WatchUi %tmp.20 25 16 23 ]; - %tmp.20 = getm $.Toybox.WatchUi; - symbol [ SLIDE_DOWN %tmp.21 25 24 34 ]; - %tmp.21 = getv %tmp.20 :SLIDE_DOWN; - invoke %tmp.12 %tmp.13(%tmp.14, %tmp.15, %tmp.21); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 27 12 ] - %tmp.22 = true; - ret %tmp.22; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_20_37_28_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_20_8_28_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_20_8_28_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 30 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_30_8_32_8_if_stmt: - %tmp.23 = lgetv %key.1; - symbol [ key %tmp.23 30 12 15 ]; - symbol [ WatchUi %tmp.24 30 19 26 ]; - %tmp.24 = getm $.Toybox.WatchUi; - symbol [ KEY_UP %tmp.25 30 27 33 ]; - %tmp.25 = getv %tmp.24 :KEY_UP; - %tmp.26 = eq %tmp.23 %tmp.25; - bf %tmp.26 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_30_8_32_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_30_8_32_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_30_35_32_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 31 12 ] - %tmp.27 = true; - ret %tmp.27; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_30_35_32_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_30_8_32_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_30_8_32_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 34 8 ] - %tmp.28 = false; - ret %tmp.28; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_17_60_35_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 38; @symbol_functiondef = [onBack,38,13,19]; @symbol_return<0> = [Boolean,38,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_38_33_40_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 39 8 ] - %tmp.1 = true; - ret %tmp.1; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_38_33_40_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 43; @symbol_functiondef = [pushSettingsView,43,9,25]; ] -function pushSettingsView() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_43_36_47_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 44 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_43_36_47_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_43_36_47_0_stop" ] - %settingsView.1 = local; - symbol [ settingsView %settingsView.1 44 8 20 ]; - symbol [ SettingsView %tmp.4 44 27 39 ]; - %tmp.4 = getv ? :SettingsView; - %tmp.1 = newc %tmp.4 (); - lputv %settingsView.1 %tmp.1; - symbol [ settingsView %settingsView.1 44 8 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 45 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_43_36_47_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_43_36_47_0_stop" ] - %settingsDelegate.2 = local; - symbol [ settingsDelegate %settingsDelegate.2 45 8 24 ]; - symbol [ SettingsDelegate %tmp.8 45 31 47 ]; - %tmp.8 = getv ? :SettingsDelegate; - %tmp.5 = newc %tmp.8 (); - lputv %settingsDelegate.2 %tmp.5; - symbol [ settingsDelegate %settingsDelegate.2 45 8 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 46 4 ] - symbol [ WatchUi %tmp.9 46 4 11 ]; - %tmp.9 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.10 46 12 20 ]; - %tmp.10 = getv function %tmp.9 :pushView; - %tmp.11 = lgetv %settingsView.1; - symbol [ settingsView %tmp.11 46 21 33 ]; - %tmp.12 = lgetv %settingsDelegate.2; - symbol [ settingsDelegate %tmp.12 46 35 51 ]; - symbol [ WatchUi %tmp.13 46 53 60 ]; - %tmp.13 = getm $.Toybox.WatchUi; - symbol [ SLIDE_LEFT %tmp.14 46 61 71 ]; - %tmp.14 = getv %tmp.13 :SLIDE_LEFT; - invoke %tmp.9 %tmp.10(%tmp.11, %tmp.12, %tmp.14); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_43_36_47_0_stop: -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 50; @symbol_classdef = [SettingsDelegate,50,6,22]; @symbol_extends<0> = [WatchUi,50,31,38]; @symbol_extends<1> = [BehaviorDelegate,50,39,55]; ] -class SettingsDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 50; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 50; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 51; @symbol_functiondef = [initialize,51,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_51_26_53_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc" 52 8 ] - symbol [ BehaviorDelegate %tmp.2 52 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 52 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Delegates_TimeViewDelegate_mc_51_26_53_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Delegates\TimeViewDelegate.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/GarminApp.mir b/bin/mir/source/GarminApp.mir deleted file mode 100644 index 394f789..0000000 --- a/bin/mir/source/GarminApp.mir +++ /dev/null @@ -1,4469 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Application,1,14,25]; ] -import Toybox.Application; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [Lang,2,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [WatchUi,3,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Timer,4,14,19]; ] -import Toybox.Timer; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 5; @symbol_importdef<0> = [Toybox,5,7,13]; @symbol_importdef<1> = [Activity,5,14,22]; ] -import Toybox.Activity; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 6; @symbol_importdef<0> = [Toybox,6,7,13]; @symbol_importdef<1> = [ActivityRecording,6,14,31]; ] -import Toybox.ActivityRecording; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 7; @symbol_importdef<0> = [Toybox,7,7,13]; @symbol_importdef<1> = [System,7,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 8; @symbol_importdef<0> = [Toybox,8,7,13]; @symbol_importdef<1> = [Application,8,14,25]; @symbol_importdef<2> = [Storage,8,26,33]; ] -import Toybox.Application.Storage; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 10; @symbol_classdef = [GarminApp,10,6,15]; @symbol_extends<0> = [Application,10,24,35]; @symbol_extends<1> = [AppBase,10,36,43]; ] -class GarminApp extends Application.AppBase { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 10; ] - { -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 37 16 ] - symbol [ IDLE %tmp.2 37 48 52 ]; - %tmp.2 = getv ? :IDLE; - putv self :_sessionState %tmp.2; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 46 10 ] - %tmp.3 = newd 4; - symbol [ FifteenminChart %tmp.5 47 8 23 ]; - %tmp.5 = getv ? :FifteenminChart; - %tmp.6 = "15 Minutes"; - %tmp.7 = dup %tmp.3; - %tmp.8 = aputv %tmp.7 %tmp.5 %tmp.6; - symbol [ ThirtyminChart %tmp.10 48 8 22 ]; - %tmp.10 = getv ? :ThirtyminChart; - %tmp.11 = "30 Minutes"; - %tmp.12 = dup %tmp.8; - %tmp.13 = aputv %tmp.12 %tmp.10 %tmp.11; - symbol [ OneHourChart %tmp.15 49 8 20 ]; - %tmp.15 = getv ? :OneHourChart; - %tmp.16 = "1 Hour"; - %tmp.17 = dup %tmp.13; - %tmp.18 = aputv %tmp.17 %tmp.15 %tmp.16; - symbol [ TwoHourChart %tmp.20 50 8 20 ]; - %tmp.20 = getv ? :TwoHourChart; - %tmp.21 = "2 Hours"; - %tmp.22 = dup %tmp.18; - %tmp.23 = aputv %tmp.22 %tmp.20 %tmp.21; - putv self :CHART_ENUM_NAMES %tmp.23; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 69 8 ] - symbol [ ThirtyminChart %tmp.25 69 25 39 ]; - %tmp.25 = getv ? :ThirtyminChart; - %tmp.26 = as %tmp.25 Number; - symbol [ Number %tmp.26 69 43 49 ]; - putv self :_chartDuration %tmp.26; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 75 16 ] - symbol [ MAX_BARS %tmp.29 75 56 64 ]; - %tmp.29 = getv ? :MAX_BARS; - %tmp.27 = newa %tmp.29; - putv self :_cadenceHistory %tmp.27; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 79 16 ] - symbol [ _chartDuration %tmp.32 79 55 69 ]; - %tmp.32 = getv ? :_chartDuration; - %tmp.30 = newa %tmp.32; - putv self :_cadenceBarAvg %tmp.30; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 87 16 ] - %tmp.33 = newa 0; - putv self :_cqHistory %tmp.33; - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 10; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 11; @position = 10; @symbol_constdef = [MAX_BARS,11,10,18]; ] - const MAX_BARS = 280; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 12; @position = 10; @symbol_constdef = [BASELINE_AVG_CADENCE,12,10,30]; ] - const BASELINE_AVG_CADENCE = 160; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 13; @position = 10; @symbol_constdef = [MAX_CADENCE,13,10,21]; ] - const MAX_CADENCE = 190; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 14; @position = 10; @symbol_constdef = [MIN_CQ_SAMPLES,14,10,24]; ] - const MIN_CQ_SAMPLES = 30; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 15; @position = 10; @symbol_constdef = [DEBUG_MODE,15,10,20]; ] - const DEBUG_MODE = true; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 18; @position = 10; @symbol_constdef = [PROP_USER_HEIGHT,18,10,26]; ] - const PROP_USER_HEIGHT = "userHeight"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 19; @position = 10; @symbol_constdef = [PROP_USER_SPEED,19,10,25]; ] - const PROP_USER_SPEED = "userSpeed"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 20; @position = 10; @symbol_constdef = [PROP_USER_GENDER,20,10,26]; ] - const PROP_USER_GENDER = "userGender"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 21; @position = 10; @symbol_constdef = [PROP_EXPERIENCE_LVL,21,10,29]; ] - const PROP_EXPERIENCE_LVL = "experienceLvl"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 22; @position = 10; @symbol_constdef = [PROP_CHART_DURATION,22,10,29]; ] - const PROP_CHART_DURATION = "chartDuration"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 23; @position = 10; @symbol_constdef = [PROP_MIN_CADENCE,23,10,26]; ] - const PROP_MIN_CADENCE = "minCadence"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 24; @position = 10; @symbol_constdef = [PROP_MAX_CADENCE,24,10,26]; ] - const PROP_MAX_CADENCE = "maxCadence"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 25; @position = 10; @symbol_constdef = [PROP_VIBRATION_ENABLED,25,10,32]; ] - const PROP_VIBRATION_ENABLED = "vibrationEnabled"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 27; @position = 8; @symbol_vardef = [globalTimer,27,8,19]; ] - var globalTimer; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 28; @position = 8; @symbol_vardef = [activitySession,28,8,23]; ] - var activitySession; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 30; @symbol_enumdef = [SessionState,30,9,21]; ] - static - enum SessionState { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 31; @position = 8; @symbol_enumdec = [IDLE,31,8,12]; ] - IDLE, - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 32; @position = 8; @symbol_enumdec = [RECORDING,32,8,17]; ] - RECORDING, - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 33; @position = 8; @symbol_enumdec = [PAUSED,33,8,14]; ] - PAUSED, - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 34; @position = 8; @symbol_enumdec = [STOPPED,34,8,15]; ] - STOPPED - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 37; @position = 16; @symbol_vardef = [_sessionState,37,16,29]; @symbol_type<0> = [SessionState,37,33,45]; ] - private - var _sessionState as SessionState; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 39; ] - static - enum { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 40; @position = 4; @symbol_enumdec = [FifteenminChart,40,4,19]; ] - FifteenminChart = 5, - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 41; @position = 4; @symbol_enumdec = [ThirtyminChart,41,4,18]; ] - ThirtyminChart = 10, - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 42; @position = 4; @symbol_enumdec = [OneHourChart,42,4,16]; ] - OneHourChart = 20, - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 43; @position = 4; @symbol_enumdec = [TwoHourChart,43,4,16]; ] - TwoHourChart = 40 - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 46; @position = 10; @symbol_constdef = [CHART_ENUM_NAMES,46,10,26]; ] - const CHART_ENUM_NAMES; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 53; ] - static - enum { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 54; @position = 8; @symbol_enumdec = [Beginner,54,8,16]; ] - Beginner = 1.06, - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 55; @position = 8; @symbol_enumdec = [Intermediate,55,8,20]; ] - Intermediate = 1.04, - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 56; @position = 8; @symbol_enumdec = [Advanced,56,8,16]; ] - Advanced = 1.02 - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 59; ] - static - enum { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 60; @position = 8; @symbol_enumdec = [Male,60,8,12]; ] - Male, - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 61; @position = 8; @symbol_enumdec = [Female,61,8,14]; ] - Female, - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 62; @position = 8; @symbol_enumdec = [Other,62,8,13]; ] - Other - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 65; @position = 8; @symbol_vardef = [_userHeight,65,8,19]; ] - var _userHeight = 170; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 66; @position = 8; @symbol_vardef = [_userSpeed,66,8,18]; ] - var _userSpeed = 10.0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 67; @position = 8; @symbol_vardef = [_experienceLvl,67,8,22]; ] - var _experienceLvl = 1.00; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 68; @position = 8; @symbol_vardef = [_userGender,68,8,19]; ] - var _userGender = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 69; @position = 8; @symbol_vardef = [_chartDuration,69,8,22]; ] - var _chartDuration; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 70; @position = 16; @symbol_vardef = [_vibrationEnabled,70,16,33]; ] - private - var _vibrationEnabled = true; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 72; @position = 8; @symbol_vardef = [_idealMinCadence,72,8,24]; ] - var _idealMinCadence = 120; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 73; @position = 8; @symbol_vardef = [_idealMaxCadence,73,8,24]; ] - var _idealMaxCadence = 150; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 75; @position = 16; @symbol_vardef = [_cadenceHistory,75,16,31]; @symbol_type<0> = [Array,75,35,40]; @symbol_type<1> = [Float,75,41,46]; ] - private - var _cadenceHistory as Array; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 76; @position = 16; @symbol_vardef = [_cadenceIndex,76,16,29]; ] - private - var _cadenceIndex = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 77; @position = 16; @symbol_vardef = [_cadenceCount,77,16,29]; ] - private - var _cadenceCount = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 79; @position = 16; @symbol_vardef = [_cadenceBarAvg,79,16,30]; @symbol_type<0> = [Array,79,34,39]; @symbol_type<1> = [Float,79,40,45]; ] - private - var _cadenceBarAvg as Array; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 80; @position = 16; @symbol_vardef = [_cadenceAvgIndex,80,16,32]; ] - private - var _cadenceAvgIndex = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 81; @position = 16; @symbol_vardef = [_cadenceAvgCount,81,16,32]; ] - private - var _cadenceAvgCount = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 83; @position = 16; @symbol_vardef = [_finalCQ,83,16,24]; ] - private - var _finalCQ = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 84; @position = 16; @symbol_vardef = [_missingCadenceCount,84,16,36]; ] - private - var _missingCadenceCount = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 85; @position = 16; @symbol_vardef = [_finalCQConfidence,85,16,34]; ] - private - var _finalCQConfidence = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 86; @position = 16; @symbol_vardef = [_finalCQTrend,86,16,29]; ] - private - var _finalCQTrend = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 87; @position = 16; @symbol_vardef = [_cqHistory,87,16,26]; @symbol_type<0> = [Array,87,30,35]; @symbol_type<1> = [Number,87,36,42]; ] - private - var _cqHistory as Array; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 89; @position = 16; @symbol_vardef = [_sessionStartTime,89,16,33]; ] - private - var _sessionStartTime = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 90; @position = 16; @symbol_vardef = [_sessionPausedTime,90,16,34]; ] - private - var _sessionPausedTime = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 91; @position = 16; @symbol_vardef = [_lastPauseTime,91,16,30]; ] - private - var _lastPauseTime = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 94; @position = 16; @symbol_vardef = [_sessionDuration,94,16,32]; ] - private - var _sessionDuration = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 95; @position = 16; @symbol_vardef = [_sessionDistance,95,16,32]; ] - private - var _sessionDistance = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 96; @position = 16; @symbol_vardef = [_avgHeartRate,96,16,29]; ] - private - var _avgHeartRate = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 97; @position = 16; @symbol_vardef = [_peakHeartRate,97,16,30]; ] - private - var _peakHeartRate = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 98; @position = 16; @symbol_vardef = [_linkedTemperature,98,16,34]; ] - private - var _linkedTemperature = "--"; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 100; @symbol_functiondef = [initialize,100,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_100_26_104_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 101 8 ] - symbol [ AppBase %tmp.2 101 8 15 ]; - %tmp.2 = getv ? :AppBase; - symbol [ initialize %tmp.3 101 16 26 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 102 8 ] - symbol [ System %tmp.4 102 8 14 ]; - %tmp.4 = getm $.Toybox.System; - symbol [ println %tmp.5 102 15 22 ]; - %tmp.5 = getv function %tmp.4 :println; - %tmp.6 = "[INFO] App initialized"; - invoke %tmp.4 %tmp.5(%tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 103 8 ] - %tmp.7 = null; - symbol [ activitySession ? 103 8 23 ]; - putv self :activitySession %tmp.7; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_100_26_104_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 106; @symbol_functiondef = [onStart,106,13,20]; @symbol_param<0> = [state,106,21,26]; @symbol_param<0>_type<0> = [Dictionary,106,30,40]; ] - function onStart(state as Dictionary or Null) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_106_51_115_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 107 8 ] - symbol [ System %tmp.1 107 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 107 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[INFO] App starting"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 111 8 ] - %tmp.4 = self; - symbol [ loadSettings %tmp.5 111 8 20 ]; - %tmp.5 = getv function %tmp.4 :loadSettings; - invoke %tmp.4 %tmp.5(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 113 8 ] - symbol [ Timer %tmp.8 113 26 31 ]; - %tmp.8 = getm $.Toybox.Timer; - symbol [ Timer %tmp.9 113 32 37 ]; - %tmp.9 = getv function ? %tmp.8 :Timer; - %tmp.6 = newc %tmp.9 (); - symbol [ globalTimer ? 113 8 19 ]; - putv self :globalTimer %tmp.6; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 114 8 ] - symbol [ globalTimer %tmp.11 114 8 19 ]; - %tmp.11 = getv ? :globalTimer; - symbol [ start %tmp.12 114 20 25 ]; - %tmp.12 = getv function %tmp.11 :start; - %tmp.13 = self; - symbol [ method %tmp.14 114 26 32 ]; - %tmp.14 = getv function %tmp.13 :method; - %tmp.16 = const :updateCadenceBarAvg; - symbol [ updateCadenceBarAvg %tmp.16 114 34 53 const ]; - %tmp.17 = invoke %tmp.13 %tmp.14(%tmp.16); - %tmp.18 = 1000; - %tmp.19 = true; - invoke %tmp.11 %tmp.12(%tmp.17, %tmp.18, %tmp.19); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_106_51_115_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 117; @symbol_functiondef = [onStop,117,13,19]; @symbol_param<0> = [state,117,20,25]; @symbol_param<0>_type<0> = [Dictionary,117,29,39]; ] - function onStop(state as Dictionary or Null) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_117_50_133_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 118 8 ] - symbol [ System %tmp.1 118 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 118 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[INFO] App stopping"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 121 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_8_124_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_12_121_67_begin: - symbol [ activitySession %tmp.5 121 12 27 ]; - %tmp.5 = getv ? :activitySession; - %tmp.6 = null; - %tmp.7 = ne %tmp.5 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_8_124_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_39_121_67_true: - symbol [ activitySession %tmp.9 121 39 54 ]; - %tmp.9 = getv ? :activitySession; - %tmp.10 = as %tmp.9 { (!Null) }; - symbol [ isRecording %tmp.11 121 55 66 ]; - %tmp.11 = getv function %tmp.10 :isRecording; - %tmp.12 = invoke %tmp.10 %tmp.11(); - push %tmp.12; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_39_121_67_end: - %tmp.13 = phi [%tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_12_121_67_begin] [%tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_39_121_67_true] [%tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_39_121_67_end]; - bf %tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_8_124_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_8_124_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_70_124_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 122 12 ] - symbol [ activitySession %tmp.15 122 12 27 ]; - %tmp.15 = getv ? :activitySession; - symbol [ stop %tmp.16 122 28 32 ]; - %tmp.16 = getv function %tmp.15 :stop; - invoke %tmp.15 %tmp.16(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 123 12 ] - %tmp.17 = null; - symbol [ activitySession ? 123 12 27 ]; - putv self :activitySession %tmp.17; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_70_124_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_8_124_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_121_8_124_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 126 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_126_8_129_8_if_stmt: - symbol [ globalTimer %tmp.19 126 11 22 ]; - %tmp.19 = getv ? :globalTimer; - %tmp.20 = null; - %tmp.21 = ne %tmp.19 %tmp.20; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_126_8_129_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_126_8_129_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_126_31_129_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 127 12 ] - symbol [ globalTimer %tmp.23 127 12 23 ]; - %tmp.23 = getv ? :globalTimer; - %tmp.24 = as %tmp.23 { (!Null) }; - symbol [ stop %tmp.25 127 24 28 ]; - %tmp.25 = getv function %tmp.24 :stop; - invoke %tmp.24 %tmp.25(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 128 12 ] - %tmp.26 = null; - symbol [ globalTimer ? 128 12 23 ]; - putv self :globalTimer %tmp.26; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_126_31_129_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_126_8_129_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_126_8_129_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 132 8 ] - %tmp.27 = self; - symbol [ saveSettings %tmp.28 132 8 20 ]; - %tmp.28 = getv function %tmp.27 :saveSettings; - invoke %tmp.27 %tmp.28(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_117_50_133_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 135; @symbol_functiondef = [startRecording,135,13,27]; ] - function startRecording() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_135_38_176_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 136 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_136_8_139_8_if_stmt: - symbol [ _sessionState %tmp.2 136 12 25 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ RECORDING %tmp.4 136 29 38 ]; - %tmp.4 = getv ? :RECORDING; - %tmp.5 = eq %tmp.2 %tmp.4; - bf %tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_136_8_139_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_136_8_139_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_136_40_139_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 137 12 ] - symbol [ System %tmp.6 137 12 18 ]; - %tmp.6 = getm $.Toybox.System; - symbol [ println %tmp.7 137 19 26 ]; - %tmp.7 = getv function %tmp.6 :println; - %tmp.8 = "[INFO] Already recording"; - invoke %tmp.6 %tmp.7(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 138 12 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_136_40_139_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_136_8_139_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_136_8_139_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 141 8 ] - symbol [ System %tmp.9 141 8 14 ]; - %tmp.9 = getm $.Toybox.System; - symbol [ println %tmp.10 141 15 22 ]; - %tmp.10 = getv function %tmp.9 :println; - %tmp.11 = "[INFO] Starting activity session"; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 144 8 ] - symbol [ ActivityRecording %tmp.12 144 26 43 ]; - %tmp.12 = getm $.Toybox.ActivityRecording; - symbol [ createSession %tmp.13 144 44 57 ]; - %tmp.13 = getv function %tmp.12 :createSession; - %tmp.14 = newd 3; - %tmp.16 = const :name; - symbol [ name %tmp.16 145 13 17 const ]; - %tmp.17 = "Running"; - %tmp.18 = dup %tmp.14; - %tmp.19 = aputv %tmp.18 %tmp.16 %tmp.17; - %tmp.21 = const :sport; - symbol [ sport %tmp.21 146 13 18 const ]; - symbol [ ActivityRecording %tmp.22 146 22 39 ]; - %tmp.22 = getm $.Toybox.ActivityRecording; - symbol [ SPORT_RUNNING %tmp.23 146 40 53 ]; - %tmp.23 = getv %tmp.22 :SPORT_RUNNING; - %tmp.24 = dup %tmp.19; - %tmp.25 = aputv %tmp.24 %tmp.21 %tmp.23; - %tmp.27 = const :subSport; - symbol [ subSport %tmp.27 147 13 21 const ]; - symbol [ ActivityRecording %tmp.28 147 25 42 ]; - %tmp.28 = getm $.Toybox.ActivityRecording; - symbol [ SUB_SPORT_GENERIC %tmp.29 147 43 60 ]; - %tmp.29 = getv %tmp.28 :SUB_SPORT_GENERIC; - %tmp.30 = dup %tmp.25; - %tmp.31 = aputv %tmp.30 %tmp.27 %tmp.29; - %tmp.32 = invoke %tmp.12 %tmp.13(%tmp.31); - symbol [ activitySession ? 144 8 23 ]; - putv self :activitySession %tmp.32; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 150 8 ] - symbol [ activitySession %tmp.34 150 8 23 ]; - %tmp.34 = getv ? :activitySession; - symbol [ start %tmp.35 150 24 29 ]; - %tmp.35 = getv function %tmp.34 :start; - invoke %tmp.34 %tmp.35(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 151 8 ] - symbol [ System %tmp.36 151 8 14 ]; - %tmp.36 = getm $.Toybox.System; - symbol [ println %tmp.37 151 15 22 ]; - %tmp.37 = getv function %tmp.36 :println; - %tmp.38 = "[INFO] Garmin activity session started"; - invoke %tmp.36 %tmp.37(%tmp.38); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 154 8 ] - %tmp.39 = null; - symbol [ _finalCQ ? 154 8 16 ]; - putv self :_finalCQ %tmp.39; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 155 8 ] - %tmp.40 = null; - symbol [ _finalCQConfidence ? 155 8 26 ]; - putv self :_finalCQConfidence %tmp.40; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 156 8 ] - %tmp.41 = null; - symbol [ _finalCQTrend ? 156 8 21 ]; - putv self :_finalCQTrend %tmp.41; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 157 8 ] - %tmp.42 = newa 0; - symbol [ _cqHistory ? 157 8 18 ]; - putv self :_cqHistory %tmp.42; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 158 8 ] - %tmp.43 = 0; - symbol [ _cadenceCount ? 158 8 21 ]; - putv self :_cadenceCount %tmp.43; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 159 8 ] - %tmp.44 = 0; - symbol [ _cadenceIndex ? 159 8 21 ]; - putv self :_cadenceIndex %tmp.44; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 160 8 ] - %tmp.45 = 0; - symbol [ _cadenceAvgCount ? 160 8 24 ]; - putv self :_cadenceAvgCount %tmp.45; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 161 8 ] - %tmp.46 = 0; - symbol [ _cadenceAvgIndex ? 161 8 24 ]; - putv self :_cadenceAvgIndex %tmp.46; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 162 8 ] - %tmp.47 = 0; - symbol [ _missingCadenceCount ? 162 8 28 ]; - putv self :_missingCadenceCount %tmp.47; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 163 8 ] - symbol [ System %tmp.48 163 28 34 ]; - %tmp.48 = getm $.Toybox.System; - symbol [ getTimer %tmp.49 163 35 43 ]; - %tmp.49 = getv function %tmp.48 :getTimer; - %tmp.50 = invoke %tmp.48 %tmp.49(); - symbol [ _sessionStartTime ? 163 8 25 ]; - putv self :_sessionStartTime %tmp.50; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 164 8 ] - %tmp.51 = 0; - symbol [ _sessionPausedTime ? 164 8 26 ]; - putv self :_sessionPausedTime %tmp.51; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 165 8 ] - %tmp.52 = null; - symbol [ _lastPauseTime ? 165 8 22 ]; - putv self :_lastPauseTime %tmp.52; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 167 8 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_end" ] - %i.1 = local; - symbol [ i %i.1 167 17 18 ]; - %tmp.53 = 0; - lputv %i.1 %tmp.53; - symbol [ i %i.1 167 17 18 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_test: - %tmp.54 = lgetv %i.1; - symbol [ i %tmp.54 167 24 25 ]; - symbol [ MAX_BARS %tmp.56 167 28 36 ]; - %tmp.56 = getv ? :MAX_BARS; - %tmp.57 = lt %tmp.54 %tmp.56; - bf %tmp.57 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_43_169_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 168 12 ] - symbol [ _cadenceHistory %tmp.58 168 12 27 ]; - %tmp.58 = getv self :_cadenceHistory; - %tmp.59 = null; - %tmp.60 = lgetv %i.1; - symbol [ i %tmp.60 168 28 29 ]; - aputv %tmp.58 %tmp.60 %tmp.59; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_43_169_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 167 ] - %tmp.63 = lgetv %i.1; - symbol [ i %tmp.63 167 38 39 ]; - %tmp.64 = add %tmp.63 1; - lputv %i.1 %tmp.64; - symbol [ i %i.1 167 38 39 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_167_8_169_8_for_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 170 8 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_end" ] - %i.2 = local; - symbol [ i %i.2 170 17 18 ]; - %tmp.65 = 0; - lputv %i.2 %tmp.65; - symbol [ i %i.2 170 17 18 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_test: - %tmp.66 = lgetv %i.2; - symbol [ i %tmp.66 170 24 25 ]; - symbol [ _chartDuration %tmp.68 170 28 42 ]; - %tmp.68 = getv ? :_chartDuration; - %tmp.69 = lt %tmp.66 %tmp.68; - bf %tmp.69 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_49_172_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 171 12 ] - symbol [ _cadenceBarAvg %tmp.70 171 12 26 ]; - %tmp.70 = getv self :_cadenceBarAvg; - %tmp.71 = null; - %tmp.72 = lgetv %i.2; - symbol [ i %tmp.72 171 27 28 ]; - aputv %tmp.70 %tmp.72 %tmp.71; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_49_172_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 170 ] - %tmp.75 = lgetv %i.2; - symbol [ i %tmp.75 170 44 45 ]; - %tmp.76 = add %tmp.75 1; - lputv %i.2 %tmp.76; - symbol [ i %i.2 170 44 45 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_170_8_172_8_for_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 174 8 ] - symbol [ RECORDING %tmp.78 174 24 33 ]; - %tmp.78 = getv ? :RECORDING; - symbol [ _sessionState ? 174 8 21 ]; - putv self :_sessionState %tmp.78; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 175 8 ] - symbol [ System %tmp.79 175 8 14 ]; - %tmp.79 = getm $.Toybox.System; - symbol [ println %tmp.80 175 15 22 ]; - %tmp.80 = getv function %tmp.79 :println; - %tmp.81 = "[INFO] Starting cadence monitoring"; - invoke %tmp.79 %tmp.80(%tmp.81); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_135_38_176_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 178; @symbol_functiondef = [pauseRecording,178,13,27]; ] - function pauseRecording() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_178_38_194_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 179 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_179_8_182_8_if_stmt: - symbol [ _sessionState %tmp.2 179 12 25 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ RECORDING %tmp.4 179 29 38 ]; - %tmp.4 = getv ? :RECORDING; - %tmp.5 = ne %tmp.2 %tmp.4; - bf %tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_179_8_182_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_179_8_182_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_179_40_182_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 180 12 ] - symbol [ System %tmp.6 180 12 18 ]; - %tmp.6 = getm $.Toybox.System; - symbol [ println %tmp.7 180 19 26 ]; - %tmp.7 = getv function %tmp.6 :println; - %tmp.8 = "[INFO] Cannot pause - not recording"; - invoke %tmp.6 %tmp.7(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 181 12 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_179_40_182_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_179_8_182_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_179_8_182_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 184 8 ] - symbol [ System %tmp.9 184 8 14 ]; - %tmp.9 = getm $.Toybox.System; - symbol [ println %tmp.10 184 15 22 ]; - %tmp.10 = getv function %tmp.9 :println; - %tmp.11 = "[INFO] Pausing activity session"; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 187 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_8_190_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_12_187_67_begin: - symbol [ activitySession %tmp.13 187 12 27 ]; - %tmp.13 = getv ? :activitySession; - %tmp.14 = null; - %tmp.15 = ne %tmp.13 %tmp.14; - bf %tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_8_190_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_39_187_67_true: - symbol [ activitySession %tmp.17 187 39 54 ]; - %tmp.17 = getv ? :activitySession; - %tmp.18 = as %tmp.17 { (!Null) }; - symbol [ isRecording %tmp.19 187 55 66 ]; - %tmp.19 = getv function %tmp.18 :isRecording; - %tmp.20 = invoke %tmp.18 %tmp.19(); - push %tmp.20; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_39_187_67_end: - %tmp.21 = phi [%tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_12_187_67_begin] [%tmp.20 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_39_187_67_true] [%tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_39_187_67_end]; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_8_190_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_8_190_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_70_190_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 188 12 ] - symbol [ activitySession %tmp.23 188 12 27 ]; - %tmp.23 = getv ? :activitySession; - symbol [ stop %tmp.24 188 28 32 ]; - %tmp.24 = getv function %tmp.23 :stop; - invoke %tmp.23 %tmp.24(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 189 12 ] - symbol [ System %tmp.25 189 12 18 ]; - %tmp.25 = getm $.Toybox.System; - symbol [ println %tmp.26 189 19 26 ]; - %tmp.26 = getv function %tmp.25 :println; - %tmp.27 = "[INFO] Garmin activity session paused"; - invoke %tmp.25 %tmp.26(%tmp.27); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_70_190_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_8_190_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_187_8_190_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 192 8 ] - symbol [ System %tmp.28 192 25 31 ]; - %tmp.28 = getm $.Toybox.System; - symbol [ getTimer %tmp.29 192 32 40 ]; - %tmp.29 = getv function %tmp.28 :getTimer; - %tmp.30 = invoke %tmp.28 %tmp.29(); - symbol [ _lastPauseTime ? 192 8 22 ]; - putv self :_lastPauseTime %tmp.30; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 193 8 ] - symbol [ PAUSED %tmp.32 193 24 30 ]; - %tmp.32 = getv ? :PAUSED; - symbol [ _sessionState ? 193 8 21 ]; - putv self :_sessionState %tmp.32; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_178_38_194_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 196; @symbol_functiondef = [resumeRecording,196,13,28]; ] - function resumeRecording() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_196_39_216_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 197 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_197_8_200_8_if_stmt: - symbol [ _sessionState %tmp.2 197 12 25 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ PAUSED %tmp.4 197 29 35 ]; - %tmp.4 = getv ? :PAUSED; - %tmp.5 = ne %tmp.2 %tmp.4; - bf %tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_197_8_200_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_197_8_200_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_197_37_200_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 198 12 ] - symbol [ System %tmp.6 198 12 18 ]; - %tmp.6 = getm $.Toybox.System; - symbol [ println %tmp.7 198 19 26 ]; - %tmp.7 = getv function %tmp.6 :println; - %tmp.8 = "[INFO] Cannot resume - not paused"; - invoke %tmp.6 %tmp.7(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 199 12 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_197_37_200_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_197_8_200_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_197_8_200_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 202 8 ] - symbol [ System %tmp.9 202 8 14 ]; - %tmp.9 = getm $.Toybox.System; - symbol [ println %tmp.10 202 15 22 ]; - %tmp.10 = getv function %tmp.9 :println; - %tmp.11 = "[INFO] Resuming activity session"; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 205 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_8_208_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_12_205_68_begin: - symbol [ activitySession %tmp.13 205 12 27 ]; - %tmp.13 = getv ? :activitySession; - %tmp.14 = null; - %tmp.15 = ne %tmp.13 %tmp.14; - bf %tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_8_208_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_39_205_68_true: - symbol [ activitySession %tmp.17 205 40 55 ]; - %tmp.17 = getv ? :activitySession; - %tmp.18 = as %tmp.17 { (!Null) }; - symbol [ isRecording %tmp.19 205 56 67 ]; - %tmp.19 = getv function %tmp.18 :isRecording; - %tmp.20 = invoke %tmp.18 %tmp.19(); - %tmp.21 = not %tmp.20; - push %tmp.21; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_39_205_68_end: - %tmp.22 = phi [%tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_12_205_68_begin] [%tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_39_205_68_true] [%tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_39_205_68_end]; - bf %tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_8_208_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_8_208_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_71_208_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 206 12 ] - symbol [ activitySession %tmp.24 206 12 27 ]; - %tmp.24 = getv ? :activitySession; - symbol [ start %tmp.25 206 28 33 ]; - %tmp.25 = getv function %tmp.24 :start; - invoke %tmp.24 %tmp.25(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 207 12 ] - symbol [ System %tmp.26 207 12 18 ]; - %tmp.26 = getm $.Toybox.System; - symbol [ println %tmp.27 207 19 26 ]; - %tmp.27 = getv function %tmp.26 :println; - %tmp.28 = "[INFO] Garmin activity session resumed"; - invoke %tmp.26 %tmp.27(%tmp.28); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_71_208_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_8_208_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_205_8_208_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 210 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_210_8_213_8_if_stmt: - symbol [ _lastPauseTime %tmp.30 210 12 26 ]; - %tmp.30 = getv ? :_lastPauseTime; - %tmp.31 = null; - %tmp.32 = ne %tmp.30 %tmp.31; - bf %tmp.32 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_210_8_213_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_210_8_213_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_210_36_213_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 211 12 ] - symbol [ _sessionPausedTime %tmp.33 211 12 30 ]; - %tmp.33 = getv self :_sessionPausedTime; - symbol [ System %tmp.34 211 34 40 ]; - %tmp.34 = getm $.Toybox.System; - symbol [ getTimer %tmp.35 211 41 49 ]; - %tmp.35 = getv function %tmp.34 :getTimer; - %tmp.36 = invoke %tmp.34 %tmp.35(); - symbol [ _lastPauseTime %tmp.38 211 54 68 ]; - %tmp.38 = getv ? :_lastPauseTime; - %tmp.39 = sub %tmp.36 %tmp.38; - %tmp.40 = add %tmp.33 %tmp.39; - symbol [ _sessionPausedTime ? 211 12 30 ]; - putv self :_sessionPausedTime dup %tmp.40; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 212 12 ] - %tmp.41 = null; - symbol [ _lastPauseTime ? 212 12 26 ]; - putv self :_lastPauseTime %tmp.41; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_210_36_213_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_210_8_213_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_210_8_213_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 215 8 ] - symbol [ RECORDING %tmp.43 215 24 33 ]; - %tmp.43 = getv ? :RECORDING; - symbol [ _sessionState ? 215 8 21 ]; - putv self :_sessionState %tmp.43; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_196_39_216_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 218; @symbol_functiondef = [stopRecording,218,13,26]; ] - function stopRecording() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_218_37_258_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 219 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_8_222_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_12_219_54_begin: - symbol [ _sessionState %tmp.2 219 12 25 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ IDLE %tmp.4 219 29 33 ]; - %tmp.4 = getv ? :IDLE; - %tmp.5 = eq %tmp.2 %tmp.4; - bt %tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_8_222_8_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_37_219_54_false: - symbol [ _sessionState %tmp.7 219 37 50 ]; - %tmp.7 = getv ? :_sessionState; - symbol [ STOPPED %tmp.9 219 54 61 ]; - %tmp.9 = getv ? :STOPPED; - %tmp.10 = eq %tmp.7 %tmp.9; - push %tmp.10; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_37_219_54_end: - %tmp.11 = phi [%tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_12_219_54_begin] [%tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_37_219_54_false] [%tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_37_219_54_end]; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_8_222_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_8_222_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_63_222_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 220 12 ] - symbol [ System %tmp.12 220 12 18 ]; - %tmp.12 = getm $.Toybox.System; - symbol [ println %tmp.13 220 19 26 ]; - %tmp.13 = getv function %tmp.12 :println; - %tmp.14 = "[INFO] No active session to stop"; - invoke %tmp.12 %tmp.13(%tmp.14); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 221 12 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_63_222_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_8_222_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_219_8_222_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 224 8 ] - symbol [ System %tmp.15 224 8 14 ]; - %tmp.15 = getm $.Toybox.System; - symbol [ println %tmp.16 224 15 22 ]; - %tmp.16 = getv function %tmp.15 :println; - %tmp.17 = "[INFO] Stopping activity session"; - invoke %tmp.15 %tmp.16(%tmp.17); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 227 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_8_230_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_12_227_67_begin: - symbol [ activitySession %tmp.19 227 12 27 ]; - %tmp.19 = getv ? :activitySession; - %tmp.20 = null; - %tmp.21 = ne %tmp.19 %tmp.20; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_8_230_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_39_227_67_true: - symbol [ activitySession %tmp.23 227 39 54 ]; - %tmp.23 = getv ? :activitySession; - %tmp.24 = as %tmp.23 { (!Null) }; - symbol [ isRecording %tmp.25 227 55 66 ]; - %tmp.25 = getv function %tmp.24 :isRecording; - %tmp.26 = invoke %tmp.24 %tmp.25(); - push %tmp.26; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_39_227_67_end: - %tmp.27 = phi [%tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_12_227_67_begin] [%tmp.26 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_39_227_67_true] [%tmp.27 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_39_227_67_end]; - bf %tmp.27 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_8_230_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_8_230_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_70_230_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 228 12 ] - symbol [ activitySession %tmp.29 228 12 27 ]; - %tmp.29 = getv ? :activitySession; - symbol [ stop %tmp.30 228 28 32 ]; - %tmp.30 = getv function %tmp.29 :stop; - invoke %tmp.29 %tmp.30(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 229 12 ] - symbol [ System %tmp.31 229 12 18 ]; - %tmp.31 = getm $.Toybox.System; - symbol [ println %tmp.32 229 19 26 ]; - %tmp.32 = getv function %tmp.31 :println; - %tmp.33 = "[INFO] Garmin activity session stopped"; - invoke %tmp.31 %tmp.32(%tmp.33); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_70_230_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_8_230_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_227_8_230_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 232 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_8_235_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_12_232_57_begin: - symbol [ _sessionState %tmp.35 232 12 25 ]; - %tmp.35 = getv ? :_sessionState; - symbol [ PAUSED %tmp.37 232 29 35 ]; - %tmp.37 = getv ? :PAUSED; - %tmp.38 = eq %tmp.35 %tmp.37; - bf %tmp.38 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_8_235_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_39_232_57_true: - symbol [ _lastPauseTime %tmp.40 232 39 53 ]; - %tmp.40 = getv ? :_lastPauseTime; - %tmp.41 = null; - %tmp.42 = ne %tmp.40 %tmp.41; - push %tmp.42; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_39_232_57_end: - %tmp.43 = phi [%tmp.38 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_12_232_57_begin] [%tmp.42 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_39_232_57_true] [%tmp.43 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_39_232_57_end]; - bf %tmp.43 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_8_235_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_8_235_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_63_235_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 233 12 ] - symbol [ _sessionPausedTime %tmp.44 233 12 30 ]; - %tmp.44 = getv self :_sessionPausedTime; - symbol [ System %tmp.45 233 34 40 ]; - %tmp.45 = getm $.Toybox.System; - symbol [ getTimer %tmp.46 233 41 49 ]; - %tmp.46 = getv function %tmp.45 :getTimer; - %tmp.47 = invoke %tmp.45 %tmp.46(); - symbol [ _lastPauseTime %tmp.49 233 54 68 ]; - %tmp.49 = getv ? :_lastPauseTime; - %tmp.50 = sub %tmp.47 %tmp.49; - %tmp.51 = add %tmp.44 %tmp.50; - symbol [ _sessionPausedTime ? 233 12 30 ]; - putv self :_sessionPausedTime dup %tmp.51; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 234 12 ] - %tmp.52 = null; - symbol [ _lastPauseTime ? 234 12 26 ]; - putv self :_lastPauseTime %tmp.52; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_63_235_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_8_235_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_232_8_235_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 238 8 ] - %tmp.53 = self; - symbol [ captureActivityMetrics %tmp.54 238 8 30 ]; - %tmp.54 = getv function %tmp.53 :captureActivityMetrics; - invoke %tmp.53 %tmp.54(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 240 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_218_37_258_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_218_37_258_4_stop" ] - %cq.1 = local; - symbol [ cq %cq.1 240 12 14 ]; - %tmp.55 = self; - symbol [ computeCadenceQualityScore %tmp.56 240 17 43 ]; - %tmp.56 = getv function %tmp.55 :computeCadenceQualityScore; - %tmp.57 = invoke %tmp.55 %tmp.56(); - lputv %cq.1 %tmp.57; - symbol [ cq %cq.1 240 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 242 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_242_8_255_8_if_stmt: - %tmp.58 = lgetv %cq.1; - symbol [ cq %tmp.58 242 12 14 ]; - %tmp.59 = 0; - %tmp.60 = gte %tmp.58 %tmp.59; - bf %tmp.60 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_242_8_255_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_242_8_255_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_242_21_255_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 243 12 ] - %tmp.61 = lgetv %cq.1; - symbol [ cq %tmp.61 243 23 25 ]; - symbol [ _finalCQ ? 243 12 20 ]; - putv self :_finalCQ %tmp.61; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 244 12 ] - %tmp.62 = self; - symbol [ computeCQConfidence %tmp.63 244 33 52 ]; - %tmp.63 = getv function %tmp.62 :computeCQConfidence; - %tmp.64 = invoke %tmp.62 %tmp.63(); - symbol [ _finalCQConfidence ? 244 12 30 ]; - putv self :_finalCQConfidence %tmp.64; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 245 12 ] - %tmp.65 = self; - symbol [ computeCQTrend %tmp.66 245 28 42 ]; - %tmp.66 = getv function %tmp.65 :computeCQTrend; - %tmp.67 = invoke %tmp.65 %tmp.66(); - symbol [ _finalCQTrend ? 245 12 25 ]; - putv self :_finalCQTrend %tmp.67; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 247 12 ] - symbol [ System %tmp.68 247 12 18 ]; - %tmp.68 = getm $.Toybox.System; - symbol [ println %tmp.69 247 19 26 ]; - %tmp.69 = getv function %tmp.68 :println; - %tmp.70 = "[CADENCE QUALITY] Final CQ frozen at "; - %tmp.71 = lgetv %cq.1; - symbol [ cq %tmp.71 249 16 18 ]; - symbol [ format %tmp.72 249 19 25 ]; - %tmp.72 = getv function %tmp.71 :format; - %tmp.73 = "%d"; - %tmp.74 = invoke %tmp.71 %tmp.72(%tmp.73); - %tmp.75 = add %tmp.70 %tmp.74; - %tmp.76 = "% ("; - %tmp.77 = add %tmp.75 %tmp.76; - symbol [ _finalCQTrend %tmp.79 250 16 29 ]; - %tmp.79 = getv ? :_finalCQTrend; - %tmp.80 = add %tmp.77 %tmp.79; - %tmp.81 = ", "; - %tmp.82 = add %tmp.80 %tmp.81; - symbol [ _finalCQConfidence %tmp.84 251 16 34 ]; - %tmp.84 = getv ? :_finalCQConfidence; - %tmp.85 = add %tmp.82 %tmp.84; - %tmp.86 = " confidence)"; - %tmp.87 = add %tmp.85 %tmp.86; - invoke %tmp.68 %tmp.69(%tmp.87); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 254 12 ] - %tmp.88 = self; - symbol [ writeDiagnosticLog %tmp.89 254 12 30 ]; - %tmp.89 = getv function %tmp.88 :writeDiagnosticLog; - invoke %tmp.88 %tmp.89(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_242_21_255_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_242_8_255_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_242_8_255_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 257 8 ] - symbol [ STOPPED %tmp.91 257 24 31 ]; - %tmp.91 = getv ? :STOPPED; - symbol [ _sessionState ? 257 8 21 ]; - putv self :_sessionState %tmp.91; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_218_37_258_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 317; @symbol_functiondef = [saveSession,317,17,28]; ] - function saveSession() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_317_39_346_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 319 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_319_12_322_12_if_stmt: - symbol [ _sessionState %tmp.2 319 16 29 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ STOPPED %tmp.4 319 33 40 ]; - %tmp.4 = getv ? :STOPPED; - %tmp.5 = ne %tmp.2 %tmp.4; - bf %tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_319_12_322_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_319_12_322_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_319_42_322_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 320 16 ] - symbol [ System %tmp.6 320 16 22 ]; - %tmp.6 = getm $.Toybox.System; - symbol [ println %tmp.7 320 23 30 ]; - %tmp.7 = getv function %tmp.6 :println; - %tmp.8 = "[INFO] Cannot save - session not stopped"; - invoke %tmp.6 %tmp.7(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 321 16 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_319_42_322_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_319_12_322_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_319_12_322_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 324 12 ] - symbol [ System %tmp.9 324 12 18 ]; - %tmp.9 = getm $.Toybox.System; - symbol [ println %tmp.10 324 19 26 ]; - %tmp.10 = getv function %tmp.9 :println; - %tmp.11 = "[INFO] Saving activity session"; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 326 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_326_12_329_12_if_stmt: - symbol [ activitySession %tmp.13 326 16 31 ]; - %tmp.13 = getv ? :activitySession; - %tmp.14 = null; - %tmp.15 = ne %tmp.13 %tmp.14; - bf %tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_326_12_329_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_326_12_329_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_326_41_329_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 327 16 ] - symbol [ activitySession %tmp.17 327 16 31 ]; - %tmp.17 = getv ? :activitySession; - %tmp.18 = as %tmp.17 { (!Null) }; - symbol [ save %tmp.19 327 32 36 ]; - %tmp.19 = getv function %tmp.18 :save; - invoke %tmp.18 %tmp.19(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 328 16 ] - %tmp.20 = null; - symbol [ activitySession ? 328 16 31 ]; - putv self :activitySession %tmp.20; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_326_41_329_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_326_12_329_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_326_12_329_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 335 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_335_12_337_12_if_stmt: - symbol [ _sessionDuration %tmp.22 335 16 32 ]; - %tmp.22 = getv ? :_sessionDuration; - %tmp.23 = null; - %tmp.24 = eq %tmp.22 %tmp.23; - bf %tmp.24 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_335_12_337_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_335_12_337_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_335_42_337_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 336 12 ] - symbol [ System %tmp.25 336 12 18 ]; - %tmp.25 = getm $.Toybox.System; - symbol [ println %tmp.26 336 19 26 ]; - %tmp.26 = getv function %tmp.25 :println; - %tmp.27 = "[WARN] No duration captured"; - invoke %tmp.25 %tmp.26(%tmp.27); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_335_42_337_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_335_12_337_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_335_12_337_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 339 12 ] - symbol [ System %tmp.28 339 12 18 ]; - %tmp.28 = getm $.Toybox.System; - symbol [ println %tmp.29 339 19 26 ]; - %tmp.29 = getv function %tmp.28 :println; - %tmp.30 = "[SAVE] Duration stored: "; - symbol [ _sessionDuration %tmp.32 339 56 72 ]; - %tmp.32 = getv ? :_sessionDuration; - %tmp.33 = add %tmp.30 %tmp.32; - invoke %tmp.28 %tmp.29(%tmp.33); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 340 12 ] - symbol [ System %tmp.34 340 12 18 ]; - %tmp.34 = getm $.Toybox.System; - symbol [ println %tmp.35 340 19 26 ]; - %tmp.35 = getv function %tmp.34 :println; - %tmp.36 = "[SAVE] Distance stored: "; - symbol [ _sessionDistance %tmp.38 340 56 72 ]; - %tmp.38 = getv ? :_sessionDistance; - %tmp.39 = add %tmp.36 %tmp.38; - invoke %tmp.34 %tmp.35(%tmp.39); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 345 12 ] - symbol [ System %tmp.40 345 12 18 ]; - %tmp.40 = getm $.Toybox.System; - symbol [ println %tmp.41 345 19 26 ]; - %tmp.41 = getv function %tmp.40 :println; - %tmp.42 = "[INFO] Ready for summary view"; - invoke %tmp.40 %tmp.41(%tmp.42); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_317_39_346_8_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 350; @symbol_functiondef = [discardSession,350,13,27]; ] - function discardSession() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_350_38_366_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 351 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_351_8_354_8_if_stmt: - symbol [ _sessionState %tmp.2 351 12 25 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ STOPPED %tmp.4 351 29 36 ]; - %tmp.4 = getv ? :STOPPED; - %tmp.5 = ne %tmp.2 %tmp.4; - bf %tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_351_8_354_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_351_8_354_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_351_38_354_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 352 12 ] - symbol [ System %tmp.6 352 12 18 ]; - %tmp.6 = getm $.Toybox.System; - symbol [ println %tmp.7 352 19 26 ]; - %tmp.7 = getv function %tmp.6 :println; - %tmp.8 = "[INFO] Cannot discard - session not stopped"; - invoke %tmp.6 %tmp.7(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 353 12 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_351_38_354_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_351_8_354_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_351_8_354_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 356 8 ] - symbol [ System %tmp.9 356 8 14 ]; - %tmp.9 = getm $.Toybox.System; - symbol [ println %tmp.10 356 15 22 ]; - %tmp.10 = getv function %tmp.9 :println; - %tmp.11 = "[INFO] Discarding activity session"; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 359 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_359_8_363_8_if_stmt: - symbol [ activitySession %tmp.13 359 12 27 ]; - %tmp.13 = getv ? :activitySession; - %tmp.14 = null; - %tmp.15 = ne %tmp.13 %tmp.14; - bf %tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_359_8_363_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_359_8_363_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_359_37_363_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 360 12 ] - symbol [ activitySession %tmp.17 360 12 27 ]; - %tmp.17 = getv ? :activitySession; - %tmp.18 = as %tmp.17 { (!Null) }; - symbol [ discard %tmp.19 360 28 35 ]; - %tmp.19 = getv function %tmp.18 :discard; - invoke %tmp.18 %tmp.19(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 361 12 ] - symbol [ System %tmp.20 361 12 18 ]; - %tmp.20 = getm $.Toybox.System; - symbol [ println %tmp.21 361 19 26 ]; - %tmp.21 = getv function %tmp.20 :println; - %tmp.22 = "[INFO] Garmin activity session discarded"; - invoke %tmp.20 %tmp.21(%tmp.22); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 362 12 ] - %tmp.23 = null; - symbol [ activitySession ? 362 12 27 ]; - putv self :activitySession %tmp.23; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_359_37_363_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_359_8_363_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_359_8_363_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 365 8 ] - %tmp.24 = self; - symbol [ resetSession %tmp.25 365 8 20 ]; - %tmp.25 = getv function %tmp.24 :resetSession; - invoke %tmp.24 %tmp.25(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_350_38_366_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 368; @symbol_functiondef = [resetSession,368,13,25]; ] - function resetSession() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_368_36_393_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 369 8 ] - symbol [ System %tmp.1 369 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 369 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[INFO] Resetting session"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 371 8 ] - symbol [ IDLE %tmp.5 371 24 28 ]; - %tmp.5 = getv ? :IDLE; - symbol [ _sessionState ? 371 8 21 ]; - putv self :_sessionState %tmp.5; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 372 8 ] - %tmp.6 = null; - symbol [ _finalCQ ? 372 8 16 ]; - putv self :_finalCQ %tmp.6; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 373 8 ] - %tmp.7 = null; - symbol [ _finalCQConfidence ? 373 8 26 ]; - putv self :_finalCQConfidence %tmp.7; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 374 8 ] - %tmp.8 = null; - symbol [ _finalCQTrend ? 374 8 21 ]; - putv self :_finalCQTrend %tmp.8; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 375 8 ] - %tmp.9 = newa 0; - symbol [ _cqHistory ? 375 8 18 ]; - putv self :_cqHistory %tmp.9; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 376 8 ] - %tmp.10 = 0; - symbol [ _cadenceCount ? 376 8 21 ]; - putv self :_cadenceCount %tmp.10; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 377 8 ] - %tmp.11 = 0; - symbol [ _cadenceIndex ? 377 8 21 ]; - putv self :_cadenceIndex %tmp.11; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 378 8 ] - %tmp.12 = 0; - symbol [ _cadenceAvgCount ? 378 8 24 ]; - putv self :_cadenceAvgCount %tmp.12; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 379 8 ] - %tmp.13 = 0; - symbol [ _cadenceAvgIndex ? 379 8 24 ]; - putv self :_cadenceAvgIndex %tmp.13; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 380 8 ] - %tmp.14 = 0; - symbol [ _missingCadenceCount ? 380 8 28 ]; - putv self :_missingCadenceCount %tmp.14; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 381 8 ] - %tmp.15 = null; - symbol [ _sessionStartTime ? 381 8 25 ]; - putv self :_sessionStartTime %tmp.15; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 382 8 ] - %tmp.16 = 0; - symbol [ _sessionPausedTime ? 382 8 26 ]; - putv self :_sessionPausedTime %tmp.16; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 383 8 ] - %tmp.17 = null; - symbol [ _lastPauseTime ? 383 8 22 ]; - putv self :_lastPauseTime %tmp.17; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 384 8 ] - %tmp.18 = null; - symbol [ _sessionDuration ? 384 8 24 ]; - putv self :_sessionDuration %tmp.18; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 385 8 ] - %tmp.19 = null; - symbol [ _sessionDistance ? 385 8 24 ]; - putv self :_sessionDistance %tmp.19; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 387 8 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_end" ] - %i.1 = local; - symbol [ i %i.1 387 17 18 ]; - %tmp.20 = 0; - lputv %i.1 %tmp.20; - symbol [ i %i.1 387 17 18 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_test: - %tmp.21 = lgetv %i.1; - symbol [ i %tmp.21 387 24 25 ]; - symbol [ MAX_BARS %tmp.23 387 28 36 ]; - %tmp.23 = getv ? :MAX_BARS; - %tmp.24 = lt %tmp.21 %tmp.23; - bf %tmp.24 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_43_389_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 388 12 ] - symbol [ _cadenceHistory %tmp.25 388 12 27 ]; - %tmp.25 = getv self :_cadenceHistory; - %tmp.26 = null; - %tmp.27 = lgetv %i.1; - symbol [ i %tmp.27 388 28 29 ]; - aputv %tmp.25 %tmp.27 %tmp.26; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_43_389_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 387 ] - %tmp.30 = lgetv %i.1; - symbol [ i %tmp.30 387 38 39 ]; - %tmp.31 = add %tmp.30 1; - lputv %i.1 %tmp.31; - symbol [ i %i.1 387 38 39 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_387_8_389_8_for_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 390 8 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_end" ] - %i.2 = local; - symbol [ i %i.2 390 17 18 ]; - %tmp.32 = 0; - lputv %i.2 %tmp.32; - symbol [ i %i.2 390 17 18 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_test: - %tmp.33 = lgetv %i.2; - symbol [ i %tmp.33 390 24 25 ]; - symbol [ _chartDuration %tmp.35 390 28 42 ]; - %tmp.35 = getv ? :_chartDuration; - %tmp.36 = lt %tmp.33 %tmp.35; - bf %tmp.36 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_49_392_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 391 12 ] - symbol [ _cadenceBarAvg %tmp.37 391 12 26 ]; - %tmp.37 = getv self :_cadenceBarAvg; - %tmp.38 = null; - %tmp.39 = lgetv %i.2; - symbol [ i %tmp.39 391 27 28 ]; - aputv %tmp.37 %tmp.39 %tmp.38; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_49_392_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 390 ] - %tmp.42 = lgetv %i.2; - symbol [ i %tmp.42 390 44 45 ]; - %tmp.43 = add %tmp.42 1; - lputv %i.2 %tmp.43; - symbol [ i %i.2 390 44 45 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_390_8_392_8_for_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_368_36_393_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 395; @symbol_functiondef = [captureActivityMetrics,395,13,35]; ] - function captureActivityMetrics() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_395_46_416_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 396 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_395_46_416_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_395_46_416_4_stop" ] - %info.1 = local; - symbol [ info %info.1 396 12 16 ]; - symbol [ Activity %tmp.1 396 19 27 ]; - %tmp.1 = getm $.Toybox.Activity; - symbol [ getActivityInfo %tmp.2 396 28 43 ]; - %tmp.2 = getv function %tmp.1 :getActivityInfo; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %info.1 %tmp.3; - symbol [ info %info.1 396 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 398 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_398_8_415_8_if_stmt: - %tmp.4 = lgetv %info.1; - symbol [ info %tmp.4 398 12 16 ]; - %tmp.5 = null; - %tmp.6 = ne %tmp.4 %tmp.5; - bf %tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_398_8_415_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_398_8_415_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_398_26_415_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 399 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_399_12_402_12_if_stmt: - %tmp.7 = lgetv %info.1; - symbol [ info %tmp.7 399 16 20 ]; - %tmp.8 = as %tmp.7 { (!Null) }; - symbol [ timerTime %tmp.9 399 21 30 ]; - %tmp.9 = getv %tmp.8 :timerTime; - %tmp.10 = null; - %tmp.11 = ne %tmp.9 %tmp.10; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_399_12_402_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_399_12_402_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_399_40_402_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 400 16 ] - %tmp.12 = lgetv %info.1; - symbol [ info %tmp.12 400 35 39 ]; - %tmp.13 = as %tmp.12 { (!Null) }; - symbol [ timerTime %tmp.14 400 40 49 ]; - %tmp.14 = getv %tmp.13 :timerTime; - symbol [ _sessionDuration ? 400 16 32 ]; - putv self :_sessionDuration %tmp.14; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 401 16 ] - symbol [ System %tmp.15 401 16 22 ]; - %tmp.15 = getm $.Toybox.System; - symbol [ println %tmp.16 401 23 30 ]; - %tmp.16 = getv function %tmp.15 :println; - %tmp.17 = "[ACTIVITY] Duration: "; - symbol [ _sessionDuration %tmp.19 401 58 74 ]; - %tmp.19 = getv ? :_sessionDuration; - %tmp.20 = 1000; - %tmp.21 = div %tmp.19 %tmp.20; - symbol [ toString %tmp.22 401 83 91 ]; - %tmp.22 = getv function %tmp.21 :toString; - %tmp.23 = invoke %tmp.21 %tmp.22(); - %tmp.24 = add %tmp.17 %tmp.23; - %tmp.25 = " seconds"; - %tmp.26 = add %tmp.24 %tmp.25; - invoke %tmp.15 %tmp.16(%tmp.26); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_399_40_402_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_399_12_402_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_399_12_402_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 404 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_404_12_407_12_if_stmt: - %tmp.27 = lgetv %info.1; - symbol [ info %tmp.27 404 16 20 ]; - %tmp.28 = as %tmp.27 { (!Null) }; - symbol [ elapsedDistance %tmp.29 404 21 36 ]; - %tmp.29 = getv %tmp.28 :elapsedDistance; - %tmp.30 = null; - %tmp.31 = ne %tmp.29 %tmp.30; - bf %tmp.31 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_404_12_407_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_404_12_407_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_404_46_407_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 405 16 ] - %tmp.32 = lgetv %info.1; - symbol [ info %tmp.32 405 35 39 ]; - %tmp.33 = as %tmp.32 { (!Null) }; - symbol [ elapsedDistance %tmp.34 405 40 55 ]; - %tmp.34 = getv %tmp.33 :elapsedDistance; - symbol [ _sessionDistance ? 405 16 32 ]; - putv self :_sessionDistance %tmp.34; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 406 16 ] - symbol [ System %tmp.35 406 16 22 ]; - %tmp.35 = getm $.Toybox.System; - symbol [ println %tmp.36 406 23 30 ]; - %tmp.36 = getv function %tmp.35 :println; - %tmp.37 = "[ACTIVITY] Distance: "; - symbol [ _sessionDistance %tmp.39 406 58 74 ]; - %tmp.39 = getv ? :_sessionDistance; - %tmp.40 = 100000.0; - %tmp.41 = div %tmp.39 %tmp.40; - symbol [ format %tmp.42 406 87 93 ]; - %tmp.42 = getv function %tmp.41 :format; - %tmp.43 = "%.2f"; - %tmp.44 = invoke %tmp.41 %tmp.42(%tmp.43); - %tmp.45 = add %tmp.37 %tmp.44; - %tmp.46 = " km"; - %tmp.47 = add %tmp.45 %tmp.46; - invoke %tmp.35 %tmp.36(%tmp.47); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_404_46_407_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_404_12_407_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_404_12_407_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 409 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_409_12_414_12_if_stmt: - %tmp.48 = lgetv %info.1; - symbol [ info %tmp.48 409 16 20 ]; - %tmp.49 = as %tmp.48 { (!Null) }; - symbol [ currentHeartRate %tmp.50 409 21 37 ]; - %tmp.50 = getv %tmp.49 :currentHeartRate; - %tmp.51 = null; - %tmp.52 = ne %tmp.50 %tmp.51; - bf %tmp.52 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_409_12_414_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_409_12_414_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_409_47_414_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 411 16 ] - %tmp.53 = lgetv %info.1; - symbol [ info %tmp.53 411 32 36 ]; - %tmp.54 = as %tmp.53 { (!Null) }; - symbol [ currentHeartRate %tmp.55 411 37 53 ]; - %tmp.55 = getv %tmp.54 :currentHeartRate; - symbol [ _avgHeartRate ? 411 16 29 ]; - putv self :_avgHeartRate %tmp.55; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 412 16 ] - %tmp.56 = lgetv %info.1; - symbol [ info %tmp.56 412 33 37 ]; - %tmp.57 = as %tmp.56 { (!Null) }; - symbol [ currentHeartRate %tmp.58 412 38 54 ]; - %tmp.58 = getv %tmp.57 :currentHeartRate; - symbol [ _peakHeartRate ? 412 16 30 ]; - putv self :_peakHeartRate %tmp.58; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 413 16 ] - symbol [ System %tmp.59 413 16 22 ]; - %tmp.59 = getm $.Toybox.System; - symbol [ println %tmp.60 413 23 30 ]; - %tmp.60 = getv function %tmp.59 :println; - %tmp.61 = "[ACTIVITY] Heart Rate: "; - symbol [ _avgHeartRate %tmp.63 413 59 72 ]; - %tmp.63 = getv ? :_avgHeartRate; - symbol [ toString %tmp.64 413 73 81 ]; - %tmp.64 = getv function %tmp.63 :toString; - %tmp.65 = invoke %tmp.63 %tmp.64(); - %tmp.66 = add %tmp.61 %tmp.65; - %tmp.67 = " bpm"; - %tmp.68 = add %tmp.66 %tmp.67; - invoke %tmp.59 %tmp.60(%tmp.68); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_409_47_414_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_409_12_414_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_409_12_414_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_398_26_415_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_398_8_415_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_398_8_415_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_395_46_416_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 418; @symbol_functiondef = [updateCadenceBarAvg,418,13,32]; ] - function updateCadenceBarAvg() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_418_43_442_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 420 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_420_8_422_8_if_stmt: - symbol [ _sessionState %tmp.2 420 12 25 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ RECORDING %tmp.4 420 29 38 ]; - %tmp.4 = getv ? :RECORDING; - %tmp.5 = ne %tmp.2 %tmp.4; - bf %tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_420_8_422_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_420_8_422_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_420_40_422_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 421 12 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_420_40_422_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_420_8_422_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_420_8_422_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 424 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_418_43_442_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_418_43_442_4_stop" ] - %info.1 = local; - symbol [ info %info.1 424 12 16 ]; - symbol [ Activity %tmp.6 424 19 27 ]; - %tmp.6 = getm $.Toybox.Activity; - symbol [ getActivityInfo %tmp.7 424 28 43 ]; - %tmp.7 = getv function %tmp.6 :getActivityInfo; - %tmp.8 = invoke %tmp.6 %tmp.7(); - lputv %info.1 %tmp.8; - symbol [ info %info.1 424 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 426 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_8_441_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_12_426_51_begin: - %tmp.9 = lgetv %info.1; - symbol [ info %tmp.9 426 12 16 ]; - %tmp.10 = null; - %tmp.11 = ne %tmp.9 %tmp.10; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_8_441_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_28_426_51_true: - %tmp.12 = lgetv %info.1; - symbol [ info %tmp.12 426 28 32 ]; - %tmp.13 = as %tmp.12 { (!Null) }; - symbol [ currentCadence %tmp.14 426 33 47 ]; - %tmp.14 = getv %tmp.13 :currentCadence; - %tmp.15 = null; - %tmp.16 = ne %tmp.14 %tmp.15; - push %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_28_426_51_end: - %tmp.17 = phi [%tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_12_426_51_begin] [%tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_28_426_51_true] [%tmp.17 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_28_426_51_end]; - bf %tmp.17 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_8_441_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_8_441_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_57_441_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 427 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_57_441_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_57_441_8_stop" ] - %newCadence.2 = local; - symbol [ newCadence %newCadence.2 427 16 26 ]; - %tmp.18 = lgetv %info.1; - symbol [ info %tmp.18 427 29 33 ]; - %tmp.19 = as %tmp.18 { (!Null) }; - symbol [ currentCadence %tmp.20 427 34 48 ]; - %tmp.20 = getv %tmp.19 :currentCadence; - lputv %newCadence.2 %tmp.20; - symbol [ newCadence %newCadence.2 427 16 26 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 428 12 ] - symbol [ _cadenceBarAvg %tmp.21 428 12 26 ]; - %tmp.21 = getv self :_cadenceBarAvg; - %tmp.22 = lgetv %newCadence.2; - symbol [ newCadence %tmp.22 428 47 57 ]; - symbol [ toFloat %tmp.23 428 58 65 ]; - %tmp.23 = getv function %tmp.22 :toFloat; - %tmp.24 = invoke %tmp.22 %tmp.23(); - symbol [ _cadenceAvgIndex %tmp.26 428 27 43 ]; - %tmp.26 = getv ? :_cadenceAvgIndex; - aputv %tmp.21 %tmp.26 %tmp.24; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 429 12 ] - symbol [ _cadenceAvgIndex %tmp.28 429 32 48 ]; - %tmp.28 = getv ? :_cadenceAvgIndex; - %tmp.29 = 1; - %tmp.30 = add %tmp.28 %tmp.29; - symbol [ _chartDuration %tmp.32 429 56 70 ]; - %tmp.32 = getv ? :_chartDuration; - %tmp.33 = mod %tmp.30 %tmp.32; - symbol [ _cadenceAvgIndex ? 429 12 28 ]; - putv self :_cadenceAvgIndex %tmp.33; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 430 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_430_12_440_12_if_stmt: - symbol [ _cadenceAvgCount %tmp.35 430 16 32 ]; - %tmp.35 = getv ? :_cadenceAvgCount; - symbol [ _chartDuration %tmp.37 430 35 49 ]; - %tmp.37 = getv ? :_chartDuration; - %tmp.38 = lt %tmp.35 %tmp.37; - bf %tmp.38 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_430_12_440_12_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_430_12_440_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_430_51_432_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 431 16 ] - symbol [ _cadenceAvgCount %tmp.41 431 16 32 ]; - %tmp.41 = getv ? :_cadenceAvgCount; - %tmp.42 = add %tmp.41 1; - symbol [ _cadenceAvgCount ? 431 16 32 ]; - putv self :_cadenceAvgCount dup %tmp.42; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_430_51_432_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_430_12_440_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_430_12_440_12_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_433_17_440_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 434 16 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_433_17_440_12_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_433_17_440_12_stop" ] - %barAvg.3 = local; - symbol [ barAvg %barAvg.3 434 20 26 ]; - %tmp.43 = 0.0; - lputv %barAvg.3 %tmp.43; - symbol [ barAvg %barAvg.3 434 20 26 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 435 16 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_end" ] - %i.4 = local; - symbol [ i %i.4 435 24 25 ]; - %tmp.44 = 0; - lputv %i.4 %tmp.44; - symbol [ i %i.4 435 24 25 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_test: - %tmp.45 = lgetv %i.4; - symbol [ i %tmp.45 435 31 32 ]; - symbol [ _chartDuration %tmp.47 435 35 49 ]; - %tmp.47 = getv ? :_chartDuration; - %tmp.48 = lt %tmp.45 %tmp.47; - bf %tmp.48 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_55_437_16_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 436 20 ] - %tmp.49 = lgetv %barAvg.3; - symbol [ barAvg %tmp.49 436 20 26 ]; - symbol [ _cadenceBarAvg %tmp.51 436 30 44 ]; - %tmp.51 = getv ? :_cadenceBarAvg; - %tmp.52 = lgetv %i.4; - symbol [ i %tmp.52 436 45 46 ]; - %tmp.53 = agetv %tmp.51 %tmp.52; - %tmp.54 = add %tmp.49 %tmp.53; - lputv %barAvg.3 %tmp.54; - symbol [ barAvg %barAvg.3 436 20 26 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_55_437_16_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 435 ] - %tmp.57 = lgetv %i.4; - symbol [ i %tmp.57 435 51 52 ]; - %tmp.58 = add %tmp.57 1; - lputv %i.4 %tmp.58; - symbol [ i %i.4 435 51 52 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_435_16_437_16_for_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 438 16 ] - %tmp.59 = self; - symbol [ updateCadenceHistory %tmp.60 438 16 36 ]; - %tmp.60 = getv function %tmp.59 :updateCadenceHistory; - %tmp.61 = lgetv %barAvg.3; - symbol [ barAvg %tmp.61 438 37 43 ]; - symbol [ _chartDuration %tmp.63 438 46 60 ]; - %tmp.63 = getv ? :_chartDuration; - %tmp.64 = div %tmp.61 %tmp.63; - invoke %tmp.59 %tmp.60(%tmp.64); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 439 16 ] - %tmp.65 = 0; - symbol [ _cadenceAvgCount ? 439 16 32 ]; - putv self :_cadenceAvgCount %tmp.65; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_433_17_440_12_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_430_12_440_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_57_441_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_8_441_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_426_8_441_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_418_43_442_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 444; @symbol_functiondef = [updateCadenceHistory,444,13,33]; @symbol_param<0> = [newCadence,444,34,44]; @symbol_param<0>_type<0> = [Float,444,48,53]; ] - function updateCadenceHistory(newCadence as Float) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_444_63_479_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 445 8 ] - symbol [ _cadenceHistory %tmp.1 445 8 23 ]; - %tmp.1 = getv self :_cadenceHistory; - %tmp.2 = lgetv %newCadence; - symbol [ newCadence %tmp.2 445 41 51 ]; - symbol [ _cadenceIndex %tmp.4 445 24 37 ]; - %tmp.4 = getv ? :_cadenceIndex; - aputv %tmp.1 %tmp.4 %tmp.2; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 446 8 ] - symbol [ _cadenceIndex %tmp.6 446 25 38 ]; - %tmp.6 = getv ? :_cadenceIndex; - %tmp.7 = 1; - %tmp.8 = add %tmp.6 %tmp.7; - symbol [ MAX_BARS %tmp.10 446 46 54 ]; - %tmp.10 = getv ? :MAX_BARS; - %tmp.11 = mod %tmp.8 %tmp.10; - symbol [ _cadenceIndex ? 446 8 21 ]; - putv self :_cadenceIndex %tmp.11; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 447 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_447_8_447_57_if_stmt: - symbol [ _cadenceCount %tmp.13 447 12 25 ]; - %tmp.13 = getv ? :_cadenceCount; - symbol [ MAX_BARS %tmp.15 447 28 36 ]; - %tmp.15 = getv ? :MAX_BARS; - %tmp.16 = lt %tmp.13 %tmp.15; - bf %tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_447_8_447_57_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_447_8_447_57_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_447_38_447_57_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 447 40 ] - symbol [ _cadenceCount %tmp.19 447 40 53 ]; - %tmp.19 = getv ? :_cadenceCount; - %tmp.20 = add %tmp.19 1; - symbol [ _cadenceCount ? 447 40 53 ]; - putv self :_cadenceCount dup %tmp.20; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_447_38_447_57_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_447_8_447_57_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_447_8_447_57_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 449 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_449_8_454_8_if_stmt: - symbol [ DEBUG_MODE %tmp.22 449 12 22 ]; - %tmp.22 = getv ? :DEBUG_MODE; - bf %tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_449_8_454_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_449_8_454_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_449_24_451_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 450 12 ] - symbol [ System %tmp.23 450 12 18 ]; - %tmp.23 = getm $.Toybox.System; - symbol [ println %tmp.24 450 19 26 ]; - %tmp.24 = getv function %tmp.23 :println; - %tmp.25 = "[CADENCE] "; - %tmp.26 = lgetv %newCadence; - symbol [ newCadence %tmp.26 450 42 52 ]; - %tmp.27 = add %tmp.25 %tmp.26; - invoke %tmp.23 %tmp.24(%tmp.27); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_449_24_451_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_449_8_454_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_449_8_454_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_452_13_454_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 453 12 ] - symbol [ _missingCadenceCount %tmp.30 453 12 32 ]; - %tmp.30 = getv ? :_missingCadenceCount; - %tmp.31 = add %tmp.30 1; - symbol [ _missingCadenceCount ? 453 12 32 ]; - putv self :_missingCadenceCount dup %tmp.31; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_452_13_454_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_449_8_454_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 456 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_444_63_479_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_444_63_479_4_stop" ] - %cq.1 = local; - symbol [ cq %cq.1 456 12 14 ]; - %tmp.32 = self; - symbol [ computeCadenceQualityScore %tmp.33 456 17 43 ]; - %tmp.33 = getv function %tmp.32 :computeCadenceQualityScore; - %tmp.34 = invoke %tmp.32 %tmp.33(); - lputv %cq.1 %tmp.34; - symbol [ cq %cq.1 456 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 458 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_458_8_474_8_if_stmt: - %tmp.35 = lgetv %cq.1; - symbol [ cq %tmp.35 458 12 14 ]; - %tmp.36 = 0; - %tmp.37 = lt %tmp.35 %tmp.36; - bf %tmp.37 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_458_8_474_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_458_8_474_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_458_20_464_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 459 12 ] - symbol [ System %tmp.38 459 12 18 ]; - %tmp.38 = getm $.Toybox.System; - symbol [ println %tmp.39 459 19 26 ]; - %tmp.39 = getv function %tmp.38 :println; - %tmp.40 = "[CADENCE QUALITY] Warming up ("; - symbol [ _cadenceCount %tmp.42 461 16 29 ]; - %tmp.42 = getv ? :_cadenceCount; - symbol [ toString %tmp.43 461 30 38 ]; - %tmp.43 = getv function %tmp.42 :toString; - %tmp.44 = invoke %tmp.42 %tmp.43(); - %tmp.45 = add %tmp.40 %tmp.44; - %tmp.46 = "/"; - %tmp.47 = add %tmp.45 %tmp.46; - symbol [ MIN_CQ_SAMPLES %tmp.49 462 16 30 ]; - %tmp.49 = getv ? :MIN_CQ_SAMPLES; - symbol [ toString %tmp.50 462 31 39 ]; - %tmp.50 = getv function %tmp.49 :toString; - %tmp.51 = invoke %tmp.49 %tmp.50(); - %tmp.52 = add %tmp.47 %tmp.51; - %tmp.53 = " samples)"; - %tmp.54 = add %tmp.52 %tmp.53; - invoke %tmp.38 %tmp.39(%tmp.54); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_458_20_464_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_458_8_474_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_458_8_474_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_464_15_474_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 465 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_465_12_467_12_if_stmt: - symbol [ DEBUG_MODE %tmp.56 465 16 26 ]; - %tmp.56 = getv ? :DEBUG_MODE; - bf %tmp.56 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_465_12_467_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_465_12_467_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_465_28_467_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 466 16 ] - symbol [ System %tmp.57 466 16 22 ]; - %tmp.57 = getm $.Toybox.System; - symbol [ println %tmp.58 466 23 30 ]; - %tmp.58 = getv function %tmp.57 :println; - %tmp.59 = "[CADENCE QUALITY] CQ = "; - %tmp.60 = lgetv %cq.1; - symbol [ cq %tmp.60 466 59 61 ]; - symbol [ format %tmp.61 466 62 68 ]; - %tmp.61 = getv function %tmp.60 :format; - %tmp.62 = "%d"; - %tmp.63 = invoke %tmp.60 %tmp.61(%tmp.62); - %tmp.64 = add %tmp.59 %tmp.63; - %tmp.65 = "%"; - %tmp.66 = add %tmp.64 %tmp.65; - invoke %tmp.57 %tmp.58(%tmp.66); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_465_28_467_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_465_12_467_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_465_12_467_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 469 12 ] - symbol [ _cqHistory %tmp.68 469 12 22 ]; - %tmp.68 = getv ? :_cqHistory; - symbol [ add %tmp.69 469 23 26 ]; - %tmp.69 = getv function %tmp.68 :add; - %tmp.70 = lgetv %cq.1; - symbol [ cq %tmp.70 469 27 29 ]; - invoke %tmp.68 %tmp.69(%tmp.70); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 471 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_471_12_473_12_if_stmt: - symbol [ _cqHistory %tmp.72 471 16 26 ]; - %tmp.72 = getv ? :_cqHistory; - symbol [ size %tmp.73 471 27 31 ]; - %tmp.73 = getv function %tmp.72 :size; - %tmp.74 = invoke %tmp.72 %tmp.73(); - %tmp.75 = 10; - %tmp.76 = gt %tmp.74 %tmp.75; - bf %tmp.76 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_471_12_473_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_471_12_473_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_471_40_473_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 472 16 ] - symbol [ _cqHistory %tmp.78 472 16 26 ]; - %tmp.78 = getv ? :_cqHistory; - symbol [ remove %tmp.79 472 27 33 ]; - %tmp.79 = getv function %tmp.78 :remove; - %tmp.80 = 0; - invoke %tmp.78 %tmp.79(%tmp.80); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_471_40_473_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_471_12_473_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_471_12_473_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_464_15_474_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_458_8_474_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 476 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_8_478_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_12_476_55_begin: - symbol [ _cadenceIndex %tmp.82 476 12 25 ]; - %tmp.82 = getv ? :_cadenceIndex; - %tmp.83 = 60; - %tmp.84 = mod %tmp.82 %tmp.83; - %tmp.85 = 0; - %tmp.86 = eq %tmp.84 %tmp.85; - bf %tmp.86 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_8_478_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_39_476_55_true: - symbol [ _cadenceIndex %tmp.88 476 39 52 ]; - %tmp.88 = getv ? :_cadenceIndex; - %tmp.89 = 0; - %tmp.90 = gt %tmp.88 %tmp.89; - push %tmp.90; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_39_476_55_end: - %tmp.91 = phi [%tmp.86 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_12_476_55_begin] [%tmp.90 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_39_476_55_true] [%tmp.91 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_39_476_55_end]; - bf %tmp.91 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_8_478_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_8_478_8_if_true: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_8_478_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_476_8_478_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_444_63_479_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 481; @symbol_functiondef = [computeTimeInZoneScore,481,13,35]; @symbol_return<0> = [Number,481,41,47]; ] - function computeTimeInZoneScore() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 482 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_482_8_484_8_if_stmt: - symbol [ _cadenceCount %tmp.2 482 12 25 ]; - %tmp.2 = getv ? :_cadenceCount; - symbol [ MIN_CQ_SAMPLES %tmp.4 482 28 42 ]; - %tmp.4 = getv ? :MIN_CQ_SAMPLES; - %tmp.5 = lt %tmp.2 %tmp.4; - bf %tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_482_8_484_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_482_8_484_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_482_44_484_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 483 12 ] - %tmp.6 = -1; - ret %tmp.6; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_482_44_484_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_482_8_484_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_482_8_484_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 486 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_stop" ] - %minZone.1 = local; - symbol [ minZone %minZone.1 486 12 19 ]; - symbol [ _idealMinCadence %tmp.8 486 22 38 ]; - %tmp.8 = getv ? :_idealMinCadence; - lputv %minZone.1 %tmp.8; - symbol [ minZone %minZone.1 486 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 487 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_stop" ] - %maxZone.2 = local; - symbol [ maxZone %maxZone.2 487 12 19 ]; - symbol [ _idealMaxCadence %tmp.10 487 22 38 ]; - %tmp.10 = getv ? :_idealMaxCadence; - lputv %maxZone.2 %tmp.10; - symbol [ maxZone %maxZone.2 487 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 489 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_stop" ] - %inZoneCount.3 = local; - symbol [ inZoneCount %inZoneCount.3 489 12 23 ]; - %tmp.11 = 0; - lputv %inZoneCount.3 %tmp.11; - symbol [ inZoneCount %inZoneCount.3 489 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 490 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_stop" ] - %validSamples.4 = local; - symbol [ validSamples %validSamples.4 490 12 24 ]; - %tmp.12 = 0; - lputv %validSamples.4 %tmp.12; - symbol [ validSamples %validSamples.4 490 12 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 492 8 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_end" ] - %i.5 = local; - symbol [ i %i.5 492 17 18 ]; - %tmp.13 = 0; - lputv %i.5 %tmp.13; - symbol [ i %i.5 492 17 18 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_test: - %tmp.14 = lgetv %i.5; - symbol [ i %tmp.14 492 24 25 ]; - symbol [ MAX_BARS %tmp.16 492 28 36 ]; - %tmp.16 = getv ? :MAX_BARS; - %tmp.17 = lt %tmp.14 %tmp.16; - bf %tmp.17 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_43_502_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 493 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_43_502_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_43_502_8_stop" ] - %c.6 = local; - symbol [ c %c.6 493 16 17 ]; - symbol [ _cadenceHistory %tmp.19 493 20 35 ]; - %tmp.19 = getv ? :_cadenceHistory; - %tmp.20 = lgetv %i.5; - symbol [ i %tmp.20 493 36 37 ]; - %tmp.21 = agetv %tmp.19 %tmp.20; - lputv %c.6 %tmp.21; - symbol [ c %c.6 493 16 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 495 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_495_12_501_12_if_stmt: - %tmp.22 = lgetv %c.6; - symbol [ c %tmp.22 495 16 17 ]; - %tmp.23 = null; - %tmp.24 = ne %tmp.22 %tmp.23; - bf %tmp.24 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_495_12_501_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_495_12_501_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_495_27_501_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 496 16 ] - %tmp.27 = lgetv %validSamples.4; - symbol [ validSamples %tmp.27 496 16 28 ]; - %tmp.28 = add %tmp.27 1; - lputv %validSamples.4 %tmp.28; - symbol [ validSamples %validSamples.4 496 16 28 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 498 16 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_16_500_16_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_20_498_41_begin: - %tmp.29 = lgetv %c.6; - symbol [ c %tmp.29 498 20 21 ]; - %tmp.30 = as %tmp.29 { (!Null) }; - %tmp.31 = lgetv %minZone.1; - symbol [ minZone %tmp.31 498 25 32 ]; - %tmp.32 = gte %tmp.30 %tmp.31; - bf %tmp.32 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_16_500_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_36_498_41_true: - %tmp.33 = lgetv %c.6; - symbol [ c %tmp.33 498 36 37 ]; - %tmp.34 = as %tmp.33 { (!Null) }; - %tmp.35 = lgetv %maxZone.2; - symbol [ maxZone %tmp.35 498 41 48 ]; - %tmp.36 = lte %tmp.34 %tmp.35; - push %tmp.36; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_36_498_41_end: - %tmp.37 = phi [%tmp.32 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_20_498_41_begin] [%tmp.36 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_36_498_41_true] [%tmp.37 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_36_498_41_end]; - bf %tmp.37 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_16_500_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_16_500_16_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_50_500_16_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 499 20 ] - %tmp.40 = lgetv %inZoneCount.3; - symbol [ inZoneCount %tmp.40 499 20 31 ]; - %tmp.41 = add %tmp.40 1; - lputv %inZoneCount.3 %tmp.41; - symbol [ inZoneCount %inZoneCount.3 499 20 31 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_50_500_16_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_16_500_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_498_16_500_16_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_495_27_501_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_495_12_501_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_495_12_501_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_43_502_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 492 ] - %tmp.44 = lgetv %i.5; - symbol [ i %tmp.44 492 38 39 ]; - %tmp.45 = add %tmp.44 1; - lputv %i.5 %tmp.45; - symbol [ i %i.5 492 38 39 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_492_8_502_8_for_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 504 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_504_8_506_8_if_stmt: - %tmp.46 = lgetv %validSamples.4; - symbol [ validSamples %tmp.46 504 12 24 ]; - %tmp.47 = 0; - %tmp.48 = eq %tmp.46 %tmp.47; - bf %tmp.48 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_504_8_506_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_504_8_506_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_504_31_506_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 505 12 ] - %tmp.49 = -1; - ret %tmp.49; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_504_31_506_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_504_8_506_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_504_8_506_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 508 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_stop" ] - %ratio.7 = local; - symbol [ ratio %ratio.7 508 12 17 ]; - %tmp.50 = lgetv %inZoneCount.3; - symbol [ inZoneCount %tmp.50 508 20 31 ]; - symbol [ toFloat %tmp.51 508 32 39 ]; - %tmp.51 = getv function %tmp.50 :toFloat; - %tmp.52 = invoke %tmp.50 %tmp.51(); - %tmp.53 = lgetv %validSamples.4; - symbol [ validSamples %tmp.53 508 44 56 ]; - symbol [ toFloat %tmp.54 508 57 64 ]; - %tmp.54 = getv function %tmp.53 :toFloat; - %tmp.55 = invoke %tmp.53 %tmp.54(); - %tmp.56 = div %tmp.52 %tmp.55; - lputv %ratio.7 %tmp.56; - symbol [ ratio %ratio.7 508 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 509 8 ] - %tmp.57 = lgetv %ratio.7; - symbol [ ratio %tmp.57 509 16 21 ]; - %tmp.58 = 100; - %tmp.59 = mul %tmp.57 %tmp.58; - symbol [ toNumber %tmp.60 509 29 37 ]; - %tmp.60 = getv function %tmp.59 :toNumber; - %tmp.61 = invoke %tmp.59 %tmp.60(); - ret %tmp.61; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_481_48_510_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 512; @symbol_functiondef = [idealCadenceCalculator,512,13,35]; ] - function idealCadenceCalculator() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_512_46_541_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 513 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_512_46_541_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_512_46_541_4_stop" ] - %referenceCadence.1 = local; - symbol [ referenceCadence %referenceCadence.1 513 12 28 ]; - %tmp.1 = 0; - lputv %referenceCadence.1 %tmp.1; - symbol [ referenceCadence %referenceCadence.1 513 12 28 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 514 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_512_46_541_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_512_46_541_4_stop" ] - %finalCadence.2 = local; - symbol [ finalCadence %finalCadence.2 514 12 24 ]; - %tmp.2 = 0; - lputv %finalCadence.2 %tmp.2; - symbol [ finalCadence %finalCadence.2 514 12 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 515 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_512_46_541_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_512_46_541_4_stop" ] - %userLegLength.3 = local; - symbol [ userLegLength %userLegLength.3 515 12 25 ]; - symbol [ _userHeight %tmp.4 515 28 39 ]; - %tmp.4 = getv ? :_userHeight; - %tmp.5 = 0.53; - %tmp.6 = mul %tmp.4 %tmp.5; - lputv %userLegLength.3 %tmp.6; - symbol [ userLegLength %userLegLength.3 515 12 25 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 516 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_512_46_541_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_512_46_541_4_stop" ] - %userSpeedms.4 = local; - symbol [ userSpeedms %userSpeedms.4 516 12 23 ]; - symbol [ _userSpeed %tmp.8 516 26 36 ]; - %tmp.8 = getv ? :_userSpeed; - %tmp.9 = 3.6; - %tmp.10 = div %tmp.8 %tmp.9; - lputv %userSpeedms.4 %tmp.10; - symbol [ userSpeedms %userSpeedms.4 516 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 518 8 ] - symbol [ _userGender %tmp.12 518 16 27 ]; - %tmp.12 = getv ? :_userGender; - push %tmp.12; - switch %tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_518_8_528_8_switchStmtEnd; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_518_8_528_8_switchStmtBegin: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 519 12 ] - %tmp.13 = dup %tmp.12; - symbol [ Male %tmp.15 519 17 21 ]; - %tmp.15 = getv ? :Male; - %tmp.16 = getv function %tmp.13 :equals; - %tmp.17 = invoke %tmp.13 %tmp.16 (%tmp.15); - bt %tmp.17 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_519_12_521_21_switchCase; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 522 12 ] - %tmp.18 = dup %tmp.12; - symbol [ Female %tmp.20 522 17 23 ]; - %tmp.20 = getv ? :Female; - %tmp.21 = getv function %tmp.18 :equals; - %tmp.22 = invoke %tmp.18 %tmp.21 (%tmp.20); - bt %tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_522_12_524_21_switchCase; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 525 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_518_8_528_8_switchStmtDefault: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_518_8_528_8_defaultCodeBegin; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_519_12_521_21_switchCase: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 520 16 ] - %tmp.23 = -1.268; - %tmp.24 = lgetv %userLegLength.3; - symbol [ userLegLength %tmp.24 520 45 58 ]; - %tmp.25 = mul %tmp.23 %tmp.24; - %tmp.26 = 3.471; - %tmp.27 = lgetv %userSpeedms.4; - symbol [ userSpeedms %tmp.27 520 71 82 ]; - %tmp.28 = mul %tmp.26 %tmp.27; - %tmp.29 = add %tmp.25 %tmp.28; - %tmp.30 = 261.378; - %tmp.31 = add %tmp.29 %tmp.30; - lputv %referenceCadence.1 %tmp.31; - symbol [ referenceCadence %referenceCadence.1 520 16 32 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 521 16 ] - goto break @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_518_8_528_8_switchStmtEnd; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_522_12_524_21_switchCase: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 523 16 ] - %tmp.32 = -1.190; - %tmp.33 = lgetv %userLegLength.3; - symbol [ userLegLength %tmp.33 523 45 58 ]; - %tmp.34 = mul %tmp.32 %tmp.33; - %tmp.35 = 3.705; - %tmp.36 = lgetv %userSpeedms.4; - symbol [ userSpeedms %tmp.36 523 71 82 ]; - %tmp.37 = mul %tmp.35 %tmp.36; - %tmp.38 = add %tmp.34 %tmp.37; - %tmp.39 = 249.688; - %tmp.40 = add %tmp.38 %tmp.39; - lputv %referenceCadence.1 %tmp.40; - symbol [ referenceCadence %referenceCadence.1 523 16 32 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 524 16 ] - goto break @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_518_8_528_8_switchStmtEnd; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_525_12_527_21_switchCase: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_518_8_528_8_defaultCodeBegin: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 526 16 ] - %tmp.41 = -1.251; - %tmp.42 = lgetv %userLegLength.3; - symbol [ userLegLength %tmp.42 526 45 58 ]; - %tmp.43 = mul %tmp.41 %tmp.42; - %tmp.44 = 3.665; - %tmp.45 = lgetv %userSpeedms.4; - symbol [ userSpeedms %tmp.45 526 71 82 ]; - %tmp.46 = mul %tmp.44 %tmp.45; - %tmp.47 = add %tmp.43 %tmp.46; - %tmp.48 = 254.858; - %tmp.49 = add %tmp.47 %tmp.48; - lputv %referenceCadence.1 %tmp.49; - symbol [ referenceCadence %referenceCadence.1 526 16 32 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 527 16 ] - goto break @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_518_8_528_8_switchStmtEnd; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_518_8_528_8_switchStmtEnd: - pop; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 530 8 ] - %tmp.50 = lgetv %referenceCadence.1; - symbol [ referenceCadence %tmp.50 530 27 43 ]; - symbol [ _experienceLvl %tmp.52 530 46 60 ]; - %tmp.52 = getv ? :_experienceLvl; - %tmp.53 = mul %tmp.50 %tmp.52; - lputv %referenceCadence.1 %tmp.53; - symbol [ referenceCadence %referenceCadence.1 530 8 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 531 8 ] - symbol [ Math %tmp.55 531 27 31 ]; - %tmp.55 = getv ? :Math; - symbol [ round %tmp.56 531 32 37 ]; - %tmp.56 = getv function %tmp.55 :round; - %tmp.57 = lgetv %referenceCadence.1; - symbol [ referenceCadence %tmp.57 531 38 54 ]; - %tmp.58 = invoke %tmp.55 %tmp.56(%tmp.57); - lputv %referenceCadence.1 %tmp.58; - symbol [ referenceCadence %referenceCadence.1 531 8 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 532 8 ] - %tmp.59 = self; - symbol [ max %tmp.60 532 23 26 ]; - %tmp.60 = getv function %tmp.59 :max; - symbol [ BASELINE_AVG_CADENCE %tmp.62 532 27 47 ]; - %tmp.62 = getv ? :BASELINE_AVG_CADENCE; - %tmp.63 = self; - symbol [ min %tmp.64 532 48 51 ]; - %tmp.64 = getv function %tmp.63 :min; - %tmp.65 = lgetv %referenceCadence.1; - symbol [ referenceCadence %tmp.65 532 52 68 ]; - symbol [ MAX_CADENCE %tmp.67 532 69 80 ]; - %tmp.67 = getv ? :MAX_CADENCE; - %tmp.68 = invoke %tmp.63 %tmp.64(%tmp.65, %tmp.67); - %tmp.69 = invoke %tmp.59 %tmp.60(%tmp.62, %tmp.68); - symbol [ toNumber %tmp.70 532 83 91 ]; - %tmp.70 = getv function %tmp.69 :toNumber; - %tmp.71 = invoke %tmp.69 %tmp.70(); - lputv %finalCadence.2 %tmp.71; - symbol [ finalCadence %finalCadence.2 532 8 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 534 8 ] - %tmp.72 = lgetv %finalCadence.2; - symbol [ finalCadence %tmp.72 534 27 39 ]; - %tmp.73 = 5; - %tmp.74 = add %tmp.72 %tmp.73; - symbol [ _idealMaxCadence ? 534 8 24 ]; - putv self :_idealMaxCadence %tmp.74; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 535 8 ] - %tmp.75 = lgetv %finalCadence.2; - symbol [ finalCadence %tmp.75 535 27 39 ]; - %tmp.76 = 5; - %tmp.77 = sub %tmp.75 %tmp.76; - symbol [ _idealMinCadence ? 535 8 24 ]; - putv self :_idealMinCadence %tmp.77; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 540 8 ] - symbol [ System %tmp.78 540 8 14 ]; - %tmp.78 = getm $.Toybox.System; - symbol [ println %tmp.79 540 15 22 ]; - %tmp.79 = getv function %tmp.78 :println; - %tmp.80 = "[CADENCE] Calculated ideal range: "; - symbol [ _idealMinCadence %tmp.82 540 62 78 ]; - %tmp.82 = getv ? :_idealMinCadence; - symbol [ toString %tmp.83 540 79 87 ]; - %tmp.83 = getv function %tmp.82 :toString; - %tmp.84 = invoke %tmp.82 %tmp.83(); - %tmp.85 = add %tmp.80 %tmp.84; - %tmp.86 = "-"; - %tmp.87 = add %tmp.85 %tmp.86; - symbol [ _idealMaxCadence %tmp.89 540 98 114 ]; - %tmp.89 = getv ? :_idealMaxCadence; - symbol [ toString %tmp.90 540 115 123 ]; - %tmp.90 = getv function %tmp.89 :toString; - %tmp.91 = invoke %tmp.89 %tmp.90(); - %tmp.92 = add %tmp.87 %tmp.91; - %tmp.93 = " spm"; - %tmp.94 = add %tmp.92 %tmp.93; - invoke %tmp.78 %tmp.79(%tmp.94); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_512_46_541_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 543; @symbol_functiondef = [computeSmoothnessScore,543,13,35]; @symbol_return<0> = [Number,543,41,47]; ] - function computeSmoothnessScore() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_543_48_572_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 544 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_544_8_546_8_if_stmt: - symbol [ _cadenceCount %tmp.2 544 12 25 ]; - %tmp.2 = getv ? :_cadenceCount; - symbol [ MIN_CQ_SAMPLES %tmp.4 544 28 42 ]; - %tmp.4 = getv ? :MIN_CQ_SAMPLES; - %tmp.5 = lt %tmp.2 %tmp.4; - bf %tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_544_8_546_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_544_8_546_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_544_44_546_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 545 12 ] - %tmp.6 = -1; - ret %tmp.6; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_544_44_546_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_544_8_546_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_544_8_546_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 548 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_543_48_572_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_543_48_572_4_stop" ] - %totalDiff.1 = local; - symbol [ totalDiff %totalDiff.1 548 12 21 ]; - %tmp.7 = 0.0; - lputv %totalDiff.1 %tmp.7; - symbol [ totalDiff %totalDiff.1 548 12 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 549 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_543_48_572_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_543_48_572_4_stop" ] - %diffCount.2 = local; - symbol [ diffCount %diffCount.2 549 12 21 ]; - %tmp.8 = 0; - lputv %diffCount.2 %tmp.8; - symbol [ diffCount %diffCount.2 549 12 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 551 8 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_end" ] - %i.3 = local; - symbol [ i %i.3 551 17 18 ]; - %tmp.9 = 1; - lputv %i.3 %tmp.9; - symbol [ i %i.3 551 17 18 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_test: - %tmp.10 = lgetv %i.3; - symbol [ i %tmp.10 551 24 25 ]; - symbol [ MAX_BARS %tmp.12 551 28 36 ]; - %tmp.12 = getv ? :MAX_BARS; - %tmp.13 = lt %tmp.10 %tmp.12; - bf %tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_43_559_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 552 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_43_559_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_43_559_8_stop" ] - %prev.4 = local; - symbol [ prev %prev.4 552 16 20 ]; - symbol [ _cadenceHistory %tmp.15 552 23 38 ]; - %tmp.15 = getv ? :_cadenceHistory; - %tmp.16 = lgetv %i.3; - symbol [ i %tmp.16 552 39 40 ]; - %tmp.17 = 1; - %tmp.18 = sub %tmp.16 %tmp.17; - %tmp.19 = agetv %tmp.15 %tmp.18; - lputv %prev.4 %tmp.19; - symbol [ prev %prev.4 552 16 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 553 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_43_559_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_43_559_8_stop" ] - %curr.5 = local; - symbol [ curr %curr.5 553 16 20 ]; - symbol [ _cadenceHistory %tmp.21 553 23 38 ]; - %tmp.21 = getv ? :_cadenceHistory; - %tmp.22 = lgetv %i.3; - symbol [ i %tmp.22 553 39 40 ]; - %tmp.23 = agetv %tmp.21 %tmp.22; - lputv %curr.5 %tmp.23; - symbol [ curr %curr.5 553 16 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 555 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_12_558_12_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_16_555_40_begin: - %tmp.24 = lgetv %prev.4; - symbol [ prev %tmp.24 555 16 20 ]; - %tmp.25 = null; - %tmp.26 = ne %tmp.24 %tmp.25; - bf %tmp.26 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_12_558_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_32_555_40_true: - %tmp.27 = lgetv %curr.5; - symbol [ curr %tmp.27 555 32 36 ]; - %tmp.28 = null; - %tmp.29 = ne %tmp.27 %tmp.28; - push %tmp.29; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_32_555_40_end: - %tmp.30 = phi [%tmp.26 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_16_555_40_begin] [%tmp.29 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_32_555_40_true] [%tmp.30 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_32_555_40_end]; - bf %tmp.30 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_12_558_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_12_558_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_46_558_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 556 16 ] - %tmp.31 = lgetv %totalDiff.1; - symbol [ totalDiff %tmp.31 556 16 25 ]; - %tmp.32 = self; - symbol [ abs %tmp.33 556 29 32 ]; - %tmp.33 = getv function %tmp.32 :abs; - %tmp.34 = lgetv %curr.5; - symbol [ curr %tmp.34 556 33 37 ]; - %tmp.35 = as %tmp.34 { (!Null) }; - %tmp.36 = lgetv %prev.4; - symbol [ prev %tmp.36 556 40 44 ]; - %tmp.37 = as %tmp.36 { (!Null) }; - %tmp.38 = sub %tmp.35 %tmp.37; - %tmp.39 = invoke %tmp.32 %tmp.33(%tmp.38); - %tmp.40 = add %tmp.31 %tmp.39; - lputv %totalDiff.1 %tmp.40; - symbol [ totalDiff %totalDiff.1 556 16 25 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 557 16 ] - %tmp.43 = lgetv %diffCount.2; - symbol [ diffCount %tmp.43 557 16 25 ]; - %tmp.44 = add %tmp.43 1; - lputv %diffCount.2 %tmp.44; - symbol [ diffCount %diffCount.2 557 16 25 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_46_558_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_12_558_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_555_12_558_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_43_559_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 551 ] - %tmp.47 = lgetv %i.3; - symbol [ i %tmp.47 551 38 39 ]; - %tmp.48 = add %tmp.47 1; - lputv %i.3 %tmp.48; - symbol [ i %i.3 551 38 39 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_551_8_559_8_for_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 561 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_561_8_563_8_if_stmt: - %tmp.49 = lgetv %diffCount.2; - symbol [ diffCount %tmp.49 561 12 21 ]; - %tmp.50 = 0; - %tmp.51 = eq %tmp.49 %tmp.50; - bf %tmp.51 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_561_8_563_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_561_8_563_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_561_28_563_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 562 12 ] - %tmp.52 = -1; - ret %tmp.52; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_561_28_563_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_561_8_563_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_561_8_563_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 565 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_543_48_572_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_543_48_572_4_stop" ] - %avgDiff.6 = local; - symbol [ avgDiff %avgDiff.6 565 12 19 ]; - %tmp.53 = lgetv %totalDiff.1; - symbol [ totalDiff %tmp.53 565 22 31 ]; - %tmp.54 = lgetv %diffCount.2; - symbol [ diffCount %tmp.54 565 34 43 ]; - %tmp.55 = div %tmp.53 %tmp.54; - lputv %avgDiff.6 %tmp.55; - symbol [ avgDiff %avgDiff.6 565 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 566 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_543_48_572_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_543_48_572_4_stop" ] - %rawScore.7 = local; - symbol [ rawScore %rawScore.7 566 12 20 ]; - %tmp.56 = 100; - %tmp.57 = lgetv %avgDiff.6; - symbol [ avgDiff %tmp.57 566 30 37 ]; - %tmp.58 = 10; - %tmp.59 = mul %tmp.57 %tmp.58; - %tmp.60 = sub %tmp.56 %tmp.59; - lputv %rawScore.7 %tmp.60; - symbol [ rawScore %rawScore.7 566 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 568 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_568_8_568_42_if_stmt: - %tmp.61 = lgetv %rawScore.7; - symbol [ rawScore %tmp.61 568 12 20 ]; - %tmp.62 = 0; - %tmp.63 = lt %tmp.61 %tmp.62; - bf %tmp.63 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_568_8_568_42_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_568_8_568_42_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_568_26_568_42_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 568 28 ] - %tmp.64 = 0; - lputv %rawScore.7 %tmp.64; - symbol [ rawScore %rawScore.7 568 28 36 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_568_26_568_42_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_568_8_568_42_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_568_8_568_42_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 569 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_569_8_569_46_if_stmt: - %tmp.65 = lgetv %rawScore.7; - symbol [ rawScore %tmp.65 569 12 20 ]; - %tmp.66 = 100; - %tmp.67 = gt %tmp.65 %tmp.66; - bf %tmp.67 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_569_8_569_46_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_569_8_569_46_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_569_28_569_46_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 569 30 ] - %tmp.68 = 100; - lputv %rawScore.7 %tmp.68; - symbol [ rawScore %rawScore.7 569 30 38 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_569_28_569_46_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_569_8_569_46_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_569_8_569_46_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 571 8 ] - %tmp.69 = lgetv %rawScore.7; - symbol [ rawScore %tmp.69 571 15 23 ]; - ret %tmp.69; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_543_48_572_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 574; @symbol_functiondef = [computeCadenceQualityScore,574,13,39]; @symbol_return<0> = [Number,574,45,51]; ] - function computeCadenceQualityScore() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_574_52_584_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 575 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_574_52_584_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_574_52_584_4_stop" ] - %timeInZone.1 = local; - symbol [ timeInZone %timeInZone.1 575 12 22 ]; - %tmp.1 = self; - symbol [ computeTimeInZoneScore %tmp.2 575 25 47 ]; - %tmp.2 = getv function %tmp.1 :computeTimeInZoneScore; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %timeInZone.1 %tmp.3; - symbol [ timeInZone %timeInZone.1 575 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 576 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_574_52_584_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_574_52_584_4_stop" ] - %smoothness.2 = local; - symbol [ smoothness %smoothness.2 576 12 22 ]; - %tmp.4 = self; - symbol [ computeSmoothnessScore %tmp.5 576 25 47 ]; - %tmp.5 = getv function %tmp.4 :computeSmoothnessScore; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %smoothness.2 %tmp.6; - symbol [ smoothness %smoothness.2 576 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 578 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_8_580_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_12_578_43_begin: - %tmp.7 = lgetv %timeInZone.1; - symbol [ timeInZone %tmp.7 578 12 22 ]; - %tmp.8 = 0; - %tmp.9 = lt %tmp.7 %tmp.8; - bt %tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_8_580_8_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_30_578_43_false: - %tmp.10 = lgetv %smoothness.2; - symbol [ smoothness %tmp.10 578 30 40 ]; - %tmp.11 = 0; - %tmp.12 = lt %tmp.10 %tmp.11; - push %tmp.12; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_30_578_43_end: - %tmp.13 = phi [%tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_12_578_43_begin] [%tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_30_578_43_false] [%tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_30_578_43_end]; - bf %tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_8_580_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_8_580_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_46_580_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 579 12 ] - %tmp.14 = -1; - ret %tmp.14; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_46_580_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_8_580_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_578_8_580_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 582 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_574_52_584_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_574_52_584_4_stop" ] - %cq.3 = local; - symbol [ cq %cq.3 582 12 14 ]; - %tmp.15 = lgetv %timeInZone.1; - symbol [ timeInZone %tmp.15 582 18 28 ]; - %tmp.16 = 0.7; - %tmp.17 = mul %tmp.15 %tmp.16; - %tmp.18 = lgetv %smoothness.2; - symbol [ smoothness %tmp.18 582 39 49 ]; - %tmp.19 = 0.3; - %tmp.20 = mul %tmp.18 %tmp.19; - %tmp.21 = add %tmp.17 %tmp.20; - lputv %cq.3 %tmp.21; - symbol [ cq %cq.3 582 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 583 8 ] - %tmp.22 = lgetv %cq.3; - symbol [ cq %tmp.22 583 15 17 ]; - symbol [ toNumber %tmp.23 583 18 26 ]; - %tmp.23 = getv function %tmp.22 :toNumber; - %tmp.24 = invoke %tmp.22 %tmp.23(); - ret %tmp.24; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_574_52_584_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 586; @symbol_functiondef = [computeCQConfidence,586,13,32]; @symbol_return<0> = [String,586,38,44]; ] - function computeCQConfidence() as String { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_586_45_601_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 587 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_587_8_589_8_if_stmt: - symbol [ _cadenceCount %tmp.2 587 12 25 ]; - %tmp.2 = getv ? :_cadenceCount; - symbol [ MIN_CQ_SAMPLES %tmp.4 587 28 42 ]; - %tmp.4 = getv ? :MIN_CQ_SAMPLES; - %tmp.5 = lt %tmp.2 %tmp.4; - bf %tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_587_8_589_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_587_8_589_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_587_44_589_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 588 12 ] - %tmp.6 = "Low"; - ret %tmp.6; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_587_44_589_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_587_8_589_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_587_8_589_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 591 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_586_45_601_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_586_45_601_4_stop" ] - %missingRatio.1 = local; - symbol [ missingRatio %missingRatio.1 591 12 24 ]; - symbol [ _missingCadenceCount %tmp.8 591 27 47 ]; - %tmp.8 = getv ? :_missingCadenceCount; - symbol [ toFloat %tmp.9 591 48 55 ]; - %tmp.9 = getv function %tmp.8 :toFloat; - %tmp.10 = invoke %tmp.8 %tmp.9(); - symbol [ _cadenceCount %tmp.12 592 25 38 ]; - %tmp.12 = getv ? :_cadenceCount; - symbol [ _missingCadenceCount %tmp.14 592 41 61 ]; - %tmp.14 = getv ? :_missingCadenceCount; - %tmp.15 = add %tmp.12 %tmp.14; - symbol [ toFloat %tmp.16 592 63 70 ]; - %tmp.16 = getv function %tmp.15 :toFloat; - %tmp.17 = invoke %tmp.15 %tmp.16(); - %tmp.18 = div %tmp.10 %tmp.17; - lputv %missingRatio.1 %tmp.18; - symbol [ missingRatio %missingRatio.1 591 12 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 594 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_594_8_600_8_if_stmt: - %tmp.19 = lgetv %missingRatio.1; - symbol [ missingRatio %tmp.19 594 12 24 ]; - %tmp.20 = 0.2; - %tmp.21 = gt %tmp.19 %tmp.20; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_594_8_600_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_594_8_600_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_594_32_596_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 595 12 ] - %tmp.22 = "Low"; - ret %tmp.22; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_594_32_596_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_594_8_600_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_594_8_600_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 596 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_596_15_600_8_if_stmt: - %tmp.23 = lgetv %missingRatio.1; - symbol [ missingRatio %tmp.23 596 19 31 ]; - %tmp.24 = 0.1; - %tmp.25 = gt %tmp.23 %tmp.24; - bf %tmp.25 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_596_15_600_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_596_15_600_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_596_39_598_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 597 12 ] - %tmp.26 = "Medium"; - ret %tmp.26; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_596_39_598_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_596_15_600_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_596_15_600_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_598_15_600_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 599 12 ] - %tmp.27 = "High"; - ret %tmp.27; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_598_15_600_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_596_15_600_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_594_8_600_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_586_45_601_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 603; @symbol_functiondef = [computeCQTrend,603,13,27]; @symbol_return<0> = [String,603,33,39]; ] - function computeCQTrend() as String { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_603_40_619_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 604 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_604_8_606_8_if_stmt: - symbol [ _cqHistory %tmp.2 604 12 22 ]; - %tmp.2 = getv ? :_cqHistory; - symbol [ size %tmp.3 604 23 27 ]; - %tmp.3 = getv function %tmp.2 :size; - %tmp.4 = invoke %tmp.2 %tmp.3(); - %tmp.5 = 5; - %tmp.6 = lt %tmp.4 %tmp.5; - bf %tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_604_8_606_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_604_8_606_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_604_35_606_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 605 12 ] - %tmp.7 = "Stable"; - ret %tmp.7; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_604_35_606_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_604_8_606_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_604_8_606_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 608 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_603_40_619_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_603_40_619_4_stop" ] - %first.1 = local; - symbol [ first %first.1 608 12 17 ]; - symbol [ _cqHistory %tmp.9 608 20 30 ]; - %tmp.9 = getv ? :_cqHistory; - %tmp.10 = 0; - %tmp.11 = agetv %tmp.9 %tmp.10; - lputv %first.1 %tmp.11; - symbol [ first %first.1 608 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 609 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_603_40_619_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_603_40_619_4_stop" ] - %last.2 = local; - symbol [ last %last.2 609 12 16 ]; - symbol [ _cqHistory %tmp.13 609 20 30 ]; - %tmp.13 = getv ? :_cqHistory; - symbol [ _cqHistory %tmp.15 609 31 41 ]; - %tmp.15 = getv ? :_cqHistory; - symbol [ size %tmp.16 609 42 46 ]; - %tmp.16 = getv function %tmp.15 :size; - %tmp.17 = invoke %tmp.15 %tmp.16(); - %tmp.18 = 1; - %tmp.19 = sub %tmp.17 %tmp.18; - %tmp.20 = agetv %tmp.13 %tmp.19; - lputv %last.2 %tmp.20; - symbol [ last %last.2 609 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 610 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_603_40_619_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_603_40_619_4_stop" ] - %delta.3 = local; - symbol [ delta %delta.3 610 12 17 ]; - %tmp.21 = lgetv %last.2; - symbol [ last %tmp.21 610 20 24 ]; - %tmp.22 = lgetv %first.1; - symbol [ first %tmp.22 610 27 32 ]; - %tmp.23 = sub %tmp.21 %tmp.22; - lputv %delta.3 %tmp.23; - symbol [ delta %delta.3 610 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 612 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_612_8_618_8_if_stmt: - %tmp.24 = lgetv %delta.3; - symbol [ delta %tmp.24 612 12 17 ]; - %tmp.25 = -5; - %tmp.26 = lt %tmp.24 %tmp.25; - bf %tmp.26 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_612_8_618_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_612_8_618_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_612_24_614_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 613 12 ] - %tmp.27 = "Declining"; - ret %tmp.27; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_612_24_614_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_612_8_618_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_612_8_618_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 614 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_614_15_618_8_if_stmt: - %tmp.28 = lgetv %delta.3; - symbol [ delta %tmp.28 614 19 24 ]; - %tmp.29 = 5; - %tmp.30 = gt %tmp.28 %tmp.29; - bf %tmp.30 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_614_15_618_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_614_15_618_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_614_30_616_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 615 12 ] - %tmp.31 = "Improving"; - ret %tmp.31; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_614_30_616_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_614_15_618_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_614_15_618_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_616_15_618_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 617 12 ] - %tmp.32 = "Stable"; - ret %tmp.32; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_616_15_618_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_614_15_618_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_612_8_618_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_603_40_619_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 621; @symbol_functiondef = [writeDiagnosticLog,621,13,31]; ] - function writeDiagnosticLog() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_621_42_647_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 622 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_622_8_624_8_if_stmt: - symbol [ DEBUG_MODE %tmp.2 622 13 23 ]; - %tmp.2 = getv ? :DEBUG_MODE; - %tmp.3 = not %tmp.2; - bf %tmp.3 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_622_8_624_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_622_8_624_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_622_25_624_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 623 12 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_622_25_624_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_622_8_624_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_622_8_624_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 626 8 ] - symbol [ System %tmp.4 626 8 14 ]; - %tmp.4 = getm $.Toybox.System; - symbol [ println %tmp.5 626 15 22 ]; - %tmp.5 = getv function %tmp.4 :println; - %tmp.6 = "===== DIAGNOSTIC RUN SUMMARY ====="; - invoke %tmp.4 %tmp.5(%tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 627 8 ] - symbol [ System %tmp.7 627 8 14 ]; - %tmp.7 = getm $.Toybox.System; - symbol [ println %tmp.8 627 15 22 ]; - %tmp.8 = getv function %tmp.7 :println; - %tmp.9 = "Final CQ: "; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_628_13_628_62_begin: - symbol [ _finalCQ %tmp.11 628 13 21 ]; - %tmp.11 = getv ? :_finalCQ; - %tmp.12 = null; - %tmp.13 = ne %tmp.11 %tmp.12; - bf %tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_628_13_628_62_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_628_13_628_62_true: - symbol [ _finalCQ %tmp.15 628 32 40 ]; - %tmp.15 = getv ? :_finalCQ; - %tmp.16 = as %tmp.15 { (!Null) }; - symbol [ format %tmp.17 628 41 47 ]; - %tmp.17 = getv function %tmp.16 :format; - %tmp.18 = "%d"; - %tmp.19 = invoke %tmp.16 %tmp.17(%tmp.18); - %tmp.20 = "%"; - %tmp.21 = add %tmp.19 %tmp.20; - push %tmp.21; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_628_13_628_62_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_628_13_628_62_else_false: - %tmp.22 = "N/A"; - push %tmp.22; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_628_13_628_62_end: - %tmp.23 = phi [%tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_628_13_628_62_begin] [%tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_628_13_628_62_true] [%tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_628_13_628_62_else_false] [%tmp.23 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_628_13_628_62_end]; - %tmp.24 = add %tmp.9 %tmp.23; - invoke %tmp.7 %tmp.8(%tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 629 8 ] - symbol [ System %tmp.25 629 8 14 ]; - %tmp.25 = getm $.Toybox.System; - symbol [ println %tmp.26 629 15 22 ]; - %tmp.26 = getv function %tmp.25 :println; - %tmp.27 = "CQ Confidence: "; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_630_13_630_63_begin: - symbol [ _finalCQConfidence %tmp.29 630 13 31 ]; - %tmp.29 = getv ? :_finalCQConfidence; - %tmp.30 = null; - %tmp.31 = ne %tmp.29 %tmp.30; - bf %tmp.31 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_630_13_630_63_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_630_13_630_63_true: - symbol [ _finalCQConfidence %tmp.33 630 42 60 ]; - %tmp.33 = getv ? :_finalCQConfidence; - %tmp.34 = as %tmp.33 { (!Null) }; - push %tmp.34; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_630_13_630_63_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_630_13_630_63_else_false: - %tmp.35 = "N/A"; - push %tmp.35; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_630_13_630_63_end: - %tmp.36 = phi [%tmp.31 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_630_13_630_63_begin] [%tmp.34 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_630_13_630_63_true] [%tmp.35 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_630_13_630_63_else_false] [%tmp.36 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_630_13_630_63_end]; - %tmp.37 = add %tmp.27 %tmp.36; - invoke %tmp.25 %tmp.26(%tmp.37); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 631 8 ] - symbol [ System %tmp.38 631 8 14 ]; - %tmp.38 = getm $.Toybox.System; - symbol [ println %tmp.39 631 15 22 ]; - %tmp.39 = getv function %tmp.38 :println; - %tmp.40 = "CQ Trend: "; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_632_13_632_53_begin: - symbol [ _finalCQTrend %tmp.42 632 13 26 ]; - %tmp.42 = getv ? :_finalCQTrend; - %tmp.43 = null; - %tmp.44 = ne %tmp.42 %tmp.43; - bf %tmp.44 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_632_13_632_53_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_632_13_632_53_true: - symbol [ _finalCQTrend %tmp.46 632 37 50 ]; - %tmp.46 = getv ? :_finalCQTrend; - %tmp.47 = as %tmp.46 { (!Null) }; - push %tmp.47; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_632_13_632_53_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_632_13_632_53_else_false: - %tmp.48 = "N/A"; - push %tmp.48; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_632_13_632_53_end: - %tmp.49 = phi [%tmp.44 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_632_13_632_53_begin] [%tmp.47 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_632_13_632_53_true] [%tmp.48 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_632_13_632_53_else_false] [%tmp.49 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_632_13_632_53_end]; - %tmp.50 = add %tmp.40 %tmp.49; - invoke %tmp.38 %tmp.39(%tmp.50); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 633 8 ] - symbol [ System %tmp.51 633 8 14 ]; - %tmp.51 = getm $.Toybox.System; - symbol [ println %tmp.52 633 15 22 ]; - %tmp.52 = getv function %tmp.51 :println; - %tmp.53 = "Cadence samples collected: "; - symbol [ _cadenceCount %tmp.55 633 55 68 ]; - %tmp.55 = getv ? :_cadenceCount; - symbol [ toString %tmp.56 633 69 77 ]; - %tmp.56 = getv function %tmp.55 :toString; - %tmp.57 = invoke %tmp.55 %tmp.56(); - %tmp.58 = add %tmp.53 %tmp.57; - invoke %tmp.51 %tmp.52(%tmp.58); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 634 8 ] - symbol [ System %tmp.59 634 8 14 ]; - %tmp.59 = getm $.Toybox.System; - symbol [ println %tmp.60 634 15 22 ]; - %tmp.60 = getv function %tmp.59 :println; - %tmp.61 = "Missing cadence samples: "; - symbol [ _missingCadenceCount %tmp.63 634 53 73 ]; - %tmp.63 = getv ? :_missingCadenceCount; - symbol [ toString %tmp.64 634 74 82 ]; - %tmp.64 = getv function %tmp.63 :toString; - %tmp.65 = invoke %tmp.63 %tmp.64(); - %tmp.66 = add %tmp.61 %tmp.65; - invoke %tmp.59 %tmp.60(%tmp.66); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 636 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_621_42_647_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_621_42_647_4_stop" ] - %totalSamples.1 = local; - symbol [ totalSamples %totalSamples.1 636 12 24 ]; - symbol [ _cadenceCount %tmp.68 636 27 40 ]; - %tmp.68 = getv ? :_cadenceCount; - symbol [ _missingCadenceCount %tmp.70 636 43 63 ]; - %tmp.70 = getv ? :_missingCadenceCount; - %tmp.71 = add %tmp.68 %tmp.70; - lputv %totalSamples.1 %tmp.71; - symbol [ totalSamples %totalSamples.1 636 12 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 637 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_637_8_641_8_if_stmt: - %tmp.72 = lgetv %totalSamples.1; - symbol [ totalSamples %tmp.72 637 12 24 ]; - %tmp.73 = 0; - %tmp.74 = gt %tmp.72 %tmp.73; - bf %tmp.74 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_637_8_641_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_637_8_641_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_637_30_641_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 638 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_637_30_641_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_637_30_641_8_stop" ] - %validRatio.2 = local; - symbol [ validRatio %validRatio.2 638 16 26 ]; - symbol [ _cadenceCount %tmp.76 639 17 30 ]; - %tmp.76 = getv ? :_cadenceCount; - symbol [ toFloat %tmp.77 639 31 38 ]; - %tmp.77 = getv function %tmp.76 :toFloat; - %tmp.78 = invoke %tmp.76 %tmp.77(); - %tmp.79 = lgetv %totalSamples.1; - symbol [ totalSamples %tmp.79 639 43 55 ]; - symbol [ toFloat %tmp.80 639 56 63 ]; - %tmp.80 = getv function %tmp.79 :toFloat; - %tmp.81 = invoke %tmp.79 %tmp.80(); - %tmp.82 = div %tmp.78 %tmp.81; - %tmp.83 = 100; - %tmp.84 = mul %tmp.82 %tmp.83; - lputv %validRatio.2 %tmp.84; - symbol [ validRatio %validRatio.2 638 16 26 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 640 12 ] - symbol [ System %tmp.85 640 12 18 ]; - %tmp.85 = getm $.Toybox.System; - symbol [ println %tmp.86 640 19 26 ]; - %tmp.86 = getv function %tmp.85 :println; - %tmp.87 = "Valid data ratio: "; - %tmp.88 = lgetv %validRatio.2; - symbol [ validRatio %tmp.88 640 50 60 ]; - symbol [ format %tmp.89 640 61 67 ]; - %tmp.89 = getv function %tmp.88 :format; - %tmp.90 = "%d"; - %tmp.91 = invoke %tmp.88 %tmp.89(%tmp.90); - %tmp.92 = add %tmp.87 %tmp.91; - %tmp.93 = "%"; - %tmp.94 = add %tmp.92 %tmp.93; - invoke %tmp.85 %tmp.86(%tmp.94); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_637_30_641_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_637_8_641_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_637_8_641_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 643 8 ] - symbol [ System %tmp.95 643 8 14 ]; - %tmp.95 = getm $.Toybox.System; - symbol [ println %tmp.96 643 15 22 ]; - %tmp.96 = getv function %tmp.95 :println; - %tmp.97 = "Ideal cadence range: "; - symbol [ _idealMinCadence %tmp.99 644 12 28 ]; - %tmp.99 = getv ? :_idealMinCadence; - symbol [ toString %tmp.100 644 29 37 ]; - %tmp.100 = getv function %tmp.99 :toString; - %tmp.101 = invoke %tmp.99 %tmp.100(); - %tmp.102 = add %tmp.97 %tmp.101; - %tmp.103 = "-"; - %tmp.104 = add %tmp.102 %tmp.103; - symbol [ _idealMaxCadence %tmp.106 645 12 28 ]; - %tmp.106 = getv ? :_idealMaxCadence; - symbol [ toString %tmp.107 645 29 37 ]; - %tmp.107 = getv function %tmp.106 :toString; - %tmp.108 = invoke %tmp.106 %tmp.107(); - %tmp.109 = add %tmp.104 %tmp.108; - invoke %tmp.95 %tmp.96(%tmp.109); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 646 8 ] - symbol [ System %tmp.110 646 8 14 ]; - %tmp.110 = getm $.Toybox.System; - symbol [ println %tmp.111 646 15 22 ]; - %tmp.111 = getv function %tmp.110 :println; - %tmp.112 = "===== END DIAGNOSTIC SUMMARY ====="; - invoke %tmp.110 %tmp.111(%tmp.112); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_621_42_647_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 649; @symbol_functiondef = [getSessionState,649,13,28]; @symbol_return<0> = [SessionState,649,34,46]; ] - function getSessionState() as SessionState { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_649_47_651_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 650 8 ] - symbol [ _sessionState %tmp.2 650 15 28 ]; - %tmp.2 = getv ? :_sessionState; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_649_47_651_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 653; @symbol_functiondef = [isRecording,653,13,24]; @symbol_return<0> = [Boolean,653,30,37]; ] - function isRecording() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_653_38_655_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 654 8 ] - symbol [ _sessionState %tmp.2 654 15 28 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ RECORDING %tmp.4 654 32 41 ]; - %tmp.4 = getv ? :RECORDING; - %tmp.5 = eq %tmp.2 %tmp.4; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_653_38_655_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 657; @symbol_functiondef = [isPaused,657,13,21]; @symbol_return<0> = [Boolean,657,27,34]; ] - function isPaused() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_657_35_659_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 658 8 ] - symbol [ _sessionState %tmp.2 658 15 28 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ PAUSED %tmp.4 658 32 38 ]; - %tmp.4 = getv ? :PAUSED; - %tmp.5 = eq %tmp.2 %tmp.4; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_657_35_659_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 661; @symbol_functiondef = [isStopped,661,13,22]; @symbol_return<0> = [Boolean,661,28,35]; ] - function isStopped() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_661_36_663_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 662 8 ] - symbol [ _sessionState %tmp.2 662 15 28 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ STOPPED %tmp.4 662 32 39 ]; - %tmp.4 = getv ? :STOPPED; - %tmp.5 = eq %tmp.2 %tmp.4; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_661_36_663_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 665; @symbol_functiondef = [isIdle,665,13,19]; @symbol_return<0> = [Boolean,665,25,32]; ] - function isIdle() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_665_33_667_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 666 8 ] - symbol [ _sessionState %tmp.2 666 15 28 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ IDLE %tmp.4 666 32 36 ]; - %tmp.4 = getv ? :IDLE; - %tmp.5 = eq %tmp.2 %tmp.4; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_665_33_667_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 669; @symbol_functiondef = [isActivityRecording,669,13,32]; @symbol_return<0> = [Boolean,669,38,45]; ] - function isActivityRecording() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_669_46_671_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 670 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_670_15_670_62_begin: - symbol [ _sessionState %tmp.2 670 15 28 ]; - %tmp.2 = getv ? :_sessionState; - symbol [ RECORDING %tmp.4 670 32 41 ]; - %tmp.4 = getv ? :RECORDING; - %tmp.5 = eq %tmp.2 %tmp.4; - %tmp.6 = dup %tmp.5; - bt %tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_670_45_670_62_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_670_45_670_62_false: - symbol [ _sessionState %tmp.8 670 45 58 ]; - %tmp.8 = getv ? :_sessionState; - symbol [ PAUSED %tmp.10 670 62 68 ]; - %tmp.10 = getv ? :PAUSED; - %tmp.11 = eq %tmp.8 %tmp.10; - %tmp.12 = or %tmp.5 %tmp.11; - push %tmp.12; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_670_45_670_62_end: - %tmp.13 = phi [%tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_670_15_670_62_begin] [%tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_670_45_670_62_false] [%tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_670_45_670_62_end]; - ret %tmp.13; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_669_46_671_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 673; @symbol_functiondef = [getMinCadence,673,13,26]; @symbol_return<0> = [Number,673,32,38]; ] - function getMinCadence() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_673_39_675_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 674 8 ] - symbol [ _idealMinCadence %tmp.2 674 15 31 ]; - %tmp.2 = getv ? :_idealMinCadence; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_673_39_675_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 677; @symbol_functiondef = [getVibrationEnabled,677,17,36]; @symbol_return<0> = [Boolean,677,42,49]; ] - function getVibrationEnabled() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_677_50_679_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 678 8 ] - symbol [ _vibrationEnabled %tmp.2 678 15 32 ]; - %tmp.2 = getv ? :_vibrationEnabled; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_677_50_679_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 681; @symbol_functiondef = [setVibrationEnabled,681,13,32]; @symbol_param<0> = [enabled,681,33,40]; @symbol_param<0>_type<0> = [Boolean,681,44,51]; ] - function setVibrationEnabled(enabled as Boolean) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_681_61_683_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 682 8 ] - %tmp.1 = lgetv %enabled; - symbol [ enabled %tmp.1 682 28 35 ]; - symbol [ _vibrationEnabled ? 682 8 25 ]; - putv self :_vibrationEnabled %tmp.1; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_681_61_683_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 684; @symbol_functiondef = [getMaxCadence,684,13,26]; @symbol_return<0> = [Number,684,32,38]; ] - function getMaxCadence() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_684_39_686_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 685 8 ] - symbol [ _idealMaxCadence %tmp.2 685 15 31 ]; - %tmp.2 = getv ? :_idealMaxCadence; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_684_39_686_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 688; @symbol_functiondef = [setMinCadence,688,13,26]; @symbol_param<0> = [value,688,27,32]; @symbol_param<0>_type<0> = [Number,688,36,42]; ] - function setMinCadence(value as Number) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_688_52_691_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 689 8 ] - %tmp.1 = lgetv %value; - symbol [ value %tmp.1 689 27 32 ]; - symbol [ _idealMinCadence ? 689 8 24 ]; - putv self :_idealMinCadence %tmp.1; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_688_52_691_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 693; @symbol_functiondef = [setMaxCadence,693,13,26]; @symbol_param<0> = [value,693,27,32]; @symbol_param<0>_type<0> = [Number,693,36,42]; ] - function setMaxCadence(value as Number) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_693_52_696_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 694 8 ] - %tmp.1 = lgetv %value; - symbol [ value %tmp.1 694 27 32 ]; - symbol [ _idealMaxCadence ? 694 8 24 ]; - putv self :_idealMaxCadence %tmp.1; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_693_52_696_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 698; @symbol_functiondef = [getCadenceHistory,698,13,30]; @symbol_return<0> = [Array,698,36,41]; @symbol_return<1> = [Float,698,42,47]; ] - function getCadenceHistory() as Array { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_698_50_700_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 699 8 ] - symbol [ _cadenceHistory %tmp.2 699 15 30 ]; - %tmp.2 = getv ? :_cadenceHistory; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_698_50_700_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 702; @symbol_functiondef = [getCadenceIndex,702,13,28]; @symbol_return<0> = [Number,702,34,40]; ] - function getCadenceIndex() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_702_41_704_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 703 8 ] - symbol [ _cadenceIndex %tmp.2 703 15 28 ]; - %tmp.2 = getv ? :_cadenceIndex; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_702_41_704_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 706; @symbol_functiondef = [getCadenceCount,706,13,28]; @symbol_return<0> = [Number,706,34,40]; ] - function getCadenceCount() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_706_41_708_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 707 8 ] - symbol [ _cadenceCount %tmp.2 707 15 28 ]; - %tmp.2 = getv ? :_cadenceCount; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_706_41_708_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 710; @symbol_functiondef = [setChartDuration,710,10,26]; @symbol_param<0> = [value,710,27,32]; @symbol_param<0>_type<0> = [Number,710,36,42]; ] - function setChartDuration(value as Number) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_710_52_727_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 711 4 ] - %tmp.1 = lgetv %value; - symbol [ value %tmp.1 711 21 26 ]; - symbol [ _chartDuration ? 711 4 18 ]; - putv self :_chartDuration %tmp.1; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 714 4 ] - symbol [ _chartDuration %tmp.4 714 26 40 ]; - %tmp.4 = getv ? :_chartDuration; - %tmp.2 = newa %tmp.4; - symbol [ _cadenceBarAvg ? 714 4 18 ]; - putv self :_cadenceBarAvg %tmp.2; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 715 4 ] - %tmp.5 = 0; - symbol [ _cadenceAvgIndex ? 715 4 20 ]; - putv self :_cadenceAvgIndex %tmp.5; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 716 4 ] - %tmp.6 = 0; - symbol [ _cadenceAvgCount ? 716 4 20 ]; - putv self :_cadenceAvgCount %tmp.6; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 719 4 ] - symbol [ MAX_BARS %tmp.9 719 27 35 ]; - %tmp.9 = getv ? :MAX_BARS; - %tmp.7 = newa %tmp.9; - symbol [ _cadenceHistory ? 719 4 19 ]; - putv self :_cadenceHistory %tmp.7; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 720 4 ] - %tmp.10 = 0; - symbol [ _cadenceIndex ? 720 4 17 ]; - putv self :_cadenceIndex %tmp.10; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 721 4 ] - %tmp.11 = 0; - symbol [ _cadenceCount ? 721 4 17 ]; - putv self :_cadenceCount %tmp.11; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 723 4 ] - %tmp.12 = self; - symbol [ saveSettings %tmp.13 723 4 16 ]; - %tmp.13 = getv function %tmp.12 :saveSettings; - invoke %tmp.12 %tmp.13(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 725 4 ] - symbol [ System %tmp.14 725 4 10 ]; - %tmp.14 = getm $.Toybox.System; - symbol [ println %tmp.15 725 11 18 ]; - %tmp.15 = getv function %tmp.14 :println; - %tmp.16 = "Chart changed to: "; - %tmp.17 = self; - symbol [ getChartDuration %tmp.18 725 42 58 ]; - %tmp.18 = getv function %tmp.17 :getChartDuration; - %tmp.19 = invoke %tmp.17 %tmp.18(); - %tmp.20 = add %tmp.16 %tmp.19; - invoke %tmp.14 %tmp.15(%tmp.20); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 726 4 ] - symbol [ System %tmp.21 726 4 10 ]; - %tmp.21 = getm $.Toybox.System; - symbol [ println %tmp.22 726 11 18 ]; - %tmp.22 = getv function %tmp.21 :println; - %tmp.23 = "Bar count set to: "; - symbol [ _chartDuration %tmp.25 726 42 56 ]; - %tmp.25 = getv ? :_chartDuration; - symbol [ toString %tmp.26 726 57 65 ]; - %tmp.26 = getv function %tmp.25 :toString; - %tmp.27 = invoke %tmp.25 %tmp.26(); - %tmp.28 = add %tmp.23 %tmp.27; - invoke %tmp.21 %tmp.22(%tmp.28); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_710_52_727_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 729; @symbol_functiondef = [getChartDuration,729,12,28]; @symbol_return<0> = [String,729,34,40]; ] - function getChartDuration() as String { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_729_41_749_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 730 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_730_4_746_4_if_stmt: - symbol [ _chartDuration %tmp.2 730 8 22 ]; - %tmp.2 = getv ? :_chartDuration; - %tmp.3 = 5; - %tmp.4 = eq %tmp.2 %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_730_4_746_4_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_730_4_746_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_730_29_732_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 731 8 ] - %tmp.5 = "15 min"; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_730_29_732_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_730_4_746_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_730_4_746_4_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 732 11 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_732_11_746_4_if_stmt: - symbol [ _chartDuration %tmp.7 732 15 29 ]; - %tmp.7 = getv ? :_chartDuration; - %tmp.8 = 10; - %tmp.9 = eq %tmp.7 %tmp.8; - bf %tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_732_11_746_4_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_732_11_746_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_732_37_734_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 733 8 ] - %tmp.10 = "30 min"; - ret %tmp.10; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_732_37_734_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_732_11_746_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_732_11_746_4_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 734 11 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_734_11_746_4_if_stmt: - symbol [ _chartDuration %tmp.12 734 15 29 ]; - %tmp.12 = getv ? :_chartDuration; - %tmp.13 = 20; - %tmp.14 = eq %tmp.12 %tmp.13; - bf %tmp.14 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_734_11_746_4_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_734_11_746_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_734_37_736_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 735 8 ] - %tmp.15 = "1 hour"; - ret %tmp.15; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_734_37_736_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_734_11_746_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_734_11_746_4_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 736 11 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_736_11_746_4_if_stmt: - symbol [ _chartDuration %tmp.17 736 15 29 ]; - %tmp.17 = getv ? :_chartDuration; - %tmp.18 = 40; - %tmp.19 = eq %tmp.17 %tmp.18; - bf %tmp.19 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_736_11_746_4_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_736_11_746_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_736_37_738_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 737 8 ] - %tmp.20 = "2 hours"; - ret %tmp.20; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_736_37_738_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_736_11_746_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_736_11_746_4_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 738 11 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_738_11_746_4_if_stmt: - symbol [ _chartDuration %tmp.22 738 15 29 ]; - %tmp.22 = getv ? :_chartDuration; - %tmp.23 = 3; - %tmp.24 = eq %tmp.22 %tmp.23; - bf %tmp.24 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_738_11_746_4_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_738_11_746_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_738_36_740_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 739 8 ] - %tmp.25 = "15 min"; - ret %tmp.25; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_738_36_740_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_738_11_746_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_738_11_746_4_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 740 11 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_740_11_746_4_if_stmt: - symbol [ _chartDuration %tmp.27 740 15 29 ]; - %tmp.27 = getv ? :_chartDuration; - %tmp.28 = 6; - %tmp.29 = eq %tmp.27 %tmp.28; - bf %tmp.29 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_740_11_746_4_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_740_11_746_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_740_36_742_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 741 8 ] - %tmp.30 = "30 min"; - ret %tmp.30; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_740_36_742_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_740_11_746_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_740_11_746_4_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 742 11 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_742_11_746_4_if_stmt: - symbol [ _chartDuration %tmp.32 742 15 29 ]; - %tmp.32 = getv ? :_chartDuration; - %tmp.33 = 13; - %tmp.34 = eq %tmp.32 %tmp.33; - bf %tmp.34 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_742_11_746_4_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_742_11_746_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_742_37_744_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 743 8 ] - %tmp.35 = "1 hour"; - ret %tmp.35; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_742_37_744_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_742_11_746_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_742_11_746_4_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 744 11 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_744_11_746_4_if_stmt: - symbol [ _chartDuration %tmp.37 744 15 29 ]; - %tmp.37 = getv ? :_chartDuration; - %tmp.38 = 26; - %tmp.39 = eq %tmp.37 %tmp.38; - bf %tmp.39 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_744_11_746_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_744_11_746_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_744_37_746_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 745 8 ] - %tmp.40 = "2 hours"; - ret %tmp.40; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_744_37_746_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_744_11_746_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_744_11_746_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_742_11_746_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_740_11_746_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_738_11_746_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_736_11_746_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_734_11_746_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_732_11_746_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_730_4_746_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 748 4 ] - %tmp.41 = "Unknown"; - ret %tmp.41; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_729_41_749_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 751; @symbol_functiondef = [getUserGender,751,13,26]; @symbol_return<0> = [String,751,32,38]; ] - function getUserGender() as String { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_751_39_753_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 752 8 ] - symbol [ _userGender %tmp.2 752 15 26 ]; - %tmp.2 = getv ? :_userGender; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_751_39_753_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 755; @symbol_functiondef = [setUserGender,755,13,26]; @symbol_param<0> = [value,755,27,32]; @symbol_param<0>_type<0> = [Number,755,36,42]; ] - function setUserGender(value as Number) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_755_52_758_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 756 8 ] - %tmp.1 = lgetv %value; - symbol [ value %tmp.1 756 22 27 ]; - symbol [ _userGender ? 756 8 19 ]; - putv self :_userGender %tmp.1; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_755_52_758_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 760; @symbol_functiondef = [getUserLegLength,760,13,29]; @symbol_return<0> = [Float,760,35,40]; ] - function getUserLegLength() as Float { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_760_41_762_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 761 8 ] - symbol [ _userHeight %tmp.2 761 15 26 ]; - %tmp.2 = getv ? :_userHeight; - %tmp.3 = 0.53; - %tmp.4 = mul %tmp.2 %tmp.3; - ret %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_760_41_762_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 764; @symbol_functiondef = [setUserHeight,764,13,26]; @symbol_param<0> = [value,764,27,32]; @symbol_param<0>_type<0> = [Number,764,36,42]; ] - function setUserHeight(value as Number) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_764_52_767_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 765 8 ] - %tmp.1 = lgetv %value; - symbol [ value %tmp.1 765 22 27 ]; - symbol [ _userHeight ? 765 8 19 ]; - putv self :_userHeight %tmp.1; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_764_52_767_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 769; @symbol_functiondef = [getUserHeight,769,13,26]; @symbol_return<0> = [Number,769,32,38]; ] - function getUserHeight() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_769_39_771_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 770 8 ] - symbol [ _userHeight %tmp.2 770 15 26 ]; - %tmp.2 = getv ? :_userHeight; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_769_39_771_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 773; @symbol_functiondef = [getUserSpeed,773,13,25]; @symbol_return<0> = [Float,773,31,36]; ] - function getUserSpeed() as Float { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_773_37_775_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 774 8 ] - symbol [ _userSpeed %tmp.2 774 15 25 ]; - %tmp.2 = getv ? :_userSpeed; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_773_37_775_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 777; @symbol_functiondef = [setUserSpeed,777,13,25]; @symbol_param<0> = [value,777,26,31]; @symbol_param<0>_type<0> = [Float,777,35,40]; ] - function setUserSpeed(value as Float) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_777_50_780_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 778 8 ] - %tmp.1 = lgetv %value; - symbol [ value %tmp.1 778 21 26 ]; - symbol [ _userSpeed ? 778 8 18 ]; - putv self :_userSpeed %tmp.1; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_777_50_780_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 782; @symbol_functiondef = [getExperienceLvl,782,13,29]; @symbol_return<0> = [Number,782,35,41]; ] - function getExperienceLvl() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_782_42_784_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 783 8 ] - symbol [ _experienceLvl %tmp.2 783 15 29 ]; - %tmp.2 = getv ? :_experienceLvl; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_782_42_784_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 786; @symbol_functiondef = [setExperienceLvl,786,13,29]; @symbol_param<0> = [value,786,30,35]; @symbol_param<0>_type<0> = [Float,786,39,44]; ] - function setExperienceLvl(value as Float) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_786_54_789_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 787 8 ] - %tmp.1 = lgetv %value; - symbol [ value %tmp.1 787 25 30 ]; - symbol [ _experienceLvl ? 787 8 22 ]; - putv self :_experienceLvl %tmp.1; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_786_54_789_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 791; @symbol_functiondef = [min,791,13,16]; @symbol_param<0> = [a,791,17,18]; @symbol_param<1> = [b,791,19,20]; ] - function min(a, b) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_791_21_793_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 792 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_792_15_792_29_begin: - %tmp.1 = lgetv %a; - symbol [ a %tmp.1 792 16 17 ]; - %tmp.2 = lgetv %b; - symbol [ b %tmp.2 792 20 21 ]; - %tmp.3 = lt %tmp.1 %tmp.2; - bf %tmp.3 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_792_15_792_29_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_792_15_792_29_true: - %tmp.4 = lgetv %a; - symbol [ a %tmp.4 792 25 26 ]; - push %tmp.4; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_792_15_792_29_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_792_15_792_29_else_false: - %tmp.5 = lgetv %b; - symbol [ b %tmp.5 792 29 30 ]; - push %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_792_15_792_29_end: - %tmp.6 = phi [%tmp.3 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_792_15_792_29_begin] [%tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_792_15_792_29_true] [%tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_792_15_792_29_else_false] [%tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_792_15_792_29_end]; - ret %tmp.6; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_791_21_793_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 795; @symbol_functiondef = [max,795,13,16]; @symbol_param<0> = [a,795,17,18]; @symbol_param<1> = [b,795,19,20]; ] - function max(a, b) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_795_21_797_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 796 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_796_15_796_29_begin: - %tmp.1 = lgetv %a; - symbol [ a %tmp.1 796 16 17 ]; - %tmp.2 = lgetv %b; - symbol [ b %tmp.2 796 20 21 ]; - %tmp.3 = gt %tmp.1 %tmp.2; - bf %tmp.3 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_796_15_796_29_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_796_15_796_29_true: - %tmp.4 = lgetv %a; - symbol [ a %tmp.4 796 25 26 ]; - push %tmp.4; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_796_15_796_29_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_796_15_796_29_else_false: - %tmp.5 = lgetv %b; - symbol [ b %tmp.5 796 29 30 ]; - push %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_796_15_796_29_end: - %tmp.6 = phi [%tmp.3 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_796_15_796_29_begin] [%tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_796_15_796_29_true] [%tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_796_15_796_29_else_false] [%tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_796_15_796_29_end]; - ret %tmp.6; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_795_21_797_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 799; @symbol_functiondef = [abs,799,13,16]; @symbol_param<0> = [x,799,17,18]; ] - function abs(x) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_799_20_801_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 800 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_800_15_800_30_begin: - %tmp.1 = lgetv %x; - symbol [ x %tmp.1 800 16 17 ]; - %tmp.2 = 0; - %tmp.3 = lt %tmp.1 %tmp.2; - bf %tmp.3 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_800_15_800_30_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_800_15_800_30_true: - %tmp.4 = lgetv %x; - symbol [ x %tmp.4 800 26 27 ]; - %tmp.5 = sub 0 %tmp.4; - push %tmp.5; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_800_15_800_30_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_800_15_800_30_else_false: - %tmp.6 = lgetv %x; - symbol [ x %tmp.6 800 30 31 ]; - push %tmp.6; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_800_15_800_30_end: - %tmp.7 = phi [%tmp.3 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_800_15_800_30_begin] [%tmp.5 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_800_15_800_30_true] [%tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_800_15_800_30_else_false] [%tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_800_15_800_30_end]; - ret %tmp.7; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_799_20_801_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 803; @symbol_functiondef = [getFinalCadenceQuality,803,13,35]; ] - function getFinalCadenceQuality() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_803_38_805_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 804 8 ] - symbol [ _finalCQ %tmp.2 804 15 23 ]; - %tmp.2 = getv ? :_finalCQ; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_803_38_805_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 807; @symbol_functiondef = [getFinalCQConfidence,807,13,33]; ] - function getFinalCQConfidence() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_807_36_809_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 808 8 ] - symbol [ _finalCQConfidence %tmp.2 808 15 33 ]; - %tmp.2 = getv ? :_finalCQConfidence; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_807_36_809_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 811; @symbol_functiondef = [getFinalCQTrend,811,13,28]; ] - function getFinalCQTrend() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_811_31_813_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 812 8 ] - symbol [ _finalCQTrend %tmp.2 812 15 28 ]; - %tmp.2 = getv ? :_finalCQTrend; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_811_31_813_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 814; @symbol_functiondef = [getSessionDuration,814,13,31]; ] - function getSessionDuration() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_814_34_816_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 815 4 ] - symbol [ _sessionDuration %tmp.2 815 11 27 ]; - %tmp.2 = getv ? :_sessionDuration; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_814_34_816_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 820; @symbol_functiondef = [saveSettings,820,13,25]; ] - function saveSettings() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_820_28_834_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 821 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_820_28_834_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_820_28_834_0_stop" ] - %s.1 = local; - symbol [ s %s.1 821 8 9 ]; - symbol [ Application %tmp.1 821 12 23 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ Storage %tmp.2 821 24 31 ]; - %tmp.2 = getv %tmp.1 :Storage; - lputv %s.1 %tmp.2; - symbol [ s %s.1 821 8 9 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 823 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_823_4_823_89_if_stmt: - symbol [ _idealMaxCadence %tmp.4 823 8 24 ]; - %tmp.4 = getv ? :_idealMaxCadence; - symbol [ _idealMinCadence %tmp.6 823 28 44 ]; - %tmp.6 = getv ? :_idealMinCadence; - %tmp.7 = lte %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_823_4_823_89_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_823_4_823_89_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_823_46_823_89_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 823 48 ] - symbol [ _idealMinCadence %tmp.9 823 67 83 ]; - %tmp.9 = getv ? :_idealMinCadence; - %tmp.10 = 5; - %tmp.11 = add %tmp.9 %tmp.10; - symbol [ _idealMaxCadence ? 823 48 64 ]; - putv self :_idealMaxCadence %tmp.11; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_823_46_823_89_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_823_4_823_89_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_823_4_823_89_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 825 4 ] - %tmp.12 = lgetv %s.1; - symbol [ s %tmp.12 825 4 5 ]; - symbol [ setValue %tmp.13 825 6 14 ]; - %tmp.13 = getv function %tmp.12 :setValue; - %tmp.14 = "cad_min"; - symbol [ _idealMinCadence %tmp.16 825 26 42 ]; - %tmp.16 = getv ? :_idealMinCadence; - invoke %tmp.12 %tmp.13(%tmp.14, %tmp.16); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 826 4 ] - %tmp.17 = lgetv %s.1; - symbol [ s %tmp.17 826 4 5 ]; - symbol [ setValue %tmp.18 826 6 14 ]; - %tmp.18 = getv function %tmp.17 :setValue; - %tmp.19 = "cad_max"; - symbol [ _idealMaxCadence %tmp.21 826 26 42 ]; - %tmp.21 = getv ? :_idealMaxCadence; - invoke %tmp.17 %tmp.18(%tmp.19, %tmp.21); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 827 4 ] - %tmp.22 = lgetv %s.1; - symbol [ s %tmp.22 827 4 5 ]; - symbol [ setValue %tmp.23 827 6 14 ]; - %tmp.23 = getv function %tmp.22 :setValue; - %tmp.24 = "u_height"; - symbol [ _userHeight %tmp.26 827 27 38 ]; - %tmp.26 = getv ? :_userHeight; - invoke %tmp.22 %tmp.23(%tmp.24, %tmp.26); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 828 4 ] - %tmp.27 = lgetv %s.1; - symbol [ s %tmp.27 828 4 5 ]; - symbol [ setValue %tmp.28 828 6 14 ]; - %tmp.28 = getv function %tmp.27 :setValue; - %tmp.29 = "u_speed"; - symbol [ _userSpeed %tmp.31 828 26 36 ]; - %tmp.31 = getv ? :_userSpeed; - invoke %tmp.27 %tmp.28(%tmp.29, %tmp.31); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 829 4 ] - %tmp.32 = lgetv %s.1; - symbol [ s %tmp.32 829 4 5 ]; - symbol [ setValue %tmp.33 829 6 14 ]; - %tmp.33 = getv function %tmp.32 :setValue; - %tmp.34 = "u_exp"; - symbol [ _experienceLvl %tmp.36 829 24 38 ]; - %tmp.36 = getv ? :_experienceLvl; - invoke %tmp.32 %tmp.33(%tmp.34, %tmp.36); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 830 4 ] - %tmp.37 = lgetv %s.1; - symbol [ s %tmp.37 830 4 5 ]; - symbol [ setValue %tmp.38 830 6 14 ]; - %tmp.38 = getv function %tmp.37 :setValue; - %tmp.39 = "u_gen"; - symbol [ _userGender %tmp.41 830 24 35 ]; - %tmp.41 = getv ? :_userGender; - invoke %tmp.37 %tmp.38(%tmp.39, %tmp.41); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 831 4 ] - %tmp.42 = lgetv %s.1; - symbol [ s %tmp.42 831 4 5 ]; - symbol [ setValue %tmp.43 831 6 14 ]; - %tmp.43 = getv function %tmp.42 :setValue; - %tmp.44 = "u_dur"; - symbol [ _chartDuration %tmp.46 831 24 38 ]; - %tmp.46 = getv ? :_chartDuration; - invoke %tmp.42 %tmp.43(%tmp.44, %tmp.46); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 833 4 ] - symbol [ System %tmp.47 833 4 10 ]; - %tmp.47 = getm $.Toybox.System; - symbol [ println %tmp.48 833 11 18 ]; - %tmp.48 = getv function %tmp.47 :println; - %tmp.49 = "--- DISK SYNC COMPLETE ---"; - invoke %tmp.47 %tmp.48(%tmp.49); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_820_28_834_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 836; @symbol_functiondef = [loadSettings,836,9,21]; ] - function loadSettings() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_836_24_866_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 837 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_836_24_866_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_836_24_866_0_stop" ] - %s.1 = local; - symbol [ s %s.1 837 8 9 ]; - symbol [ Application %tmp.1 837 12 23 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ Storage %tmp.2 837 24 31 ]; - %tmp.2 = getv %tmp.1 :Storage; - lputv %s.1 %tmp.2; - symbol [ s %s.1 837 8 9 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 838 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_836_24_866_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_836_24_866_0_stop" ] - %val.2 = local; - symbol [ val %val.2 838 8 11 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 840 4 ] - %tmp.3 = lgetv %s.1; - symbol [ s %tmp.3 840 10 11 ]; - symbol [ getValue %tmp.4 840 12 20 ]; - %tmp.4 = getv function %tmp.3 :getValue; - %tmp.5 = "cad_min"; - %tmp.6 = invoke %tmp.3 %tmp.4(%tmp.5); - lputv %val.2 %tmp.6; - symbol [ val %val.2 840 4 7 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 840 33 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_840_33_840_76_if_stmt: - %tmp.7 = lgetv %val.2; - symbol [ val %tmp.7 840 37 40 ]; - %tmp.8 = null; - %tmp.9 = ne %tmp.7 %tmp.8; - bf %tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_840_33_840_76_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_840_33_840_76_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_840_50_840_76_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 840 52 ] - %tmp.10 = lgetv %val.2; - symbol [ val %tmp.10 840 71 74 ]; - %tmp.11 = as %tmp.10 { (!Null) }; - symbol [ _idealMinCadence ? 840 52 68 ]; - putv self :_idealMinCadence %tmp.11; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_840_50_840_76_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_840_33_840_76_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_840_33_840_76_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 841 4 ] - %tmp.12 = lgetv %s.1; - symbol [ s %tmp.12 841 10 11 ]; - symbol [ getValue %tmp.13 841 12 20 ]; - %tmp.13 = getv function %tmp.12 :getValue; - %tmp.14 = "cad_max"; - %tmp.15 = invoke %tmp.12 %tmp.13(%tmp.14); - lputv %val.2 %tmp.15; - symbol [ val %val.2 841 4 7 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 841 33 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_841_33_841_76_if_stmt: - %tmp.16 = lgetv %val.2; - symbol [ val %tmp.16 841 37 40 ]; - %tmp.17 = null; - %tmp.18 = ne %tmp.16 %tmp.17; - bf %tmp.18 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_841_33_841_76_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_841_33_841_76_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_841_50_841_76_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 841 52 ] - %tmp.19 = lgetv %val.2; - symbol [ val %tmp.19 841 71 74 ]; - %tmp.20 = as %tmp.19 { (!Null) }; - symbol [ _idealMaxCadence ? 841 52 68 ]; - putv self :_idealMaxCadence %tmp.20; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_841_50_841_76_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_841_33_841_76_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_841_33_841_76_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 842 4 ] - %tmp.21 = lgetv %s.1; - symbol [ s %tmp.21 842 10 11 ]; - symbol [ getValue %tmp.22 842 12 20 ]; - %tmp.22 = getv function %tmp.21 :getValue; - %tmp.23 = "u_height"; - %tmp.24 = invoke %tmp.21 %tmp.22(%tmp.23); - lputv %val.2 %tmp.24; - symbol [ val %val.2 842 4 7 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 842 34 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_842_34_842_72_if_stmt: - %tmp.25 = lgetv %val.2; - symbol [ val %tmp.25 842 38 41 ]; - %tmp.26 = null; - %tmp.27 = ne %tmp.25 %tmp.26; - bf %tmp.27 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_842_34_842_72_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_842_34_842_72_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_842_51_842_72_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 842 53 ] - %tmp.28 = lgetv %val.2; - symbol [ val %tmp.28 842 67 70 ]; - %tmp.29 = as %tmp.28 { (!Null) }; - symbol [ _userHeight ? 842 53 64 ]; - putv self :_userHeight %tmp.29; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_842_51_842_72_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_842_34_842_72_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_842_34_842_72_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 843 4 ] - %tmp.30 = lgetv %s.1; - symbol [ s %tmp.30 843 10 11 ]; - symbol [ getValue %tmp.31 843 12 20 ]; - %tmp.31 = getv function %tmp.30 :getValue; - %tmp.32 = "u_speed"; - %tmp.33 = invoke %tmp.30 %tmp.31(%tmp.32); - lputv %val.2 %tmp.33; - symbol [ val %val.2 843 4 7 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 843 33 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_843_33_843_70_if_stmt: - %tmp.34 = lgetv %val.2; - symbol [ val %tmp.34 843 37 40 ]; - %tmp.35 = null; - %tmp.36 = ne %tmp.34 %tmp.35; - bf %tmp.36 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_843_33_843_70_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_843_33_843_70_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_843_50_843_70_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 843 52 ] - %tmp.37 = lgetv %val.2; - symbol [ val %tmp.37 843 65 68 ]; - %tmp.38 = as %tmp.37 { (!Null) }; - symbol [ _userSpeed ? 843 52 62 ]; - putv self :_userSpeed %tmp.38; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_843_50_843_70_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_843_33_843_70_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_843_33_843_70_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 844 4 ] - %tmp.39 = lgetv %s.1; - symbol [ s %tmp.39 844 10 11 ]; - symbol [ getValue %tmp.40 844 12 20 ]; - %tmp.40 = getv function %tmp.39 :getValue; - %tmp.41 = "u_exp"; - %tmp.42 = invoke %tmp.39 %tmp.40(%tmp.41); - lputv %val.2 %tmp.42; - symbol [ val %val.2 844 4 7 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 844 31 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_844_31_844_72_if_stmt: - %tmp.43 = lgetv %val.2; - symbol [ val %tmp.43 844 35 38 ]; - %tmp.44 = null; - %tmp.45 = ne %tmp.43 %tmp.44; - bf %tmp.45 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_844_31_844_72_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_844_31_844_72_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_844_48_844_72_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 844 50 ] - %tmp.46 = lgetv %val.2; - symbol [ val %tmp.46 844 67 70 ]; - %tmp.47 = as %tmp.46 { (!Null) }; - symbol [ _experienceLvl ? 844 50 64 ]; - putv self :_experienceLvl %tmp.47; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_844_48_844_72_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_844_31_844_72_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_844_31_844_72_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 845 4 ] - %tmp.48 = lgetv %s.1; - symbol [ s %tmp.48 845 10 11 ]; - symbol [ getValue %tmp.49 845 12 20 ]; - %tmp.49 = getv function %tmp.48 :getValue; - %tmp.50 = "u_gen"; - %tmp.51 = invoke %tmp.48 %tmp.49(%tmp.50); - lputv %val.2 %tmp.51; - symbol [ val %val.2 845 4 7 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 845 31 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_845_31_845_69_if_stmt: - %tmp.52 = lgetv %val.2; - symbol [ val %tmp.52 845 35 38 ]; - %tmp.53 = null; - %tmp.54 = ne %tmp.52 %tmp.53; - bf %tmp.54 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_845_31_845_69_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_845_31_845_69_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_845_48_845_69_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 845 50 ] - %tmp.55 = lgetv %val.2; - symbol [ val %tmp.55 845 64 67 ]; - %tmp.56 = as %tmp.55 { (!Null) }; - symbol [ _userGender ? 845 50 61 ]; - putv self :_userGender %tmp.56; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_845_48_845_69_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_845_31_845_69_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_845_31_845_69_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 846 0 ] - %tmp.57 = lgetv %s.1; - symbol [ s %tmp.57 846 6 7 ]; - symbol [ getValue %tmp.58 846 8 16 ]; - %tmp.58 = getv function %tmp.57 :getValue; - %tmp.59 = "u_dur"; - %tmp.60 = invoke %tmp.57 %tmp.58(%tmp.59); - lputv %val.2 %tmp.60; - symbol [ val %val.2 846 0 3 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 847 0 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_847_0_859_0_if_stmt: - %tmp.61 = lgetv %val.2; - symbol [ val %tmp.61 847 4 7 ]; - %tmp.62 = null; - %tmp.63 = ne %tmp.61 %tmp.62; - bf %tmp.63 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_847_0_859_0_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_847_0_859_0_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_847_17_859_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 848 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_848_4_858_4_if_stmt: - %tmp.64 = lgetv %val.2; - symbol [ val %tmp.64 848 8 11 ]; - %tmp.65 = as %tmp.64 { (!Null) }; - %tmp.66 = 3; - %tmp.67 = eq %tmp.65 %tmp.66; - bf %tmp.67 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_848_4_858_4_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_848_4_858_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_848_18_850_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 849 8 ] - %tmp.68 = 5; - symbol [ _chartDuration ? 849 8 22 ]; - putv self :_chartDuration %tmp.68; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_848_18_850_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_848_4_858_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_848_4_858_4_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 850 11 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_850_11_858_4_if_stmt: - %tmp.69 = lgetv %val.2; - symbol [ val %tmp.69 850 15 18 ]; - %tmp.70 = as %tmp.69 { (!Null) }; - %tmp.71 = 6; - %tmp.72 = eq %tmp.70 %tmp.71; - bf %tmp.72 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_850_11_858_4_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_850_11_858_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_850_25_852_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 851 8 ] - %tmp.73 = 10; - symbol [ _chartDuration ? 851 8 22 ]; - putv self :_chartDuration %tmp.73; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_850_25_852_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_850_11_858_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_850_11_858_4_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 852 11 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_852_11_858_4_if_stmt: - %tmp.74 = lgetv %val.2; - symbol [ val %tmp.74 852 15 18 ]; - %tmp.75 = as %tmp.74 { (!Null) }; - %tmp.76 = 13; - %tmp.77 = eq %tmp.75 %tmp.76; - bf %tmp.77 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_852_11_858_4_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_852_11_858_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_852_26_854_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 853 8 ] - %tmp.78 = 20; - symbol [ _chartDuration ? 853 8 22 ]; - putv self :_chartDuration %tmp.78; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_852_26_854_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_852_11_858_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_852_11_858_4_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 854 11 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_854_11_858_4_if_stmt: - %tmp.79 = lgetv %val.2; - symbol [ val %tmp.79 854 15 18 ]; - %tmp.80 = as %tmp.79 { (!Null) }; - %tmp.81 = 26; - %tmp.82 = eq %tmp.80 %tmp.81; - bf %tmp.82 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_854_11_858_4_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_854_11_858_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_854_26_856_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 855 8 ] - %tmp.83 = 40; - symbol [ _chartDuration ? 855 8 22 ]; - putv self :_chartDuration %tmp.83; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_854_26_856_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_854_11_858_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_854_11_858_4_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_856_11_858_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 857 8 ] - %tmp.84 = lgetv %val.2; - symbol [ val %tmp.84 857 25 28 ]; - %tmp.85 = as %tmp.84 { (!Null) }; - symbol [ _chartDuration ? 857 8 22 ]; - putv self :_chartDuration %tmp.85; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_856_11_858_4_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_854_11_858_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_852_11_858_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_850_11_858_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_848_4_858_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_847_17_859_0_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_847_0_859_0_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_847_0_859_0_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 861 0 ] - symbol [ _chartDuration %tmp.88 861 22 36 ]; - %tmp.88 = getv ? :_chartDuration; - %tmp.86 = newa %tmp.88; - symbol [ _cadenceBarAvg ? 861 0 14 ]; - putv self :_cadenceBarAvg %tmp.86; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 862 0 ] - %tmp.89 = 0; - symbol [ _cadenceAvgIndex ? 862 0 16 ]; - putv self :_cadenceAvgIndex %tmp.89; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 863 0 ] - %tmp.90 = 0; - symbol [ _cadenceAvgCount ? 863 0 16 ]; - putv self :_cadenceAvgCount %tmp.90; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 865 4 ] - symbol [ System %tmp.91 865 4 10 ]; - %tmp.91 = getm $.Toybox.System; - symbol [ println %tmp.92 865 11 18 ]; - %tmp.92 = getv function %tmp.91 :println; - %tmp.93 = "[LOADED] G:"; - symbol [ _userGender %tmp.95 865 35 46 ]; - %tmp.95 = getv ? :_userGender; - %tmp.96 = add %tmp.93 %tmp.95; - %tmp.97 = " | S:"; - %tmp.98 = add %tmp.96 %tmp.97; - symbol [ _userSpeed %tmp.100 865 59 69 ]; - %tmp.100 = getv ? :_userSpeed; - %tmp.101 = add %tmp.98 %tmp.100; - %tmp.102 = " | E:"; - %tmp.103 = add %tmp.101 %tmp.102; - symbol [ _experienceLvl %tmp.105 865 82 96 ]; - %tmp.105 = getv ? :_experienceLvl; - %tmp.106 = add %tmp.103 %tmp.105; - invoke %tmp.91 %tmp.92(%tmp.106); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_836_24_866_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 884; @symbol_functiondef = [getInitialView,884,13,27]; @symbol_return<0> = [Views,884,34,39]; @symbol_return<1> = [Views,884,45,50]; @symbol_return<2> = [InputDelegates,884,52,66]; ] - function getInitialView() as [Views] or [Views, InputDelegates] { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_884_68_886_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 885 8 ] - %tmp.1 = newa 2; - symbol [ SimpleView %tmp.5 885 21 31 ]; - %tmp.5 = getv ? :SimpleView; - %tmp.2 = newc %tmp.5 (); - %tmp.6 = dup %tmp.1; - %tmp.7 = aputv %tmp.6 0 %tmp.2; - symbol [ SimpleViewDelegate %tmp.11 885 39 57 ]; - %tmp.11 = getv ? :SimpleViewDelegate; - %tmp.8 = newc %tmp.11 (); - %tmp.12 = dup %tmp.7; - %tmp.13 = aputv %tmp.12 1 %tmp.8; - ret %tmp.13; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_884_68_886_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 892; @symbol_functiondef = [getAverageCadence,892,13,30]; @symbol_return<0> = [Float,892,36,41]; ] - function getAverageCadence() as Float { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_892_42_913_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 893 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_893_8_895_8_if_stmt: - symbol [ _cadenceCount %tmp.2 893 12 25 ]; - %tmp.2 = getv ? :_cadenceCount; - %tmp.3 = 0; - %tmp.4 = eq %tmp.2 %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_893_8_895_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_893_8_895_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_893_32_895_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 894 12 ] - %tmp.5 = 0.0; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_893_32_895_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_893_8_895_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_893_8_895_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 897 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_892_42_913_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_892_42_913_4_stop" ] - %total.1 = local; - symbol [ total %total.1 897 12 17 ]; - %tmp.6 = 0.0; - lputv %total.1 %tmp.6; - symbol [ total %total.1 897 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 898 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_892_42_913_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_892_42_913_4_stop" ] - %validSamples.2 = local; - symbol [ validSamples %validSamples.2 898 12 24 ]; - %tmp.7 = 0; - lputv %validSamples.2 %tmp.7; - symbol [ validSamples %validSamples.2 898 12 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 900 8 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_end" ] - %i.3 = local; - symbol [ i %i.3 900 17 18 ]; - %tmp.8 = 0; - lputv %i.3 %tmp.8; - symbol [ i %i.3 900 17 18 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_test: - %tmp.9 = lgetv %i.3; - symbol [ i %tmp.9 900 24 25 ]; - symbol [ MAX_BARS %tmp.11 900 28 36 ]; - %tmp.11 = getv ? :MAX_BARS; - %tmp.12 = lt %tmp.9 %tmp.11; - bf %tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_43_906_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 901 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_43_906_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_43_906_8_stop" ] - %c.4 = local; - symbol [ c %c.4 901 16 17 ]; - symbol [ _cadenceHistory %tmp.14 901 20 35 ]; - %tmp.14 = getv ? :_cadenceHistory; - %tmp.15 = lgetv %i.3; - symbol [ i %tmp.15 901 36 37 ]; - %tmp.16 = agetv %tmp.14 %tmp.15; - lputv %c.4 %tmp.16; - symbol [ c %c.4 901 16 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 902 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_902_12_905_12_if_stmt: - %tmp.17 = lgetv %c.4; - symbol [ c %tmp.17 902 16 17 ]; - %tmp.18 = null; - %tmp.19 = ne %tmp.17 %tmp.18; - bf %tmp.19 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_902_12_905_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_902_12_905_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_902_27_905_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 903 16 ] - %tmp.20 = lgetv %total.1; - symbol [ total %tmp.20 903 16 21 ]; - %tmp.21 = lgetv %c.4; - symbol [ c %tmp.21 903 25 26 ]; - %tmp.22 = as %tmp.21 { (!Null) }; - %tmp.23 = add %tmp.20 %tmp.22; - lputv %total.1 %tmp.23; - symbol [ total %total.1 903 16 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 904 16 ] - %tmp.26 = lgetv %validSamples.2; - symbol [ validSamples %tmp.26 904 16 28 ]; - %tmp.27 = add %tmp.26 1; - lputv %validSamples.2 %tmp.27; - symbol [ validSamples %validSamples.2 904 16 28 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_902_27_905_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_902_12_905_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_902_12_905_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_43_906_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 900 ] - %tmp.30 = lgetv %i.3; - symbol [ i %tmp.30 900 38 39 ]; - %tmp.31 = add %tmp.30 1; - lputv %i.3 %tmp.31; - symbol [ i %i.3 900 38 39 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_900_8_906_8_for_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 908 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_908_8_910_8_if_stmt: - %tmp.32 = lgetv %validSamples.2; - symbol [ validSamples %tmp.32 908 12 24 ]; - %tmp.33 = 0; - %tmp.34 = eq %tmp.32 %tmp.33; - bf %tmp.34 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_908_8_910_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_908_8_910_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_908_31_910_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 909 12 ] - %tmp.35 = 0.0; - ret %tmp.35; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_908_31_910_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_908_8_910_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_908_8_910_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 912 8 ] - %tmp.36 = lgetv %total.1; - symbol [ total %tmp.36 912 15 20 ]; - %tmp.37 = lgetv %validSamples.2; - symbol [ validSamples %tmp.37 912 23 35 ]; - %tmp.38 = div %tmp.36 %tmp.37; - ret %tmp.38; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_892_42_913_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 915; @symbol_functiondef = [getTimeInZonePercentage,915,13,36]; @symbol_return<0> = [Number,915,42,48]; ] - function getTimeInZonePercentage() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_915_49_917_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 916 8 ] - %tmp.1 = self; - symbol [ computeTimeInZoneScore %tmp.2 916 15 37 ]; - %tmp.2 = getv function %tmp.1 :computeTimeInZoneScore; - %tmp.3 = invoke %tmp.1 %tmp.2(); - ret %tmp.3; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_915_49_917_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 919; @symbol_functiondef = [getMinCadenceFromHistory,919,13,37]; @symbol_return<0> = [Number,919,43,49]; ] - function getMinCadenceFromHistory() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_919_50_932_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 920 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_919_50_932_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_919_50_932_4_stop" ] - %minCad.1 = local; - symbol [ minCad %minCad.1 920 12 18 ]; - %tmp.1 = null; - lputv %minCad.1 %tmp.1; - symbol [ minCad %minCad.1 920 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 922 8 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_end" ] - %i.2 = local; - symbol [ i %i.2 922 17 18 ]; - %tmp.2 = 0; - lputv %i.2 %tmp.2; - symbol [ i %i.2 922 17 18 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_test: - %tmp.3 = lgetv %i.2; - symbol [ i %tmp.3 922 24 25 ]; - symbol [ MAX_BARS %tmp.5 922 28 36 ]; - %tmp.5 = getv ? :MAX_BARS; - %tmp.6 = lt %tmp.3 %tmp.5; - bf %tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_43_929_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 923 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_43_929_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_43_929_8_stop" ] - %c.3 = local; - symbol [ c %c.3 923 16 17 ]; - symbol [ _cadenceHistory %tmp.8 923 20 35 ]; - %tmp.8 = getv ? :_cadenceHistory; - %tmp.9 = lgetv %i.2; - symbol [ i %tmp.9 923 36 37 ]; - %tmp.10 = agetv %tmp.8 %tmp.9; - lputv %c.3 %tmp.10; - symbol [ c %c.3 923 16 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 924 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_924_12_928_12_if_stmt: - %tmp.11 = lgetv %c.3; - symbol [ c %tmp.11 924 16 17 ]; - %tmp.12 = null; - %tmp.13 = ne %tmp.11 %tmp.12; - bf %tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_924_12_928_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_924_12_928_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_924_27_928_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 925 16 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_16_927_16_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_20_925_42_begin: - %tmp.14 = lgetv %minCad.1; - symbol [ minCad %tmp.14 925 20 26 ]; - %tmp.15 = null; - %tmp.16 = eq %tmp.14 %tmp.15; - bt %tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_16_927_16_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_38_925_42_false: - %tmp.17 = lgetv %c.3; - symbol [ c %tmp.17 925 38 39 ]; - %tmp.18 = as %tmp.17 { (!Null) }; - %tmp.19 = lgetv %minCad.1; - symbol [ minCad %tmp.19 925 42 48 ]; - %tmp.20 = as %tmp.19 { (!Null) }; - %tmp.21 = lt %tmp.18 %tmp.20; - push %tmp.21; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_38_925_42_end: - %tmp.22 = phi [%tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_20_925_42_begin] [%tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_38_925_42_false] [%tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_38_925_42_end]; - bf %tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_16_927_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_16_927_16_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_50_927_16_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 926 20 ] - %tmp.23 = lgetv %c.3; - symbol [ c %tmp.23 926 29 30 ]; - %tmp.24 = as %tmp.23 { (!Null) }; - lputv %minCad.1 %tmp.24; - symbol [ minCad %minCad.1 926 20 26 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_50_927_16_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_16_927_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_925_16_927_16_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_924_27_928_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_924_12_928_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_924_12_928_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_43_929_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 922 ] - %tmp.27 = lgetv %i.2; - symbol [ i %tmp.27 922 38 39 ]; - %tmp.28 = add %tmp.27 1; - lputv %i.2 %tmp.28; - symbol [ i %i.2 922 38 39 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_922_8_929_8_for_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 931 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_931_15_931_54_begin: - %tmp.29 = lgetv %minCad.1; - symbol [ minCad %tmp.29 931 16 22 ]; - %tmp.30 = null; - %tmp.31 = ne %tmp.29 %tmp.30; - bf %tmp.31 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_931_15_931_54_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_931_15_931_54_true: - %tmp.32 = lgetv %minCad.1; - symbol [ minCad %tmp.32 931 34 40 ]; - %tmp.33 = as %tmp.32 { (!Null) }; - symbol [ toNumber %tmp.34 931 41 49 ]; - %tmp.34 = getv function %tmp.33 :toNumber; - %tmp.35 = invoke %tmp.33 %tmp.34(); - push %tmp.35; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_931_15_931_54_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_931_15_931_54_else_false: - %tmp.36 = 0; - push %tmp.36; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_931_15_931_54_end: - %tmp.37 = phi [%tmp.31 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_931_15_931_54_begin] [%tmp.35 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_931_15_931_54_true] [%tmp.36 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_931_15_931_54_else_false] [%tmp.37 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_931_15_931_54_end]; - ret %tmp.37; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_919_50_932_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 934; @symbol_functiondef = [getMaxCadenceFromHistory,934,13,37]; @symbol_return<0> = [Number,934,43,49]; ] - function getMaxCadenceFromHistory() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_934_50_947_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 935 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_934_50_947_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_934_50_947_4_stop" ] - %maxCad.1 = local; - symbol [ maxCad %maxCad.1 935 12 18 ]; - %tmp.1 = null; - lputv %maxCad.1 %tmp.1; - symbol [ maxCad %maxCad.1 935 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 937 8 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_end" ] - %i.2 = local; - symbol [ i %i.2 937 17 18 ]; - %tmp.2 = 0; - lputv %i.2 %tmp.2; - symbol [ i %i.2 937 17 18 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_test: - %tmp.3 = lgetv %i.2; - symbol [ i %tmp.3 937 24 25 ]; - symbol [ MAX_BARS %tmp.5 937 28 36 ]; - %tmp.5 = getv ? :MAX_BARS; - %tmp.6 = lt %tmp.3 %tmp.5; - bf %tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_43_944_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 938 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_43_944_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_43_944_8_stop" ] - %c.3 = local; - symbol [ c %c.3 938 16 17 ]; - symbol [ _cadenceHistory %tmp.8 938 20 35 ]; - %tmp.8 = getv ? :_cadenceHistory; - %tmp.9 = lgetv %i.2; - symbol [ i %tmp.9 938 36 37 ]; - %tmp.10 = agetv %tmp.8 %tmp.9; - lputv %c.3 %tmp.10; - symbol [ c %c.3 938 16 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 939 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_939_12_943_12_if_stmt: - %tmp.11 = lgetv %c.3; - symbol [ c %tmp.11 939 16 17 ]; - %tmp.12 = null; - %tmp.13 = ne %tmp.11 %tmp.12; - bf %tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_939_12_943_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_939_12_943_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_939_27_943_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 940 16 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_16_942_16_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_20_940_42_begin: - %tmp.14 = lgetv %maxCad.1; - symbol [ maxCad %tmp.14 940 20 26 ]; - %tmp.15 = null; - %tmp.16 = eq %tmp.14 %tmp.15; - bt %tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_16_942_16_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_38_940_42_false: - %tmp.17 = lgetv %c.3; - symbol [ c %tmp.17 940 38 39 ]; - %tmp.18 = as %tmp.17 { (!Null) }; - %tmp.19 = lgetv %maxCad.1; - symbol [ maxCad %tmp.19 940 42 48 ]; - %tmp.20 = as %tmp.19 { (!Null) }; - %tmp.21 = gt %tmp.18 %tmp.20; - push %tmp.21; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_38_940_42_end: - %tmp.22 = phi [%tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_20_940_42_begin] [%tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_38_940_42_false] [%tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_38_940_42_end]; - bf %tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_16_942_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_16_942_16_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_50_942_16_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 941 20 ] - %tmp.23 = lgetv %c.3; - symbol [ c %tmp.23 941 29 30 ]; - %tmp.24 = as %tmp.23 { (!Null) }; - lputv %maxCad.1 %tmp.24; - symbol [ maxCad %maxCad.1 941 20 26 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_50_942_16_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_16_942_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_940_16_942_16_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_939_27_943_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_939_12_943_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_939_12_943_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_43_944_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 937 ] - %tmp.27 = lgetv %i.2; - symbol [ i %tmp.27 937 38 39 ]; - %tmp.28 = add %tmp.27 1; - lputv %i.2 %tmp.28; - symbol [ i %i.2 937 38 39 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_937_8_944_8_for_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 946 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_946_15_946_54_begin: - %tmp.29 = lgetv %maxCad.1; - symbol [ maxCad %tmp.29 946 16 22 ]; - %tmp.30 = null; - %tmp.31 = ne %tmp.29 %tmp.30; - bf %tmp.31 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_946_15_946_54_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_946_15_946_54_true: - %tmp.32 = lgetv %maxCad.1; - symbol [ maxCad %tmp.32 946 34 40 ]; - %tmp.33 = as %tmp.32 { (!Null) }; - symbol [ toNumber %tmp.34 946 41 49 ]; - %tmp.34 = getv function %tmp.33 :toNumber; - %tmp.35 = invoke %tmp.33 %tmp.34(); - push %tmp.35; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_946_15_946_54_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_946_15_946_54_else_false: - %tmp.36 = 0; - push %tmp.36; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_946_15_946_54_end: - %tmp.37 = phi [%tmp.31 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_946_15_946_54_begin] [%tmp.35 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_946_15_946_54_true] [%tmp.36 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_946_15_946_54_else_false] [%tmp.37 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_946_15_946_54_end]; - ret %tmp.37; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_934_50_947_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 949; @symbol_functiondef = [hasValidSummaryData,949,13,32]; @symbol_return<0> = [Boolean,949,38,45]; ] - function hasValidSummaryData() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_949_46_951_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 950 8 ] - symbol [ Activity %tmp.1 950 15 23 ]; - %tmp.1 = getm $.Toybox.Activity; - symbol [ getActivityInfo %tmp.2 950 24 39 ]; - %tmp.2 = getv function %tmp.1 :getActivityInfo; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = null; - %tmp.5 = ne %tmp.3 %tmp.4; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_949_46_951_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 953; @symbol_functiondef = [getfinalQC,953,13,23]; @symbol_return<0> = [String,953,29,35]; ] - function getfinalQC() as String { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_953_35_959_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 954 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_954_8_958_8_if_stmt: - symbol [ _finalCQ %tmp.2 954 12 20 ]; - %tmp.2 = getv ? :_finalCQ; - %tmp.3 = null; - %tmp.4 = eq %tmp.2 %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_954_8_958_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_954_8_958_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_954_30_956_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 955 12 ] - %tmp.5 = "N/A"; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_954_30_956_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_954_8_958_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_954_8_958_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_956_13_958_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 957 12 ] - symbol [ _finalCQ %tmp.7 957 19 27 ]; - %tmp.7 = getv ? :_finalCQ; - %tmp.8 = as %tmp.7 { (!Null) }; - symbol [ toString %tmp.9 957 28 36 ]; - %tmp.9 = getv function %tmp.8 :toString; - %tmp.10 = invoke %tmp.8 %tmp.9(); - %tmp.11 = "%"; - %tmp.12 = add %tmp.10 %tmp.11; - ret %tmp.12; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_956_13_958_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_954_8_958_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_953_35_959_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 961; @symbol_functiondef = [getAveragePace,961,13,27]; @symbol_return<0> = [String,961,33,39]; ] - function getAveragePace() as String { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 962 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_4_964_4_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_8_962_84_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_8_962_56_begin: - symbol [ _sessionDuration %tmp.2 962 8 24 ]; - %tmp.2 = getv ? :_sessionDuration; - %tmp.3 = null; - %tmp.4 = eq %tmp.2 %tmp.3; - bt %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_4_964_4_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_36_962_56_false: - symbol [ _sessionDistance %tmp.6 962 36 52 ]; - %tmp.6 = getv ? :_sessionDistance; - %tmp.7 = null; - %tmp.8 = eq %tmp.6 %tmp.7; - push %tmp.8; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_36_962_56_end: - %tmp.9 = phi [%tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_8_962_56_begin] [%tmp.8 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_36_962_56_false] [%tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_36_962_56_end]; - bt %tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_4_964_4_if_true; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_64_962_84_false: - symbol [ _sessionDistance %tmp.11 962 64 80 ]; - %tmp.11 = getv ? :_sessionDistance; - %tmp.12 = as %tmp.11 { (!Null) }; - %tmp.13 = 0; - %tmp.14 = lte %tmp.12 %tmp.13; - push %tmp.14; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_64_962_84_end: - %tmp.15 = phi [%tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_8_962_84_begin] [%tmp.14 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_64_962_84_false] [%tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_64_962_84_end]; - bf %tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_4_964_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_4_964_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_87_964_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 963 8 ] - %tmp.16 = "--"; - ret %tmp.16; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_87_964_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_4_964_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_962_4_964_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 966 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_stop" ] - %totalSeconds.1 = local; - symbol [ totalSeconds %totalSeconds.1 966 8 20 ]; - symbol [ _sessionDuration %tmp.18 966 23 39 ]; - %tmp.18 = getv ? :_sessionDuration; - %tmp.19 = 1000.0; - %tmp.20 = div %tmp.18 %tmp.19; - lputv %totalSeconds.1 %tmp.20; - symbol [ totalSeconds %totalSeconds.1 966 8 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 967 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_stop" ] - %distanceKm.2 = local; - symbol [ distanceKm %distanceKm.2 967 8 18 ]; - symbol [ _sessionDistance %tmp.22 967 21 37 ]; - %tmp.22 = getv ? :_sessionDistance; - %tmp.23 = 100000.0; - %tmp.24 = div %tmp.22 %tmp.23; - lputv %distanceKm.2 %tmp.24; - symbol [ distanceKm %distanceKm.2 967 8 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 969 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_969_4_971_4_if_stmt: - %tmp.25 = lgetv %distanceKm.2; - symbol [ distanceKm %tmp.25 969 8 18 ]; - %tmp.26 = 0; - %tmp.27 = lte %tmp.25 %tmp.26; - bf %tmp.27 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_969_4_971_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_969_4_971_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_969_25_971_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 970 8 ] - %tmp.28 = "--"; - ret %tmp.28; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_969_25_971_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_969_4_971_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_969_4_971_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 973 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_stop" ] - %paceSecondsPerKm.3 = local; - symbol [ paceSecondsPerKm %paceSecondsPerKm.3 973 8 24 ]; - %tmp.29 = lgetv %totalSeconds.1; - symbol [ totalSeconds %tmp.29 973 27 39 ]; - %tmp.30 = lgetv %distanceKm.2; - symbol [ distanceKm %tmp.30 973 42 52 ]; - %tmp.31 = div %tmp.29 %tmp.30; - lputv %paceSecondsPerKm.3 %tmp.31; - symbol [ paceSecondsPerKm %paceSecondsPerKm.3 973 8 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 974 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_stop" ] - %minutesPart.4 = local; - symbol [ minutesPart %minutesPart.4 974 8 19 ]; - %tmp.32 = lgetv %paceSecondsPerKm.3; - symbol [ paceSecondsPerKm %tmp.32 974 23 39 ]; - %tmp.33 = 60; - %tmp.34 = div %tmp.32 %tmp.33; - symbol [ toNumber %tmp.35 974 46 54 ]; - %tmp.35 = getv function %tmp.34 :toNumber; - %tmp.36 = invoke %tmp.34 %tmp.35(); - lputv %minutesPart.4 %tmp.36; - symbol [ minutesPart %minutesPart.4 974 8 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 975 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_stop" ] - %secondsPart.5 = local; - symbol [ secondsPart %secondsPart.5 975 8 19 ]; - %tmp.37 = lgetv %paceSecondsPerKm.3; - symbol [ paceSecondsPerKm %tmp.37 975 23 39 ]; - %tmp.38 = 60; - %tmp.39 = mod %tmp.37 %tmp.38; - symbol [ toNumber %tmp.40 975 46 54 ]; - %tmp.40 = getv function %tmp.39 :toNumber; - %tmp.41 = invoke %tmp.39 %tmp.40(); - lputv %secondsPart.5 %tmp.41; - symbol [ secondsPart %secondsPart.5 975 8 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 977 4 ] - %tmp.42 = lgetv %minutesPart.4; - symbol [ minutesPart %tmp.42 977 11 22 ]; - symbol [ format %tmp.43 977 23 29 ]; - %tmp.43 = getv function %tmp.42 :format; - %tmp.44 = "%02d"; - %tmp.45 = invoke %tmp.42 %tmp.43(%tmp.44); - %tmp.46 = ":"; - %tmp.47 = add %tmp.45 %tmp.46; - %tmp.48 = lgetv %secondsPart.5; - symbol [ secondsPart %tmp.48 977 46 57 ]; - symbol [ format %tmp.49 977 58 64 ]; - %tmp.49 = getv function %tmp.48 :format; - %tmp.50 = "%02d"; - %tmp.51 = invoke %tmp.48 %tmp.49(%tmp.50); - %tmp.52 = add %tmp.47 %tmp.51; - %tmp.53 = "/km"; - %tmp.54 = add %tmp.52 %tmp.53; - ret %tmp.54; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_961_40_978_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 980; @symbol_functiondef = [setLinkedTemperature,980,13,33]; @symbol_param<0> = [value,980,34,39]; @symbol_param<0>_type<0> = [String,980,43,49]; ] - function setLinkedTemperature(value as String) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_980_59_982_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 981 4 ] - %tmp.1 = lgetv %value; - symbol [ value %tmp.1 981 25 30 ]; - symbol [ _linkedTemperature ? 981 4 22 ]; - putv self :_linkedTemperature %tmp.1; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_980_59_982_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 984; @symbol_functiondef = [getLinkedTemperature,984,13,33]; @symbol_return<0> = [String,984,39,45]; ] - function getLinkedTemperature() as String { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_984_46_986_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 985 4 ] - symbol [ _linkedTemperature %tmp.2 985 11 29 ]; - %tmp.2 = getv ? :_linkedTemperature; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_984_46_986_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 995; @symbol_functiondef = [getSessionDistance,995,13,31]; ] - function getSessionDistance() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_995_34_997_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 996 8 ] - symbol [ _sessionDistance %tmp.2 996 15 31 ]; - %tmp.2 = getv ? :_sessionDistance; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_995_34_997_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 999; @symbol_functiondef = [getAvgHeartRate,999,13,28]; ] - function getAvgHeartRate() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_999_31_1001_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 1000 8 ] - symbol [ _avgHeartRate %tmp.2 1000 15 28 ]; - %tmp.2 = getv ? :_avgHeartRate; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_999_31_1001_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 1003; @symbol_functiondef = [getPeakHeartRate,1003,13,29]; ] - function getPeakHeartRate() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_1003_32_1005_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 1004 8 ] - symbol [ _peakHeartRate %tmp.2 1004 15 29 ]; - %tmp.2 = getv ? :_peakHeartRate; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_1003_32_1005_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 1007; @symbol_functiondef = [getChartBarCount,1007,13,29]; @symbol_return<0> = [Number,1007,35,41]; ] - function getChartBarCount() as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_1007_42_1009_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 1008 8 ] - symbol [ _chartDuration %tmp.2 1008 15 29 ]; - %tmp.2 = getv ? :_chartDuration; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_1007_42_1009_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 1012; @symbol_functiondef = [getApp,1012,9,15]; @symbol_return<0> = [GarminApp,1012,21,30]; ] -function getApp() as GarminApp { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_1012_31_1014_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc" 1013 4 ] - symbol [ Application %tmp.1 1013 11 22 ]; - %tmp.1 = getm $.Toybox.Application; - symbol [ getApp %tmp.2 1013 23 29 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = as %tmp.3 GarminApp; - symbol [ GarminApp %tmp.4 1013 35 44 ]; - ret %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_GarminApp_mc_1012_31_1014_0_stop: -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\GarminApp.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/AdvancedView.mir b/bin/mir/source/Views/AdvancedView.mir deleted file mode 100644 index 4c2d8f8..0000000 --- a/bin/mir/source/Views/AdvancedView.mir +++ /dev/null @@ -1,2440 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [Activity,3,14,22]; ] -import Toybox.Activity; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Lang,4,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 5; @symbol_importdef<0> = [Toybox,5,7,13]; @symbol_importdef<1> = [Timer,5,14,19]; ] -import Toybox.Timer; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 6; @symbol_importdef<0> = [Toybox,6,7,13]; @symbol_importdef<1> = [System,6,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 7; @symbol_importdef<0> = [Toybox,7,7,13]; @symbol_importdef<1> = [Attention,7,14,23]; ] -import Toybox.Attention; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 9; @symbol_classdef = [AdvancedView,9,6,18]; @symbol_extends<0> = [WatchUi,9,27,34]; @symbol_extends<1> = [View,9,35,39]; ] -class AdvancedView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 9; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 9; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 10; @position = 10; @symbol_constdef = [MAX_BARS,10,10,18]; ] - const MAX_BARS = 280; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 11; @position = 10; @symbol_constdef = [MAX_CADENCE_DISPLAY,11,10,29]; ] - const MAX_CADENCE_DISPLAY = 200; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 14; @position = 10; @symbol_constdef = [COLOR_BELOW_FAR,14,10,25]; ] - const COLOR_BELOW_FAR = 0x969696; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 15; @position = 10; @symbol_constdef = [COLOR_BELOW_NEAR,15,10,26]; ] - const COLOR_BELOW_NEAR = 0x0CC0DF; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 16; @position = 10; @symbol_constdef = [COLOR_IN_ZONE,16,10,23]; ] - const COLOR_IN_ZONE = 0x00BF63; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 17; @position = 10; @symbol_constdef = [COLOR_ABOVE_NEAR,17,10,26]; ] - const COLOR_ABOVE_NEAR = 0xFF751F; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 18; @position = 10; @symbol_constdef = [COLOR_ABOVE_FAR,18,10,25]; ] - const COLOR_ABOVE_FAR = 0xFF0000; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 20; @position = 10; @symbol_constdef = [COLOR_TEXT_MUTED,20,10,26]; ] - const COLOR_TEXT_MUTED = 0x969696; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 21; @position = 10; @symbol_constdef = [COLOR_CHART_BORDER,21,10,28]; ] - const COLOR_CHART_BORDER = 0x969696; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 23; @position = 16; @symbol_vardef = [_simulationTimer,23,16,32]; ] - private - var _simulationTimer; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 26; @position = 16; @symbol_vardef = [_lastZoneState,26,16,30]; ] - private - var _lastZoneState = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 27; @position = 16; @symbol_vardef = [_alertStartTime,27,16,31]; ] - private - var _alertStartTime = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 28; @position = 16; @symbol_vardef = [_alertDuration,28,16,30]; ] - private - var _alertDuration = 180000; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 29; @position = 16; @symbol_vardef = [_alertInterval,29,16,30]; ] - private - var _alertInterval = 30000; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 30; @position = 16; @symbol_vardef = [_lastAlertTime,30,16,30]; ] - private - var _lastAlertTime = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 31; @position = 16; @symbol_vardef = [_pendingSecondVibe,31,16,34]; ] - private - var _pendingSecondVibe = false; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 32; @position = 16; @symbol_vardef = [_secondVibeTime,32,16,31]; ] - private - var _secondVibeTime = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 34; @symbol_functiondef = [initialize,34,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_34_26_36_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 35 8 ] - symbol [ View %tmp.2 35 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 35 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_34_26_36_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 38; @symbol_functiondef = [onShow,38,13,19]; ] - function onShow() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_38_30_42_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 39 8 ] - symbol [ Timer %tmp.3 39 31 36 ]; - %tmp.3 = getm $.Toybox.Timer; - symbol [ Timer %tmp.4 39 37 42 ]; - %tmp.4 = getv function ? %tmp.3 :Timer; - %tmp.1 = newc %tmp.4 (); - symbol [ _simulationTimer ? 39 8 24 ]; - putv self :_simulationTimer %tmp.1; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 40 8 ] - symbol [ _simulationTimer %tmp.6 40 8 24 ]; - %tmp.6 = getv ? :_simulationTimer; - symbol [ start %tmp.7 40 25 30 ]; - %tmp.7 = getv function %tmp.6 :start; - %tmp.8 = self; - symbol [ method %tmp.9 40 31 37 ]; - %tmp.9 = getv function %tmp.8 :method; - %tmp.11 = const :refreshScreen; - symbol [ refreshScreen %tmp.11 40 39 52 const ]; - %tmp.12 = invoke %tmp.8 %tmp.9(%tmp.11); - %tmp.13 = 1000; - %tmp.14 = true; - invoke %tmp.6 %tmp.7(%tmp.12, %tmp.13, %tmp.14); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 41 8 ] - symbol [ System %tmp.15 41 8 14 ]; - %tmp.15 = getm $.Toybox.System; - symbol [ println %tmp.16 41 15 22 ]; - %tmp.16 = getv function %tmp.15 :println; - %tmp.17 = "[AdvancedView] screen opened"; - invoke %tmp.15 %tmp.16(%tmp.17); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_38_30_42_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 44; @symbol_functiondef = [onHide,44,13,19]; ] - function onHide() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_44_30_53_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 45 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_45_8_48_8_if_stmt: - symbol [ _simulationTimer %tmp.2 45 12 28 ]; - %tmp.2 = getv ? :_simulationTimer; - %tmp.3 = null; - %tmp.4 = ne %tmp.2 %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_45_8_48_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_45_8_48_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_45_38_48_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 46 12 ] - symbol [ _simulationTimer %tmp.6 46 12 28 ]; - %tmp.6 = getv ? :_simulationTimer; - %tmp.7 = as %tmp.6 { (!Null) }; - symbol [ stop %tmp.8 46 29 33 ]; - %tmp.8 = getv function %tmp.7 :stop; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 47 12 ] - %tmp.9 = null; - symbol [ _simulationTimer ? 47 12 28 ]; - putv self :_simulationTimer %tmp.9; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_45_38_48_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_45_8_48_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_45_8_48_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 50 8 ] - %tmp.10 = null; - symbol [ _alertStartTime ? 50 8 23 ]; - putv self :_alertStartTime %tmp.10; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 51 8 ] - %tmp.11 = 0; - symbol [ _lastAlertTime ? 51 8 22 ]; - putv self :_lastAlertTime %tmp.11; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 52 8 ] - %tmp.12 = false; - symbol [ _pendingSecondVibe ? 52 8 26 ]; - putv self :_pendingSecondVibe %tmp.12; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_44_30_53_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 55; @symbol_functiondef = [onUpdate,55,13,21]; @symbol_param<0> = [dc,55,22,24]; @symbol_param<0>_type<0> = [Dc,55,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_55_40_65_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 57 8 ] - %tmp.1 = self; - symbol [ checkCadenceZone %tmp.2 57 8 24 ]; - %tmp.2 = getv function %tmp.1 :checkCadenceZone; - invoke %tmp.1 %tmp.2(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 60 8 ] - %tmp.3 = self; - symbol [ checkPendingVibration %tmp.4 60 8 29 ]; - %tmp.4 = getv function %tmp.3 :checkPendingVibration; - invoke %tmp.3 %tmp.4(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 62 8 ] - symbol [ View %tmp.6 62 8 12 ]; - %tmp.6 = getv ? :View; - symbol [ onUpdate %tmp.7 62 13 21 ]; - %tmp.7 = getv function %tmp.6 :onUpdate; - %tmp.8 = lgetv %dc; - symbol [ dc %tmp.8 62 22 24 ]; - invoke %tmp.6 %tmp.7(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 64 8 ] - %tmp.9 = self; - symbol [ drawElements %tmp.10 64 8 20 ]; - %tmp.10 = getv function %tmp.9 :drawElements; - %tmp.11 = lgetv %dc; - symbol [ dc %tmp.11 64 21 23 ]; - invoke %tmp.9 %tmp.10(%tmp.11); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_55_40_65_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 66; @symbol_functiondef = [refreshScreen,66,9,22]; ] - function refreshScreen() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_66_33_75_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 67 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_66_33_75_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_66_33_75_0_stop" ] - %info.1 = local; - symbol [ info %info.1 67 8 12 ]; - symbol [ Activity %tmp.1 67 15 23 ]; - %tmp.1 = getm $.Toybox.Activity; - symbol [ getActivityInfo %tmp.2 67 24 39 ]; - %tmp.2 = getv function %tmp.1 :getActivityInfo; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %info.1 %tmp.3; - symbol [ info %info.1 67 8 12 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 68 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_66_33_75_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_66_33_75_0_stop" ] - %app.2 = local; - symbol [ app %app.2 68 8 11 ]; - %tmp.4 = self; - symbol [ getApp %tmp.5 68 14 20 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %app.2 %tmp.6; - symbol [ app %app.2 68 8 11 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 70 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_4_72_4_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_8_70_47_begin: - %tmp.7 = lgetv %info.1; - symbol [ info %tmp.7 70 8 12 ]; - %tmp.8 = null; - %tmp.9 = ne %tmp.7 %tmp.8; - bf %tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_4_72_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_24_70_47_true: - %tmp.10 = lgetv %info.1; - symbol [ info %tmp.10 70 24 28 ]; - %tmp.11 = as %tmp.10 { (!Null) }; - symbol [ currentCadence %tmp.12 70 29 43 ]; - %tmp.12 = getv %tmp.11 :currentCadence; - %tmp.13 = null; - %tmp.14 = ne %tmp.12 %tmp.13; - push %tmp.14; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_24_70_47_end: - %tmp.15 = phi [%tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_8_70_47_begin] [%tmp.14 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_24_70_47_true] [%tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_24_70_47_end]; - bf %tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_4_72_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_4_72_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_53_72_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 71 8 ] - %tmp.16 = lgetv %app.2; - symbol [ app %tmp.16 71 8 11 ]; - symbol [ updateCadenceHistory %tmp.17 71 12 32 ]; - %tmp.17 = getv function %tmp.16 :updateCadenceHistory; - %tmp.18 = lgetv %info.1; - symbol [ info %tmp.18 71 33 37 ]; - %tmp.19 = as %tmp.18 { (!Null) }; - symbol [ currentCadence %tmp.20 71 38 52 ]; - %tmp.20 = getv %tmp.19 :currentCadence; - symbol [ toFloat %tmp.21 71 53 60 ]; - %tmp.21 = getv function %tmp.20 :toFloat; - %tmp.22 = invoke %tmp.20 %tmp.21(); - invoke %tmp.16 %tmp.17(%tmp.22); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_53_72_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_4_72_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_70_4_72_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 74 4 ] - symbol [ WatchUi %tmp.23 74 4 11 ]; - %tmp.23 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.24 74 12 25 ]; - %tmp.24 = getv function %tmp.23 :requestUpdate; - invoke %tmp.23 %tmp.24(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_66_33_75_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 78; @symbol_functiondef = [checkPendingVibration,78,12,33]; ] - function checkPendingVibration() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_78_44_97_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 79 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_79_4_81_4_if_stmt: - symbol [ _pendingSecondVibe %tmp.2 79 9 27 ]; - %tmp.2 = getv ? :_pendingSecondVibe; - %tmp.3 = not %tmp.2; - bf %tmp.3 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_79_4_81_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_79_4_81_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_79_29_81_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 80 8 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_79_29_81_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_79_4_81_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_79_4_81_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 84 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_84_4_87_4_if_stmt: - %tmp.4 = self; - symbol [ isHapticEnabled %tmp.5 84 9 24 ]; - %tmp.5 = getv function %tmp.4 :isHapticEnabled; - %tmp.6 = invoke %tmp.4 %tmp.5(); - %tmp.7 = not %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_84_4_87_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_84_4_87_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_84_28_87_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 85 8 ] - %tmp.8 = false; - symbol [ _pendingSecondVibe ? 85 8 26 ]; - putv self :_pendingSecondVibe %tmp.8; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 86 8 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_84_28_87_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_84_4_87_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_84_4_87_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 89 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_78_44_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_78_44_97_0_stop" ] - %currentTime.1 = local; - symbol [ currentTime %currentTime.1 89 8 19 ]; - symbol [ System %tmp.9 89 22 28 ]; - %tmp.9 = getm $.Toybox.System; - symbol [ getTimer %tmp.10 89 29 37 ]; - %tmp.10 = getv function %tmp.9 :getTimer; - %tmp.11 = invoke %tmp.9 %tmp.10(); - lputv %currentTime.1 %tmp.11; - symbol [ currentTime %currentTime.1 89 8 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 90 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_90_4_96_4_if_stmt: - %tmp.12 = lgetv %currentTime.1; - symbol [ currentTime %tmp.12 90 8 19 ]; - symbol [ _secondVibeTime %tmp.14 90 23 38 ]; - %tmp.14 = getv ? :_secondVibeTime; - %tmp.15 = gte %tmp.12 %tmp.14; - bf %tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_90_4_96_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_90_4_96_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_90_40_96_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 91 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_91_8_94_8_if_stmt: - symbol [ Attention %tmp.16 91 12 21 ]; - %tmp.16 = getm $.Toybox.Attention; - %tmp.18 = const :vibrate; - symbol [ vibrate %tmp.18 91 27 34 const ]; - %tmp.19 = canhazplz %tmp.16 %tmp.18; - bf %tmp.19 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_91_8_94_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_91_8_94_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_91_36_94_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 92 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_91_36_94_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_91_36_94_8_stop" ] - %vibeData.2 = local; - symbol [ vibeData %vibeData.2 92 16 24 ]; - %tmp.20 = newa 1; - symbol [ Attention %tmp.23 92 32 41 ]; - %tmp.23 = getm $.Toybox.Attention; - symbol [ VibeProfile %tmp.24 92 42 53 ]; - %tmp.24 = getv function ? %tmp.23 :VibeProfile; - %tmp.25 = 50; - %tmp.26 = 200; - %tmp.21 = newc %tmp.24 (%tmp.25, %tmp.26); - %tmp.27 = dup %tmp.20; - %tmp.28 = aputv %tmp.27 0 %tmp.21; - lputv %vibeData.2 %tmp.28; - symbol [ vibeData %vibeData.2 92 16 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 93 12 ] - symbol [ Attention %tmp.29 93 12 21 ]; - %tmp.29 = getm $.Toybox.Attention; - symbol [ vibrate %tmp.30 93 22 29 ]; - %tmp.30 = getv function %tmp.29 :vibrate; - %tmp.31 = lgetv %vibeData.2; - symbol [ vibeData %tmp.31 93 30 38 ]; - invoke %tmp.29 %tmp.30(%tmp.31); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_91_36_94_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_91_8_94_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_91_8_94_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 95 8 ] - %tmp.32 = false; - symbol [ _pendingSecondVibe ? 95 8 26 ]; - putv self :_pendingSecondVibe %tmp.32; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_90_40_96_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_90_4_96_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_90_4_96_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_78_44_97_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 99; @symbol_functiondef = [isHapticEnabled,99,13,28]; @symbol_return<0> = [Boolean,99,34,41]; ] - function isHapticEnabled() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_99_42_109_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 100 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_99_42_109_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_99_42_109_0_stop" ] - %app.1 = local; - symbol [ app %app.1 100 8 11 ]; - %tmp.1 = self; - symbol [ getApp %tmp.2 100 14 20 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %app.1 %tmp.3; - symbol [ app %app.1 100 8 11 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 103 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_103_4_105_4_if_stmt: - %tmp.4 = lgetv %app.1; - symbol [ app %tmp.4 103 8 11 ]; - %tmp.6 = const :getVibrationEnabled; - symbol [ getVibrationEnabled %tmp.6 103 17 36 const ]; - %tmp.7 = canhazplz %tmp.4 %tmp.6; - bf %tmp.7 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_103_4_105_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_103_4_105_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_103_38_105_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 104 8 ] - %tmp.8 = lgetv %app.1; - symbol [ app %tmp.8 104 15 18 ]; - %tmp.9 = as %tmp.8 { (interface { var getVibrationEnabled; }) }; - symbol [ getVibrationEnabled %tmp.10 104 19 38 ]; - %tmp.10 = getv function %tmp.9 :getVibrationEnabled; - %tmp.11 = invoke %tmp.9 %tmp.10(); - ret %tmp.11; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_103_38_105_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_103_4_105_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_103_4_105_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 108 4 ] - %tmp.12 = true; - ret %tmp.12; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_99_42_109_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 112; @symbol_functiondef = [triggerSingleVibration,112,13,35]; ] - function triggerSingleVibration() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_112_46_121_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 113 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_113_4_115_4_if_stmt: - %tmp.1 = self; - symbol [ isHapticEnabled %tmp.2 113 9 24 ]; - %tmp.2 = getv function %tmp.1 :isHapticEnabled; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = not %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_113_4_115_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_113_4_115_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_113_28_115_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 114 8 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_113_28_115_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_113_4_115_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_113_4_115_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 117 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_117_4_120_4_if_stmt: - symbol [ Attention %tmp.5 117 8 17 ]; - %tmp.5 = getm $.Toybox.Attention; - %tmp.7 = const :vibrate; - symbol [ vibrate %tmp.7 117 23 30 const ]; - %tmp.8 = canhazplz %tmp.5 %tmp.7; - bf %tmp.8 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_117_4_120_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_117_4_120_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_117_32_120_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 118 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_117_32_120_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_117_32_120_4_stop" ] - %vibeData.1 = local; - symbol [ vibeData %vibeData.1 118 12 20 ]; - %tmp.9 = newa 1; - symbol [ Attention %tmp.12 118 28 37 ]; - %tmp.12 = getm $.Toybox.Attention; - symbol [ VibeProfile %tmp.13 118 38 49 ]; - %tmp.13 = getv function ? %tmp.12 :VibeProfile; - %tmp.14 = 50; - %tmp.15 = 200; - %tmp.10 = newc %tmp.13 (%tmp.14, %tmp.15); - %tmp.16 = dup %tmp.9; - %tmp.17 = aputv %tmp.16 0 %tmp.10; - lputv %vibeData.1 %tmp.17; - symbol [ vibeData %vibeData.1 118 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 119 8 ] - symbol [ Attention %tmp.18 119 8 17 ]; - %tmp.18 = getm $.Toybox.Attention; - symbol [ vibrate %tmp.19 119 18 25 ]; - %tmp.19 = getv function %tmp.18 :vibrate; - %tmp.20 = lgetv %vibeData.1; - symbol [ vibeData %tmp.20 119 26 34 ]; - invoke %tmp.18 %tmp.19(%tmp.20); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_117_32_120_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_117_4_120_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_117_4_120_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_112_46_121_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 123; @symbol_functiondef = [triggerDoubleVibration,123,13,35]; ] - function triggerDoubleVibration() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_123_46_138_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 124 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_124_4_127_4_if_stmt: - %tmp.1 = self; - symbol [ isHapticEnabled %tmp.2 124 9 24 ]; - %tmp.2 = getv function %tmp.1 :isHapticEnabled; - %tmp.3 = invoke %tmp.1 %tmp.2(); - %tmp.4 = not %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_124_4_127_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_124_4_127_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_124_28_127_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 125 8 ] - %tmp.5 = false; - symbol [ _pendingSecondVibe ? 125 8 26 ]; - putv self :_pendingSecondVibe %tmp.5; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 126 8 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_124_28_127_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_124_4_127_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_124_4_127_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 129 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_129_4_137_4_if_stmt: - symbol [ Attention %tmp.6 129 8 17 ]; - %tmp.6 = getm $.Toybox.Attention; - %tmp.8 = const :vibrate; - symbol [ vibrate %tmp.8 129 23 30 const ]; - %tmp.9 = canhazplz %tmp.6 %tmp.8; - bf %tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_129_4_137_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_129_4_137_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_129_32_137_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 131 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_129_32_137_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_129_32_137_4_stop" ] - %vibeData.1 = local; - symbol [ vibeData %vibeData.1 131 12 20 ]; - %tmp.10 = newa 1; - symbol [ Attention %tmp.13 131 28 37 ]; - %tmp.13 = getm $.Toybox.Attention; - symbol [ VibeProfile %tmp.14 131 38 49 ]; - %tmp.14 = getv function ? %tmp.13 :VibeProfile; - %tmp.15 = 50; - %tmp.16 = 200; - %tmp.11 = newc %tmp.14 (%tmp.15, %tmp.16); - %tmp.17 = dup %tmp.10; - %tmp.18 = aputv %tmp.17 0 %tmp.11; - lputv %vibeData.1 %tmp.18; - symbol [ vibeData %vibeData.1 131 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 132 8 ] - symbol [ Attention %tmp.19 132 8 17 ]; - %tmp.19 = getm $.Toybox.Attention; - symbol [ vibrate %tmp.20 132 18 25 ]; - %tmp.20 = getv function %tmp.19 :vibrate; - %tmp.21 = lgetv %vibeData.1; - symbol [ vibeData %tmp.21 132 26 34 ]; - invoke %tmp.19 %tmp.20(%tmp.21); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 135 8 ] - %tmp.22 = true; - symbol [ _pendingSecondVibe ? 135 8 26 ]; - putv self :_pendingSecondVibe %tmp.22; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 136 8 ] - symbol [ System %tmp.23 136 26 32 ]; - %tmp.23 = getm $.Toybox.System; - symbol [ getTimer %tmp.24 136 33 41 ]; - %tmp.24 = getv function %tmp.23 :getTimer; - %tmp.25 = invoke %tmp.23 %tmp.24(); - %tmp.26 = 240; - %tmp.27 = add %tmp.25 %tmp.26; - symbol [ _secondVibeTime ? 136 8 23 ]; - putv self :_secondVibeTime %tmp.27; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_129_32_137_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_129_4_137_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_129_4_137_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_123_46_138_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 140; @symbol_functiondef = [checkAndTriggerAlerts,140,13,34]; ] - function checkAndTriggerAlerts() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 141 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_stop" ] - %app.1 = local; - symbol [ app %app.1 141 12 15 ]; - symbol [ Application %tmp.2 141 18 29 ]; - %tmp.2 = getv ? :Application; - symbol [ getApp %tmp.3 141 30 36 ]; - %tmp.3 = getv function %tmp.2 :getApp; - %tmp.4 = invoke %tmp.2 %tmp.3(); - lputv %app.1 %tmp.4; - symbol [ app %app.1 141 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 142 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_stop" ] - %isVibrationOn.2 = local; - symbol [ isVibrationOn %isVibrationOn.2 142 12 25 ]; - %tmp.5 = lgetv %app.1; - symbol [ app %tmp.5 142 28 31 ]; - symbol [ getVibrationEnabled %tmp.6 142 32 51 ]; - %tmp.6 = getv function %tmp.5 :getVibrationEnabled; - %tmp.7 = invoke %tmp.5 %tmp.6(); - lputv %isVibrationOn.2 %tmp.7; - symbol [ isVibrationOn %isVibrationOn.2 142 12 25 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 145 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_145_8_147_8_if_stmt: - symbol [ _alertStartTime %tmp.9 145 12 27 ]; - %tmp.9 = getv ? :_alertStartTime; - %tmp.10 = null; - %tmp.11 = eq %tmp.9 %tmp.10; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_145_8_147_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_145_8_147_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_145_37_147_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 146 12 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_145_37_147_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_145_8_147_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_145_8_147_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 149 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_stop" ] - %currentTime.3 = local; - symbol [ currentTime %currentTime.3 149 12 23 ]; - symbol [ System %tmp.12 149 26 32 ]; - %tmp.12 = getm $.Toybox.System; - symbol [ getTimer %tmp.13 149 33 41 ]; - %tmp.13 = getv function %tmp.12 :getTimer; - %tmp.14 = invoke %tmp.12 %tmp.13(); - lputv %currentTime.3 %tmp.14; - symbol [ currentTime %currentTime.3 149 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 150 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_stop" ] - %elapsed.4 = local; - symbol [ elapsed %elapsed.4 150 12 19 ]; - %tmp.15 = lgetv %currentTime.3; - symbol [ currentTime %tmp.15 150 22 33 ]; - symbol [ _alertStartTime %tmp.17 150 36 51 ]; - %tmp.17 = getv ? :_alertStartTime; - %tmp.18 = sub %tmp.15 %tmp.17; - lputv %elapsed.4 %tmp.18; - symbol [ elapsed %elapsed.4 150 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 153 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_153_8_157_8_if_stmt: - %tmp.19 = lgetv %elapsed.4; - symbol [ elapsed %tmp.19 153 12 19 ]; - symbol [ _alertDuration %tmp.21 153 23 37 ]; - %tmp.21 = getv ? :_alertDuration; - %tmp.22 = gte %tmp.19 %tmp.21; - bf %tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_153_8_157_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_153_8_157_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_153_39_157_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 154 12 ] - %tmp.23 = null; - symbol [ _alertStartTime ? 154 12 27 ]; - putv self :_alertStartTime %tmp.23; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 155 12 ] - %tmp.24 = 0; - symbol [ _lastAlertTime ? 155 12 26 ]; - putv self :_lastAlertTime %tmp.24; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 156 12 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_153_39_157_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_153_8_157_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_153_8_157_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 160 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_stop" ] - %timeSinceLastAlert.5 = local; - symbol [ timeSinceLastAlert %timeSinceLastAlert.5 160 12 30 ]; - %tmp.25 = lgetv %currentTime.3; - symbol [ currentTime %tmp.25 160 33 44 ]; - symbol [ _lastAlertTime %tmp.27 160 47 61 ]; - %tmp.27 = getv ? :_lastAlertTime; - %tmp.28 = sub %tmp.25 %tmp.27; - lputv %timeSinceLastAlert.5 %tmp.28; - symbol [ timeSinceLastAlert %timeSinceLastAlert.5 160 12 30 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 161 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_161_8_186_8_if_stmt: - %tmp.29 = lgetv %timeSinceLastAlert.5; - symbol [ timeSinceLastAlert %tmp.29 161 12 30 ]; - symbol [ _alertInterval %tmp.31 161 34 48 ]; - %tmp.31 = getv ? :_alertInterval; - %tmp.32 = gte %tmp.29 %tmp.31; - bf %tmp.32 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_161_8_186_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_161_8_186_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_161_50_186_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 162 12 ] - %tmp.33 = lgetv %currentTime.3; - symbol [ currentTime %tmp.33 162 29 40 ]; - symbol [ _lastAlertTime ? 162 12 26 ]; - putv self :_lastAlertTime %tmp.33; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 165 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_165_12_185_12_if_stmt: - symbol [ _lastZoneState %tmp.35 165 16 30 ]; - %tmp.35 = getv ? :_lastZoneState; - %tmp.36 = -1; - %tmp.37 = eq %tmp.35 %tmp.36; - bf %tmp.37 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_165_12_185_12_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_165_12_185_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_165_38_176_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 167 16 ] - symbol [ WatchUi %tmp.38 167 16 23 ]; - %tmp.38 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.39 167 24 32 ]; - %tmp.39 = getv function %tmp.38 :pushView; - symbol [ CadenceAlertView %tmp.43 168 24 40 ]; - %tmp.43 = getv ? :CadenceAlertView; - %tmp.44 = "Increase Cadence"; - %tmp.45 = lgetv %isVibrationOn.2; - symbol [ isVibrationOn %tmp.45 168 61 74 ]; - %tmp.40 = newc %tmp.43 (%tmp.44, %tmp.45); - symbol [ CadenceAlertDelegate %tmp.49 169 24 44 ]; - %tmp.49 = getv ? :CadenceAlertDelegate; - %tmp.46 = newc %tmp.49 (); - symbol [ WatchUi %tmp.50 170 20 27 ]; - %tmp.50 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.51 170 28 43 ]; - %tmp.51 = getv %tmp.50 :SLIDE_IMMEDIATE; - invoke %tmp.38 %tmp.39(%tmp.40, %tmp.46, %tmp.51); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 173 16 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_173_16_175_16_if_stmt: - %tmp.52 = lgetv %isVibrationOn.2; - symbol [ isVibrationOn %tmp.52 173 20 33 ]; - bf %tmp.52 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_173_16_175_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_173_16_175_16_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_173_34_175_16_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 174 20 ] - %tmp.53 = self; - symbol [ triggerSingleVibration %tmp.54 174 20 42 ]; - %tmp.54 = getv function %tmp.53 :triggerSingleVibration; - invoke %tmp.53 %tmp.54(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_173_34_175_16_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_173_16_175_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_173_16_175_16_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_165_38_176_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_165_12_185_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_165_12_185_12_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 176 19 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_176_19_185_12_if_stmt: - symbol [ _lastZoneState %tmp.56 176 23 37 ]; - %tmp.56 = getv ? :_lastZoneState; - %tmp.57 = 1; - %tmp.58 = eq %tmp.56 %tmp.57; - bf %tmp.58 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_176_19_185_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_176_19_185_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_176_44_185_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 177 16 ] - symbol [ WatchUi %tmp.59 177 16 23 ]; - %tmp.59 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.60 177 24 32 ]; - %tmp.60 = getv function %tmp.59 :pushView; - symbol [ CadenceAlertView %tmp.64 178 24 40 ]; - %tmp.64 = getv ? :CadenceAlertView; - %tmp.65 = "Increase Cadence"; - %tmp.66 = lgetv %isVibrationOn.2; - symbol [ isVibrationOn %tmp.66 178 61 74 ]; - %tmp.61 = newc %tmp.64 (%tmp.65, %tmp.66); - symbol [ CadenceAlertDelegate %tmp.70 179 24 44 ]; - %tmp.70 = getv ? :CadenceAlertDelegate; - %tmp.67 = newc %tmp.70 (); - symbol [ WatchUi %tmp.71 180 20 27 ]; - %tmp.71 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.72 180 28 43 ]; - %tmp.72 = getv %tmp.71 :SLIDE_IMMEDIATE; - invoke %tmp.59 %tmp.60(%tmp.61, %tmp.67, %tmp.72); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 182 16 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_182_16_184_16_if_stmt: - %tmp.73 = lgetv %isVibrationOn.2; - symbol [ isVibrationOn %tmp.73 182 20 33 ]; - bf %tmp.73 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_182_16_184_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_182_16_184_16_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_182_34_184_16_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 183 20 ] - %tmp.74 = self; - symbol [ triggerDoubleVibration %tmp.75 183 20 42 ]; - %tmp.75 = getv function %tmp.74 :triggerDoubleVibration; - invoke %tmp.74 %tmp.75(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_182_34_184_16_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_182_16_184_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_182_16_184_16_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_176_44_185_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_176_19_185_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_176_19_185_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_165_12_185_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_161_50_186_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_161_8_186_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_161_8_186_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_140_45_187_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 189; @symbol_functiondef = [checkCadenceZone,189,13,29]; ] - function checkCadenceZone() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 196 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_stop" ] - %info.1 = local; - symbol [ info %info.1 196 12 16 ]; - symbol [ Activity %tmp.1 196 19 27 ]; - %tmp.1 = getm $.Toybox.Activity; - symbol [ getActivityInfo %tmp.2 196 28 43 ]; - %tmp.2 = getv function %tmp.1 :getActivityInfo; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %info.1 %tmp.3; - symbol [ info %info.1 196 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 197 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_stop" ] - %app.2 = local; - symbol [ app %app.2 197 12 15 ]; - %tmp.4 = self; - symbol [ getApp %tmp.5 197 18 24 ]; - %tmp.5 = getv function %tmp.4 :getApp; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %app.2 %tmp.6; - symbol [ app %app.2 197 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 198 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_stop" ] - %minZone.3 = local; - symbol [ minZone %minZone.3 198 12 19 ]; - %tmp.7 = lgetv %app.2; - symbol [ app %tmp.7 198 22 25 ]; - symbol [ getMinCadence %tmp.8 198 26 39 ]; - %tmp.8 = getv function %tmp.7 :getMinCadence; - %tmp.9 = invoke %tmp.7 %tmp.8(); - lputv %minZone.3 %tmp.9; - symbol [ minZone %minZone.3 198 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 199 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_stop" ] - %maxZone.4 = local; - symbol [ maxZone %maxZone.4 199 12 19 ]; - %tmp.10 = lgetv %app.2; - symbol [ app %tmp.10 199 22 25 ]; - symbol [ getMaxCadence %tmp.11 199 26 39 ]; - %tmp.11 = getv function %tmp.10 :getMaxCadence; - %tmp.12 = invoke %tmp.10 %tmp.11(); - lputv %maxZone.4 %tmp.12; - symbol [ maxZone %maxZone.4 199 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 202 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_stop" ] - %newZoneState.5 = local; - symbol [ newZoneState %newZoneState.5 202 12 24 ]; - %tmp.13 = 0; - lputv %newZoneState.5 %tmp.13; - symbol [ newZoneState %newZoneState.5 202 12 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 203 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_8_212_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_12_203_51_begin: - %tmp.14 = lgetv %info.1; - symbol [ info %tmp.14 203 12 16 ]; - %tmp.15 = null; - %tmp.16 = ne %tmp.14 %tmp.15; - bf %tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_8_212_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_28_203_51_true: - %tmp.17 = lgetv %info.1; - symbol [ info %tmp.17 203 28 32 ]; - %tmp.18 = as %tmp.17 { (!Null) }; - symbol [ currentCadence %tmp.19 203 33 47 ]; - %tmp.19 = getv %tmp.18 :currentCadence; - %tmp.20 = null; - %tmp.21 = ne %tmp.19 %tmp.20; - push %tmp.21; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_28_203_51_end: - %tmp.22 = phi [%tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_12_203_51_begin] [%tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_28_203_51_true] [%tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_28_203_51_end]; - bf %tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_8_212_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_8_212_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_57_212_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 204 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_57_212_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_57_212_8_stop" ] - %c.6 = local; - symbol [ c %c.6 204 16 17 ]; - %tmp.23 = lgetv %info.1; - symbol [ info %tmp.23 204 20 24 ]; - %tmp.24 = as %tmp.23 { (!Null) }; - symbol [ currentCadence %tmp.25 204 25 39 ]; - %tmp.25 = getv %tmp.24 :currentCadence; - lputv %c.6 %tmp.25; - symbol [ c %c.6 204 16 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 205 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_205_12_211_12_if_stmt: - %tmp.26 = lgetv %c.6; - symbol [ c %tmp.26 205 16 17 ]; - %tmp.27 = lgetv %minZone.3; - symbol [ minZone %tmp.27 205 20 27 ]; - %tmp.28 = lt %tmp.26 %tmp.27; - bf %tmp.28 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_205_12_211_12_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_205_12_211_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_205_29_207_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 206 16 ] - %tmp.29 = -1; - lputv %newZoneState.5 %tmp.29; - symbol [ newZoneState %newZoneState.5 206 16 28 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_205_29_207_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_205_12_211_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_205_12_211_12_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 207 19 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_207_19_211_12_if_stmt: - %tmp.30 = lgetv %c.6; - symbol [ c %tmp.30 207 23 24 ]; - %tmp.31 = lgetv %maxZone.4; - symbol [ maxZone %tmp.31 207 27 34 ]; - %tmp.32 = gt %tmp.30 %tmp.31; - bf %tmp.32 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_207_19_211_12_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_207_19_211_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_207_36_209_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 208 16 ] - %tmp.33 = 1; - lputv %newZoneState.5 %tmp.33; - symbol [ newZoneState %newZoneState.5 208 16 28 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_207_36_209_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_207_19_211_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_207_19_211_12_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_209_19_211_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 210 16 ] - %tmp.34 = 0; - lputv %newZoneState.5 %tmp.34; - symbol [ newZoneState %newZoneState.5 210 16 28 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_209_19_211_12_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_207_19_211_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_205_12_211_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_57_212_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_8_212_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_203_8_212_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 215 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_215_8_235_8_if_stmt: - %tmp.35 = lgetv %newZoneState.5; - symbol [ newZoneState %tmp.35 215 12 24 ]; - symbol [ _lastZoneState %tmp.37 215 28 42 ]; - %tmp.37 = getv ? :_lastZoneState; - %tmp.38 = ne %tmp.35 %tmp.37; - bf %tmp.38 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_215_8_235_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_215_8_235_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_215_44_232_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 216 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_216_12_230_12_if_stmt: - %tmp.39 = lgetv %newZoneState.5; - symbol [ newZoneState %tmp.39 216 16 28 ]; - %tmp.40 = -1; - %tmp.41 = eq %tmp.39 %tmp.40; - bf %tmp.41 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_216_12_230_12_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_216_12_230_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_216_36_221_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 218 16 ] - symbol [ System %tmp.42 218 34 40 ]; - %tmp.42 = getm $.Toybox.System; - symbol [ getTimer %tmp.43 218 41 49 ]; - %tmp.43 = getv function %tmp.42 :getTimer; - %tmp.44 = invoke %tmp.42 %tmp.43(); - symbol [ _alertStartTime ? 218 16 31 ]; - putv self :_alertStartTime %tmp.44; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 219 16 ] - symbol [ System %tmp.45 219 33 39 ]; - %tmp.45 = getm $.Toybox.System; - symbol [ getTimer %tmp.46 219 40 48 ]; - %tmp.46 = getv function %tmp.45 :getTimer; - %tmp.47 = invoke %tmp.45 %tmp.46(); - symbol [ _lastAlertTime ? 219 16 30 ]; - putv self :_lastAlertTime %tmp.47; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 220 16 ] - %tmp.48 = self; - symbol [ triggerSingleVibration %tmp.49 220 16 38 ]; - %tmp.49 = getv function %tmp.48 :triggerSingleVibration; - invoke %tmp.48 %tmp.49(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_216_36_221_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_216_12_230_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_216_12_230_12_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 221 19 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_221_19_230_12_if_stmt: - %tmp.50 = lgetv %newZoneState.5; - symbol [ newZoneState %tmp.50 221 23 35 ]; - %tmp.51 = 1; - %tmp.52 = eq %tmp.50 %tmp.51; - bf %tmp.52 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_221_19_230_12_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_221_19_230_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_221_42_226_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 223 16 ] - symbol [ System %tmp.53 223 34 40 ]; - %tmp.53 = getm $.Toybox.System; - symbol [ getTimer %tmp.54 223 41 49 ]; - %tmp.54 = getv function %tmp.53 :getTimer; - %tmp.55 = invoke %tmp.53 %tmp.54(); - symbol [ _alertStartTime ? 223 16 31 ]; - putv self :_alertStartTime %tmp.55; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 224 16 ] - symbol [ System %tmp.56 224 33 39 ]; - %tmp.56 = getm $.Toybox.System; - symbol [ getTimer %tmp.57 224 40 48 ]; - %tmp.57 = getv function %tmp.56 :getTimer; - %tmp.58 = invoke %tmp.56 %tmp.57(); - symbol [ _lastAlertTime ? 224 16 30 ]; - putv self :_lastAlertTime %tmp.58; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 225 16 ] - %tmp.59 = self; - symbol [ triggerDoubleVibration %tmp.60 225 16 38 ]; - %tmp.60 = getv function %tmp.59 :triggerDoubleVibration; - invoke %tmp.59 %tmp.60(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_221_42_226_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_221_19_230_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_221_19_230_12_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_226_19_230_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 228 16 ] - %tmp.61 = null; - symbol [ _alertStartTime ? 228 16 31 ]; - putv self :_alertStartTime %tmp.61; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 229 16 ] - %tmp.62 = 0; - symbol [ _lastAlertTime ? 229 16 30 ]; - putv self :_lastAlertTime %tmp.62; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_226_19_230_12_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_221_19_230_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_216_12_230_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 231 12 ] - %tmp.63 = lgetv %newZoneState.5; - symbol [ newZoneState %tmp.63 231 29 41 ]; - symbol [ _lastZoneState ? 231 12 26 ]; - putv self :_lastZoneState %tmp.63; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_215_44_232_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_215_8_235_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_215_8_235_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_232_15_235_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 234 12 ] - %tmp.64 = self; - symbol [ checkAndTriggerAlerts %tmp.65 234 12 33 ]; - %tmp.65 = getv function %tmp.64 :checkAndTriggerAlerts; - invoke %tmp.64 %tmp.65(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_232_15_235_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_215_8_235_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_189_40_236_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 238; @symbol_functiondef = [drawElements,238,13,25]; @symbol_param<0> = [dc,238,26,28]; @symbol_param<0>_type<0> = [Dc,238,32,34]; ] - function drawElements(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 239 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %width.1 = local; - symbol [ width %width.1 239 12 17 ]; - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 239 20 22 ]; - symbol [ getWidth %tmp.2 239 23 31 ]; - %tmp.2 = getv function %tmp.1 :getWidth; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %width.1 %tmp.3; - symbol [ width %width.1 239 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 240 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %height.2 = local; - symbol [ height %height.2 240 12 18 ]; - %tmp.4 = lgetv %dc; - symbol [ dc %tmp.4 240 21 23 ]; - symbol [ getHeight %tmp.5 240 24 33 ]; - %tmp.5 = getv function %tmp.4 :getHeight; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %height.2 %tmp.6; - symbol [ height %height.2 240 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 241 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %info.3 = local; - symbol [ info %info.3 241 12 16 ]; - symbol [ Activity %tmp.7 241 19 27 ]; - %tmp.7 = getm $.Toybox.Activity; - symbol [ getActivityInfo %tmp.8 241 28 43 ]; - %tmp.8 = getv function %tmp.7 :getActivityInfo; - %tmp.9 = invoke %tmp.7 %tmp.8(); - lputv %info.3 %tmp.9; - symbol [ info %info.3 241 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 242 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %app.4 = local; - symbol [ app %app.4 242 12 15 ]; - %tmp.10 = self; - symbol [ getApp %tmp.11 242 18 24 ]; - %tmp.11 = getv function %tmp.10 :getApp; - %tmp.12 = invoke %tmp.10 %tmp.11(); - lputv %app.4 %tmp.12; - symbol [ app %app.4 242 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 245 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_8_253_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_12_245_46_begin: - %tmp.13 = lgetv %info.3; - symbol [ info %tmp.13 245 12 16 ]; - %tmp.14 = null; - %tmp.15 = ne %tmp.13 %tmp.14; - bf %tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_8_253_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_28_245_46_true: - %tmp.16 = lgetv %info.3; - symbol [ info %tmp.16 245 28 32 ]; - %tmp.17 = as %tmp.16 { (!Null) }; - symbol [ timerTime %tmp.18 245 33 42 ]; - %tmp.18 = getv %tmp.17 :timerTime; - %tmp.19 = null; - %tmp.20 = ne %tmp.18 %tmp.19; - push %tmp.20; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_28_245_46_end: - %tmp.21 = phi [%tmp.15 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_12_245_46_begin] [%tmp.20 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_28_245_46_true] [%tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_28_245_46_end]; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_8_253_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_8_253_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_52_253_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 246 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_52_253_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_52_253_8_stop" ] - %seconds.5 = local; - symbol [ seconds %seconds.5 246 16 23 ]; - %tmp.22 = lgetv %info.3; - symbol [ info %tmp.22 246 26 30 ]; - %tmp.23 = as %tmp.22 { (!Null) }; - symbol [ timerTime %tmp.24 246 31 40 ]; - %tmp.24 = getv %tmp.23 :timerTime; - %tmp.25 = 1000; - %tmp.26 = div %tmp.24 %tmp.25; - lputv %seconds.5 %tmp.26; - symbol [ seconds %seconds.5 246 16 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 247 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_52_253_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_52_253_8_stop" ] - %hours.6 = local; - symbol [ hours %hours.6 247 16 21 ]; - %tmp.27 = lgetv %seconds.5; - symbol [ seconds %tmp.27 247 24 31 ]; - %tmp.28 = 3600; - %tmp.29 = div %tmp.27 %tmp.28; - lputv %hours.6 %tmp.29; - symbol [ hours %hours.6 247 16 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 248 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_52_253_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_52_253_8_stop" ] - %minutes.7 = local; - symbol [ minutes %minutes.7 248 16 23 ]; - %tmp.30 = lgetv %seconds.5; - symbol [ seconds %tmp.30 248 27 34 ]; - %tmp.31 = 3600; - %tmp.32 = mod %tmp.30 %tmp.31; - %tmp.33 = 60; - %tmp.34 = div %tmp.32 %tmp.33; - lputv %minutes.7 %tmp.34; - symbol [ minutes %minutes.7 248 16 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 250 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_52_253_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_52_253_8_stop" ] - %timeStr.8 = local; - symbol [ timeStr %timeStr.8 250 16 23 ]; - %tmp.35 = lgetv %hours.6; - symbol [ hours %tmp.35 250 26 31 ]; - symbol [ format %tmp.36 250 32 38 ]; - %tmp.36 = getv function %tmp.35 :format; - %tmp.37 = "%01d"; - %tmp.38 = invoke %tmp.35 %tmp.36(%tmp.37); - %tmp.39 = ":"; - %tmp.40 = add %tmp.38 %tmp.39; - %tmp.41 = lgetv %minutes.7; - symbol [ minutes %tmp.41 250 55 62 ]; - symbol [ format %tmp.42 250 63 69 ]; - %tmp.42 = getv function %tmp.41 :format; - %tmp.43 = "%02d"; - %tmp.44 = invoke %tmp.41 %tmp.42(%tmp.43); - %tmp.45 = add %tmp.40 %tmp.44; - lputv %timeStr.8 %tmp.45; - symbol [ timeStr %timeStr.8 250 16 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 251 12 ] - %tmp.46 = lgetv %dc; - symbol [ dc %tmp.46 251 12 14 ]; - symbol [ setColor %tmp.47 251 15 23 ]; - %tmp.47 = getv function %tmp.46 :setColor; - %tmp.48 = 0xFFF813; - symbol [ Graphics %tmp.49 251 34 42 ]; - %tmp.49 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.50 251 43 60 ]; - %tmp.50 = getv %tmp.49 :COLOR_TRANSPARENT; - invoke %tmp.46 %tmp.47(%tmp.48, %tmp.50); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 252 12 ] - %tmp.51 = lgetv %dc; - symbol [ dc %tmp.51 252 12 14 ]; - symbol [ drawText %tmp.52 252 15 23 ]; - %tmp.52 = getv function %tmp.51 :drawText; - %tmp.53 = lgetv %width.1; - symbol [ width %tmp.53 252 24 29 ]; - %tmp.54 = 2; - %tmp.55 = div %tmp.53 %tmp.54; - %tmp.56 = 3; - symbol [ Graphics %tmp.57 252 38 46 ]; - %tmp.57 = getm $.Toybox.Graphics; - symbol [ FONT_LARGE %tmp.58 252 47 57 ]; - %tmp.58 = getv %tmp.57 :FONT_LARGE; - %tmp.59 = lgetv %timeStr.8; - symbol [ timeStr %tmp.59 252 59 66 ]; - symbol [ Graphics %tmp.60 252 68 76 ]; - %tmp.60 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.61 252 77 96 ]; - %tmp.61 = getv %tmp.60 :TEXT_JUSTIFY_CENTER; - invoke %tmp.51 %tmp.52(%tmp.55, %tmp.56, %tmp.58, %tmp.59, %tmp.61); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_52_253_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_8_253_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_245_8_253_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 256 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %hrX.9 = local; - symbol [ hrX %hrX.9 256 12 15 ]; - %tmp.62 = lgetv %width.1; - symbol [ width %tmp.62 256 18 23 ]; - %tmp.63 = 4; - %tmp.64 = div %tmp.62 %tmp.63; - lputv %hrX.9 %tmp.64; - symbol [ hrX %hrX.9 256 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 257 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %hrY.10 = local; - symbol [ hrY %hrY.10 257 12 15 ]; - %tmp.65 = lgetv %height.2; - symbol [ height %tmp.65 257 19 25 ]; - %tmp.66 = 2; - %tmp.67 = mul %tmp.65 %tmp.66; - %tmp.68 = 7; - %tmp.69 = div %tmp.67 %tmp.68; - lputv %hrY.10 %tmp.69; - symbol [ hrY %hrY.10 257 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 258 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %circleRadius.11 = local; - symbol [ circleRadius %circleRadius.11 258 12 24 ]; - %tmp.70 = 42; - lputv %circleRadius.11 %tmp.70; - symbol [ circleRadius %circleRadius.11 258 12 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 260 8 ] - %tmp.71 = lgetv %dc; - symbol [ dc %tmp.71 260 8 10 ]; - symbol [ setColor %tmp.72 260 11 19 ]; - %tmp.72 = getv function %tmp.71 :setColor; - %tmp.73 = 0x9D0000; - symbol [ Graphics %tmp.74 260 30 38 ]; - %tmp.74 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.75 260 39 56 ]; - %tmp.75 = getv %tmp.74 :COLOR_TRANSPARENT; - invoke %tmp.71 %tmp.72(%tmp.73, %tmp.75); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 261 8 ] - %tmp.76 = lgetv %dc; - symbol [ dc %tmp.76 261 8 10 ]; - symbol [ fillCircle %tmp.77 261 11 21 ]; - %tmp.77 = getv function %tmp.76 :fillCircle; - %tmp.78 = lgetv %hrX.9; - symbol [ hrX %tmp.78 261 22 25 ]; - %tmp.79 = lgetv %hrY.10; - symbol [ hrY %tmp.79 261 27 30 ]; - %tmp.80 = lgetv %circleRadius.11; - symbol [ circleRadius %tmp.80 261 32 44 ]; - invoke %tmp.76 %tmp.77(%tmp.78, %tmp.79, %tmp.80); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 263 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_8_267_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_12_263_53_begin: - %tmp.81 = lgetv %info.3; - symbol [ info %tmp.81 263 12 16 ]; - %tmp.82 = null; - %tmp.83 = ne %tmp.81 %tmp.82; - bf %tmp.83 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_8_267_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_28_263_53_true: - %tmp.84 = lgetv %info.3; - symbol [ info %tmp.84 263 28 32 ]; - %tmp.85 = as %tmp.84 { (!Null) }; - symbol [ currentHeartRate %tmp.86 263 33 49 ]; - %tmp.86 = getv %tmp.85 :currentHeartRate; - %tmp.87 = null; - %tmp.88 = ne %tmp.86 %tmp.87; - push %tmp.88; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_28_263_53_end: - %tmp.89 = phi [%tmp.83 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_12_263_53_begin] [%tmp.88 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_28_263_53_true] [%tmp.89 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_28_263_53_end]; - bf %tmp.89 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_8_267_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_8_267_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_59_267_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 264 12 ] - %tmp.90 = lgetv %dc; - symbol [ dc %tmp.90 264 12 14 ]; - symbol [ setColor %tmp.91 264 15 23 ]; - %tmp.91 = getv function %tmp.90 :setColor; - %tmp.92 = 0xFFFFFF; - symbol [ Graphics %tmp.93 264 34 42 ]; - %tmp.93 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.94 264 43 60 ]; - %tmp.94 = getv %tmp.93 :COLOR_TRANSPARENT; - invoke %tmp.90 %tmp.91(%tmp.92, %tmp.94); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 265 12 ] - %tmp.95 = lgetv %dc; - symbol [ dc %tmp.95 265 12 14 ]; - symbol [ drawText %tmp.96 265 15 23 ]; - %tmp.96 = getv function %tmp.95 :drawText; - %tmp.97 = lgetv %hrX.9; - symbol [ hrX %tmp.97 265 24 27 ]; - %tmp.98 = lgetv %hrY.10; - symbol [ hrY %tmp.98 265 29 32 ]; - %tmp.99 = 25; - %tmp.100 = sub %tmp.98 %tmp.99; - symbol [ Graphics %tmp.101 265 39 47 ]; - %tmp.101 = getm $.Toybox.Graphics; - symbol [ FONT_TINY %tmp.102 265 48 57 ]; - %tmp.102 = getv %tmp.101 :FONT_TINY; - %tmp.103 = lgetv %info.3; - symbol [ info %tmp.103 265 59 63 ]; - %tmp.104 = as %tmp.103 { (!Null) }; - symbol [ currentHeartRate %tmp.105 265 64 80 ]; - %tmp.105 = getv %tmp.104 :currentHeartRate; - symbol [ toString %tmp.106 265 81 89 ]; - %tmp.106 = getv function %tmp.105 :toString; - %tmp.107 = invoke %tmp.105 %tmp.106(); - symbol [ Graphics %tmp.108 265 93 101 ]; - %tmp.108 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.109 265 102 121 ]; - %tmp.109 = getv %tmp.108 :TEXT_JUSTIFY_CENTER; - invoke %tmp.95 %tmp.96(%tmp.97, %tmp.100, %tmp.102, %tmp.107, %tmp.109); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 266 12 ] - %tmp.110 = lgetv %dc; - symbol [ dc %tmp.110 266 12 14 ]; - symbol [ drawText %tmp.111 266 15 23 ]; - %tmp.111 = getv function %tmp.110 :drawText; - %tmp.112 = lgetv %hrX.9; - symbol [ hrX %tmp.112 266 24 27 ]; - %tmp.113 = lgetv %hrY.10; - symbol [ hrY %tmp.113 266 29 32 ]; - %tmp.114 = 8; - %tmp.115 = add %tmp.113 %tmp.114; - symbol [ Graphics %tmp.116 266 38 46 ]; - %tmp.116 = getm $.Toybox.Graphics; - symbol [ FONT_XTINY %tmp.117 266 47 57 ]; - %tmp.117 = getv %tmp.116 :FONT_XTINY; - %tmp.118 = "bpm"; - symbol [ Graphics %tmp.119 266 66 74 ]; - %tmp.119 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.120 266 75 94 ]; - %tmp.120 = getv %tmp.119 :TEXT_JUSTIFY_CENTER; - invoke %tmp.110 %tmp.111(%tmp.112, %tmp.115, %tmp.117, %tmp.118, %tmp.120); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_59_267_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_8_267_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_263_8_267_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 270 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %distX.12 = local; - symbol [ distX %distX.12 270 12 17 ]; - %tmp.121 = lgetv %width.1; - symbol [ width %tmp.121 270 21 26 ]; - %tmp.122 = 3; - %tmp.123 = mul %tmp.121 %tmp.122; - %tmp.124 = 4; - %tmp.125 = div %tmp.123 %tmp.124; - lputv %distX.12 %tmp.125; - symbol [ distX %distX.12 270 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 271 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %distY.13 = local; - symbol [ distY %distY.13 271 12 17 ]; - %tmp.126 = lgetv %hrY.10; - symbol [ hrY %tmp.126 271 20 23 ]; - lputv %distY.13 %tmp.126; - symbol [ distY %distY.13 271 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 273 8 ] - %tmp.127 = lgetv %dc; - symbol [ dc %tmp.127 273 8 10 ]; - symbol [ setColor %tmp.128 273 11 19 ]; - %tmp.128 = getv function %tmp.127 :setColor; - %tmp.129 = 0x1D5E11; - symbol [ Graphics %tmp.130 273 30 38 ]; - %tmp.130 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.131 273 39 56 ]; - %tmp.131 = getv %tmp.130 :COLOR_TRANSPARENT; - invoke %tmp.127 %tmp.128(%tmp.129, %tmp.131); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 274 8 ] - %tmp.132 = lgetv %dc; - symbol [ dc %tmp.132 274 8 10 ]; - symbol [ fillCircle %tmp.133 274 11 21 ]; - %tmp.133 = getv function %tmp.132 :fillCircle; - %tmp.134 = lgetv %distX.12; - symbol [ distX %tmp.134 274 22 27 ]; - %tmp.135 = lgetv %distY.13; - symbol [ distY %tmp.135 274 29 34 ]; - %tmp.136 = lgetv %circleRadius.11; - symbol [ circleRadius %tmp.136 274 36 48 ]; - invoke %tmp.132 %tmp.133(%tmp.134, %tmp.135, %tmp.136); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 276 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_8_281_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_12_276_52_begin: - %tmp.137 = lgetv %info.3; - symbol [ info %tmp.137 276 12 16 ]; - %tmp.138 = null; - %tmp.139 = ne %tmp.137 %tmp.138; - bf %tmp.139 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_8_281_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_28_276_52_true: - %tmp.140 = lgetv %info.3; - symbol [ info %tmp.140 276 28 32 ]; - %tmp.141 = as %tmp.140 { (!Null) }; - symbol [ elapsedDistance %tmp.142 276 33 48 ]; - %tmp.142 = getv %tmp.141 :elapsedDistance; - %tmp.143 = null; - %tmp.144 = ne %tmp.142 %tmp.143; - push %tmp.144; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_28_276_52_end: - %tmp.145 = phi [%tmp.139 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_12_276_52_begin] [%tmp.144 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_28_276_52_true] [%tmp.145 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_28_276_52_end]; - bf %tmp.145 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_8_281_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_8_281_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_58_281_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 277 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_58_281_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_58_281_8_stop" ] - %distanceKm.14 = local; - symbol [ distanceKm %distanceKm.14 277 16 26 ]; - %tmp.146 = lgetv %info.3; - symbol [ info %tmp.146 277 29 33 ]; - %tmp.147 = as %tmp.146 { (!Null) }; - symbol [ elapsedDistance %tmp.148 277 34 49 ]; - %tmp.148 = getv %tmp.147 :elapsedDistance; - %tmp.149 = 100000.0; - %tmp.150 = div %tmp.148 %tmp.149; - lputv %distanceKm.14 %tmp.150; - symbol [ distanceKm %distanceKm.14 277 16 26 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 278 12 ] - %tmp.151 = lgetv %dc; - symbol [ dc %tmp.151 278 12 14 ]; - symbol [ setColor %tmp.152 278 15 23 ]; - %tmp.152 = getv function %tmp.151 :setColor; - %tmp.153 = 0xFFFFFF; - symbol [ Graphics %tmp.154 278 34 42 ]; - %tmp.154 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.155 278 43 60 ]; - %tmp.155 = getv %tmp.154 :COLOR_TRANSPARENT; - invoke %tmp.151 %tmp.152(%tmp.153, %tmp.155); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 279 12 ] - %tmp.156 = lgetv %dc; - symbol [ dc %tmp.156 279 12 14 ]; - symbol [ drawText %tmp.157 279 15 23 ]; - %tmp.157 = getv function %tmp.156 :drawText; - %tmp.158 = lgetv %distX.12; - symbol [ distX %tmp.158 279 24 29 ]; - %tmp.159 = lgetv %distY.13; - symbol [ distY %tmp.159 279 31 36 ]; - %tmp.160 = 25; - %tmp.161 = sub %tmp.159 %tmp.160; - symbol [ Graphics %tmp.162 279 43 51 ]; - %tmp.162 = getm $.Toybox.Graphics; - symbol [ FONT_TINY %tmp.163 279 52 61 ]; - %tmp.163 = getv %tmp.162 :FONT_TINY; - %tmp.164 = lgetv %distanceKm.14; - symbol [ distanceKm %tmp.164 279 63 73 ]; - symbol [ format %tmp.165 279 74 80 ]; - %tmp.165 = getv function %tmp.164 :format; - %tmp.166 = "%.2f"; - %tmp.167 = invoke %tmp.164 %tmp.165(%tmp.166); - symbol [ Graphics %tmp.168 279 90 98 ]; - %tmp.168 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.169 279 99 118 ]; - %tmp.169 = getv %tmp.168 :TEXT_JUSTIFY_CENTER; - invoke %tmp.156 %tmp.157(%tmp.158, %tmp.161, %tmp.163, %tmp.167, %tmp.169); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 280 12 ] - %tmp.170 = lgetv %dc; - symbol [ dc %tmp.170 280 12 14 ]; - symbol [ drawText %tmp.171 280 15 23 ]; - %tmp.171 = getv function %tmp.170 :drawText; - %tmp.172 = lgetv %distX.12; - symbol [ distX %tmp.172 280 24 29 ]; - %tmp.173 = lgetv %distY.13; - symbol [ distY %tmp.173 280 31 36 ]; - %tmp.174 = 8; - %tmp.175 = add %tmp.173 %tmp.174; - symbol [ Graphics %tmp.176 280 42 50 ]; - %tmp.176 = getm $.Toybox.Graphics; - symbol [ FONT_XTINY %tmp.177 280 51 61 ]; - %tmp.177 = getv %tmp.176 :FONT_XTINY; - %tmp.178 = "km"; - symbol [ Graphics %tmp.179 280 69 77 ]; - %tmp.179 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.180 280 78 97 ]; - %tmp.180 = getv %tmp.179 :TEXT_JUSTIFY_CENTER; - invoke %tmp.170 %tmp.171(%tmp.172, %tmp.175, %tmp.177, %tmp.178, %tmp.180); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_58_281_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_8_281_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_276_8_281_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 285 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %idealMinCadence.15 = local; - symbol [ idealMinCadence %idealMinCadence.15 285 12 27 ]; - %tmp.181 = lgetv %app.4; - symbol [ app %tmp.181 285 30 33 ]; - symbol [ getMinCadence %tmp.182 285 34 47 ]; - %tmp.182 = getv function %tmp.181 :getMinCadence; - %tmp.183 = invoke %tmp.181 %tmp.182(); - lputv %idealMinCadence.15 %tmp.183; - symbol [ idealMinCadence %idealMinCadence.15 285 12 27 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 286 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %idealMaxCadence.16 = local; - symbol [ idealMaxCadence %idealMaxCadence.16 286 12 27 ]; - %tmp.184 = lgetv %app.4; - symbol [ app %tmp.184 286 30 33 ]; - symbol [ getMaxCadence %tmp.185 286 34 47 ]; - %tmp.185 = getv function %tmp.184 :getMaxCadence; - %tmp.186 = invoke %tmp.184 %tmp.185(); - lputv %idealMaxCadence.16 %tmp.186; - symbol [ idealMaxCadence %idealMaxCadence.16 286 12 27 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 288 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %cadenceY.17 = local; - symbol [ cadenceY %cadenceY.17 288 12 20 ]; - %tmp.187 = lgetv %height.2; - symbol [ height %tmp.187 288 23 29 ]; - %tmp.188 = 0.37; - %tmp.189 = mul %tmp.187 %tmp.188; - lputv %cadenceY.17 %tmp.189; - symbol [ cadenceY %cadenceY.17 288 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 289 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %cadenceRangeY.18 = local; - symbol [ cadenceRangeY %cadenceRangeY.18 289 12 25 ]; - %tmp.190 = lgetv %height.2; - symbol [ height %tmp.190 289 28 34 ]; - %tmp.191 = 0.43; - %tmp.192 = mul %tmp.190 %tmp.191; - lputv %cadenceRangeY.18 %tmp.192; - symbol [ cadenceRangeY %cadenceRangeY.18 289 12 25 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 290 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %chartDurationY.19 = local; - symbol [ chartDurationY %chartDurationY.19 290 12 26 ]; - %tmp.193 = lgetv %height.2; - symbol [ height %tmp.193 290 29 35 ]; - %tmp.194 = 0.85; - %tmp.195 = mul %tmp.193 %tmp.194; - lputv %chartDurationY.19 %tmp.195; - symbol [ chartDurationY %chartDurationY.19 290 12 26 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 292 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_8_295_4_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_12_292_51_begin: - %tmp.196 = lgetv %info.3; - symbol [ info %tmp.196 292 12 16 ]; - %tmp.197 = null; - %tmp.198 = ne %tmp.196 %tmp.197; - bf %tmp.198 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_8_295_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_28_292_51_true: - %tmp.199 = lgetv %info.3; - symbol [ info %tmp.199 292 28 32 ]; - %tmp.200 = as %tmp.199 { (!Null) }; - symbol [ currentCadence %tmp.201 292 33 47 ]; - %tmp.201 = getv %tmp.200 :currentCadence; - %tmp.202 = null; - %tmp.203 = ne %tmp.201 %tmp.202; - push %tmp.203; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_28_292_51_end: - %tmp.204 = phi [%tmp.198 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_12_292_51_begin] [%tmp.203 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_28_292_51_true] [%tmp.204 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_28_292_51_end]; - bf %tmp.204 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_8_295_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_8_295_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_57_295_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 293 8 ] - %tmp.205 = lgetv %dc; - symbol [ dc %tmp.205 293 8 10 ]; - symbol [ setColor %tmp.206 293 11 19 ]; - %tmp.206 = getv function %tmp.205 :setColor; - %tmp.207 = self; - symbol [ getCadenceZoneColor %tmp.208 293 20 39 ]; - %tmp.208 = getv function %tmp.207 :getCadenceZoneColor; - %tmp.209 = lgetv %info.3; - symbol [ info %tmp.209 293 40 44 ]; - %tmp.210 = as %tmp.209 { (!Null) }; - symbol [ currentCadence %tmp.211 293 45 59 ]; - %tmp.211 = getv %tmp.210 :currentCadence; - %tmp.212 = lgetv %idealMinCadence.15; - symbol [ idealMinCadence %tmp.212 293 61 76 ]; - %tmp.213 = lgetv %idealMaxCadence.16; - symbol [ idealMaxCadence %tmp.213 293 78 93 ]; - %tmp.214 = invoke %tmp.207 %tmp.208(%tmp.211, %tmp.212, %tmp.213); - symbol [ Graphics %tmp.215 293 96 104 ]; - %tmp.215 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.216 293 105 122 ]; - %tmp.216 = getv %tmp.215 :COLOR_TRANSPARENT; - invoke %tmp.205 %tmp.206(%tmp.214, %tmp.216); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 294 8 ] - %tmp.217 = lgetv %dc; - symbol [ dc %tmp.217 294 8 10 ]; - symbol [ drawText %tmp.218 294 11 19 ]; - %tmp.218 = getv function %tmp.217 :drawText; - %tmp.219 = lgetv %width.1; - symbol [ width %tmp.219 294 20 25 ]; - %tmp.220 = 2; - %tmp.221 = div %tmp.219 %tmp.220; - %tmp.222 = lgetv %cadenceY.17; - symbol [ cadenceY %tmp.222 294 31 39 ]; - symbol [ Graphics %tmp.223 294 41 49 ]; - %tmp.223 = getm $.Toybox.Graphics; - symbol [ FONT_XTINY %tmp.224 294 50 60 ]; - %tmp.224 = getv %tmp.223 :FONT_XTINY; - %tmp.225 = lgetv %info.3; - symbol [ info %tmp.225 294 62 66 ]; - %tmp.226 = as %tmp.225 { (!Null) }; - symbol [ currentCadence %tmp.227 294 67 81 ]; - %tmp.227 = getv %tmp.226 :currentCadence; - symbol [ toString %tmp.228 294 82 90 ]; - %tmp.228 = getv function %tmp.227 :toString; - %tmp.229 = invoke %tmp.227 %tmp.228(); - %tmp.230 = " spm"; - %tmp.231 = add %tmp.229 %tmp.230; - symbol [ Graphics %tmp.232 294 103 111 ]; - %tmp.232 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.233 294 112 131 ]; - %tmp.233 = getv %tmp.232 :TEXT_JUSTIFY_CENTER; - invoke %tmp.217 %tmp.218(%tmp.221, %tmp.222, %tmp.224, %tmp.231, %tmp.233); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_57_295_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_8_295_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_292_8_295_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 298 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %minZone.20 = local; - symbol [ minZone %minZone.20 298 12 19 ]; - %tmp.234 = lgetv %app.4; - symbol [ app %tmp.234 298 22 25 ]; - symbol [ getMinCadence %tmp.235 298 26 39 ]; - %tmp.235 = getv function %tmp.234 :getMinCadence; - %tmp.236 = invoke %tmp.234 %tmp.235(); - lputv %minZone.20 %tmp.236; - symbol [ minZone %minZone.20 298 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 299 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %maxZone.21 = local; - symbol [ maxZone %maxZone.21 299 12 19 ]; - %tmp.237 = lgetv %app.4; - symbol [ app %tmp.237 299 22 25 ]; - symbol [ getMaxCadence %tmp.238 299 26 39 ]; - %tmp.238 = getv function %tmp.237 :getMaxCadence; - %tmp.239 = invoke %tmp.237 %tmp.238(); - lputv %maxZone.21 %tmp.239; - symbol [ maxZone %maxZone.21 299 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 300 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %zoneText.22 = local; - symbol [ zoneText %zoneText.22 300 12 20 ]; - %tmp.240 = "Target: "; - %tmp.241 = lgetv %minZone.20; - symbol [ minZone %tmp.241 300 36 43 ]; - symbol [ toString %tmp.242 300 44 52 ]; - %tmp.242 = getv function %tmp.241 :toString; - %tmp.243 = invoke %tmp.241 %tmp.242(); - %tmp.244 = add %tmp.240 %tmp.243; - %tmp.245 = "-"; - %tmp.246 = add %tmp.244 %tmp.245; - %tmp.247 = lgetv %maxZone.21; - symbol [ maxZone %tmp.247 300 63 70 ]; - symbol [ toString %tmp.248 300 71 79 ]; - %tmp.248 = getv function %tmp.247 :toString; - %tmp.249 = invoke %tmp.247 %tmp.248(); - %tmp.250 = add %tmp.246 %tmp.249; - %tmp.251 = " spm"; - %tmp.252 = add %tmp.250 %tmp.251; - lputv %zoneText.22 %tmp.252; - symbol [ zoneText %zoneText.22 300 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 302 8 ] - %tmp.253 = lgetv %dc; - symbol [ dc %tmp.253 302 8 10 ]; - symbol [ setColor %tmp.254 302 11 19 ]; - %tmp.254 = getv function %tmp.253 :setColor; - %tmp.255 = 0x969696; - symbol [ Graphics %tmp.256 302 30 38 ]; - %tmp.256 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.257 302 39 56 ]; - %tmp.257 = getv %tmp.256 :COLOR_TRANSPARENT; - invoke %tmp.253 %tmp.254(%tmp.255, %tmp.257); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 303 8 ] - %tmp.258 = lgetv %dc; - symbol [ dc %tmp.258 303 8 10 ]; - symbol [ drawText %tmp.259 303 11 19 ]; - %tmp.259 = getv function %tmp.258 :drawText; - %tmp.260 = lgetv %width.1; - symbol [ width %tmp.260 303 20 25 ]; - %tmp.261 = 2; - %tmp.262 = div %tmp.260 %tmp.261; - %tmp.263 = lgetv %cadenceRangeY.18; - symbol [ cadenceRangeY %tmp.263 303 31 44 ]; - symbol [ Graphics %tmp.264 303 46 54 ]; - %tmp.264 = getm $.Toybox.Graphics; - symbol [ FONT_XTINY %tmp.265 303 55 65 ]; - %tmp.265 = getv %tmp.264 :FONT_XTINY; - %tmp.266 = lgetv %zoneText.22; - symbol [ zoneText %tmp.266 303 67 75 ]; - symbol [ Graphics %tmp.267 303 77 85 ]; - %tmp.267 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.268 303 86 105 ]; - %tmp.268 = getv %tmp.267 :TEXT_JUSTIFY_CENTER; - invoke %tmp.258 %tmp.259(%tmp.262, %tmp.263, %tmp.265, %tmp.266, %tmp.268); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 305 8 ] - %tmp.269 = self; - symbol [ drawChart %tmp.270 305 8 17 ]; - %tmp.270 = getv function %tmp.269 :drawChart; - %tmp.271 = lgetv %dc; - symbol [ dc %tmp.271 305 18 20 ]; - invoke %tmp.269 %tmp.270(%tmp.271); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 306 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop" ] - %string.23 = local; - symbol [ string %string.23 306 8 14 ]; - %tmp.272 = lgetv %app.4; - symbol [ app %tmp.272 306 18 21 ]; - symbol [ getChartDuration %tmp.273 306 22 38 ]; - %tmp.273 = getv function %tmp.272 :getChartDuration; - %tmp.274 = invoke %tmp.272 %tmp.273(); - lputv %string.23 %tmp.274; - symbol [ string %string.23 306 8 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 308 4 ] - %tmp.275 = lgetv %dc; - symbol [ dc %tmp.275 308 4 6 ]; - symbol [ setColor %tmp.276 308 7 15 ]; - %tmp.276 = getv function %tmp.275 :setColor; - %tmp.277 = 0x969696; - symbol [ Graphics %tmp.278 308 26 34 ]; - %tmp.278 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.279 308 35 52 ]; - %tmp.279 = getv %tmp.278 :COLOR_TRANSPARENT; - invoke %tmp.275 %tmp.276(%tmp.277, %tmp.279); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 309 4 ] - %tmp.280 = lgetv %dc; - symbol [ dc %tmp.280 309 4 6 ]; - symbol [ drawText %tmp.281 309 7 15 ]; - %tmp.281 = getv function %tmp.280 :drawText; - %tmp.282 = lgetv %width.1; - symbol [ width %tmp.282 309 16 21 ]; - %tmp.283 = 2; - %tmp.284 = div %tmp.282 %tmp.283; - %tmp.285 = lgetv %chartDurationY.19; - symbol [ chartDurationY %tmp.285 309 27 41 ]; - symbol [ Graphics %tmp.286 309 43 51 ]; - %tmp.286 = getm $.Toybox.Graphics; - symbol [ FONT_XTINY %tmp.287 309 52 62 ]; - %tmp.287 = getv %tmp.286 :FONT_XTINY; - %tmp.288 = "Last "; - %tmp.289 = lgetv %string.23; - symbol [ string %tmp.289 309 74 80 ]; - %tmp.290 = add %tmp.288 %tmp.289; - symbol [ Graphics %tmp.291 309 82 90 ]; - %tmp.291 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.292 309 91 110 ]; - %tmp.292 = getv %tmp.291 :TEXT_JUSTIFY_CENTER; - invoke %tmp.280 %tmp.281(%tmp.284, %tmp.285, %tmp.287, %tmp.290, %tmp.292); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_238_44_311_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 323; @symbol_functiondef = [drawChart,323,13,22]; @symbol_param<0> = [dc,323,23,25]; @symbol_param<0>_type<0> = [Dc,323,29,31]; ] - function drawChart(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 324 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %width.1 = local; - symbol [ width %width.1 324 8 13 ]; - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 324 16 18 ]; - symbol [ getWidth %tmp.2 324 19 27 ]; - %tmp.2 = getv function %tmp.1 :getWidth; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %width.1 %tmp.3; - symbol [ width %width.1 324 8 13 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 325 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %height.2 = local; - symbol [ height %height.2 325 8 14 ]; - %tmp.4 = lgetv %dc; - symbol [ dc %tmp.4 325 17 19 ]; - symbol [ getHeight %tmp.5 325 20 29 ]; - %tmp.5 = getv function %tmp.4 :getHeight; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %height.2 %tmp.6; - symbol [ height %height.2 325 8 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 327 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %margin.3 = local; - symbol [ margin %margin.3 327 8 14 ]; - %tmp.7 = lgetv %width.1; - symbol [ width %tmp.7 327 17 22 ]; - %tmp.8 = 0.1; - %tmp.9 = mul %tmp.7 %tmp.8; - lputv %margin.3 %tmp.9; - symbol [ margin %margin.3 327 8 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 328 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %marginLeftRightMultiplier.4 = local; - symbol [ marginLeftRightMultiplier %marginLeftRightMultiplier.4 328 8 33 ]; - %tmp.10 = 1.38; - lputv %marginLeftRightMultiplier.4 %tmp.10; - symbol [ marginLeftRightMultiplier %marginLeftRightMultiplier.4 328 8 33 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 329 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %marginBottomMultiplier.5 = local; - symbol [ marginBottomMultiplier %marginBottomMultiplier.5 329 8 30 ]; - %tmp.11 = 1.6; - lputv %marginBottomMultiplier.5 %tmp.11; - symbol [ marginBottomMultiplier %marginBottomMultiplier.5 329 8 30 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 331 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %chartLeft.6 = local; - symbol [ chartLeft %chartLeft.6 331 8 17 ]; - %tmp.12 = lgetv %margin.3; - symbol [ margin %tmp.12 331 20 26 ]; - %tmp.13 = lgetv %marginLeftRightMultiplier.4; - symbol [ marginLeftRightMultiplier %tmp.13 331 29 54 ]; - %tmp.14 = mul %tmp.12 %tmp.13; - lputv %chartLeft.6 %tmp.14; - symbol [ chartLeft %chartLeft.6 331 8 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 332 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %chartRight.7 = local; - symbol [ chartRight %chartRight.7 332 8 18 ]; - %tmp.15 = lgetv %width.1; - symbol [ width %tmp.15 332 21 26 ]; - %tmp.16 = lgetv %chartLeft.6; - symbol [ chartLeft %tmp.16 332 29 38 ]; - %tmp.17 = sub %tmp.15 %tmp.16; - lputv %chartRight.7 %tmp.17; - symbol [ chartRight %chartRight.7 332 8 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 333 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %chartTop.8 = local; - symbol [ chartTop %chartTop.8 333 8 16 ]; - %tmp.18 = lgetv %height.2; - symbol [ height %tmp.18 333 19 25 ]; - %tmp.19 = 0.5; - %tmp.20 = mul %tmp.18 %tmp.19; - lputv %chartTop.8 %tmp.20; - symbol [ chartTop %chartTop.8 333 8 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 334 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %chartBottom.9 = local; - symbol [ chartBottom %chartBottom.9 334 8 19 ]; - %tmp.21 = lgetv %height.2; - symbol [ height %tmp.21 334 22 28 ]; - %tmp.22 = lgetv %margin.3; - symbol [ margin %tmp.22 334 31 37 ]; - %tmp.23 = lgetv %marginBottomMultiplier.5; - symbol [ marginBottomMultiplier %tmp.23 334 40 62 ]; - %tmp.24 = mul %tmp.22 %tmp.23; - %tmp.25 = sub %tmp.21 %tmp.24; - lputv %chartBottom.9 %tmp.25; - symbol [ chartBottom %chartBottom.9 334 8 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 335 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %chartWidth.10 = local; - symbol [ chartWidth %chartWidth.10 335 8 18 ]; - %tmp.26 = lgetv %chartRight.7; - symbol [ chartRight %tmp.26 335 21 31 ]; - %tmp.27 = lgetv %chartLeft.6; - symbol [ chartLeft %tmp.27 335 34 43 ]; - %tmp.28 = sub %tmp.26 %tmp.27; - lputv %chartWidth.10 %tmp.28; - symbol [ chartWidth %chartWidth.10 335 8 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 336 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %chartHeight.11 = local; - symbol [ chartHeight %chartHeight.11 336 8 19 ]; - %tmp.29 = lgetv %chartBottom.9; - symbol [ chartBottom %tmp.29 336 22 33 ]; - %tmp.30 = lgetv %chartTop.8; - symbol [ chartTop %tmp.30 336 36 44 ]; - %tmp.31 = sub %tmp.29 %tmp.30; - lputv %chartHeight.11 %tmp.31; - symbol [ chartHeight %chartHeight.11 336 8 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 337 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %quarterChartHeight.12 = local; - symbol [ quarterChartHeight %quarterChartHeight.12 337 8 26 ]; - %tmp.32 = lgetv %chartHeight.11; - symbol [ chartHeight %tmp.32 337 29 40 ]; - %tmp.33 = 4; - %tmp.34 = div %tmp.32 %tmp.33; - lputv %quarterChartHeight.12 %tmp.34; - symbol [ quarterChartHeight %quarterChartHeight.12 337 8 26 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 339 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %barZoneLeft.13 = local; - symbol [ barZoneLeft %barZoneLeft.13 339 8 19 ]; - %tmp.35 = lgetv %chartLeft.6; - symbol [ chartLeft %tmp.35 339 22 31 ]; - %tmp.36 = 1; - %tmp.37 = add %tmp.35 %tmp.36; - lputv %barZoneLeft.13 %tmp.37; - symbol [ barZoneLeft %barZoneLeft.13 339 8 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 340 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %barZoneRight.14 = local; - symbol [ barZoneRight %barZoneRight.14 340 8 20 ]; - %tmp.38 = lgetv %chartRight.7; - symbol [ chartRight %tmp.38 340 23 33 ]; - %tmp.39 = 1; - %tmp.40 = sub %tmp.38 %tmp.39; - lputv %barZoneRight.14 %tmp.40; - symbol [ barZoneRight %barZoneRight.14 340 8 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 341 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %barZoneWidth.15 = local; - symbol [ barZoneWidth %barZoneWidth.15 341 8 20 ]; - %tmp.41 = lgetv %barZoneRight.14; - symbol [ barZoneRight %tmp.41 341 23 35 ]; - %tmp.42 = lgetv %barZoneLeft.13; - symbol [ barZoneLeft %tmp.42 341 38 49 ]; - %tmp.43 = sub %tmp.41 %tmp.42; - lputv %barZoneWidth.15 %tmp.43; - symbol [ barZoneWidth %barZoneWidth.15 341 8 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 342 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %barZoneBottom.16 = local; - symbol [ barZoneBottom %barZoneBottom.16 342 8 21 ]; - %tmp.44 = lgetv %chartBottom.9; - symbol [ chartBottom %tmp.44 342 24 35 ]; - %tmp.45 = 1; - %tmp.46 = sub %tmp.44 %tmp.45; - lputv %barZoneBottom.16 %tmp.46; - symbol [ barZoneBottom %barZoneBottom.16 342 8 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 344 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %nLine.17 = local; - symbol [ nLine %nLine.17 344 8 13 ]; - %tmp.47 = 3; - lputv %nLine.17 %tmp.47; - symbol [ nLine %nLine.17 344 8 13 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 345 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %lineLength.18 = local; - symbol [ lineLength %lineLength.18 345 8 18 ]; - %tmp.48 = 6; - lputv %lineLength.18 %tmp.48; - symbol [ lineLength %lineLength.18 345 8 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 346 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %line1x1.19 = local; - symbol [ line1x1 %line1x1.19 346 8 15 ]; - %tmp.49 = lgetv %chartLeft.6; - symbol [ chartLeft %tmp.49 346 18 27 ]; - %tmp.50 = lgetv %lineLength.18; - symbol [ lineLength %tmp.50 346 30 40 ]; - %tmp.51 = sub %tmp.49 %tmp.50; - lputv %line1x1.19 %tmp.51; - symbol [ line1x1 %line1x1.19 346 8 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 347 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %line1x2.20 = local; - symbol [ line1x2 %line1x2.20 347 8 15 ]; - %tmp.52 = lgetv %chartLeft.6; - symbol [ chartLeft %tmp.52 347 18 27 ]; - lputv %line1x2.20 %tmp.52; - symbol [ line1x2 %line1x2.20 347 8 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 348 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %line2x1.21 = local; - symbol [ line2x1 %line2x1.21 348 8 15 ]; - %tmp.53 = lgetv %chartRight.7; - symbol [ chartRight %tmp.53 348 18 28 ]; - %tmp.54 = 1; - %tmp.55 = sub %tmp.53 %tmp.54; - lputv %line2x1.21 %tmp.55; - symbol [ line2x1 %line2x1.21 348 8 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 349 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %line2x2.22 = local; - symbol [ line2x2 %line2x2.22 349 8 15 ]; - %tmp.56 = lgetv %chartRight.7; - symbol [ chartRight %tmp.56 349 18 28 ]; - %tmp.57 = lgetv %lineLength.18; - symbol [ lineLength %tmp.57 349 31 41 ]; - %tmp.58 = add %tmp.56 %tmp.57; - lputv %line2x2.22 %tmp.58; - symbol [ line2x2 %line2x2.22 349 8 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 350 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %lineY.23 = local; - symbol [ lineY %lineY.23 350 8 13 ]; - %tmp.59 = lgetv %chartTop.8; - symbol [ chartTop %tmp.59 350 16 24 ]; - %tmp.60 = lgetv %quarterChartHeight.12; - symbol [ quarterChartHeight %tmp.60 350 27 45 ]; - %tmp.61 = add %tmp.59 %tmp.60; - lputv %lineY.23 %tmp.61; - symbol [ lineY %lineY.23 350 8 13 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 352 4 ] - %tmp.62 = lgetv %dc; - symbol [ dc %tmp.62 352 4 6 ]; - symbol [ setColor %tmp.63 352 7 15 ]; - %tmp.63 = getv function %tmp.62 :setColor; - %tmp.64 = 0x969696; - symbol [ Graphics %tmp.65 352 26 34 ]; - %tmp.65 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.66 352 35 52 ]; - %tmp.66 = getv %tmp.65 :COLOR_TRANSPARENT; - invoke %tmp.62 %tmp.63(%tmp.64, %tmp.66); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 353 4 ] - %tmp.67 = lgetv %dc; - symbol [ dc %tmp.67 353 4 6 ]; - symbol [ drawRectangle %tmp.68 353 7 20 ]; - %tmp.68 = getv function %tmp.67 :drawRectangle; - %tmp.69 = lgetv %chartLeft.6; - symbol [ chartLeft %tmp.69 353 21 30 ]; - %tmp.70 = lgetv %chartTop.8; - symbol [ chartTop %tmp.70 353 32 40 ]; - %tmp.71 = lgetv %chartWidth.10; - symbol [ chartWidth %tmp.71 353 42 52 ]; - %tmp.72 = lgetv %chartHeight.11; - symbol [ chartHeight %tmp.72 353 54 65 ]; - invoke %tmp.67 %tmp.68(%tmp.69, %tmp.70, %tmp.71, %tmp.72); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 355 4 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_end" ] - %i.24 = local; - symbol [ i %i.24 355 13 14 ]; - %tmp.73 = 0; - lputv %i.24 %tmp.73; - symbol [ i %i.24 355 13 14 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_test: - %tmp.74 = lgetv %i.24; - symbol [ i %tmp.74 355 20 21 ]; - %tmp.75 = lgetv %nLine.17; - symbol [ nLine %tmp.75 355 24 29 ]; - %tmp.76 = lt %tmp.74 %tmp.75; - bf %tmp.76 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_36_359_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 356 8 ] - %tmp.77 = lgetv %dc; - symbol [ dc %tmp.77 356 8 10 ]; - symbol [ drawLine %tmp.78 356 11 19 ]; - %tmp.78 = getv function %tmp.77 :drawLine; - %tmp.79 = lgetv %line1x1.19; - symbol [ line1x1 %tmp.79 356 20 27 ]; - %tmp.80 = lgetv %lineY.23; - symbol [ lineY %tmp.80 356 29 34 ]; - %tmp.81 = lgetv %line1x2.20; - symbol [ line1x2 %tmp.81 356 36 43 ]; - %tmp.82 = lgetv %lineY.23; - symbol [ lineY %tmp.82 356 45 50 ]; - invoke %tmp.77 %tmp.78(%tmp.79, %tmp.80, %tmp.81, %tmp.82); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 357 8 ] - %tmp.83 = lgetv %dc; - symbol [ dc %tmp.83 357 8 10 ]; - symbol [ drawLine %tmp.84 357 11 19 ]; - %tmp.84 = getv function %tmp.83 :drawLine; - %tmp.85 = lgetv %line2x1.21; - symbol [ line2x1 %tmp.85 357 20 27 ]; - %tmp.86 = lgetv %lineY.23; - symbol [ lineY %tmp.86 357 29 34 ]; - %tmp.87 = lgetv %line2x2.22; - symbol [ line2x2 %tmp.87 357 36 43 ]; - %tmp.88 = lgetv %lineY.23; - symbol [ lineY %tmp.88 357 45 50 ]; - invoke %tmp.83 %tmp.84(%tmp.85, %tmp.86, %tmp.87, %tmp.88); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 358 8 ] - %tmp.89 = lgetv %lineY.23; - symbol [ lineY %tmp.89 358 8 13 ]; - %tmp.90 = lgetv %quarterChartHeight.12; - symbol [ quarterChartHeight %tmp.90 358 17 35 ]; - %tmp.91 = add %tmp.89 %tmp.90; - lputv %lineY.23 %tmp.91; - symbol [ lineY %lineY.23 358 8 13 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_36_359_4_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 355 ] - %tmp.94 = lgetv %i.24; - symbol [ i %tmp.94 355 31 32 ]; - %tmp.95 = add %tmp.94 1; - lputv %i.24 %tmp.95; - symbol [ i %i.24 355 31 32 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_355_4_359_4_for_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 361 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %app.25 = local; - symbol [ app %app.25 361 8 11 ]; - %tmp.96 = self; - symbol [ getApp %tmp.97 361 14 20 ]; - %tmp.97 = getv function %tmp.96 :getApp; - %tmp.98 = invoke %tmp.96 %tmp.97(); - lputv %app.25 %tmp.98; - symbol [ app %app.25 361 8 11 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 362 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %idealMinCadence.26 = local; - symbol [ idealMinCadence %idealMinCadence.26 362 8 23 ]; - %tmp.99 = lgetv %app.25; - symbol [ app %tmp.99 362 26 29 ]; - symbol [ getMinCadence %tmp.100 362 30 43 ]; - %tmp.100 = getv function %tmp.99 :getMinCadence; - %tmp.101 = invoke %tmp.99 %tmp.100(); - lputv %idealMinCadence.26 %tmp.101; - symbol [ idealMinCadence %idealMinCadence.26 362 8 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 363 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %idealMaxCadence.27 = local; - symbol [ idealMaxCadence %idealMaxCadence.27 363 8 23 ]; - %tmp.102 = lgetv %app.25; - symbol [ app %tmp.102 363 26 29 ]; - symbol [ getMaxCadence %tmp.103 363 30 43 ]; - %tmp.103 = getv function %tmp.102 :getMaxCadence; - %tmp.104 = invoke %tmp.102 %tmp.103(); - lputv %idealMaxCadence.27 %tmp.104; - symbol [ idealMaxCadence %idealMaxCadence.27 363 8 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 364 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %cadenceHistory.28 = local; - symbol [ cadenceHistory %cadenceHistory.28 364 8 22 ]; - %tmp.105 = lgetv %app.25; - symbol [ app %tmp.105 364 25 28 ]; - symbol [ getCadenceHistory %tmp.106 364 29 46 ]; - %tmp.106 = getv function %tmp.105 :getCadenceHistory; - %tmp.107 = invoke %tmp.105 %tmp.106(); - lputv %cadenceHistory.28 %tmp.107; - symbol [ cadenceHistory %cadenceHistory.28 364 8 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 366 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %cadenceIndex.29 = local; - symbol [ cadenceIndex %cadenceIndex.29 366 8 20 ]; - %tmp.108 = lgetv %app.25; - symbol [ app %tmp.108 366 23 26 ]; - symbol [ getCadenceIndex %tmp.109 366 27 42 ]; - %tmp.109 = getv function %tmp.108 :getCadenceIndex; - %tmp.110 = invoke %tmp.108 %tmp.109(); - lputv %cadenceIndex.29 %tmp.110; - symbol [ cadenceIndex %cadenceIndex.29 366 8 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 367 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %cadenceCount.30 = local; - symbol [ cadenceCount %cadenceCount.30 367 8 20 ]; - %tmp.111 = lgetv %app.25; - symbol [ app %tmp.111 367 23 26 ]; - symbol [ getCadenceCount %tmp.112 367 27 42 ]; - %tmp.112 = getv function %tmp.111 :getCadenceCount; - %tmp.113 = invoke %tmp.111 %tmp.112(); - lputv %cadenceCount.30 %tmp.113; - symbol [ cadenceCount %cadenceCount.30 367 8 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 369 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_369_4_371_4_if_stmt: - %tmp.114 = lgetv %cadenceCount.30; - symbol [ cadenceCount %tmp.114 369 8 20 ]; - %tmp.115 = 0; - %tmp.116 = eq %tmp.114 %tmp.115; - bf %tmp.116 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_369_4_371_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_369_4_371_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_369_27_371_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 370 8 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_369_27_371_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_369_4_371_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_369_4_371_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 374 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %selectedBars.31 = local; - symbol [ selectedBars %selectedBars.31 374 8 20 ]; - %tmp.117 = lgetv %app.25; - symbol [ app %tmp.117 374 23 26 ]; - symbol [ getChartBarCount %tmp.118 374 27 43 ]; - %tmp.118 = getv function %tmp.117 :getChartBarCount; - %tmp.119 = invoke %tmp.117 %tmp.118(); - lputv %selectedBars.31 %tmp.119; - symbol [ selectedBars %selectedBars.31 374 8 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 375 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %numBars.32 = local; - symbol [ numBars %numBars.32 375 8 15 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_375_18_375_65_begin: - %tmp.120 = lgetv %cadenceCount.30; - symbol [ cadenceCount %tmp.120 375 19 31 ]; - %tmp.121 = lgetv %selectedBars.31; - symbol [ selectedBars %tmp.121 375 34 46 ]; - %tmp.122 = lt %tmp.120 %tmp.121; - bf %tmp.122 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_375_18_375_65_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_375_18_375_65_true: - %tmp.123 = lgetv %cadenceCount.30; - symbol [ cadenceCount %tmp.123 375 50 62 ]; - push %tmp.123; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_375_18_375_65_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_375_18_375_65_else_false: - %tmp.124 = lgetv %selectedBars.31; - symbol [ selectedBars %tmp.124 375 65 77 ]; - push %tmp.124; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_375_18_375_65_end: - %tmp.125 = phi [%tmp.122 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_375_18_375_65_begin] [%tmp.123 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_375_18_375_65_true] [%tmp.124 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_375_18_375_65_else_false] [%tmp.125 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_375_18_375_65_end]; - lputv %numBars.32 %tmp.125; - symbol [ numBars %numBars.32 375 8 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 377 0 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_377_0_377_28_if_stmt: - %tmp.126 = lgetv %numBars.32; - symbol [ numBars %tmp.126 377 4 11 ]; - %tmp.127 = 0; - %tmp.128 = lte %tmp.126 %tmp.127; - bf %tmp.128 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_377_0_377_28_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_377_0_377_28_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_377_18_377_28_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 377 20 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_377_18_377_28_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_377_0_377_28_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_377_0_377_28_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 379 0 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %barWidth.33 = local; - symbol [ barWidth %barWidth.33 379 4 12 ]; - %tmp.129 = lgetv %barZoneWidth.15; - symbol [ barZoneWidth %tmp.129 379 16 28 ]; - %tmp.130 = lgetv %numBars.32; - symbol [ numBars %tmp.130 379 31 38 ]; - %tmp.131 = div %tmp.129 %tmp.130; - symbol [ toNumber %tmp.132 379 40 48 ]; - %tmp.132 = getv function %tmp.131 :toNumber; - %tmp.133 = invoke %tmp.131 %tmp.132(); - lputv %barWidth.33 %tmp.133; - symbol [ barWidth %barWidth.33 379 4 12 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 380 0 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_380_0_382_0_if_stmt: - %tmp.134 = lgetv %barWidth.33; - symbol [ barWidth %tmp.134 380 4 12 ]; - %tmp.135 = 2; - %tmp.136 = lt %tmp.134 %tmp.135; - bf %tmp.136 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_380_0_382_0_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_380_0_382_0_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_380_18_382_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 381 4 ] - %tmp.137 = 2; - lputv %barWidth.33 %tmp.137; - symbol [ barWidth %barWidth.33 381 4 12 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_380_18_382_0_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_380_0_382_0_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_380_0_382_0_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 384 0 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop" ] - %startIndex.34 = local; - symbol [ startIndex %startIndex.34 384 4 14 ]; - %tmp.138 = lgetv %cadenceIndex.29; - symbol [ cadenceIndex %tmp.138 384 18 30 ]; - %tmp.139 = lgetv %numBars.32; - symbol [ numBars %tmp.139 384 33 40 ]; - %tmp.140 = sub %tmp.138 %tmp.139; - symbol [ MAX_BARS %tmp.142 384 43 51 ]; - %tmp.142 = getv ? :MAX_BARS; - %tmp.143 = add %tmp.140 %tmp.142; - symbol [ MAX_BARS %tmp.145 384 55 63 ]; - %tmp.145 = getv ? :MAX_BARS; - %tmp.146 = mod %tmp.143 %tmp.145; - lputv %startIndex.34 %tmp.146; - symbol [ startIndex %startIndex.34 384 4 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 386 0 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_end" ] - %i.35 = local; - symbol [ i %i.35 386 9 10 ]; - %tmp.147 = 0; - lputv %i.35 %tmp.147; - symbol [ i %i.35 386 9 10 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_test: - %tmp.148 = lgetv %i.35; - symbol [ i %tmp.148 386 16 17 ]; - %tmp.149 = lgetv %numBars.32; - symbol [ numBars %tmp.149 386 20 27 ]; - %tmp.150 = lt %tmp.148 %tmp.149; - bf %tmp.150 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 387 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_stop" ] - %index.36 = local; - symbol [ index %index.36 387 8 13 ]; - %tmp.151 = lgetv %startIndex.34; - symbol [ startIndex %tmp.151 387 17 27 ]; - %tmp.152 = lgetv %i.35; - symbol [ i %tmp.152 387 30 31 ]; - %tmp.153 = add %tmp.151 %tmp.152; - symbol [ MAX_BARS %tmp.155 387 35 43 ]; - %tmp.155 = getv ? :MAX_BARS; - %tmp.156 = mod %tmp.153 %tmp.155; - lputv %index.36 %tmp.156; - symbol [ index %index.36 387 8 13 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 388 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_stop" ] - %cadence.37 = local; - symbol [ cadence %cadence.37 388 8 15 ]; - %tmp.157 = lgetv %cadenceHistory.28; - symbol [ cadenceHistory %tmp.157 388 18 32 ]; - %tmp.158 = lgetv %index.36; - symbol [ index %tmp.158 388 33 38 ]; - %tmp.159 = agetv %tmp.157 %tmp.158; - lputv %cadence.37 %tmp.159; - symbol [ cadence %cadence.37 388 8 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 390 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_390_4_392_4_if_stmt: - %tmp.160 = lgetv %cadence.37; - symbol [ cadence %tmp.160 390 8 15 ]; - %tmp.161 = null; - %tmp.162 = eq %tmp.160 %tmp.161; - bf %tmp.162 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_390_4_392_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_390_4_392_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_390_25_392_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 391 8 ] - %tmp.163 = 0; - lputv %cadence.37 %tmp.163; - symbol [ cadence %cadence.37 391 8 15 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_390_25_392_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_390_4_392_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_390_4_392_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 394 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_stop" ] - %barHeight.38 = local; - symbol [ barHeight %barHeight.38 394 8 17 ]; - %tmp.164 = lgetv %cadence.37; - symbol [ cadence %tmp.164 394 22 29 ]; - symbol [ MAX_CADENCE_DISPLAY %tmp.166 394 32 51 ]; - %tmp.166 = getv ? :MAX_CADENCE_DISPLAY; - %tmp.167 = div %tmp.164 %tmp.166; - %tmp.168 = lgetv %chartHeight.11; - symbol [ chartHeight %tmp.168 394 55 66 ]; - %tmp.169 = mul %tmp.167 %tmp.168; - symbol [ toNumber %tmp.170 394 68 76 ]; - %tmp.170 = getv function %tmp.169 :toNumber; - %tmp.171 = invoke %tmp.169 %tmp.170(); - lputv %barHeight.38 %tmp.171; - symbol [ barHeight %barHeight.38 394 8 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 395 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_4_397_0_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_8_395_35_begin: - %tmp.172 = lgetv %barHeight.38; - symbol [ barHeight %tmp.172 395 8 17 ]; - %tmp.173 = 1; - %tmp.174 = lt %tmp.172 %tmp.173; - bf %tmp.174 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_4_397_0_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_25_395_35_true: - %tmp.175 = lgetv %cadence.37; - symbol [ cadence %tmp.175 395 25 32 ]; - %tmp.176 = 0; - %tmp.177 = gt %tmp.175 %tmp.176; - push %tmp.177; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_25_395_35_end: - %tmp.178 = phi [%tmp.174 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_8_395_35_begin] [%tmp.177 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_25_395_35_true] [%tmp.178 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_25_395_35_end]; - bf %tmp.178 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_4_397_0_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_4_397_0_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_38_397_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 396 4 ] - %tmp.179 = 1; - lputv %barHeight.38 %tmp.179; - symbol [ barHeight %barHeight.38 396 4 13 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_38_397_0_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_4_397_0_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_395_4_397_0_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 399 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_stop" ] - %x.39 = local; - symbol [ x %x.39 399 8 9 ]; - %tmp.180 = lgetv %barZoneLeft.13; - symbol [ barZoneLeft %tmp.180 399 12 23 ]; - %tmp.181 = lgetv %i.35; - symbol [ i %tmp.181 399 26 27 ]; - %tmp.182 = lgetv %barWidth.33; - symbol [ barWidth %tmp.182 399 30 38 ]; - %tmp.183 = mul %tmp.181 %tmp.182; - %tmp.184 = add %tmp.180 %tmp.183; - lputv %x.39 %tmp.184; - symbol [ x %x.39 399 8 9 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 400 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_stop" ] - %y.40 = local; - symbol [ y %y.40 400 8 9 ]; - %tmp.185 = lgetv %barZoneBottom.16; - symbol [ barZoneBottom %tmp.185 400 12 25 ]; - %tmp.186 = lgetv %barHeight.38; - symbol [ barHeight %tmp.186 400 28 37 ]; - %tmp.187 = sub %tmp.185 %tmp.186; - lputv %y.40 %tmp.187; - symbol [ y %y.40 400 8 9 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 402 4 ] - %tmp.188 = lgetv %dc; - symbol [ dc %tmp.188 402 4 6 ]; - symbol [ setColor %tmp.189 402 7 15 ]; - %tmp.189 = getv function %tmp.188 :setColor; - %tmp.190 = self; - symbol [ getCadenceZoneColor %tmp.191 402 16 35 ]; - %tmp.191 = getv function %tmp.190 :getCadenceZoneColor; - %tmp.192 = lgetv %cadence.37; - symbol [ cadence %tmp.192 402 36 43 ]; - %tmp.193 = lgetv %idealMinCadence.26; - symbol [ idealMinCadence %tmp.193 402 45 60 ]; - %tmp.194 = lgetv %idealMaxCadence.27; - symbol [ idealMaxCadence %tmp.194 402 62 77 ]; - %tmp.195 = invoke %tmp.190 %tmp.191(%tmp.192, %tmp.193, %tmp.194); - symbol [ Graphics %tmp.196 402 80 88 ]; - %tmp.196 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.197 402 89 106 ]; - %tmp.197 = getv %tmp.196 :COLOR_TRANSPARENT; - invoke %tmp.188 %tmp.189(%tmp.195, %tmp.197); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 403 4 ] - %tmp.198 = lgetv %dc; - symbol [ dc %tmp.198 403 4 6 ]; - symbol [ fillRectangle %tmp.199 403 7 20 ]; - %tmp.199 = getv function %tmp.198 :fillRectangle; - %tmp.200 = lgetv %x.39; - symbol [ x %tmp.200 403 21 22 ]; - %tmp.201 = lgetv %y.40; - symbol [ y %tmp.201 403 24 25 ]; - %tmp.202 = lgetv %barWidth.33; - symbol [ barWidth %tmp.202 403 27 35 ]; - %tmp.203 = 1; - %tmp.204 = sub %tmp.202 %tmp.203; - %tmp.205 = lgetv %barHeight.38; - symbol [ barHeight %tmp.205 403 41 50 ]; - invoke %tmp.198 %tmp.199(%tmp.200, %tmp.201, %tmp.204, %tmp.205); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_34_404_0_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 386 ] - %tmp.208 = lgetv %i.35; - symbol [ i %tmp.208 386 29 30 ]; - %tmp.209 = add %tmp.208 1; - lputv %i.35 %tmp.209; - symbol [ i %i.35 386 29 30 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_386_0_404_0_for_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_323_41_406_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 408; @symbol_functiondef = [getCadenceZoneColor,408,13,32]; @symbol_param<0> = [cadence,408,33,40]; @symbol_param<0>_type<0> = [Number,408,44,50]; @symbol_param<1> = [idealMinCadence,408,52,67]; @symbol_param<1>_type<0> = [Number,408,71,77]; @symbol_param<2> = [idealMaxCadence,408,79,94]; @symbol_param<2>_type<0> = [Number,408,98,104]; @symbol_return<0> = [Number,408,109,115]; ] - function getCadenceZoneColor(cadence as Number, idealMinCadence as Number, idealMaxCadence as Number) as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_408_116_426_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 409 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_408_116_426_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_408_116_426_0_stop" ] - %colorThreshold.1 = local; - symbol [ colorThreshold %colorThreshold.1 409 8 22 ]; - %tmp.1 = 20; - lputv %colorThreshold.1 %tmp.1; - symbol [ colorThreshold %colorThreshold.1 409 8 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 411 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_411_4_423_4_if_stmt: - %tmp.2 = lgetv %cadence; - symbol [ cadence %tmp.2 411 8 15 ]; - %tmp.3 = lgetv %idealMinCadence; - symbol [ idealMinCadence %tmp.3 411 18 33 ]; - %tmp.4 = lt %tmp.2 %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_411_4_423_4_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_411_4_423_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_411_35_417_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 412 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_412_8_416_8_if_stmt: - %tmp.5 = lgetv %cadence; - symbol [ cadence %tmp.5 412 12 19 ]; - %tmp.6 = lgetv %idealMinCadence; - symbol [ idealMinCadence %tmp.6 412 23 38 ]; - %tmp.7 = lgetv %colorThreshold.1; - symbol [ colorThreshold %tmp.7 412 41 55 ]; - %tmp.8 = sub %tmp.6 %tmp.7; - %tmp.9 = gte %tmp.5 %tmp.8; - bf %tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_412_8_416_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_412_8_416_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_412_57_414_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 413 12 ] - symbol [ COLOR_BELOW_NEAR %tmp.11 413 19 35 ]; - %tmp.11 = getv ? :COLOR_BELOW_NEAR; - ret %tmp.11; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_412_57_414_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_412_8_416_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_412_8_416_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_414_15_416_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 415 12 ] - symbol [ COLOR_BELOW_FAR %tmp.13 415 19 34 ]; - %tmp.13 = getv ? :COLOR_BELOW_FAR; - ret %tmp.13; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_414_15_416_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_412_8_416_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_411_35_417_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_411_4_423_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_411_4_423_4_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 417 11 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_417_11_423_4_if_stmt: - %tmp.14 = lgetv %cadence; - symbol [ cadence %tmp.14 417 15 22 ]; - %tmp.15 = lgetv %idealMaxCadence; - symbol [ idealMaxCadence %tmp.15 417 25 40 ]; - %tmp.16 = gt %tmp.14 %tmp.15; - bf %tmp.16 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_417_11_423_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_417_11_423_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_417_42_423_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 418 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_418_8_422_8_if_stmt: - %tmp.17 = lgetv %cadence; - symbol [ cadence %tmp.17 418 12 19 ]; - %tmp.18 = lgetv %idealMaxCadence; - symbol [ idealMaxCadence %tmp.18 418 22 37 ]; - %tmp.19 = lgetv %colorThreshold.1; - symbol [ colorThreshold %tmp.19 418 40 54 ]; - %tmp.20 = add %tmp.18 %tmp.19; - %tmp.21 = lt %tmp.17 %tmp.20; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_418_8_422_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_418_8_422_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_418_56_420_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 419 12 ] - symbol [ COLOR_ABOVE_NEAR %tmp.23 419 19 35 ]; - %tmp.23 = getv ? :COLOR_ABOVE_NEAR; - ret %tmp.23; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_418_56_420_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_418_8_422_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_418_8_422_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_420_15_422_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 421 12 ] - symbol [ COLOR_ABOVE_FAR %tmp.25 421 19 34 ]; - %tmp.25 = getv ? :COLOR_ABOVE_FAR; - ret %tmp.25; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_420_15_422_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_418_8_422_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_417_42_423_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_417_11_423_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_417_11_423_4_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_411_4_423_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc" 425 4 ] - symbol [ COLOR_IN_ZONE %tmp.27 425 11 24 ]; - %tmp.27 = getv ? :COLOR_IN_ZONE; - ret %tmp.27; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_AdvancedView_mc_408_116_426_0_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\AdvancedView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/CadenceAlertView.mir b/bin/mir/source/Views/CadenceAlertView.mir deleted file mode 100644 index ae46959..0000000 --- a/bin/mir/source/Views/CadenceAlertView.mir +++ /dev/null @@ -1,726 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [Activity,3,14,22]; ] -import Toybox.Activity; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Lang,4,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 5; @symbol_importdef<0> = [Toybox,5,7,13]; @symbol_importdef<1> = [Timer,5,14,19]; ] -import Toybox.Timer; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 6; @symbol_importdef<0> = [Toybox,6,7,13]; @symbol_importdef<1> = [System,6,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 8; @symbol_classdef = [CadenceAlertView,8,6,22]; @symbol_extends<0> = [WatchUi,8,31,38]; @symbol_extends<1> = [View,8,39,43]; ] -class CadenceAlertView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 8; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 8; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 10; @position = 16; @symbol_vardef = [_message,10,16,24]; @symbol_type<0> = [String,10,28,34]; ] - private - var _message as String; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 11; @position = 16; @symbol_vardef = [_vibrationEnabled,11,16,33]; @symbol_type<0> = [Boolean,11,37,44]; ] - private - var _vibrationEnabled as Boolean; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 12; @position = 16; @symbol_vardef = [_closeTimer,12,16,27]; @symbol_type<0> = [Timer,12,31,36]; @symbol_type<1> = [Timer,12,37,42]; ] - private - var _closeTimer as Timer.Timer or Null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 14; @symbol_functiondef = [initialize,14,13,23]; @symbol_param<0> = [message,14,24,31]; @symbol_param<0>_type<0> = [String,14,35,41]; @symbol_param<1> = [vibrationEnabled,14,43,59]; @symbol_param<1>_type<0> = [Boolean,14,63,70]; ] - function initialize(message as String, vibrationEnabled as Boolean) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_14_72_19_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 15 8 ] - symbol [ View %tmp.2 15 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 15 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 16 8 ] - %tmp.4 = lgetv %message; - symbol [ message %tmp.4 16 19 26 ]; - symbol [ _message ? 16 8 16 ]; - putv self :_message %tmp.4; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 17 8 ] - %tmp.5 = lgetv %vibrationEnabled; - symbol [ vibrationEnabled %tmp.5 17 28 44 ]; - symbol [ _vibrationEnabled ? 17 8 25 ]; - putv self :_vibrationEnabled %tmp.5; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 18 8 ] - %tmp.6 = null; - symbol [ _closeTimer ? 18 8 19 ]; - putv self :_closeTimer %tmp.6; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_14_72_19_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 21; @symbol_functiondef = [onShow,21,13,19]; ] - function onShow() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_21_30_24_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 22 8 ] - symbol [ Timer %tmp.3 22 26 31 ]; - %tmp.3 = getm $.Toybox.Timer; - symbol [ Timer %tmp.4 22 32 37 ]; - %tmp.4 = getv function ? %tmp.3 :Timer; - %tmp.1 = newc %tmp.4 (); - symbol [ _closeTimer ? 22 8 19 ]; - putv self :_closeTimer %tmp.1; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 23 8 ] - symbol [ _closeTimer %tmp.6 23 8 19 ]; - %tmp.6 = getv ? :_closeTimer; - symbol [ start %tmp.7 23 20 25 ]; - %tmp.7 = getv function %tmp.6 :start; - %tmp.8 = self; - symbol [ method %tmp.9 23 26 32 ]; - %tmp.9 = getv function %tmp.8 :method; - %tmp.11 = const :dismissPopup; - symbol [ dismissPopup %tmp.11 23 34 46 const ]; - %tmp.12 = invoke %tmp.8 %tmp.9(%tmp.11); - %tmp.13 = 3000; - %tmp.14 = false; - invoke %tmp.6 %tmp.7(%tmp.12, %tmp.13, %tmp.14); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_21_30_24_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 26; @symbol_functiondef = [onHide,26,13,19]; ] - function onHide() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_26_30_31_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 27 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_27_8_30_8_if_stmt: - symbol [ _closeTimer %tmp.2 27 12 23 ]; - %tmp.2 = getv ? :_closeTimer; - %tmp.3 = null; - %tmp.4 = ne %tmp.2 %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_27_8_30_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_27_8_30_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_27_33_30_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 28 12 ] - symbol [ _closeTimer %tmp.6 28 12 23 ]; - %tmp.6 = getv ? :_closeTimer; - %tmp.7 = as %tmp.6 { (!Null) }; - symbol [ stop %tmp.8 28 24 28 ]; - %tmp.8 = getv function %tmp.7 :stop; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 29 12 ] - %tmp.9 = null; - symbol [ _closeTimer ? 29 12 23 ]; - putv self :_closeTimer %tmp.9; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_27_33_30_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_27_8_30_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_27_8_30_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_26_30_31_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 33; @symbol_functiondef = [dismissPopup,33,13,25]; ] - function dismissPopup() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_33_36_36_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 34 8 ] - symbol [ System %tmp.1 34 8 14 ]; - %tmp.1 = getm $.Toybox.System; - symbol [ println %tmp.2 34 15 22 ]; - %tmp.2 = getv function %tmp.1 :println; - %tmp.3 = "[ALERT] Cadence popup dismissed"; - invoke %tmp.1 %tmp.2(%tmp.3); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 35 8 ] - symbol [ WatchUi %tmp.4 35 8 15 ]; - %tmp.4 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.5 35 16 23 ]; - %tmp.5 = getv function %tmp.4 :popView; - symbol [ WatchUi %tmp.6 35 24 31 ]; - %tmp.6 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.7 35 32 47 ]; - %tmp.7 = getv %tmp.6 :SLIDE_IMMEDIATE; - invoke %tmp.4 %tmp.5(%tmp.7); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_33_36_36_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 38; @symbol_functiondef = [onUpdate,38,13,21]; @symbol_param<0> = [dc,38,22,24]; @symbol_param<0>_type<0> = [Dc,38,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 39 8 ] - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 39 8 10 ]; - symbol [ setColor %tmp.2 39 11 19 ]; - %tmp.2 = getv function %tmp.1 :setColor; - symbol [ Graphics %tmp.3 39 20 28 ]; - %tmp.3 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.4 39 29 40 ]; - %tmp.4 = getv %tmp.3 :COLOR_BLACK; - symbol [ Graphics %tmp.5 39 42 50 ]; - %tmp.5 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.6 39 51 62 ]; - %tmp.6 = getv %tmp.5 :COLOR_BLACK; - invoke %tmp.1 %tmp.2(%tmp.4, %tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 40 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 40 8 10 ]; - symbol [ clear %tmp.8 40 11 16 ]; - %tmp.8 = getv function %tmp.7 :clear; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 42 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_stop" ] - %width.1 = local; - symbol [ width %width.1 42 12 17 ]; - %tmp.9 = lgetv %dc; - symbol [ dc %tmp.9 42 20 22 ]; - symbol [ getWidth %tmp.10 42 23 31 ]; - %tmp.10 = getv function %tmp.9 :getWidth; - %tmp.11 = invoke %tmp.9 %tmp.10(); - lputv %width.1 %tmp.11; - symbol [ width %width.1 42 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 43 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_stop" ] - %height.2 = local; - symbol [ height %height.2 43 12 18 ]; - %tmp.12 = lgetv %dc; - symbol [ dc %tmp.12 43 21 23 ]; - symbol [ getHeight %tmp.13 43 24 33 ]; - %tmp.13 = getv function %tmp.12 :getHeight; - %tmp.14 = invoke %tmp.12 %tmp.13(); - lputv %height.2 %tmp.14; - symbol [ height %height.2 43 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 44 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_stop" ] - %centerX.3 = local; - symbol [ centerX %centerX.3 44 12 19 ]; - %tmp.15 = lgetv %width.1; - symbol [ width %tmp.15 44 22 27 ]; - %tmp.16 = 2; - %tmp.17 = div %tmp.15 %tmp.16; - lputv %centerX.3 %tmp.17; - symbol [ centerX %centerX.3 44 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 47 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_stop" ] - %timeStr.4 = local; - symbol [ timeStr %timeStr.4 47 12 19 ]; - %tmp.18 = "--:--:--"; - lputv %timeStr.4 %tmp.18; - symbol [ timeStr %timeStr.4 47 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 48 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_stop" ] - %info.5 = local; - symbol [ info %info.5 48 12 16 ]; - symbol [ Activity %tmp.19 48 19 27 ]; - %tmp.19 = getm $.Toybox.Activity; - symbol [ getActivityInfo %tmp.20 48 28 43 ]; - %tmp.20 = getv function %tmp.19 :getActivityInfo; - %tmp.21 = invoke %tmp.19 %tmp.20(); - lputv %info.5 %tmp.21; - symbol [ info %info.5 48 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 49 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_8_55_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_12_49_46_begin: - %tmp.22 = lgetv %info.5; - symbol [ info %tmp.22 49 12 16 ]; - %tmp.23 = null; - %tmp.24 = ne %tmp.22 %tmp.23; - bf %tmp.24 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_8_55_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_28_49_46_true: - %tmp.25 = lgetv %info.5; - symbol [ info %tmp.25 49 28 32 ]; - %tmp.26 = as %tmp.25 { (!Null) }; - symbol [ timerTime %tmp.27 49 33 42 ]; - %tmp.27 = getv %tmp.26 :timerTime; - %tmp.28 = null; - %tmp.29 = ne %tmp.27 %tmp.28; - push %tmp.29; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_28_49_46_end: - %tmp.30 = phi [%tmp.24 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_12_49_46_begin] [%tmp.29 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_28_49_46_true] [%tmp.30 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_28_49_46_end]; - bf %tmp.30 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_8_55_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_8_55_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_52_55_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 50 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_52_55_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_52_55_8_stop" ] - %seconds.6 = local; - symbol [ seconds %seconds.6 50 16 23 ]; - %tmp.31 = lgetv %info.5; - symbol [ info %tmp.31 50 26 30 ]; - %tmp.32 = as %tmp.31 { (!Null) }; - symbol [ timerTime %tmp.33 50 31 40 ]; - %tmp.33 = getv %tmp.32 :timerTime; - %tmp.34 = 1000; - %tmp.35 = div %tmp.33 %tmp.34; - lputv %seconds.6 %tmp.35; - symbol [ seconds %seconds.6 50 16 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 51 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_52_55_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_52_55_8_stop" ] - %h.7 = local; - symbol [ h %h.7 51 16 17 ]; - %tmp.36 = lgetv %seconds.6; - symbol [ seconds %tmp.36 51 20 27 ]; - %tmp.37 = 3600; - %tmp.38 = div %tmp.36 %tmp.37; - lputv %h.7 %tmp.38; - symbol [ h %h.7 51 16 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 52 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_52_55_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_52_55_8_stop" ] - %m.8 = local; - symbol [ m %m.8 52 16 17 ]; - %tmp.39 = lgetv %seconds.6; - symbol [ seconds %tmp.39 52 21 28 ]; - %tmp.40 = 3600; - %tmp.41 = mod %tmp.39 %tmp.40; - %tmp.42 = 60; - %tmp.43 = div %tmp.41 %tmp.42; - lputv %m.8 %tmp.43; - symbol [ m %m.8 52 16 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 53 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_52_55_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_52_55_8_stop" ] - %s.9 = local; - symbol [ s %s.9 53 16 17 ]; - %tmp.44 = lgetv %seconds.6; - symbol [ seconds %tmp.44 53 20 27 ]; - %tmp.45 = 60; - %tmp.46 = mod %tmp.44 %tmp.45; - lputv %s.9 %tmp.46; - symbol [ s %s.9 53 16 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 54 12 ] - %tmp.47 = lgetv %h.7; - symbol [ h %tmp.47 54 22 23 ]; - symbol [ format %tmp.48 54 24 30 ]; - %tmp.48 = getv function %tmp.47 :format; - %tmp.49 = "%02d"; - %tmp.50 = invoke %tmp.47 %tmp.48(%tmp.49); - %tmp.51 = ":"; - %tmp.52 = add %tmp.50 %tmp.51; - %tmp.53 = lgetv %m.8; - symbol [ m %tmp.53 54 47 48 ]; - symbol [ format %tmp.54 54 49 55 ]; - %tmp.54 = getv function %tmp.53 :format; - %tmp.55 = "%02d"; - %tmp.56 = invoke %tmp.53 %tmp.54(%tmp.55); - %tmp.57 = add %tmp.52 %tmp.56; - %tmp.58 = ":"; - %tmp.59 = add %tmp.57 %tmp.58; - %tmp.60 = lgetv %s.9; - symbol [ s %tmp.60 54 72 73 ]; - symbol [ format %tmp.61 54 74 80 ]; - %tmp.61 = getv function %tmp.60 :format; - %tmp.62 = "%02d"; - %tmp.63 = invoke %tmp.60 %tmp.61(%tmp.62); - %tmp.64 = add %tmp.59 %tmp.63; - lputv %timeStr.4 %tmp.64; - symbol [ timeStr %timeStr.4 54 12 19 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_52_55_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_8_55_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_49_8_55_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 56 8 ] - %tmp.65 = lgetv %dc; - symbol [ dc %tmp.65 56 8 10 ]; - symbol [ setColor %tmp.66 56 11 19 ]; - %tmp.66 = getv function %tmp.65 :setColor; - symbol [ Graphics %tmp.67 56 20 28 ]; - %tmp.67 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.68 56 29 40 ]; - %tmp.68 = getv %tmp.67 :COLOR_WHITE; - symbol [ Graphics %tmp.69 56 42 50 ]; - %tmp.69 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.70 56 51 68 ]; - %tmp.70 = getv %tmp.69 :COLOR_TRANSPARENT; - invoke %tmp.65 %tmp.66(%tmp.68, %tmp.70); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 57 8 ] - %tmp.71 = lgetv %dc; - symbol [ dc %tmp.71 57 8 10 ]; - symbol [ drawText %tmp.72 57 11 19 ]; - %tmp.72 = getv function %tmp.71 :drawText; - %tmp.73 = lgetv %centerX.3; - symbol [ centerX %tmp.73 58 12 19 ]; - %tmp.74 = lgetv %height.2; - symbol [ height %tmp.74 59 12 18 ]; - %tmp.75 = 0.15; - %tmp.76 = mul %tmp.74 %tmp.75; - symbol [ Graphics %tmp.77 60 12 20 ]; - %tmp.77 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.78 60 21 32 ]; - %tmp.78 = getv %tmp.77 :FONT_MEDIUM; - %tmp.79 = lgetv %timeStr.4; - symbol [ timeStr %tmp.79 61 12 19 ]; - symbol [ Graphics %tmp.80 62 12 20 ]; - %tmp.80 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.81 62 21 40 ]; - %tmp.81 = getv %tmp.80 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.82 62 43 51 ]; - %tmp.82 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.83 62 52 72 ]; - %tmp.83 = getv %tmp.82 :TEXT_JUSTIFY_VCENTER; - %tmp.84 = bitor %tmp.81 %tmp.83; - invoke %tmp.71 %tmp.72(%tmp.73, %tmp.76, %tmp.78, %tmp.79, %tmp.84); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 66 8 ] - %tmp.85 = self; - symbol [ drawWarningTriangle %tmp.86 66 8 27 ]; - %tmp.86 = getv function %tmp.85 :drawWarningTriangle; - %tmp.87 = lgetv %dc; - symbol [ dc %tmp.87 66 28 30 ]; - %tmp.88 = lgetv %centerX.3; - symbol [ centerX %tmp.88 66 32 39 ]; - %tmp.89 = lgetv %height.2; - symbol [ height %tmp.89 66 42 48 ]; - %tmp.90 = 0.35; - %tmp.91 = mul %tmp.89 %tmp.90; - symbol [ toNumber %tmp.92 66 57 65 ]; - %tmp.92 = getv function %tmp.91 :toNumber; - %tmp.93 = invoke %tmp.91 %tmp.92(); - invoke %tmp.85 %tmp.86(%tmp.87, %tmp.88, %tmp.93); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 69 8 ] - %tmp.94 = lgetv %dc; - symbol [ dc %tmp.94 69 8 10 ]; - symbol [ setColor %tmp.95 69 11 19 ]; - %tmp.95 = getv function %tmp.94 :setColor; - symbol [ Graphics %tmp.96 69 20 28 ]; - %tmp.96 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.97 69 29 40 ]; - %tmp.97 = getv %tmp.96 :COLOR_WHITE; - symbol [ Graphics %tmp.98 69 42 50 ]; - %tmp.98 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.99 69 51 68 ]; - %tmp.99 = getv %tmp.98 :COLOR_TRANSPARENT; - invoke %tmp.94 %tmp.95(%tmp.97, %tmp.99); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 70 8 ] - %tmp.100 = lgetv %dc; - symbol [ dc %tmp.100 70 8 10 ]; - symbol [ drawText %tmp.101 70 11 19 ]; - %tmp.101 = getv function %tmp.100 :drawText; - %tmp.102 = lgetv %centerX.3; - symbol [ centerX %tmp.102 71 12 19 ]; - %tmp.103 = lgetv %height.2; - symbol [ height %tmp.103 72 12 18 ]; - %tmp.104 = 0.62; - %tmp.105 = mul %tmp.103 %tmp.104; - symbol [ Graphics %tmp.106 73 12 20 ]; - %tmp.106 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.107 73 21 31 ]; - %tmp.107 = getv %tmp.106 :FONT_SMALL; - symbol [ _message %tmp.109 74 12 20 ]; - %tmp.109 = getv ? :_message; - symbol [ Graphics %tmp.110 75 12 20 ]; - %tmp.110 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.111 75 21 40 ]; - %tmp.111 = getv %tmp.110 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.112 75 43 51 ]; - %tmp.112 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.113 75 52 72 ]; - %tmp.113 = getv %tmp.112 :TEXT_JUSTIFY_VCENTER; - %tmp.114 = bitor %tmp.111 %tmp.113; - invoke %tmp.100 %tmp.101(%tmp.102, %tmp.105, %tmp.107, %tmp.109, %tmp.114); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 79 8 ] - %tmp.115 = self; - symbol [ drawVibrationIcon %tmp.116 79 8 25 ]; - %tmp.116 = getv function %tmp.115 :drawVibrationIcon; - %tmp.117 = lgetv %dc; - symbol [ dc %tmp.117 79 26 28 ]; - %tmp.118 = lgetv %centerX.3; - symbol [ centerX %tmp.118 79 30 37 ]; - %tmp.119 = lgetv %height.2; - symbol [ height %tmp.119 79 40 46 ]; - %tmp.120 = 0.80; - %tmp.121 = mul %tmp.119 %tmp.120; - symbol [ toNumber %tmp.122 79 55 63 ]; - %tmp.122 = getv function %tmp.121 :toNumber; - %tmp.123 = invoke %tmp.121 %tmp.122(); - invoke %tmp.115 %tmp.116(%tmp.117, %tmp.118, %tmp.123); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_38_40_80_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 82; @symbol_functiondef = [drawWarningTriangle,82,13,32]; @symbol_param<0> = [dc,82,33,35]; @symbol_param<0>_type<0> = [Dc,82,39,41]; @symbol_param<1> = [centreX,82,43,50]; @symbol_param<1>_type<0> = [Number,82,54,60]; @symbol_param<2> = [centreY,82,62,69]; @symbol_param<2>_type<0> = [Number,82,73,79]; ] - function drawWarningTriangle(dc as Dc, centreX as Number, centreY as Number) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_82_89_101_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 83 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_82_89_101_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_82_89_101_4_stop" ] - %size.1 = local; - symbol [ size %size.1 83 12 16 ]; - %tmp.1 = 22; - lputv %size.1 %tmp.1; - symbol [ size %size.1 83 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 84 8 ] - %tmp.2 = lgetv %dc; - symbol [ dc %tmp.2 84 8 10 ]; - symbol [ setColor %tmp.3 84 11 19 ]; - %tmp.3 = getv function %tmp.2 :setColor; - symbol [ Graphics %tmp.4 84 20 28 ]; - %tmp.4 = getm $.Toybox.Graphics; - symbol [ COLOR_YELLOW %tmp.5 84 29 41 ]; - %tmp.5 = getv %tmp.4 :COLOR_YELLOW; - symbol [ Graphics %tmp.6 84 43 51 ]; - %tmp.6 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.7 84 52 69 ]; - %tmp.7 = getv %tmp.6 :COLOR_TRANSPARENT; - invoke %tmp.2 %tmp.3(%tmp.5, %tmp.7); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 85 8 ] - for @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_test @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_incr @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_init: - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_begin" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_end" ] - %i.2 = local; - symbol [ i %i.2 85 17 18 ]; - %tmp.8 = 0; - lputv %i.2 %tmp.8; - symbol [ i %i.2 85 17 18 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_test: - %tmp.9 = lgetv %i.2; - symbol [ i %tmp.9 85 24 25 ]; - %tmp.10 = lgetv %size.1; - symbol [ size %tmp.10 85 29 33 ]; - %tmp.11 = lte %tmp.9 %tmp.10; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_40_92_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 86 12 ] - %tmp.12 = lgetv %dc; - symbol [ dc %tmp.12 86 12 14 ]; - symbol [ drawLine %tmp.13 86 15 23 ]; - %tmp.13 = getv function %tmp.12 :drawLine; - %tmp.14 = lgetv %centreX; - symbol [ centreX %tmp.14 87 16 23 ]; - %tmp.15 = lgetv %i.2; - symbol [ i %tmp.15 87 26 27 ]; - %tmp.16 = sub %tmp.14 %tmp.15; - %tmp.17 = lgetv %centreY; - symbol [ centreY %tmp.17 88 16 23 ]; - %tmp.18 = lgetv %size.1; - symbol [ size %tmp.18 88 26 30 ]; - %tmp.19 = add %tmp.17 %tmp.18; - %tmp.20 = lgetv %i.2; - symbol [ i %tmp.20 88 33 34 ]; - %tmp.21 = sub %tmp.19 %tmp.20; - %tmp.22 = lgetv %centreX; - symbol [ centreX %tmp.22 89 16 23 ]; - %tmp.23 = lgetv %i.2; - symbol [ i %tmp.23 89 26 27 ]; - %tmp.24 = add %tmp.22 %tmp.23; - %tmp.25 = lgetv %centreY; - symbol [ centreY %tmp.25 90 16 23 ]; - %tmp.26 = lgetv %size.1; - symbol [ size %tmp.26 90 26 30 ]; - %tmp.27 = add %tmp.25 %tmp.26; - %tmp.28 = lgetv %i.2; - symbol [ i %tmp.28 90 33 34 ]; - %tmp.29 = sub %tmp.27 %tmp.28; - invoke %tmp.12 %tmp.13(%tmp.16, %tmp.21, %tmp.24, %tmp.29); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_40_92_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_incr: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 85 ] - %tmp.32 = lgetv %i.2; - symbol [ i %tmp.32 85 35 36 ]; - %tmp.33 = add %tmp.32 1; - lputv %i.2 %tmp.33; - symbol [ i %i.2 85 35 36 ]; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_test; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_85_8_92_8_for_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 93 8 ] - %tmp.34 = lgetv %dc; - symbol [ dc %tmp.34 93 8 10 ]; - symbol [ setColor %tmp.35 93 11 19 ]; - %tmp.35 = getv function %tmp.34 :setColor; - symbol [ Graphics %tmp.36 93 20 28 ]; - %tmp.36 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.37 93 29 40 ]; - %tmp.37 = getv %tmp.36 :COLOR_BLACK; - symbol [ Graphics %tmp.38 93 42 50 ]; - %tmp.38 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.39 93 51 68 ]; - %tmp.39 = getv %tmp.38 :COLOR_TRANSPARENT; - invoke %tmp.34 %tmp.35(%tmp.37, %tmp.39); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 94 8 ] - %tmp.40 = lgetv %dc; - symbol [ dc %tmp.40 94 8 10 ]; - symbol [ drawText %tmp.41 94 11 19 ]; - %tmp.41 = getv function %tmp.40 :drawText; - %tmp.42 = lgetv %centreX; - symbol [ centreX %tmp.42 95 12 19 ]; - %tmp.43 = lgetv %centreY; - symbol [ centreY %tmp.43 96 12 19 ]; - %tmp.44 = lgetv %size.1; - symbol [ size %tmp.44 96 23 27 ]; - %tmp.45 = 0.6; - %tmp.46 = mul %tmp.44 %tmp.45; - symbol [ toNumber %tmp.47 96 35 43 ]; - %tmp.47 = getv function %tmp.46 :toNumber; - %tmp.48 = invoke %tmp.46 %tmp.47(); - %tmp.49 = add %tmp.43 %tmp.48; - symbol [ Graphics %tmp.50 97 12 20 ]; - %tmp.50 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.51 97 21 31 ]; - %tmp.51 = getv %tmp.50 :FONT_SMALL; - %tmp.52 = "!"; - symbol [ Graphics %tmp.53 99 12 20 ]; - %tmp.53 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.54 99 21 40 ]; - %tmp.54 = getv %tmp.53 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.55 99 43 51 ]; - %tmp.55 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.56 99 52 72 ]; - %tmp.56 = getv %tmp.55 :TEXT_JUSTIFY_VCENTER; - %tmp.57 = bitor %tmp.54 %tmp.56; - invoke %tmp.40 %tmp.41(%tmp.42, %tmp.49, %tmp.51, %tmp.52, %tmp.57); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_82_89_101_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 103; @symbol_functiondef = [drawVibrationIcon,103,13,30]; @symbol_param<0> = [dc,103,31,33]; @symbol_param<0>_type<0> = [Dc,103,37,39]; @symbol_param<1> = [centreX,103,41,48]; @symbol_param<1>_type<0> = [Number,103,52,58]; @symbol_param<2> = [centreY,103,60,67]; @symbol_param<2>_type<0> = [Number,103,71,77]; ] - function drawVibrationIcon(dc as Dc, centreX as Number, centreY as Number) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_103_87_119_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 104 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_103_87_119_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_103_87_119_4_stop" ] - %radius.1 = local; - symbol [ radius %radius.1 104 12 18 ]; - %tmp.1 = 14; - lputv %radius.1 %tmp.1; - symbol [ radius %radius.1 104 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 105 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_105_8_118_8_if_stmt: - symbol [ _vibrationEnabled %tmp.3 105 12 29 ]; - %tmp.3 = getv ? :_vibrationEnabled; - bf %tmp.3 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_105_8_118_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_105_8_118_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_105_31_109_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 106 12 ] - %tmp.4 = lgetv %dc; - symbol [ dc %tmp.4 106 12 14 ]; - symbol [ setColor %tmp.5 106 15 23 ]; - %tmp.5 = getv function %tmp.4 :setColor; - symbol [ Graphics %tmp.6 106 24 32 ]; - %tmp.6 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.7 106 33 44 ]; - %tmp.7 = getv %tmp.6 :COLOR_WHITE; - symbol [ Graphics %tmp.8 106 46 54 ]; - %tmp.8 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.9 106 55 72 ]; - %tmp.9 = getv %tmp.8 :COLOR_TRANSPARENT; - invoke %tmp.4 %tmp.5(%tmp.7, %tmp.9); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 107 12 ] - %tmp.10 = lgetv %dc; - symbol [ dc %tmp.10 107 12 14 ]; - symbol [ drawCircle %tmp.11 107 15 25 ]; - %tmp.11 = getv function %tmp.10 :drawCircle; - %tmp.12 = lgetv %centreX; - symbol [ centreX %tmp.12 107 26 33 ]; - %tmp.13 = lgetv %centreY; - symbol [ centreY %tmp.13 107 35 42 ]; - %tmp.14 = lgetv %radius.1; - symbol [ radius %tmp.14 107 44 50 ]; - invoke %tmp.10 %tmp.11(%tmp.12, %tmp.13, %tmp.14); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 108 12 ] - %tmp.15 = lgetv %dc; - symbol [ dc %tmp.15 108 12 14 ]; - symbol [ drawCircle %tmp.16 108 15 25 ]; - %tmp.16 = getv function %tmp.15 :drawCircle; - %tmp.17 = lgetv %centreX; - symbol [ centreX %tmp.17 108 26 33 ]; - %tmp.18 = lgetv %centreY; - symbol [ centreY %tmp.18 108 35 42 ]; - %tmp.19 = lgetv %radius.1; - symbol [ radius %tmp.19 108 44 50 ]; - %tmp.20 = 5; - %tmp.21 = add %tmp.19 %tmp.20; - invoke %tmp.15 %tmp.16(%tmp.17, %tmp.18, %tmp.21); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_105_31_109_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_105_8_118_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_105_8_118_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_109_15_118_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 110 12 ] - %tmp.22 = lgetv %dc; - symbol [ dc %tmp.22 110 12 14 ]; - symbol [ setColor %tmp.23 110 15 23 ]; - %tmp.23 = getv function %tmp.22 :setColor; - symbol [ Graphics %tmp.24 110 24 32 ]; - %tmp.24 = getm $.Toybox.Graphics; - symbol [ COLOR_LT_GRAY %tmp.25 110 33 46 ]; - %tmp.25 = getv %tmp.24 :COLOR_LT_GRAY; - symbol [ Graphics %tmp.26 110 48 56 ]; - %tmp.26 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.27 110 57 74 ]; - %tmp.27 = getv %tmp.26 :COLOR_TRANSPARENT; - invoke %tmp.22 %tmp.23(%tmp.25, %tmp.27); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 111 12 ] - %tmp.28 = lgetv %dc; - symbol [ dc %tmp.28 111 12 14 ]; - symbol [ drawCircle %tmp.29 111 15 25 ]; - %tmp.29 = getv function %tmp.28 :drawCircle; - %tmp.30 = lgetv %centreX; - symbol [ centreX %tmp.30 111 26 33 ]; - %tmp.31 = lgetv %centreY; - symbol [ centreY %tmp.31 111 35 42 ]; - %tmp.32 = lgetv %radius.1; - symbol [ radius %tmp.32 111 44 50 ]; - invoke %tmp.28 %tmp.29(%tmp.30, %tmp.31, %tmp.32); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 112 12 ] - %tmp.33 = lgetv %dc; - symbol [ dc %tmp.33 112 12 14 ]; - symbol [ drawLine %tmp.34 112 15 23 ]; - %tmp.34 = getv function %tmp.33 :drawLine; - %tmp.35 = lgetv %centreX; - symbol [ centreX %tmp.35 113 16 23 ]; - %tmp.36 = lgetv %radius.1; - symbol [ radius %tmp.36 113 26 32 ]; - %tmp.37 = sub %tmp.35 %tmp.36; - %tmp.38 = 4; - %tmp.39 = sub %tmp.37 %tmp.38; - %tmp.40 = lgetv %centreY; - symbol [ centreY %tmp.40 114 16 23 ]; - %tmp.41 = lgetv %radius.1; - symbol [ radius %tmp.41 114 26 32 ]; - %tmp.42 = add %tmp.40 %tmp.41; - %tmp.43 = 4; - %tmp.44 = add %tmp.42 %tmp.43; - %tmp.45 = lgetv %centreX; - symbol [ centreX %tmp.45 115 16 23 ]; - %tmp.46 = lgetv %radius.1; - symbol [ radius %tmp.46 115 26 32 ]; - %tmp.47 = add %tmp.45 %tmp.46; - %tmp.48 = 4; - %tmp.49 = add %tmp.47 %tmp.48; - %tmp.50 = lgetv %centreY; - symbol [ centreY %tmp.50 116 16 23 ]; - %tmp.51 = lgetv %radius.1; - symbol [ radius %tmp.51 116 26 32 ]; - %tmp.52 = sub %tmp.50 %tmp.51; - %tmp.53 = 4; - %tmp.54 = sub %tmp.52 %tmp.53; - invoke %tmp.33 %tmp.34(%tmp.39, %tmp.44, %tmp.49, %tmp.54); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_109_15_118_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_105_8_118_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_103_87_119_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 122; @symbol_classdef = [CadenceAlertDelegate,122,6,26]; @symbol_extends<0> = [WatchUi,122,35,42]; @symbol_extends<1> = [BehaviorDelegate,122,43,59]; ] -class CadenceAlertDelegate extends WatchUi.BehaviorDelegate { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 122; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 122; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 124; @symbol_functiondef = [initialize,124,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_124_26_126_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 125 8 ] - symbol [ BehaviorDelegate %tmp.2 125 8 24 ]; - %tmp.2 = getv ? :BehaviorDelegate; - symbol [ initialize %tmp.3 125 25 35 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_124_26_126_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 128; @symbol_functiondef = [onSelect,128,13,21]; @symbol_return<0> = [Boolean,128,27,34]; ] - function onSelect() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_128_35_131_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 129 8 ] - symbol [ WatchUi %tmp.1 129 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 129 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 129 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.4 129 32 47 ]; - %tmp.4 = getv %tmp.3 :SLIDE_IMMEDIATE; - invoke %tmp.1 %tmp.2(%tmp.4); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 130 8 ] - %tmp.5 = true; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_128_35_131_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 133; @symbol_functiondef = [onBack,133,13,19]; @symbol_return<0> = [Boolean,133,25,32]; ] - function onBack() as Boolean { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_133_33_135_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc" 134 8 ] - %tmp.1 = true; - ret %tmp.1; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceAlertView_mc_133_33_135_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceAlertView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/CadenceMaxView.mir b/bin/mir/source/Views/CadenceMaxView.mir deleted file mode 100644 index 04a65f4..0000000 --- a/bin/mir/source/Views/CadenceMaxView.mir +++ /dev/null @@ -1,228 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc"; @line = 8; @symbol_classdef = [CadenceMaxView,8,6,20]; @symbol_extends<0> = [WatchUi,8,29,36]; @symbol_extends<1> = [View,8,37,41]; ] -class CadenceMaxView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc"; @line = 8; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc"; @line = 8; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc"; @line = 10; @symbol_functiondef = [initialize,10,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_10_26_12_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 11 8 ] - symbol [ View %tmp.2 11 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 11 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_10_26_12_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc"; @line = 14; @symbol_functiondef = [onUpdate,14,13,21]; @symbol_param<0> = [dc,14,22,24]; @symbol_param<0>_type<0> = [Dc,14,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_14_40_59_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 17 8 ] - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 17 8 10 ]; - symbol [ setColor %tmp.2 17 11 19 ]; - %tmp.2 = getv function %tmp.1 :setColor; - symbol [ Graphics %tmp.3 17 20 28 ]; - %tmp.3 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.4 17 29 40 ]; - %tmp.4 = getv %tmp.3 :COLOR_BLACK; - symbol [ Graphics %tmp.5 17 42 50 ]; - %tmp.5 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.6 17 51 62 ]; - %tmp.6 = getv %tmp.5 :COLOR_BLACK; - invoke %tmp.1 %tmp.2(%tmp.4, %tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 18 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 18 8 10 ]; - symbol [ clear %tmp.8 18 11 16 ]; - %tmp.8 = getv function %tmp.7 :clear; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 21 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_14_40_59_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_14_40_59_4_stop" ] - %width.1 = local; - symbol [ width %width.1 21 12 17 ]; - %tmp.9 = lgetv %dc; - symbol [ dc %tmp.9 21 20 22 ]; - symbol [ getWidth %tmp.10 21 23 31 ]; - %tmp.10 = getv function %tmp.9 :getWidth; - %tmp.11 = invoke %tmp.9 %tmp.10(); - lputv %width.1 %tmp.11; - symbol [ width %width.1 21 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 22 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_14_40_59_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_14_40_59_4_stop" ] - %height.2 = local; - symbol [ height %height.2 22 12 18 ]; - %tmp.12 = lgetv %dc; - symbol [ dc %tmp.12 22 21 23 ]; - symbol [ getHeight %tmp.13 22 24 33 ]; - %tmp.13 = getv function %tmp.12 :getHeight; - %tmp.14 = invoke %tmp.12 %tmp.13(); - lputv %height.2 %tmp.14; - symbol [ height %height.2 22 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 25 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_14_40_59_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_14_40_59_4_stop" ] - %app.3 = local; - symbol [ app %app.3 25 12 15 ]; - %tmp.15 = self; - symbol [ getApp %tmp.16 25 18 24 ]; - %tmp.16 = getv function %tmp.15 :getApp; - %tmp.17 = invoke %tmp.15 %tmp.16(); - lputv %app.3 %tmp.17; - symbol [ app %app.3 25 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 26 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_14_40_59_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_14_40_59_4_stop" ] - %maxCadence.4 = local; - symbol [ maxCadence %maxCadence.4 26 12 22 ]; - %tmp.18 = lgetv %app.3; - symbol [ app %tmp.18 26 25 28 ]; - symbol [ getMaxCadence %tmp.19 26 29 42 ]; - %tmp.19 = getv function %tmp.18 :getMaxCadence; - %tmp.20 = invoke %tmp.18 %tmp.19(); - lputv %maxCadence.4 %tmp.20; - symbol [ maxCadence %maxCadence.4 26 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 29 8 ] - %tmp.21 = lgetv %dc; - symbol [ dc %tmp.21 29 8 10 ]; - symbol [ setColor %tmp.22 29 11 19 ]; - %tmp.22 = getv function %tmp.21 :setColor; - symbol [ Graphics %tmp.23 29 20 28 ]; - %tmp.23 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.24 29 29 40 ]; - %tmp.24 = getv %tmp.23 :COLOR_WHITE; - symbol [ Graphics %tmp.25 29 42 50 ]; - %tmp.25 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.26 29 51 68 ]; - %tmp.26 = getv %tmp.25 :COLOR_TRANSPARENT; - invoke %tmp.21 %tmp.22(%tmp.24, %tmp.26); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 30 8 ] - %tmp.27 = lgetv %dc; - symbol [ dc %tmp.27 30 8 10 ]; - symbol [ drawText %tmp.28 30 11 19 ]; - %tmp.28 = getv function %tmp.27 :drawText; - %tmp.29 = lgetv %width.1; - symbol [ width %tmp.29 31 12 17 ]; - %tmp.30 = 2; - %tmp.31 = div %tmp.29 %tmp.30; - %tmp.32 = lgetv %height.2; - symbol [ height %tmp.32 32 12 18 ]; - %tmp.33 = 3; - %tmp.34 = div %tmp.32 %tmp.33; - symbol [ Graphics %tmp.35 33 12 20 ]; - %tmp.35 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.36 33 21 32 ]; - %tmp.36 = getv %tmp.35 :FONT_MEDIUM; - %tmp.37 = "Max Cadence"; - symbol [ Graphics %tmp.38 35 12 20 ]; - %tmp.38 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.39 35 21 40 ]; - %tmp.39 = getv %tmp.38 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.40 35 43 51 ]; - %tmp.40 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.41 35 52 72 ]; - %tmp.41 = getv %tmp.40 :TEXT_JUSTIFY_VCENTER; - %tmp.42 = bitor %tmp.39 %tmp.41; - invoke %tmp.27 %tmp.28(%tmp.31, %tmp.34, %tmp.36, %tmp.37, %tmp.42); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 41 8 ] - %tmp.43 = lgetv %dc; - symbol [ dc %tmp.43 41 8 10 ]; - symbol [ setColor %tmp.44 41 11 19 ]; - %tmp.44 = getv function %tmp.43 :setColor; - symbol [ Graphics %tmp.45 41 20 28 ]; - %tmp.45 = getm $.Toybox.Graphics; - symbol [ COLOR_ORANGE %tmp.46 41 29 41 ]; - %tmp.46 = getv %tmp.45 :COLOR_ORANGE; - symbol [ Graphics %tmp.47 41 43 51 ]; - %tmp.47 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.48 41 52 69 ]; - %tmp.48 = getv %tmp.47 :COLOR_TRANSPARENT; - invoke %tmp.43 %tmp.44(%tmp.46, %tmp.48); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 42 8 ] - %tmp.49 = lgetv %dc; - symbol [ dc %tmp.49 42 8 10 ]; - symbol [ drawText %tmp.50 42 11 19 ]; - %tmp.50 = getv function %tmp.49 :drawText; - %tmp.51 = lgetv %width.1; - symbol [ width %tmp.51 43 12 17 ]; - %tmp.52 = 2; - %tmp.53 = div %tmp.51 %tmp.52; - %tmp.54 = lgetv %height.2; - symbol [ height %tmp.54 44 12 18 ]; - %tmp.55 = 2; - %tmp.56 = div %tmp.54 %tmp.55; - symbol [ Graphics %tmp.57 45 12 20 ]; - %tmp.57 = getm $.Toybox.Graphics; - symbol [ FONT_NUMBER_HOT %tmp.58 45 21 36 ]; - %tmp.58 = getv %tmp.57 :FONT_NUMBER_HOT; - %tmp.59 = lgetv %maxCadence.4; - symbol [ maxCadence %tmp.59 46 12 22 ]; - symbol [ toString %tmp.60 46 23 31 ]; - %tmp.60 = getv function %tmp.59 :toString; - %tmp.61 = invoke %tmp.59 %tmp.60(); - symbol [ Graphics %tmp.62 47 12 20 ]; - %tmp.62 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.63 47 21 40 ]; - %tmp.63 = getv %tmp.62 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.64 47 43 51 ]; - %tmp.64 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.65 47 52 72 ]; - %tmp.65 = getv %tmp.64 :TEXT_JUSTIFY_VCENTER; - %tmp.66 = bitor %tmp.63 %tmp.65; - invoke %tmp.49 %tmp.50(%tmp.53, %tmp.56, %tmp.58, %tmp.61, %tmp.66); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 51 8 ] - %tmp.67 = lgetv %dc; - symbol [ dc %tmp.67 51 8 10 ]; - symbol [ setColor %tmp.68 51 11 19 ]; - %tmp.68 = getv function %tmp.67 :setColor; - symbol [ Graphics %tmp.69 51 20 28 ]; - %tmp.69 = getm $.Toybox.Graphics; - symbol [ COLOR_LT_GRAY %tmp.70 51 29 42 ]; - %tmp.70 = getv %tmp.69 :COLOR_LT_GRAY; - symbol [ Graphics %tmp.71 51 44 52 ]; - %tmp.71 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.72 51 53 70 ]; - %tmp.72 = getv %tmp.71 :COLOR_TRANSPARENT; - invoke %tmp.67 %tmp.68(%tmp.70, %tmp.72); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc" 52 8 ] - %tmp.73 = lgetv %dc; - symbol [ dc %tmp.73 52 8 10 ]; - symbol [ drawText %tmp.74 52 11 19 ]; - %tmp.74 = getv function %tmp.73 :drawText; - %tmp.75 = lgetv %width.1; - symbol [ width %tmp.75 53 12 17 ]; - %tmp.76 = 2; - %tmp.77 = div %tmp.75 %tmp.76; - %tmp.78 = lgetv %height.2; - symbol [ height %tmp.78 54 13 19 ]; - %tmp.79 = 2; - %tmp.80 = div %tmp.78 %tmp.79; - %tmp.81 = 50; - %tmp.82 = add %tmp.80 %tmp.81; - symbol [ Graphics %tmp.83 55 12 20 ]; - %tmp.83 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.84 55 21 31 ]; - %tmp.84 = getv %tmp.83 :FONT_SMALL; - %tmp.85 = "spm"; - symbol [ Graphics %tmp.86 57 12 20 ]; - %tmp.86 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.87 57 21 40 ]; - %tmp.87 = getv %tmp.86 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.88 57 43 51 ]; - %tmp.88 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.89 57 52 72 ]; - %tmp.89 = getv %tmp.88 :TEXT_JUSTIFY_VCENTER; - %tmp.90 = bitor %tmp.87 %tmp.89; - invoke %tmp.73 %tmp.74(%tmp.77, %tmp.82, %tmp.84, %tmp.85, %tmp.90); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMaxView_mc_14_40_59_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMaxView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/CadenceMinView.mir b/bin/mir/source/Views/CadenceMinView.mir deleted file mode 100644 index b1189a8..0000000 --- a/bin/mir/source/Views/CadenceMinView.mir +++ /dev/null @@ -1,228 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc"; @line = 8; @symbol_classdef = [CadenceMinView,8,6,20]; @symbol_extends<0> = [WatchUi,8,29,36]; @symbol_extends<1> = [View,8,37,41]; ] -class CadenceMinView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc"; @line = 8; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc"; @line = 8; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc"; @line = 10; @symbol_functiondef = [initialize,10,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_10_26_12_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 11 8 ] - symbol [ View %tmp.2 11 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 11 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_10_26_12_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc"; @line = 14; @symbol_functiondef = [onUpdate,14,13,21]; @symbol_param<0> = [dc,14,22,24]; @symbol_param<0>_type<0> = [Dc,14,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_14_40_58_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 17 8 ] - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 17 8 10 ]; - symbol [ setColor %tmp.2 17 11 19 ]; - %tmp.2 = getv function %tmp.1 :setColor; - symbol [ Graphics %tmp.3 17 20 28 ]; - %tmp.3 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.4 17 29 40 ]; - %tmp.4 = getv %tmp.3 :COLOR_BLACK; - symbol [ Graphics %tmp.5 17 42 50 ]; - %tmp.5 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.6 17 51 62 ]; - %tmp.6 = getv %tmp.5 :COLOR_BLACK; - invoke %tmp.1 %tmp.2(%tmp.4, %tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 18 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 18 8 10 ]; - symbol [ clear %tmp.8 18 11 16 ]; - %tmp.8 = getv function %tmp.7 :clear; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 21 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_14_40_58_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_14_40_58_4_stop" ] - %width.1 = local; - symbol [ width %width.1 21 12 17 ]; - %tmp.9 = lgetv %dc; - symbol [ dc %tmp.9 21 20 22 ]; - symbol [ getWidth %tmp.10 21 23 31 ]; - %tmp.10 = getv function %tmp.9 :getWidth; - %tmp.11 = invoke %tmp.9 %tmp.10(); - lputv %width.1 %tmp.11; - symbol [ width %width.1 21 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 22 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_14_40_58_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_14_40_58_4_stop" ] - %height.2 = local; - symbol [ height %height.2 22 12 18 ]; - %tmp.12 = lgetv %dc; - symbol [ dc %tmp.12 22 21 23 ]; - symbol [ getHeight %tmp.13 22 24 33 ]; - %tmp.13 = getv function %tmp.12 :getHeight; - %tmp.14 = invoke %tmp.12 %tmp.13(); - lputv %height.2 %tmp.14; - symbol [ height %height.2 22 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 25 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_14_40_58_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_14_40_58_4_stop" ] - %app.3 = local; - symbol [ app %app.3 25 12 15 ]; - %tmp.15 = self; - symbol [ getApp %tmp.16 25 18 24 ]; - %tmp.16 = getv function %tmp.15 :getApp; - %tmp.17 = invoke %tmp.15 %tmp.16(); - lputv %app.3 %tmp.17; - symbol [ app %app.3 25 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 26 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_14_40_58_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_14_40_58_4_stop" ] - %minCadence.4 = local; - symbol [ minCadence %minCadence.4 26 12 22 ]; - %tmp.18 = lgetv %app.3; - symbol [ app %tmp.18 26 25 28 ]; - symbol [ getMinCadence %tmp.19 26 29 42 ]; - %tmp.19 = getv function %tmp.18 :getMinCadence; - %tmp.20 = invoke %tmp.18 %tmp.19(); - lputv %minCadence.4 %tmp.20; - symbol [ minCadence %minCadence.4 26 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 29 8 ] - %tmp.21 = lgetv %dc; - symbol [ dc %tmp.21 29 8 10 ]; - symbol [ setColor %tmp.22 29 11 19 ]; - %tmp.22 = getv function %tmp.21 :setColor; - symbol [ Graphics %tmp.23 29 20 28 ]; - %tmp.23 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.24 29 29 40 ]; - %tmp.24 = getv %tmp.23 :COLOR_WHITE; - symbol [ Graphics %tmp.25 29 42 50 ]; - %tmp.25 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.26 29 51 68 ]; - %tmp.26 = getv %tmp.25 :COLOR_TRANSPARENT; - invoke %tmp.21 %tmp.22(%tmp.24, %tmp.26); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 30 8 ] - %tmp.27 = lgetv %dc; - symbol [ dc %tmp.27 30 8 10 ]; - symbol [ drawText %tmp.28 30 11 19 ]; - %tmp.28 = getv function %tmp.27 :drawText; - %tmp.29 = lgetv %width.1; - symbol [ width %tmp.29 31 12 17 ]; - %tmp.30 = 2; - %tmp.31 = div %tmp.29 %tmp.30; - %tmp.32 = lgetv %height.2; - symbol [ height %tmp.32 32 12 18 ]; - %tmp.33 = 3; - %tmp.34 = div %tmp.32 %tmp.33; - symbol [ Graphics %tmp.35 33 12 20 ]; - %tmp.35 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.36 33 21 32 ]; - %tmp.36 = getv %tmp.35 :FONT_MEDIUM; - %tmp.37 = "Min Cadence"; - symbol [ Graphics %tmp.38 35 12 20 ]; - %tmp.38 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.39 35 21 40 ]; - %tmp.39 = getv %tmp.38 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.40 35 43 51 ]; - %tmp.40 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.41 35 52 72 ]; - %tmp.41 = getv %tmp.40 :TEXT_JUSTIFY_VCENTER; - %tmp.42 = bitor %tmp.39 %tmp.41; - invoke %tmp.27 %tmp.28(%tmp.31, %tmp.34, %tmp.36, %tmp.37, %tmp.42); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 40 8 ] - %tmp.43 = lgetv %dc; - symbol [ dc %tmp.43 40 8 10 ]; - symbol [ setColor %tmp.44 40 11 19 ]; - %tmp.44 = getv function %tmp.43 :setColor; - symbol [ Graphics %tmp.45 40 20 28 ]; - %tmp.45 = getm $.Toybox.Graphics; - symbol [ COLOR_GREEN %tmp.46 40 29 40 ]; - %tmp.46 = getv %tmp.45 :COLOR_GREEN; - symbol [ Graphics %tmp.47 40 42 50 ]; - %tmp.47 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.48 40 51 68 ]; - %tmp.48 = getv %tmp.47 :COLOR_TRANSPARENT; - invoke %tmp.43 %tmp.44(%tmp.46, %tmp.48); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 41 8 ] - %tmp.49 = lgetv %dc; - symbol [ dc %tmp.49 41 8 10 ]; - symbol [ drawText %tmp.50 41 11 19 ]; - %tmp.50 = getv function %tmp.49 :drawText; - %tmp.51 = lgetv %width.1; - symbol [ width %tmp.51 42 12 17 ]; - %tmp.52 = 2; - %tmp.53 = div %tmp.51 %tmp.52; - %tmp.54 = lgetv %height.2; - symbol [ height %tmp.54 43 12 18 ]; - %tmp.55 = 2; - %tmp.56 = div %tmp.54 %tmp.55; - symbol [ Graphics %tmp.57 44 12 20 ]; - %tmp.57 = getm $.Toybox.Graphics; - symbol [ FONT_NUMBER_HOT %tmp.58 44 21 36 ]; - %tmp.58 = getv %tmp.57 :FONT_NUMBER_HOT; - %tmp.59 = lgetv %minCadence.4; - symbol [ minCadence %tmp.59 45 12 22 ]; - symbol [ toString %tmp.60 45 23 31 ]; - %tmp.60 = getv function %tmp.59 :toString; - %tmp.61 = invoke %tmp.59 %tmp.60(); - symbol [ Graphics %tmp.62 46 12 20 ]; - %tmp.62 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.63 46 21 40 ]; - %tmp.63 = getv %tmp.62 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.64 46 43 51 ]; - %tmp.64 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.65 46 52 72 ]; - %tmp.65 = getv %tmp.64 :TEXT_JUSTIFY_VCENTER; - %tmp.66 = bitor %tmp.63 %tmp.65; - invoke %tmp.49 %tmp.50(%tmp.53, %tmp.56, %tmp.58, %tmp.61, %tmp.66); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 50 8 ] - %tmp.67 = lgetv %dc; - symbol [ dc %tmp.67 50 8 10 ]; - symbol [ setColor %tmp.68 50 11 19 ]; - %tmp.68 = getv function %tmp.67 :setColor; - symbol [ Graphics %tmp.69 50 20 28 ]; - %tmp.69 = getm $.Toybox.Graphics; - symbol [ COLOR_LT_GRAY %tmp.70 50 29 42 ]; - %tmp.70 = getv %tmp.69 :COLOR_LT_GRAY; - symbol [ Graphics %tmp.71 50 44 52 ]; - %tmp.71 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.72 50 53 70 ]; - %tmp.72 = getv %tmp.71 :COLOR_TRANSPARENT; - invoke %tmp.67 %tmp.68(%tmp.70, %tmp.72); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc" 51 8 ] - %tmp.73 = lgetv %dc; - symbol [ dc %tmp.73 51 8 10 ]; - symbol [ drawText %tmp.74 51 11 19 ]; - %tmp.74 = getv function %tmp.73 :drawText; - %tmp.75 = lgetv %width.1; - symbol [ width %tmp.75 52 12 17 ]; - %tmp.76 = 2; - %tmp.77 = div %tmp.75 %tmp.76; - %tmp.78 = lgetv %height.2; - symbol [ height %tmp.78 53 13 19 ]; - %tmp.79 = 2; - %tmp.80 = div %tmp.78 %tmp.79; - %tmp.81 = 50; - %tmp.82 = add %tmp.80 %tmp.81; - symbol [ Graphics %tmp.83 54 12 20 ]; - %tmp.83 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.84 54 21 31 ]; - %tmp.84 = getv %tmp.83 :FONT_SMALL; - %tmp.85 = "spm"; - symbol [ Graphics %tmp.86 56 12 20 ]; - %tmp.86 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.87 56 21 40 ]; - %tmp.87 = getv %tmp.86 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.88 56 43 51 ]; - %tmp.88 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.89 56 52 72 ]; - %tmp.89 = getv %tmp.88 :TEXT_JUSTIFY_VCENTER; - %tmp.90 = bitor %tmp.87 %tmp.89; - invoke %tmp.73 %tmp.74(%tmp.77, %tmp.82, %tmp.84, %tmp.85, %tmp.90); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_CadenceMinView_mc_14_40_58_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\CadenceMinView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/SettingsView.mir b/bin/mir/source/Views/SettingsView.mir deleted file mode 100644 index 51c9bb4..0000000 --- a/bin/mir/source/Views/SettingsView.mir +++ /dev/null @@ -1,117 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc"; @line = 4; @symbol_classdef = [SettingsView,4,6,18]; @symbol_extends<0> = [WatchUi,4,27,34]; @symbol_extends<1> = [View,4,35,39]; ] -class SettingsView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc"; @line = 4; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc"; @line = 4; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc"; @line = 6; @symbol_functiondef = [initialize,6,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsView_mc_6_26_8_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc" 7 8 ] - symbol [ View %tmp.2 7 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 7 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsView_mc_6_26_8_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc"; @line = 10; @symbol_functiondef = [onUpdate,10,13,21]; @symbol_param<0> = [dc,10,22,24]; @symbol_param<0>_type<0> = [Dc,10,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsView_mc_10_40_29_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc" 13 8 ] - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 13 8 10 ]; - symbol [ setColor %tmp.2 13 11 19 ]; - %tmp.2 = getv function %tmp.1 :setColor; - symbol [ Graphics %tmp.3 13 20 28 ]; - %tmp.3 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.4 13 29 40 ]; - %tmp.4 = getv %tmp.3 :COLOR_BLACK; - symbol [ Graphics %tmp.5 13 42 50 ]; - %tmp.5 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.6 13 51 62 ]; - %tmp.6 = getv %tmp.5 :COLOR_BLACK; - invoke %tmp.1 %tmp.2(%tmp.4, %tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc" 14 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 14 8 10 ]; - symbol [ clear %tmp.8 14 11 16 ]; - %tmp.8 = getv function %tmp.7 :clear; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc" 17 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsView_mc_10_40_29_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsView_mc_10_40_29_4_stop" ] - %width.1 = local; - symbol [ width %width.1 17 12 17 ]; - %tmp.9 = lgetv %dc; - symbol [ dc %tmp.9 17 20 22 ]; - symbol [ getWidth %tmp.10 17 23 31 ]; - %tmp.10 = getv function %tmp.9 :getWidth; - %tmp.11 = invoke %tmp.9 %tmp.10(); - lputv %width.1 %tmp.11; - symbol [ width %width.1 17 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc" 18 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsView_mc_10_40_29_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsView_mc_10_40_29_4_stop" ] - %height.2 = local; - symbol [ height %height.2 18 12 18 ]; - %tmp.12 = lgetv %dc; - symbol [ dc %tmp.12 18 21 23 ]; - symbol [ getHeight %tmp.13 18 24 33 ]; - %tmp.13 = getv function %tmp.12 :getHeight; - %tmp.14 = invoke %tmp.12 %tmp.13(); - lputv %height.2 %tmp.14; - symbol [ height %height.2 18 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc" 21 8 ] - %tmp.15 = lgetv %dc; - symbol [ dc %tmp.15 21 8 10 ]; - symbol [ setColor %tmp.16 21 11 19 ]; - %tmp.16 = getv function %tmp.15 :setColor; - symbol [ Graphics %tmp.17 21 20 28 ]; - %tmp.17 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.18 21 29 40 ]; - %tmp.18 = getv %tmp.17 :COLOR_WHITE; - symbol [ Graphics %tmp.19 21 42 50 ]; - %tmp.19 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.20 21 51 68 ]; - %tmp.20 = getv %tmp.19 :COLOR_TRANSPARENT; - invoke %tmp.15 %tmp.16(%tmp.18, %tmp.20); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc" 22 8 ] - %tmp.21 = lgetv %dc; - symbol [ dc %tmp.21 22 8 10 ]; - symbol [ drawText %tmp.22 22 11 19 ]; - %tmp.22 = getv function %tmp.21 :drawText; - %tmp.23 = lgetv %width.1; - symbol [ width %tmp.23 23 12 17 ]; - %tmp.24 = 2; - %tmp.25 = div %tmp.23 %tmp.24; - %tmp.26 = lgetv %height.2; - symbol [ height %tmp.26 24 12 18 ]; - %tmp.27 = 2; - %tmp.28 = div %tmp.26 %tmp.27; - symbol [ Graphics %tmp.29 25 12 20 ]; - %tmp.29 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.30 25 21 32 ]; - %tmp.30 = getv %tmp.29 :FONT_MEDIUM; - %tmp.31 = "Settings"; - symbol [ Graphics %tmp.32 27 12 20 ]; - %tmp.32 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.33 27 21 40 ]; - %tmp.33 = getv %tmp.32 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.34 27 43 51 ]; - %tmp.34 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.35 27 52 72 ]; - %tmp.35 = getv %tmp.34 :TEXT_JUSTIFY_VCENTER; - %tmp.36 = bitor %tmp.33 %tmp.35; - invoke %tmp.21 %tmp.22(%tmp.25, %tmp.28, %tmp.30, %tmp.31, %tmp.36); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsView_mc_10_40_29_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/SettingsViews/BarChartSettingsMenuView.mir b/bin/mir/source/Views/SettingsViews/BarChartSettingsMenuView.mir deleted file mode 100644 index ae2b735..0000000 --- a/bin/mir/source/Views/SettingsViews/BarChartSettingsMenuView.mir +++ /dev/null @@ -1,148 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc"; @line = 4; @symbol_classdef = [BarChartSettingsMenuView,4,6,30]; @symbol_extends<0> = [WatchUi,4,39,46]; @symbol_extends<1> = [View,4,47,51]; ] -class BarChartSettingsMenuView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc"; @line = 4; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc"; @line = 4; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc"; @line = 6; @symbol_functiondef = [initialize,6,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_BarChartSettingsMenuView_mc_6_26_8_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc" 7 8 ] - symbol [ View %tmp.2 7 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 7 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_BarChartSettingsMenuView_mc_6_26_8_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc"; @line = 10; @symbol_functiondef = [onUpdate,10,13,21]; @symbol_param<0> = [dc,10,22,24]; @symbol_param<0>_type<0> = [Dc,10,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_BarChartSettingsMenuView_mc_10_40_22_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc" 13 8 ] - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 13 8 10 ]; - symbol [ setColor %tmp.2 13 11 19 ]; - %tmp.2 = getv function %tmp.1 :setColor; - symbol [ Graphics %tmp.3 13 20 28 ]; - %tmp.3 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.4 13 29 40 ]; - %tmp.4 = getv %tmp.3 :COLOR_BLACK; - symbol [ Graphics %tmp.5 13 42 50 ]; - %tmp.5 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.6 13 51 62 ]; - %tmp.6 = getv %tmp.5 :COLOR_BLACK; - invoke %tmp.1 %tmp.2(%tmp.4, %tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc" 14 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 14 8 10 ]; - symbol [ clear %tmp.8 14 11 16 ]; - %tmp.8 = getv function %tmp.7 :clear; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc" 15 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_BarChartSettingsMenuView_mc_10_40_22_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_BarChartSettingsMenuView_mc_10_40_22_4_stop" ] - %centerX.1 = local; - symbol [ centerX %centerX.1 15 12 19 ]; - %tmp.9 = lgetv %dc; - symbol [ dc %tmp.9 15 22 24 ]; - symbol [ getWidth %tmp.10 15 25 33 ]; - %tmp.10 = getv function %tmp.9 :getWidth; - %tmp.11 = invoke %tmp.9 %tmp.10(); - %tmp.12 = 2; - %tmp.13 = div %tmp.11 %tmp.12; - lputv %centerX.1 %tmp.13; - symbol [ centerX %centerX.1 15 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc" 16 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_BarChartSettingsMenuView_mc_10_40_22_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_BarChartSettingsMenuView_mc_10_40_22_4_stop" ] - %centerY.2 = local; - symbol [ centerY %centerY.2 16 12 19 ]; - %tmp.14 = lgetv %dc; - symbol [ dc %tmp.14 16 22 24 ]; - symbol [ getHeight %tmp.15 16 25 34 ]; - %tmp.15 = getv function %tmp.14 :getHeight; - %tmp.16 = invoke %tmp.14 %tmp.15(); - %tmp.17 = 2; - %tmp.18 = div %tmp.16 %tmp.17; - lputv %centerY.2 %tmp.18; - symbol [ centerY %centerY.2 16 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc" 17 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_BarChartSettingsMenuView_mc_10_40_22_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_BarChartSettingsMenuView_mc_10_40_22_4_stop" ] - %lineSpacing.3 = local; - symbol [ lineSpacing %lineSpacing.3 17 12 23 ]; - %tmp.19 = 50; - lputv %lineSpacing.3 %tmp.19; - symbol [ lineSpacing %lineSpacing.3 17 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc" 19 8 ] - %tmp.20 = lgetv %dc; - symbol [ dc %tmp.20 19 8 10 ]; - symbol [ setColor %tmp.21 19 11 19 ]; - %tmp.21 = getv function %tmp.20 :setColor; - symbol [ Graphics %tmp.22 19 20 28 ]; - %tmp.22 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.23 19 29 40 ]; - %tmp.23 = getv %tmp.22 :COLOR_WHITE; - symbol [ Graphics %tmp.24 19 42 50 ]; - %tmp.24 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.25 19 51 68 ]; - %tmp.25 = getv %tmp.24 :COLOR_TRANSPARENT; - invoke %tmp.20 %tmp.21(%tmp.23, %tmp.25); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc" 20 8 ] - %tmp.26 = lgetv %dc; - symbol [ dc %tmp.26 20 8 10 ]; - symbol [ drawText %tmp.27 20 11 19 ]; - %tmp.27 = getv function %tmp.26 :drawText; - %tmp.28 = lgetv %centerX.1; - symbol [ centerX %tmp.28 20 20 27 ]; - %tmp.29 = lgetv %centerY.2; - symbol [ centerY %tmp.29 20 29 36 ]; - %tmp.30 = lgetv %lineSpacing.3; - symbol [ lineSpacing %tmp.30 20 40 51 ]; - %tmp.31 = 2; - %tmp.32 = div %tmp.30 %tmp.31; - %tmp.33 = sub %tmp.29 %tmp.32; - symbol [ Graphics %tmp.34 20 56 64 ]; - %tmp.34 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.35 20 65 76 ]; - %tmp.35 = getv %tmp.34 :FONT_MEDIUM; - %tmp.36 = "Change"; - symbol [ Graphics %tmp.37 20 88 96 ]; - %tmp.37 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.38 20 97 116 ]; - %tmp.38 = getv %tmp.37 :TEXT_JUSTIFY_CENTER; - invoke %tmp.26 %tmp.27(%tmp.28, %tmp.33, %tmp.35, %tmp.36, %tmp.38); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc" 21 8 ] - %tmp.39 = lgetv %dc; - symbol [ dc %tmp.39 21 8 10 ]; - symbol [ drawText %tmp.40 21 11 19 ]; - %tmp.40 = getv function %tmp.39 :drawText; - %tmp.41 = lgetv %centerX.1; - symbol [ centerX %tmp.41 21 20 27 ]; - %tmp.42 = lgetv %centerY.2; - symbol [ centerY %tmp.42 21 29 36 ]; - %tmp.43 = lgetv %lineSpacing.3; - symbol [ lineSpacing %tmp.43 21 40 51 ]; - %tmp.44 = 2; - %tmp.45 = div %tmp.43 %tmp.44; - %tmp.46 = add %tmp.42 %tmp.45; - symbol [ Graphics %tmp.47 21 56 64 ]; - %tmp.47 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.48 21 65 76 ]; - %tmp.48 = getv %tmp.47 :FONT_MEDIUM; - %tmp.49 = "Bar Chart Length"; - symbol [ Graphics %tmp.50 21 98 106 ]; - %tmp.50 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.51 21 107 126 ]; - %tmp.51 = getv %tmp.50 :TEXT_JUSTIFY_CENTER; - invoke %tmp.39 %tmp.40(%tmp.41, %tmp.46, %tmp.48, %tmp.49, %tmp.51); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_BarChartSettingsMenuView_mc_10_40_22_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\BarChartSettingsMenuView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/SettingsViews/CadenceSettingsMenuView.mir b/bin/mir/source/Views/SettingsViews/CadenceSettingsMenuView.mir deleted file mode 100644 index fb13429..0000000 --- a/bin/mir/source/Views/SettingsViews/CadenceSettingsMenuView.mir +++ /dev/null @@ -1,148 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc"; @line = 4; @symbol_classdef = [CadenceSettingsMenuView,4,6,29]; @symbol_extends<0> = [WatchUi,4,38,45]; @symbol_extends<1> = [View,4,46,50]; ] -class CadenceSettingsMenuView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc"; @line = 4; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc"; @line = 4; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc"; @line = 6; @symbol_functiondef = [initialize,6,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_CadenceSettingsMenuView_mc_6_26_8_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc" 7 8 ] - symbol [ View %tmp.2 7 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 7 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_CadenceSettingsMenuView_mc_6_26_8_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc"; @line = 10; @symbol_functiondef = [onUpdate,10,13,21]; @symbol_param<0> = [dc,10,22,24]; @symbol_param<0>_type<0> = [Dc,10,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_CadenceSettingsMenuView_mc_10_40_22_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc" 13 8 ] - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 13 8 10 ]; - symbol [ setColor %tmp.2 13 11 19 ]; - %tmp.2 = getv function %tmp.1 :setColor; - symbol [ Graphics %tmp.3 13 20 28 ]; - %tmp.3 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.4 13 29 40 ]; - %tmp.4 = getv %tmp.3 :COLOR_BLACK; - symbol [ Graphics %tmp.5 13 42 50 ]; - %tmp.5 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.6 13 51 62 ]; - %tmp.6 = getv %tmp.5 :COLOR_BLACK; - invoke %tmp.1 %tmp.2(%tmp.4, %tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc" 14 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 14 8 10 ]; - symbol [ clear %tmp.8 14 11 16 ]; - %tmp.8 = getv function %tmp.7 :clear; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc" 15 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_CadenceSettingsMenuView_mc_10_40_22_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_CadenceSettingsMenuView_mc_10_40_22_4_stop" ] - %centerX.1 = local; - symbol [ centerX %centerX.1 15 12 19 ]; - %tmp.9 = lgetv %dc; - symbol [ dc %tmp.9 15 22 24 ]; - symbol [ getWidth %tmp.10 15 25 33 ]; - %tmp.10 = getv function %tmp.9 :getWidth; - %tmp.11 = invoke %tmp.9 %tmp.10(); - %tmp.12 = 2; - %tmp.13 = div %tmp.11 %tmp.12; - lputv %centerX.1 %tmp.13; - symbol [ centerX %centerX.1 15 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc" 16 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_CadenceSettingsMenuView_mc_10_40_22_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_CadenceSettingsMenuView_mc_10_40_22_4_stop" ] - %centerY.2 = local; - symbol [ centerY %centerY.2 16 12 19 ]; - %tmp.14 = lgetv %dc; - symbol [ dc %tmp.14 16 22 24 ]; - symbol [ getHeight %tmp.15 16 25 34 ]; - %tmp.15 = getv function %tmp.14 :getHeight; - %tmp.16 = invoke %tmp.14 %tmp.15(); - %tmp.17 = 2; - %tmp.18 = div %tmp.16 %tmp.17; - lputv %centerY.2 %tmp.18; - symbol [ centerY %centerY.2 16 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc" 17 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_CadenceSettingsMenuView_mc_10_40_22_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_CadenceSettingsMenuView_mc_10_40_22_4_stop" ] - %lineSpacing.3 = local; - symbol [ lineSpacing %lineSpacing.3 17 12 23 ]; - %tmp.19 = 50; - lputv %lineSpacing.3 %tmp.19; - symbol [ lineSpacing %lineSpacing.3 17 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc" 19 8 ] - %tmp.20 = lgetv %dc; - symbol [ dc %tmp.20 19 8 10 ]; - symbol [ setColor %tmp.21 19 11 19 ]; - %tmp.21 = getv function %tmp.20 :setColor; - symbol [ Graphics %tmp.22 19 20 28 ]; - %tmp.22 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.23 19 29 40 ]; - %tmp.23 = getv %tmp.22 :COLOR_WHITE; - symbol [ Graphics %tmp.24 19 42 50 ]; - %tmp.24 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.25 19 51 68 ]; - %tmp.25 = getv %tmp.24 :COLOR_TRANSPARENT; - invoke %tmp.20 %tmp.21(%tmp.23, %tmp.25); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc" 20 8 ] - %tmp.26 = lgetv %dc; - symbol [ dc %tmp.26 20 8 10 ]; - symbol [ drawText %tmp.27 20 11 19 ]; - %tmp.27 = getv function %tmp.26 :drawText; - %tmp.28 = lgetv %centerX.1; - symbol [ centerX %tmp.28 20 20 27 ]; - %tmp.29 = lgetv %centerY.2; - symbol [ centerY %tmp.29 20 29 36 ]; - %tmp.30 = lgetv %lineSpacing.3; - symbol [ lineSpacing %tmp.30 20 40 51 ]; - %tmp.31 = 2; - %tmp.32 = div %tmp.30 %tmp.31; - %tmp.33 = sub %tmp.29 %tmp.32; - symbol [ Graphics %tmp.34 20 56 64 ]; - %tmp.34 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.35 20 65 76 ]; - %tmp.35 = getv %tmp.34 :FONT_MEDIUM; - %tmp.36 = "Set"; - symbol [ Graphics %tmp.37 20 85 93 ]; - %tmp.37 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.38 20 94 113 ]; - %tmp.38 = getv %tmp.37 :TEXT_JUSTIFY_CENTER; - invoke %tmp.26 %tmp.27(%tmp.28, %tmp.33, %tmp.35, %tmp.36, %tmp.38); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc" 21 8 ] - %tmp.39 = lgetv %dc; - symbol [ dc %tmp.39 21 8 10 ]; - symbol [ drawText %tmp.40 21 11 19 ]; - %tmp.40 = getv function %tmp.39 :drawText; - %tmp.41 = lgetv %centerX.1; - symbol [ centerX %tmp.41 21 20 27 ]; - %tmp.42 = lgetv %centerY.2; - symbol [ centerY %tmp.42 21 29 36 ]; - %tmp.43 = lgetv %lineSpacing.3; - symbol [ lineSpacing %tmp.43 21 40 51 ]; - %tmp.44 = 2; - %tmp.45 = div %tmp.43 %tmp.44; - %tmp.46 = add %tmp.42 %tmp.45; - symbol [ Graphics %tmp.47 21 56 64 ]; - %tmp.47 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.48 21 65 76 ]; - %tmp.48 = getv %tmp.47 :FONT_MEDIUM; - %tmp.49 = "Cadence Range"; - symbol [ Graphics %tmp.50 21 95 103 ]; - %tmp.50 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.51 21 104 123 ]; - %tmp.51 = getv %tmp.50 :TEXT_JUSTIFY_CENTER; - invoke %tmp.39 %tmp.40(%tmp.41, %tmp.46, %tmp.48, %tmp.49, %tmp.51); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_CadenceSettingsMenuView_mc_10_40_22_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\CadenceSettingsMenuView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/SettingsViews/ProfileSettingsMenuView.mir b/bin/mir/source/Views/SettingsViews/ProfileSettingsMenuView.mir deleted file mode 100644 index ac1d6f3..0000000 --- a/bin/mir/source/Views/SettingsViews/ProfileSettingsMenuView.mir +++ /dev/null @@ -1,117 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc"; @line = 4; @symbol_classdef = [ProfileSettingsMenuView,4,6,29]; @symbol_extends<0> = [WatchUi,4,38,45]; @symbol_extends<1> = [View,4,46,50]; ] -class ProfileSettingsMenuView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc"; @line = 4; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc"; @line = 4; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc"; @line = 6; @symbol_functiondef = [initialize,6,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_ProfileSettingsMenuView_mc_6_26_8_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc" 7 8 ] - symbol [ View %tmp.2 7 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 7 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_ProfileSettingsMenuView_mc_6_26_8_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc"; @line = 10; @symbol_functiondef = [onUpdate,10,13,21]; @symbol_param<0> = [dc,10,22,24]; @symbol_param<0>_type<0> = [Dc,10,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_ProfileSettingsMenuView_mc_10_40_29_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc" 13 8 ] - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 13 8 10 ]; - symbol [ setColor %tmp.2 13 11 19 ]; - %tmp.2 = getv function %tmp.1 :setColor; - symbol [ Graphics %tmp.3 13 20 28 ]; - %tmp.3 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.4 13 29 40 ]; - %tmp.4 = getv %tmp.3 :COLOR_BLACK; - symbol [ Graphics %tmp.5 13 42 50 ]; - %tmp.5 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.6 13 51 62 ]; - %tmp.6 = getv %tmp.5 :COLOR_BLACK; - invoke %tmp.1 %tmp.2(%tmp.4, %tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc" 14 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 14 8 10 ]; - symbol [ clear %tmp.8 14 11 16 ]; - %tmp.8 = getv function %tmp.7 :clear; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc" 17 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_ProfileSettingsMenuView_mc_10_40_29_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_ProfileSettingsMenuView_mc_10_40_29_4_stop" ] - %width.1 = local; - symbol [ width %width.1 17 12 17 ]; - %tmp.9 = lgetv %dc; - symbol [ dc %tmp.9 17 20 22 ]; - symbol [ getWidth %tmp.10 17 23 31 ]; - %tmp.10 = getv function %tmp.9 :getWidth; - %tmp.11 = invoke %tmp.9 %tmp.10(); - lputv %width.1 %tmp.11; - symbol [ width %width.1 17 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc" 18 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_ProfileSettingsMenuView_mc_10_40_29_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_ProfileSettingsMenuView_mc_10_40_29_4_stop" ] - %height.2 = local; - symbol [ height %height.2 18 12 18 ]; - %tmp.12 = lgetv %dc; - symbol [ dc %tmp.12 18 21 23 ]; - symbol [ getHeight %tmp.13 18 24 33 ]; - %tmp.13 = getv function %tmp.12 :getHeight; - %tmp.14 = invoke %tmp.12 %tmp.13(); - lputv %height.2 %tmp.14; - symbol [ height %height.2 18 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc" 21 8 ] - %tmp.15 = lgetv %dc; - symbol [ dc %tmp.15 21 8 10 ]; - symbol [ setColor %tmp.16 21 11 19 ]; - %tmp.16 = getv function %tmp.15 :setColor; - symbol [ Graphics %tmp.17 21 20 28 ]; - %tmp.17 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.18 21 29 40 ]; - %tmp.18 = getv %tmp.17 :COLOR_WHITE; - symbol [ Graphics %tmp.19 21 42 50 ]; - %tmp.19 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.20 21 51 68 ]; - %tmp.20 = getv %tmp.19 :COLOR_TRANSPARENT; - invoke %tmp.15 %tmp.16(%tmp.18, %tmp.20); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc" 22 8 ] - %tmp.21 = lgetv %dc; - symbol [ dc %tmp.21 22 8 10 ]; - symbol [ drawText %tmp.22 22 11 19 ]; - %tmp.22 = getv function %tmp.21 :drawText; - %tmp.23 = lgetv %width.1; - symbol [ width %tmp.23 23 12 17 ]; - %tmp.24 = 2; - %tmp.25 = div %tmp.23 %tmp.24; - %tmp.26 = lgetv %height.2; - symbol [ height %tmp.26 24 12 18 ]; - %tmp.27 = 2; - %tmp.28 = div %tmp.26 %tmp.27; - symbol [ Graphics %tmp.29 25 12 20 ]; - %tmp.29 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.30 25 21 32 ]; - %tmp.30 = getv %tmp.29 :FONT_MEDIUM; - %tmp.31 = "Profile Settings"; - symbol [ Graphics %tmp.32 27 12 20 ]; - %tmp.32 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.33 27 21 40 ]; - %tmp.33 = getv %tmp.32 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.34 27 43 51 ]; - %tmp.34 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.35 27 52 72 ]; - %tmp.35 = getv %tmp.34 :TEXT_JUSTIFY_VCENTER; - %tmp.36 = bitor %tmp.33 %tmp.35; - invoke %tmp.21 %tmp.22(%tmp.25, %tmp.28, %tmp.30, %tmp.31, %tmp.36); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_ProfileSettingsMenuView_mc_10_40_29_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\ProfileSettingsMenuView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/SettingsViews/SummarySettingsMenuView.mir b/bin/mir/source/Views/SettingsViews/SummarySettingsMenuView.mir deleted file mode 100644 index af372b6..0000000 --- a/bin/mir/source/Views/SettingsViews/SummarySettingsMenuView.mir +++ /dev/null @@ -1,148 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc"; @line = 4; @symbol_classdef = [SummarySettingsMenuView,4,6,29]; @symbol_extends<0> = [WatchUi,4,38,45]; @symbol_extends<1> = [View,4,46,50]; ] -class SummarySettingsMenuView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc"; @line = 4; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc"; @line = 4; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc"; @line = 6; @symbol_functiondef = [initialize,6,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_SummarySettingsMenuView_mc_6_26_8_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc" 7 8 ] - symbol [ View %tmp.2 7 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 7 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_SummarySettingsMenuView_mc_6_26_8_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc"; @line = 10; @symbol_functiondef = [onUpdate,10,13,21]; @symbol_param<0> = [dc,10,22,24]; @symbol_param<0>_type<0> = [Dc,10,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_SummarySettingsMenuView_mc_10_40_23_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc" 13 8 ] - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 13 8 10 ]; - symbol [ setColor %tmp.2 13 11 19 ]; - %tmp.2 = getv function %tmp.1 :setColor; - symbol [ Graphics %tmp.3 13 20 28 ]; - %tmp.3 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.4 13 29 40 ]; - %tmp.4 = getv %tmp.3 :COLOR_BLACK; - symbol [ Graphics %tmp.5 13 42 50 ]; - %tmp.5 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.6 13 51 62 ]; - %tmp.6 = getv %tmp.5 :COLOR_BLACK; - invoke %tmp.1 %tmp.2(%tmp.4, %tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc" 14 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 14 8 10 ]; - symbol [ clear %tmp.8 14 11 16 ]; - %tmp.8 = getv function %tmp.7 :clear; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc" 15 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_SummarySettingsMenuView_mc_10_40_23_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_SummarySettingsMenuView_mc_10_40_23_4_stop" ] - %centerX.1 = local; - symbol [ centerX %centerX.1 15 12 19 ]; - %tmp.9 = lgetv %dc; - symbol [ dc %tmp.9 15 22 24 ]; - symbol [ getWidth %tmp.10 15 25 33 ]; - %tmp.10 = getv function %tmp.9 :getWidth; - %tmp.11 = invoke %tmp.9 %tmp.10(); - %tmp.12 = 2; - %tmp.13 = div %tmp.11 %tmp.12; - lputv %centerX.1 %tmp.13; - symbol [ centerX %centerX.1 15 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc" 16 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_SummarySettingsMenuView_mc_10_40_23_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_SummarySettingsMenuView_mc_10_40_23_4_stop" ] - %centerY.2 = local; - symbol [ centerY %centerY.2 16 12 19 ]; - %tmp.14 = lgetv %dc; - symbol [ dc %tmp.14 16 22 24 ]; - symbol [ getHeight %tmp.15 16 25 34 ]; - %tmp.15 = getv function %tmp.14 :getHeight; - %tmp.16 = invoke %tmp.14 %tmp.15(); - %tmp.17 = 2; - %tmp.18 = div %tmp.16 %tmp.17; - lputv %centerY.2 %tmp.18; - symbol [ centerY %centerY.2 16 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc" 17 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_SummarySettingsMenuView_mc_10_40_23_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_SummarySettingsMenuView_mc_10_40_23_4_stop" ] - %lineSpacing.3 = local; - symbol [ lineSpacing %lineSpacing.3 17 12 23 ]; - %tmp.19 = 50; - lputv %lineSpacing.3 %tmp.19; - symbol [ lineSpacing %lineSpacing.3 17 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc" 19 8 ] - %tmp.20 = lgetv %dc; - symbol [ dc %tmp.20 19 8 10 ]; - symbol [ setColor %tmp.21 19 11 19 ]; - %tmp.21 = getv function %tmp.20 :setColor; - symbol [ Graphics %tmp.22 19 20 28 ]; - %tmp.22 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.23 19 29 40 ]; - %tmp.23 = getv %tmp.22 :COLOR_WHITE; - symbol [ Graphics %tmp.24 19 42 50 ]; - %tmp.24 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.25 19 51 68 ]; - %tmp.25 = getv %tmp.24 :COLOR_TRANSPARENT; - invoke %tmp.20 %tmp.21(%tmp.23, %tmp.25); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc" 20 8 ] - %tmp.26 = lgetv %dc; - symbol [ dc %tmp.26 20 8 10 ]; - symbol [ drawText %tmp.27 20 11 19 ]; - %tmp.27 = getv function %tmp.26 :drawText; - %tmp.28 = lgetv %centerX.1; - symbol [ centerX %tmp.28 20 20 27 ]; - %tmp.29 = lgetv %centerY.2; - symbol [ centerY %tmp.29 20 29 36 ]; - %tmp.30 = lgetv %lineSpacing.3; - symbol [ lineSpacing %tmp.30 20 40 51 ]; - %tmp.31 = 2; - %tmp.32 = div %tmp.30 %tmp.31; - %tmp.33 = sub %tmp.29 %tmp.32; - symbol [ Graphics %tmp.34 20 56 64 ]; - %tmp.34 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.35 20 65 76 ]; - %tmp.35 = getv %tmp.34 :FONT_MEDIUM; - %tmp.36 = "Summary View"; - symbol [ Graphics %tmp.37 20 94 102 ]; - %tmp.37 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.38 20 103 122 ]; - %tmp.38 = getv %tmp.37 :TEXT_JUSTIFY_CENTER; - invoke %tmp.26 %tmp.27(%tmp.28, %tmp.33, %tmp.35, %tmp.36, %tmp.38); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc" 21 8 ] - %tmp.39 = lgetv %dc; - symbol [ dc %tmp.39 21 8 10 ]; - symbol [ drawText %tmp.40 21 11 19 ]; - %tmp.40 = getv function %tmp.39 :drawText; - %tmp.41 = lgetv %centerX.1; - symbol [ centerX %tmp.41 21 20 27 ]; - %tmp.42 = lgetv %centerY.2; - symbol [ centerY %tmp.42 21 29 36 ]; - %tmp.43 = lgetv %lineSpacing.3; - symbol [ lineSpacing %tmp.43 21 40 51 ]; - %tmp.44 = 2; - %tmp.45 = div %tmp.43 %tmp.44; - %tmp.46 = add %tmp.42 %tmp.45; - symbol [ Graphics %tmp.47 21 56 64 ]; - %tmp.47 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.48 21 65 76 ]; - %tmp.48 = getv %tmp.47 :FONT_MEDIUM; - %tmp.49 = "ON/OFF"; - symbol [ Graphics %tmp.50 21 88 96 ]; - %tmp.50 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.51 21 97 116 ]; - %tmp.51 = getv %tmp.50 :TEXT_JUSTIFY_CENTER; - invoke %tmp.39 %tmp.40(%tmp.41, %tmp.46, %tmp.48, %tmp.49, %tmp.51); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SettingsViews_SummarySettingsMenuView_mc_10_40_23_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SettingsViews\SummarySettingsMenuView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/SimpleView.mir b/bin/mir/source/Views/SimpleView.mir deleted file mode 100644 index 19ba67c..0000000 --- a/bin/mir/source/Views/SimpleView.mir +++ /dev/null @@ -1,1891 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [Activity,3,14,22]; ] -import Toybox.Activity; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Lang,4,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 5; @symbol_importdef<0> = [Toybox,5,7,13]; @symbol_importdef<1> = [Timer,5,14,19]; ] -import Toybox.Timer; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 6; @symbol_importdef<0> = [Toybox,6,7,13]; @symbol_importdef<1> = [System,6,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 7; @symbol_importdef<0> = [Toybox,7,7,13]; @symbol_importdef<1> = [Attention,7,14,23]; ] -import Toybox.Attention; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 9; @symbol_classdef = [SimpleView,9,6,16]; @symbol_extends<0> = [WatchUi,9,25,32]; @symbol_extends<1> = [View,9,33,37]; ] -class SimpleView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 9; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 9; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 11; @position = 16; @symbol_vardef = [_cadenceDisplay,11,16,31]; ] - private - var _cadenceDisplay; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 12; @position = 16; @symbol_vardef = [_refreshTimer,12,16,29]; ] - private - var _refreshTimer; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 13; @position = 16; @symbol_vardef = [_heartrateDisplay,13,16,33]; ] - private - var _heartrateDisplay; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 14; @position = 16; @symbol_vardef = [_distanceDisplay,14,16,32]; ] - private - var _distanceDisplay; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 15; @position = 16; @symbol_vardef = [_timeDisplay,15,16,28]; ] - private - var _timeDisplay; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 16; @position = 16; @symbol_vardef = [_cadenceZoneDisplay,16,16,35]; ] - private - var _cadenceZoneDisplay; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 17; @position = 16; @symbol_vardef = [_lastZoneState,17,16,30]; ] - private - var _lastZoneState = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 18; @position = 16; @symbol_vardef = [_cqDisplay,18,16,26]; ] - private - var _cqDisplay; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 19; @position = 16; @symbol_vardef = [_paceDisplay,19,16,28]; ] - private - var _paceDisplay; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 23; @position = 16; @symbol_vardef = [_alertStartTime,23,16,31]; ] - private - var _alertStartTime = null; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 24; @position = 16; @symbol_vardef = [_alertDuration,24,16,30]; ] - private - var _alertDuration = 180000; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 25; @position = 16; @symbol_vardef = [_alertInterval,25,16,30]; ] - private - var _alertInterval = 30000; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 26; @position = 16; @symbol_vardef = [_lastAlertTime,26,16,30]; ] - private - var _lastAlertTime = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 27; @position = 16; @symbol_vardef = [_pendingSecondVibe,27,16,34]; ] - private - var _pendingSecondVibe = false; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 28; @position = 16; @symbol_vardef = [_secondVibeTime,28,16,31]; ] - private - var _secondVibeTime = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 31; @symbol_functiondef = [initialize,31,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_31_26_33_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 32 4 ] - symbol [ WatchUi %tmp.1 32 4 11 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ View %tmp.2 32 12 16 ]; - %tmp.2 = getv %tmp.1 :View; - symbol [ initialize %tmp.3 32 17 27 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_31_26_33_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 38; @symbol_functiondef = [onShow,38,13,19]; ] - function onShow() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_38_30_41_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 39 8 ] - symbol [ Timer %tmp.3 39 28 33 ]; - %tmp.3 = getm $.Toybox.Timer; - symbol [ Timer %tmp.4 39 34 39 ]; - %tmp.4 = getv function ? %tmp.3 :Timer; - %tmp.1 = newc %tmp.4 (); - symbol [ _refreshTimer ? 39 8 21 ]; - putv self :_refreshTimer %tmp.1; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 40 8 ] - symbol [ _refreshTimer %tmp.6 40 8 21 ]; - %tmp.6 = getv ? :_refreshTimer; - symbol [ start %tmp.7 40 22 27 ]; - %tmp.7 = getv function %tmp.6 :start; - %tmp.8 = self; - symbol [ method %tmp.9 40 28 34 ]; - %tmp.9 = getv function %tmp.8 :method; - %tmp.11 = const :refreshScreen; - symbol [ refreshScreen %tmp.11 40 36 49 const ]; - %tmp.12 = invoke %tmp.8 %tmp.9(%tmp.11); - %tmp.13 = 1000; - %tmp.14 = true; - invoke %tmp.6 %tmp.7(%tmp.12, %tmp.13, %tmp.14); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_38_30_41_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 44; @symbol_functiondef = [onUpdate,44,13,21]; @symbol_param<0> = [dc,44,22,24]; @symbol_param<0>_type<0> = [Dc,44,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_44_40_60_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 46 8 ] - %tmp.1 = self; - symbol [ displayCadence %tmp.2 46 8 22 ]; - %tmp.2 = getv function %tmp.1 :displayCadence; - invoke %tmp.1 %tmp.2(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 49 8 ] - %tmp.3 = self; - symbol [ checkPendingVibration %tmp.4 49 8 29 ]; - %tmp.4 = getv function %tmp.3 :checkPendingVibration; - invoke %tmp.3 %tmp.4(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 52 8 ] - %tmp.5 = self; - symbol [ drawRecordingIndicator %tmp.6 52 8 30 ]; - %tmp.6 = getv function %tmp.5 :drawRecordingIndicator; - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 52 31 33 ]; - invoke %tmp.5 %tmp.6(%tmp.7); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 55 8 ] - symbol [ View %tmp.9 55 8 12 ]; - %tmp.9 = getv ? :View; - symbol [ onUpdate %tmp.10 55 13 21 ]; - %tmp.10 = getv function %tmp.9 :onUpdate; - %tmp.11 = lgetv %dc; - symbol [ dc %tmp.11 55 22 24 ]; - invoke %tmp.9 %tmp.10(%tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 58 8 ] - %tmp.12 = self; - symbol [ drawDividers %tmp.13 58 8 20 ]; - %tmp.13 = getv function %tmp.12 :drawDividers; - %tmp.14 = lgetv %dc; - symbol [ dc %tmp.14 58 21 23 ]; - invoke %tmp.12 %tmp.13(%tmp.14); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_44_40_60_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 65; @symbol_functiondef = [onHide,65,13,19]; ] - function onHide() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_65_30_73_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 66 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_66_8_69_8_if_stmt: - symbol [ _refreshTimer %tmp.2 66 12 25 ]; - %tmp.2 = getv ? :_refreshTimer; - %tmp.3 = null; - %tmp.4 = ne %tmp.2 %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_66_8_69_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_66_8_69_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_66_35_69_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 67 12 ] - symbol [ _refreshTimer %tmp.6 67 12 25 ]; - %tmp.6 = getv ? :_refreshTimer; - %tmp.7 = as %tmp.6 { (!Null) }; - symbol [ stop %tmp.8 67 26 30 ]; - %tmp.8 = getv function %tmp.7 :stop; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 68 12 ] - %tmp.9 = null; - symbol [ _refreshTimer ? 68 12 25 ]; - putv self :_refreshTimer %tmp.9; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_66_35_69_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_66_8_69_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_66_8_69_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 71 8 ] - %tmp.10 = null; - symbol [ _alertStartTime ? 71 8 23 ]; - putv self :_alertStartTime %tmp.10; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 72 8 ] - %tmp.11 = 0; - symbol [ _lastAlertTime ? 72 8 22 ]; - putv self :_lastAlertTime %tmp.11; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_65_30_73_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 76; @symbol_functiondef = [refreshScreen,76,13,26]; ] - function refreshScreen() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_76_36_78_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 77 8 ] - symbol [ WatchUi %tmp.1 77 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ requestUpdate %tmp.2 77 16 29 ]; - %tmp.2 = getv function %tmp.1 :requestUpdate; - invoke %tmp.1 %tmp.2(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_76_36_78_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 80; @symbol_functiondef = [checkPendingVibration,80,13,34]; ] - function checkPendingVibration() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_80_45_92_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 81 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_81_8_91_8_if_stmt: - symbol [ _pendingSecondVibe %tmp.2 81 12 30 ]; - %tmp.2 = getv ? :_pendingSecondVibe; - bf %tmp.2 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_81_8_91_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_81_8_91_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_81_32_91_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 82 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_81_32_91_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_81_32_91_8_stop" ] - %currentTime.1 = local; - symbol [ currentTime %currentTime.1 82 16 27 ]; - symbol [ System %tmp.3 82 30 36 ]; - %tmp.3 = getm $.Toybox.System; - symbol [ getTimer %tmp.4 82 37 45 ]; - %tmp.4 = getv function %tmp.3 :getTimer; - %tmp.5 = invoke %tmp.3 %tmp.4(); - lputv %currentTime.1 %tmp.5; - symbol [ currentTime %currentTime.1 82 16 27 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 83 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_83_12_90_12_if_stmt: - %tmp.6 = lgetv %currentTime.1; - symbol [ currentTime %tmp.6 83 16 27 ]; - symbol [ _secondVibeTime %tmp.8 83 31 46 ]; - %tmp.8 = getv ? :_secondVibeTime; - %tmp.9 = gte %tmp.6 %tmp.8; - bf %tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_83_12_90_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_83_12_90_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_83_48_90_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 85 16 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_85_16_88_16_if_stmt: - symbol [ Attention %tmp.10 85 20 29 ]; - %tmp.10 = getm $.Toybox.Attention; - %tmp.12 = const :vibrate; - symbol [ vibrate %tmp.12 85 35 42 const ]; - %tmp.13 = canhazplz %tmp.10 %tmp.12; - bf %tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_85_16_88_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_85_16_88_16_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_85_44_88_16_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 86 20 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_85_44_88_16_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_85_44_88_16_stop" ] - %vibeData.2 = local; - symbol [ vibeData %vibeData.2 86 24 32 ]; - %tmp.14 = newa 1; - symbol [ Attention %tmp.17 86 40 49 ]; - %tmp.17 = getm $.Toybox.Attention; - symbol [ VibeProfile %tmp.18 86 50 61 ]; - %tmp.18 = getv function ? %tmp.17 :VibeProfile; - %tmp.19 = 50; - %tmp.20 = 200; - %tmp.15 = newc %tmp.18 (%tmp.19, %tmp.20); - %tmp.21 = dup %tmp.14; - %tmp.22 = aputv %tmp.21 0 %tmp.15; - lputv %vibeData.2 %tmp.22; - symbol [ vibeData %vibeData.2 86 24 32 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 87 20 ] - symbol [ Attention %tmp.23 87 20 29 ]; - %tmp.23 = getm $.Toybox.Attention; - symbol [ vibrate %tmp.24 87 30 37 ]; - %tmp.24 = getv function %tmp.23 :vibrate; - %tmp.25 = lgetv %vibeData.2; - symbol [ vibeData %tmp.25 87 38 46 ]; - invoke %tmp.23 %tmp.24(%tmp.25); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_85_44_88_16_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_85_16_88_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_85_16_88_16_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 89 16 ] - %tmp.26 = false; - symbol [ _pendingSecondVibe ? 89 16 34 ]; - putv self :_pendingSecondVibe %tmp.26; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_83_48_90_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_83_12_90_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_83_12_90_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_81_32_91_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_81_8_91_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_81_8_91_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_80_45_92_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 94; @symbol_functiondef = [triggerSingleVibration,94,13,35]; ] - function triggerSingleVibration() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_94_46_99_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 95 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_95_8_98_8_if_stmt: - symbol [ Attention %tmp.1 95 12 21 ]; - %tmp.1 = getm $.Toybox.Attention; - %tmp.3 = const :vibrate; - symbol [ vibrate %tmp.3 95 27 34 const ]; - %tmp.4 = canhazplz %tmp.1 %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_95_8_98_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_95_8_98_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_95_36_98_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 96 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_95_36_98_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_95_36_98_8_stop" ] - %vibeData.1 = local; - symbol [ vibeData %vibeData.1 96 16 24 ]; - %tmp.5 = newa 1; - symbol [ Attention %tmp.8 96 32 41 ]; - %tmp.8 = getm $.Toybox.Attention; - symbol [ VibeProfile %tmp.9 96 42 53 ]; - %tmp.9 = getv function ? %tmp.8 :VibeProfile; - %tmp.10 = 50; - %tmp.11 = 200; - %tmp.6 = newc %tmp.9 (%tmp.10, %tmp.11); - %tmp.12 = dup %tmp.5; - %tmp.13 = aputv %tmp.12 0 %tmp.6; - lputv %vibeData.1 %tmp.13; - symbol [ vibeData %vibeData.1 96 16 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 97 12 ] - symbol [ Attention %tmp.14 97 12 21 ]; - %tmp.14 = getm $.Toybox.Attention; - symbol [ vibrate %tmp.15 97 22 29 ]; - %tmp.15 = getv function %tmp.14 :vibrate; - %tmp.16 = lgetv %vibeData.1; - symbol [ vibeData %tmp.16 97 30 38 ]; - invoke %tmp.14 %tmp.15(%tmp.16); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_95_36_98_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_95_8_98_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_95_8_98_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_94_46_99_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 101; @symbol_functiondef = [triggerDoubleVibration,101,13,35]; ] - function triggerDoubleVibration() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_101_46_111_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 102 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_102_8_110_8_if_stmt: - symbol [ Attention %tmp.1 102 12 21 ]; - %tmp.1 = getm $.Toybox.Attention; - %tmp.3 = const :vibrate; - symbol [ vibrate %tmp.3 102 27 34 const ]; - %tmp.4 = canhazplz %tmp.1 %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_102_8_110_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_102_8_110_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_102_36_110_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 104 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_102_36_110_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_102_36_110_8_stop" ] - %vibeData.1 = local; - symbol [ vibeData %vibeData.1 104 16 24 ]; - %tmp.5 = newa 1; - symbol [ Attention %tmp.8 104 32 41 ]; - %tmp.8 = getm $.Toybox.Attention; - symbol [ VibeProfile %tmp.9 104 42 53 ]; - %tmp.9 = getv function ? %tmp.8 :VibeProfile; - %tmp.10 = 50; - %tmp.11 = 200; - %tmp.6 = newc %tmp.9 (%tmp.10, %tmp.11); - %tmp.12 = dup %tmp.5; - %tmp.13 = aputv %tmp.12 0 %tmp.6; - lputv %vibeData.1 %tmp.13; - symbol [ vibeData %vibeData.1 104 16 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 105 12 ] - symbol [ Attention %tmp.14 105 12 21 ]; - %tmp.14 = getm $.Toybox.Attention; - symbol [ vibrate %tmp.15 105 22 29 ]; - %tmp.15 = getv function %tmp.14 :vibrate; - %tmp.16 = lgetv %vibeData.1; - symbol [ vibeData %tmp.16 105 30 38 ]; - invoke %tmp.14 %tmp.15(%tmp.16); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 108 12 ] - %tmp.17 = true; - symbol [ _pendingSecondVibe ? 108 12 30 ]; - putv self :_pendingSecondVibe %tmp.17; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 109 12 ] - symbol [ System %tmp.18 109 30 36 ]; - %tmp.18 = getm $.Toybox.System; - symbol [ getTimer %tmp.19 109 37 45 ]; - %tmp.19 = getv function %tmp.18 :getTimer; - %tmp.20 = invoke %tmp.18 %tmp.19(); - %tmp.21 = 240; - %tmp.22 = add %tmp.20 %tmp.21; - symbol [ _secondVibeTime ? 109 12 27 ]; - putv self :_secondVibeTime %tmp.22; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_102_36_110_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_102_8_110_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_102_8_110_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_101_46_111_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 113; @symbol_functiondef = [checkAndTriggerAlerts,113,13,34]; ] - function checkAndTriggerAlerts() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 114 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_stop" ] - %app.1 = local; - symbol [ app %app.1 114 12 15 ]; - symbol [ Application %tmp.2 114 18 29 ]; - %tmp.2 = getv ? :Application; - symbol [ getApp %tmp.3 114 30 36 ]; - %tmp.3 = getv function %tmp.2 :getApp; - %tmp.4 = invoke %tmp.2 %tmp.3(); - lputv %app.1 %tmp.4; - symbol [ app %app.1 114 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 115 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_stop" ] - %isVibrationOn.2 = local; - symbol [ isVibrationOn %isVibrationOn.2 115 12 25 ]; - %tmp.5 = lgetv %app.1; - symbol [ app %tmp.5 115 28 31 ]; - symbol [ getVibrationEnabled %tmp.6 115 32 51 ]; - %tmp.6 = getv function %tmp.5 :getVibrationEnabled; - %tmp.7 = invoke %tmp.5 %tmp.6(); - lputv %isVibrationOn.2 %tmp.7; - symbol [ isVibrationOn %isVibrationOn.2 115 12 25 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 117 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_117_8_119_8_if_stmt: - symbol [ _alertStartTime %tmp.9 117 12 27 ]; - %tmp.9 = getv ? :_alertStartTime; - %tmp.10 = null; - %tmp.11 = eq %tmp.9 %tmp.10; - bf %tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_117_8_119_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_117_8_119_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_117_37_119_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 118 12 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_117_37_119_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_117_8_119_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_117_8_119_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 121 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_stop" ] - %currentTime.3 = local; - symbol [ currentTime %currentTime.3 121 12 23 ]; - symbol [ System %tmp.12 121 26 32 ]; - %tmp.12 = getm $.Toybox.System; - symbol [ getTimer %tmp.13 121 33 41 ]; - %tmp.13 = getv function %tmp.12 :getTimer; - %tmp.14 = invoke %tmp.12 %tmp.13(); - lputv %currentTime.3 %tmp.14; - symbol [ currentTime %currentTime.3 121 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 122 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_stop" ] - %elapsed.4 = local; - symbol [ elapsed %elapsed.4 122 12 19 ]; - %tmp.15 = lgetv %currentTime.3; - symbol [ currentTime %tmp.15 122 22 33 ]; - symbol [ _alertStartTime %tmp.17 122 36 51 ]; - %tmp.17 = getv ? :_alertStartTime; - %tmp.18 = sub %tmp.15 %tmp.17; - lputv %elapsed.4 %tmp.18; - symbol [ elapsed %elapsed.4 122 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 125 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_125_8_129_8_if_stmt: - %tmp.19 = lgetv %elapsed.4; - symbol [ elapsed %tmp.19 125 12 19 ]; - symbol [ _alertDuration %tmp.21 125 23 37 ]; - %tmp.21 = getv ? :_alertDuration; - %tmp.22 = gte %tmp.19 %tmp.21; - bf %tmp.22 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_125_8_129_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_125_8_129_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_125_39_129_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 126 12 ] - %tmp.23 = null; - symbol [ _alertStartTime ? 126 12 27 ]; - putv self :_alertStartTime %tmp.23; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 127 12 ] - %tmp.24 = 0; - symbol [ _lastAlertTime ? 127 12 26 ]; - putv self :_lastAlertTime %tmp.24; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 128 12 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_125_39_129_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_125_8_129_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_125_8_129_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 132 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_stop" ] - %timeSinceLastAlert.5 = local; - symbol [ timeSinceLastAlert %timeSinceLastAlert.5 132 12 30 ]; - %tmp.25 = lgetv %currentTime.3; - symbol [ currentTime %tmp.25 132 33 44 ]; - symbol [ _lastAlertTime %tmp.27 132 47 61 ]; - %tmp.27 = getv ? :_lastAlertTime; - %tmp.28 = sub %tmp.25 %tmp.27; - lputv %timeSinceLastAlert.5 %tmp.28; - symbol [ timeSinceLastAlert %timeSinceLastAlert.5 132 12 30 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 133 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_133_8_159_8_if_stmt: - %tmp.29 = lgetv %timeSinceLastAlert.5; - symbol [ timeSinceLastAlert %tmp.29 133 12 30 ]; - symbol [ _alertInterval %tmp.31 133 34 48 ]; - %tmp.31 = getv ? :_alertInterval; - %tmp.32 = gte %tmp.29 %tmp.31; - bf %tmp.32 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_133_8_159_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_133_8_159_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_133_50_159_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 134 12 ] - %tmp.33 = lgetv %currentTime.3; - symbol [ currentTime %tmp.33 134 29 40 ]; - symbol [ _lastAlertTime ? 134 12 26 ]; - putv self :_lastAlertTime %tmp.33; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 137 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_137_12_157_12_if_stmt: - symbol [ _lastZoneState %tmp.35 137 16 30 ]; - %tmp.35 = getv ? :_lastZoneState; - %tmp.36 = -1; - %tmp.37 = eq %tmp.35 %tmp.36; - bf %tmp.37 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_137_12_157_12_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_137_12_157_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_137_38_148_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 139 16 ] - symbol [ WatchUi %tmp.38 139 16 23 ]; - %tmp.38 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.39 139 24 32 ]; - %tmp.39 = getv function %tmp.38 :pushView; - symbol [ CadenceAlertView %tmp.43 140 24 40 ]; - %tmp.43 = getv ? :CadenceAlertView; - %tmp.44 = "Increase Cadence"; - %tmp.45 = lgetv %isVibrationOn.2; - symbol [ isVibrationOn %tmp.45 140 61 74 ]; - %tmp.40 = newc %tmp.43 (%tmp.44, %tmp.45); - symbol [ CadenceAlertDelegate %tmp.49 141 24 44 ]; - %tmp.49 = getv ? :CadenceAlertDelegate; - %tmp.46 = newc %tmp.49 (); - symbol [ WatchUi %tmp.50 142 20 27 ]; - %tmp.50 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.51 142 28 43 ]; - %tmp.51 = getv %tmp.50 :SLIDE_IMMEDIATE; - invoke %tmp.38 %tmp.39(%tmp.40, %tmp.46, %tmp.51); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 145 16 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_145_16_147_16_if_stmt: - %tmp.52 = lgetv %isVibrationOn.2; - symbol [ isVibrationOn %tmp.52 145 20 33 ]; - bf %tmp.52 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_145_16_147_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_145_16_147_16_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_145_34_147_16_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 146 20 ] - %tmp.53 = self; - symbol [ triggerSingleVibration %tmp.54 146 20 42 ]; - %tmp.54 = getv function %tmp.53 :triggerSingleVibration; - invoke %tmp.53 %tmp.54(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_145_34_147_16_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_145_16_147_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_145_16_147_16_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_137_38_148_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_137_12_157_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_137_12_157_12_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 148 19 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_148_19_157_12_if_stmt: - symbol [ _lastZoneState %tmp.56 148 23 37 ]; - %tmp.56 = getv ? :_lastZoneState; - %tmp.57 = 1; - %tmp.58 = eq %tmp.56 %tmp.57; - bf %tmp.58 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_148_19_157_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_148_19_157_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_148_44_157_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 149 16 ] - symbol [ WatchUi %tmp.59 149 16 23 ]; - %tmp.59 = getm $.Toybox.WatchUi; - symbol [ pushView %tmp.60 149 24 32 ]; - %tmp.60 = getv function %tmp.59 :pushView; - symbol [ CadenceAlertView %tmp.64 150 24 40 ]; - %tmp.64 = getv ? :CadenceAlertView; - %tmp.65 = "Increase Cadence"; - %tmp.66 = lgetv %isVibrationOn.2; - symbol [ isVibrationOn %tmp.66 150 61 74 ]; - %tmp.61 = newc %tmp.64 (%tmp.65, %tmp.66); - symbol [ CadenceAlertDelegate %tmp.70 151 24 44 ]; - %tmp.70 = getv ? :CadenceAlertDelegate; - %tmp.67 = newc %tmp.70 (); - symbol [ WatchUi %tmp.71 152 20 27 ]; - %tmp.71 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.72 152 28 43 ]; - %tmp.72 = getv %tmp.71 :SLIDE_IMMEDIATE; - invoke %tmp.59 %tmp.60(%tmp.61, %tmp.67, %tmp.72); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 154 16 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_154_16_156_16_if_stmt: - %tmp.73 = lgetv %isVibrationOn.2; - symbol [ isVibrationOn %tmp.73 154 20 33 ]; - bf %tmp.73 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_154_16_156_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_154_16_156_16_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_154_34_156_16_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 155 20 ] - %tmp.74 = self; - symbol [ triggerDoubleVibration %tmp.75 155 20 42 ]; - %tmp.75 = getv function %tmp.74 :triggerDoubleVibration; - invoke %tmp.74 %tmp.75(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_154_34_156_16_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_154_16_156_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_154_16_156_16_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_148_44_157_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_148_19_157_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_148_19_157_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_137_12_157_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_133_50_159_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_133_8_159_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_133_8_159_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_113_45_160_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 162; @symbol_functiondef = [drawRecordingIndicator,162,13,35]; @symbol_param<0> = [dc,162,36,38]; @symbol_param<0>_type<0> = [Dc,162,42,44]; ] - function drawRecordingIndicator(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_162_54_182_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 163 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_162_54_182_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_162_54_182_4_stop" ] - %app.1 = local; - symbol [ app %app.1 163 12 15 ]; - %tmp.1 = self; - symbol [ getApp %tmp.2 163 18 24 ]; - %tmp.2 = getv function %tmp.1 :getApp; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %app.1 %tmp.3; - symbol [ app %app.1 163 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 165 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_8_181_8_if_stmt: - %tmp.4 = lgetv %app.1; - symbol [ app %tmp.4 165 12 15 ]; - symbol [ isActivityRecording %tmp.5 165 16 35 ]; - %tmp.5 = getv function %tmp.4 :isActivityRecording; - %tmp.6 = invoke %tmp.4 %tmp.5(); - bf %tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_8_181_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_8_181_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_39_175_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 167 12 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 167 12 14 ]; - symbol [ setColor %tmp.8 167 15 23 ]; - %tmp.8 = getv function %tmp.7 :setColor; - symbol [ Graphics %tmp.9 167 24 32 ]; - %tmp.9 = getm $.Toybox.Graphics; - symbol [ COLOR_RED %tmp.10 167 33 42 ]; - %tmp.10 = getv %tmp.9 :COLOR_RED; - symbol [ Graphics %tmp.11 167 44 52 ]; - %tmp.11 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.12 167 53 70 ]; - %tmp.12 = getv %tmp.11 :COLOR_TRANSPARENT; - invoke %tmp.7 %tmp.8(%tmp.10, %tmp.12); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 168 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_39_175_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_39_175_8_stop" ] - %width.2 = local; - symbol [ width %width.2 168 16 21 ]; - %tmp.13 = lgetv %dc; - symbol [ dc %tmp.13 168 24 26 ]; - symbol [ getWidth %tmp.14 168 27 35 ]; - %tmp.14 = getv function %tmp.13 :getWidth; - %tmp.15 = invoke %tmp.13 %tmp.14(); - lputv %width.2 %tmp.15; - symbol [ width %width.2 168 16 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 169 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_39_175_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_39_175_8_stop" ] - %radius.3 = local; - symbol [ radius %radius.3 169 16 22 ]; - %tmp.16 = 8; - lputv %radius.3 %tmp.16; - symbol [ radius %radius.3 169 16 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 170 12 ] - %tmp.17 = lgetv %dc; - symbol [ dc %tmp.17 170 12 14 ]; - symbol [ fillCircle %tmp.18 170 15 25 ]; - %tmp.18 = getv function %tmp.17 :fillCircle; - %tmp.19 = lgetv %width.2; - symbol [ width %tmp.19 170 26 31 ]; - %tmp.20 = 15; - %tmp.21 = sub %tmp.19 %tmp.20; - %tmp.22 = 15; - %tmp.23 = lgetv %radius.3; - symbol [ radius %tmp.23 170 42 48 ]; - invoke %tmp.17 %tmp.18(%tmp.21, %tmp.22, %tmp.23); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 173 12 ] - %tmp.24 = lgetv %dc; - symbol [ dc %tmp.24 173 12 14 ]; - symbol [ setColor %tmp.25 173 15 23 ]; - %tmp.25 = getv function %tmp.24 :setColor; - symbol [ Graphics %tmp.26 173 24 32 ]; - %tmp.26 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.27 173 33 44 ]; - %tmp.27 = getv %tmp.26 :COLOR_WHITE; - symbol [ Graphics %tmp.28 173 46 54 ]; - %tmp.28 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.29 173 55 72 ]; - %tmp.29 = getv %tmp.28 :COLOR_TRANSPARENT; - invoke %tmp.24 %tmp.25(%tmp.27, %tmp.29); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 174 12 ] - %tmp.30 = lgetv %dc; - symbol [ dc %tmp.30 174 12 14 ]; - symbol [ drawText %tmp.31 174 15 23 ]; - %tmp.31 = getv function %tmp.30 :drawText; - %tmp.32 = lgetv %width.2; - symbol [ width %tmp.32 174 24 29 ]; - %tmp.33 = 35; - %tmp.34 = sub %tmp.32 %tmp.33; - %tmp.35 = 5; - symbol [ Graphics %tmp.36 174 39 47 ]; - %tmp.36 = getm $.Toybox.Graphics; - symbol [ FONT_TINY %tmp.37 174 48 57 ]; - %tmp.37 = getv %tmp.36 :FONT_TINY; - %tmp.38 = "REC"; - symbol [ Graphics %tmp.39 174 66 74 ]; - %tmp.39 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_RIGHT %tmp.40 174 75 93 ]; - %tmp.40 = getv %tmp.39 :TEXT_JUSTIFY_RIGHT; - invoke %tmp.30 %tmp.31(%tmp.34, %tmp.35, %tmp.37, %tmp.38, %tmp.40); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_39_175_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_8_181_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_8_181_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_175_15_181_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 177 12 ] - %tmp.41 = lgetv %dc; - symbol [ dc %tmp.41 177 12 14 ]; - symbol [ setColor %tmp.42 177 15 23 ]; - %tmp.42 = getv function %tmp.41 :setColor; - symbol [ Graphics %tmp.43 177 24 32 ]; - %tmp.43 = getm $.Toybox.Graphics; - symbol [ COLOR_LT_GRAY %tmp.44 177 33 46 ]; - %tmp.44 = getv %tmp.43 :COLOR_LT_GRAY; - symbol [ Graphics %tmp.45 177 48 56 ]; - %tmp.45 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.46 177 57 74 ]; - %tmp.46 = getv %tmp.45 :COLOR_TRANSPARENT; - invoke %tmp.41 %tmp.42(%tmp.44, %tmp.46); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 178 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_175_15_181_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_175_15_181_8_stop" ] - %width.4 = local; - symbol [ width %width.4 178 16 21 ]; - %tmp.47 = lgetv %dc; - symbol [ dc %tmp.47 178 24 26 ]; - symbol [ getWidth %tmp.48 178 27 35 ]; - %tmp.48 = getv function %tmp.47 :getWidth; - %tmp.49 = invoke %tmp.47 %tmp.48(); - lputv %width.4 %tmp.49; - symbol [ width %width.4 178 16 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 179 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_175_15_181_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_175_15_181_8_stop" ] - %height.5 = local; - symbol [ height %height.5 179 16 22 ]; - %tmp.50 = lgetv %dc; - symbol [ dc %tmp.50 179 25 27 ]; - symbol [ getHeight %tmp.51 179 28 37 ]; - %tmp.51 = getv function %tmp.50 :getHeight; - %tmp.52 = invoke %tmp.50 %tmp.51(); - lputv %height.5 %tmp.52; - symbol [ height %height.5 179 16 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 180 12 ] - %tmp.53 = lgetv %dc; - symbol [ dc %tmp.53 180 12 14 ]; - symbol [ drawText %tmp.54 180 15 23 ]; - %tmp.54 = getv function %tmp.53 :drawText; - %tmp.55 = lgetv %width.4; - symbol [ width %tmp.55 180 24 29 ]; - %tmp.56 = 2; - %tmp.57 = div %tmp.55 %tmp.56; - %tmp.58 = lgetv %height.5; - symbol [ height %tmp.58 180 35 41 ]; - %tmp.59 = 25; - %tmp.60 = sub %tmp.58 %tmp.59; - symbol [ Graphics %tmp.61 180 48 56 ]; - %tmp.61 = getm $.Toybox.Graphics; - symbol [ FONT_TINY %tmp.62 180 57 66 ]; - %tmp.62 = getv %tmp.61 :FONT_TINY; - %tmp.63 = "Press SELECT to start"; - symbol [ Graphics %tmp.64 180 93 101 ]; - %tmp.64 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.65 180 102 121 ]; - %tmp.65 = getv %tmp.64 :TEXT_JUSTIFY_CENTER; - invoke %tmp.53 %tmp.54(%tmp.57, %tmp.60, %tmp.62, %tmp.63, %tmp.65); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_175_15_181_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_165_8_181_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_162_54_182_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 184; @symbol_functiondef = [displayCadence,184,13,27]; ] - function displayCadence() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 185 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_stop" ] - %info.1 = local; - symbol [ info %info.1 185 12 16 ]; - symbol [ Activity %tmp.1 185 19 27 ]; - %tmp.1 = getm $.Toybox.Activity; - symbol [ getActivityInfo %tmp.2 185 28 43 ]; - %tmp.2 = getv function %tmp.1 :getActivityInfo; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %info.1 %tmp.3; - symbol [ info %info.1 185 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 188 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_8_192_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_12_188_51_begin: - %tmp.4 = lgetv %info.1; - symbol [ info %tmp.4 188 12 16 ]; - %tmp.5 = null; - %tmp.6 = ne %tmp.4 %tmp.5; - bf %tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_8_192_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_28_188_51_true: - %tmp.7 = lgetv %info.1; - symbol [ info %tmp.7 188 28 32 ]; - %tmp.8 = as %tmp.7 { (!Null) }; - symbol [ currentCadence %tmp.9 188 33 47 ]; - %tmp.9 = getv %tmp.8 :currentCadence; - %tmp.10 = null; - %tmp.11 = ne %tmp.9 %tmp.10; - push %tmp.11; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_28_188_51_end: - %tmp.12 = phi [%tmp.6 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_12_188_51_begin] [%tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_28_188_51_true] [%tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_28_188_51_end]; - bf %tmp.12 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_8_192_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_8_192_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_56_190_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 189 12 ] - symbol [ _cadenceDisplay %tmp.14 189 12 27 ]; - %tmp.14 = getv ? :_cadenceDisplay; - symbol [ setText %tmp.15 189 28 35 ]; - %tmp.15 = getv function %tmp.14 :setText; - %tmp.16 = lgetv %info.1; - symbol [ info %tmp.16 189 36 40 ]; - %tmp.17 = as %tmp.16 { (!Null) }; - symbol [ currentCadence %tmp.18 189 41 55 ]; - %tmp.18 = getv %tmp.17 :currentCadence; - symbol [ toString %tmp.19 189 56 64 ]; - %tmp.19 = getv function %tmp.18 :toString; - %tmp.20 = invoke %tmp.18 %tmp.19(); - invoke %tmp.14 %tmp.15(%tmp.20); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_56_190_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_8_192_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_8_192_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_190_13_192_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 191 12 ] - symbol [ _cadenceDisplay %tmp.22 191 12 27 ]; - %tmp.22 = getv ? :_cadenceDisplay; - symbol [ setText %tmp.23 191 28 35 ]; - %tmp.23 = getv function %tmp.22 :setText; - %tmp.24 = "--"; - invoke %tmp.22 %tmp.23(%tmp.24); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_190_13_192_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_188_8_192_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 195 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_stop" ] - %minZone.2 = local; - symbol [ minZone %minZone.2 195 12 19 ]; - %tmp.25 = self; - symbol [ getApp %tmp.26 195 22 28 ]; - %tmp.26 = getv function %tmp.25 :getApp; - %tmp.27 = invoke %tmp.25 %tmp.26(); - symbol [ getMinCadence %tmp.28 195 31 44 ]; - %tmp.28 = getv function %tmp.27 :getMinCadence; - %tmp.29 = invoke %tmp.27 %tmp.28(); - lputv %minZone.2 %tmp.29; - symbol [ minZone %minZone.2 195 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 196 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_stop" ] - %maxZone.3 = local; - symbol [ maxZone %maxZone.3 196 12 19 ]; - %tmp.30 = self; - symbol [ getApp %tmp.31 196 22 28 ]; - %tmp.31 = getv function %tmp.30 :getApp; - %tmp.32 = invoke %tmp.30 %tmp.31(); - symbol [ getMaxCadence %tmp.33 196 31 44 ]; - %tmp.33 = getv function %tmp.32 :getMaxCadence; - %tmp.34 = invoke %tmp.32 %tmp.33(); - lputv %maxZone.3 %tmp.34; - symbol [ maxZone %maxZone.3 196 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 197 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_stop" ] - %zoneText.4 = local; - symbol [ zoneText %zoneText.4 197 12 20 ]; - %tmp.35 = ""; - lputv %zoneText.4 %tmp.35; - symbol [ zoneText %zoneText.4 197 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 198 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_8_207_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_12_198_51_begin: - %tmp.36 = lgetv %info.1; - symbol [ info %tmp.36 198 12 16 ]; - %tmp.37 = null; - %tmp.38 = ne %tmp.36 %tmp.37; - bf %tmp.38 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_8_207_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_28_198_51_true: - %tmp.39 = lgetv %info.1; - symbol [ info %tmp.39 198 28 32 ]; - %tmp.40 = as %tmp.39 { (!Null) }; - symbol [ currentCadence %tmp.41 198 33 47 ]; - %tmp.41 = getv %tmp.40 :currentCadence; - %tmp.42 = null; - %tmp.43 = ne %tmp.41 %tmp.42; - push %tmp.43; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_28_198_51_end: - %tmp.44 = phi [%tmp.38 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_12_198_51_begin] [%tmp.43 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_28_198_51_true] [%tmp.44 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_28_198_51_end]; - bf %tmp.44 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_8_207_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_8_207_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_57_205_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 199 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_57_205_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_57_205_8_stop" ] - %c.5 = local; - symbol [ c %c.5 199 16 17 ]; - %tmp.45 = lgetv %info.1; - symbol [ info %tmp.45 199 20 24 ]; - %tmp.46 = as %tmp.45 { (!Null) }; - symbol [ currentCadence %tmp.47 199 25 39 ]; - %tmp.47 = getv %tmp.46 :currentCadence; - lputv %c.5 %tmp.47; - symbol [ c %c.5 199 16 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 200 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_12_204_12_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_16_200_37_begin: - %tmp.48 = lgetv %c.5; - symbol [ c %tmp.48 200 16 17 ]; - %tmp.49 = lgetv %minZone.2; - symbol [ minZone %tmp.49 200 21 28 ]; - %tmp.50 = gte %tmp.48 %tmp.49; - bf %tmp.50 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_12_204_12_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_32_200_37_true: - %tmp.51 = lgetv %c.5; - symbol [ c %tmp.51 200 32 33 ]; - %tmp.52 = lgetv %maxZone.3; - symbol [ maxZone %tmp.52 200 37 44 ]; - %tmp.53 = lte %tmp.51 %tmp.52; - push %tmp.53; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_32_200_37_end: - %tmp.54 = phi [%tmp.50 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_16_200_37_begin] [%tmp.53 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_32_200_37_true] [%tmp.54 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_32_200_37_end]; - bf %tmp.54 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_12_204_12_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_12_204_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_46_202_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 201 16 ] - symbol [ WatchUi %tmp.55 201 28 35 ]; - %tmp.55 = getm $.Toybox.WatchUi; - symbol [ loadResource %tmp.56 201 36 48 ]; - %tmp.56 = getv function %tmp.55 :loadResource; - symbol [ Rez %tmp.58 201 49 52 ]; - %tmp.58 = getv ? :Rez; - symbol [ Strings %tmp.59 201 53 60 ]; - %tmp.59 = getv %tmp.58 :Strings; - symbol [ zone_in %tmp.60 201 61 68 ]; - %tmp.60 = getv %tmp.59 :zone_in; - %tmp.61 = invoke %tmp.55 %tmp.56(%tmp.60); - %tmp.62 = as %tmp.61 String; - symbol [ String %tmp.62 201 73 79 ]; - %tmp.63 = " ("; - %tmp.64 = add %tmp.62 %tmp.63; - %tmp.65 = lgetv %minZone.2; - symbol [ minZone %tmp.65 201 90 97 ]; - symbol [ toString %tmp.66 201 98 106 ]; - %tmp.66 = getv function %tmp.65 :toString; - %tmp.67 = invoke %tmp.65 %tmp.66(); - %tmp.68 = add %tmp.64 %tmp.67; - %tmp.69 = "-"; - %tmp.70 = add %tmp.68 %tmp.69; - %tmp.71 = lgetv %maxZone.3; - symbol [ maxZone %tmp.71 201 117 124 ]; - symbol [ toString %tmp.72 201 125 133 ]; - %tmp.72 = getv function %tmp.71 :toString; - %tmp.73 = invoke %tmp.71 %tmp.72(); - %tmp.74 = add %tmp.70 %tmp.73; - %tmp.75 = ")"; - %tmp.76 = add %tmp.74 %tmp.75; - lputv %zoneText.4 %tmp.76; - symbol [ zoneText %zoneText.4 201 16 24 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_46_202_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_12_204_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_12_204_12_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_202_19_204_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 203 16 ] - symbol [ WatchUi %tmp.77 203 28 35 ]; - %tmp.77 = getm $.Toybox.WatchUi; - symbol [ loadResource %tmp.78 203 36 48 ]; - %tmp.78 = getv function %tmp.77 :loadResource; - symbol [ Rez %tmp.80 203 49 52 ]; - %tmp.80 = getv ? :Rez; - symbol [ Strings %tmp.81 203 53 60 ]; - %tmp.81 = getv %tmp.80 :Strings; - symbol [ zone_out %tmp.82 203 61 69 ]; - %tmp.82 = getv %tmp.81 :zone_out; - %tmp.83 = invoke %tmp.77 %tmp.78(%tmp.82); - %tmp.84 = as %tmp.83 String; - symbol [ String %tmp.84 203 74 80 ]; - %tmp.85 = " ("; - %tmp.86 = add %tmp.84 %tmp.85; - %tmp.87 = lgetv %minZone.2; - symbol [ minZone %tmp.87 203 91 98 ]; - symbol [ toString %tmp.88 203 99 107 ]; - %tmp.88 = getv function %tmp.87 :toString; - %tmp.89 = invoke %tmp.87 %tmp.88(); - %tmp.90 = add %tmp.86 %tmp.89; - %tmp.91 = "-"; - %tmp.92 = add %tmp.90 %tmp.91; - %tmp.93 = lgetv %maxZone.3; - symbol [ maxZone %tmp.93 203 118 125 ]; - symbol [ toString %tmp.94 203 126 134 ]; - %tmp.94 = getv function %tmp.93 :toString; - %tmp.95 = invoke %tmp.93 %tmp.94(); - %tmp.96 = add %tmp.92 %tmp.95; - %tmp.97 = ")"; - %tmp.98 = add %tmp.96 %tmp.97; - lputv %zoneText.4 %tmp.98; - symbol [ zoneText %zoneText.4 203 16 24 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_202_19_204_12_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_200_12_204_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_57_205_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_8_207_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_8_207_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_205_15_207_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 206 12 ] - %tmp.99 = "("; - %tmp.100 = lgetv %minZone.2; - symbol [ minZone %tmp.100 206 29 36 ]; - symbol [ toString %tmp.101 206 37 45 ]; - %tmp.101 = getv function %tmp.100 :toString; - %tmp.102 = invoke %tmp.100 %tmp.101(); - %tmp.103 = add %tmp.99 %tmp.102; - %tmp.104 = "-"; - %tmp.105 = add %tmp.103 %tmp.104; - %tmp.106 = lgetv %maxZone.3; - symbol [ maxZone %tmp.106 206 56 63 ]; - symbol [ toString %tmp.107 206 64 72 ]; - %tmp.107 = getv function %tmp.106 :toString; - %tmp.108 = invoke %tmp.106 %tmp.107(); - %tmp.109 = add %tmp.105 %tmp.108; - %tmp.110 = ")"; - %tmp.111 = add %tmp.109 %tmp.110; - lputv %zoneText.4 %tmp.111; - symbol [ zoneText %zoneText.4 206 12 20 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_205_15_207_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_198_8_207_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 208 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_208_8_210_8_if_stmt: - symbol [ _cadenceZoneDisplay %tmp.113 208 12 31 ]; - %tmp.113 = getv ? :_cadenceZoneDisplay; - %tmp.114 = null; - %tmp.115 = ne %tmp.113 %tmp.114; - bf %tmp.115 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_208_8_210_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_208_8_210_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_208_41_210_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 209 12 ] - symbol [ _cadenceZoneDisplay %tmp.117 209 12 31 ]; - %tmp.117 = getv ? :_cadenceZoneDisplay; - %tmp.118 = as %tmp.117 { (!Null) }; - symbol [ setText %tmp.119 209 32 39 ]; - %tmp.119 = getv function %tmp.118 :setText; - %tmp.120 = lgetv %zoneText.4; - symbol [ zoneText %tmp.120 209 40 48 ]; - invoke %tmp.118 %tmp.119(%tmp.120); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_208_41_210_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_208_8_210_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_208_8_210_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 213 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_stop" ] - %newZoneState.6 = local; - symbol [ newZoneState %newZoneState.6 213 12 24 ]; - %tmp.121 = 0; - lputv %newZoneState.6 %tmp.121; - symbol [ newZoneState %newZoneState.6 213 12 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 214 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_8_223_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_12_214_51_begin: - %tmp.122 = lgetv %info.1; - symbol [ info %tmp.122 214 12 16 ]; - %tmp.123 = null; - %tmp.124 = ne %tmp.122 %tmp.123; - bf %tmp.124 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_8_223_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_28_214_51_true: - %tmp.125 = lgetv %info.1; - symbol [ info %tmp.125 214 28 32 ]; - %tmp.126 = as %tmp.125 { (!Null) }; - symbol [ currentCadence %tmp.127 214 33 47 ]; - %tmp.127 = getv %tmp.126 :currentCadence; - %tmp.128 = null; - %tmp.129 = ne %tmp.127 %tmp.128; - push %tmp.129; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_28_214_51_end: - %tmp.130 = phi [%tmp.124 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_12_214_51_begin] [%tmp.129 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_28_214_51_true] [%tmp.130 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_28_214_51_end]; - bf %tmp.130 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_8_223_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_8_223_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_57_223_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 215 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_57_223_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_57_223_8_stop" ] - %c.7 = local; - symbol [ c %c.7 215 16 17 ]; - %tmp.131 = lgetv %info.1; - symbol [ info %tmp.131 215 20 24 ]; - %tmp.132 = as %tmp.131 { (!Null) }; - symbol [ currentCadence %tmp.133 215 25 39 ]; - %tmp.133 = getv %tmp.132 :currentCadence; - lputv %c.7 %tmp.133; - symbol [ c %c.7 215 16 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 216 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_216_12_222_12_if_stmt: - %tmp.134 = lgetv %c.7; - symbol [ c %tmp.134 216 16 17 ]; - %tmp.135 = lgetv %minZone.2; - symbol [ minZone %tmp.135 216 20 27 ]; - %tmp.136 = lt %tmp.134 %tmp.135; - bf %tmp.136 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_216_12_222_12_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_216_12_222_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_216_29_218_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 217 16 ] - %tmp.137 = -1; - lputv %newZoneState.6 %tmp.137; - symbol [ newZoneState %newZoneState.6 217 16 28 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_216_29_218_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_216_12_222_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_216_12_222_12_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 218 19 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_218_19_222_12_if_stmt: - %tmp.138 = lgetv %c.7; - symbol [ c %tmp.138 218 23 24 ]; - %tmp.139 = lgetv %maxZone.3; - symbol [ maxZone %tmp.139 218 27 34 ]; - %tmp.140 = gt %tmp.138 %tmp.139; - bf %tmp.140 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_218_19_222_12_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_218_19_222_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_218_36_220_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 219 16 ] - %tmp.141 = 1; - lputv %newZoneState.6 %tmp.141; - symbol [ newZoneState %newZoneState.6 219 16 28 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_218_36_220_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_218_19_222_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_218_19_222_12_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_220_19_222_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 221 16 ] - %tmp.142 = 0; - lputv %newZoneState.6 %tmp.142; - symbol [ newZoneState %newZoneState.6 221 16 28 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_220_19_222_12_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_218_19_222_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_216_12_222_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_57_223_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_8_223_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_214_8_223_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 225 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_225_8_245_8_if_stmt: - %tmp.143 = lgetv %newZoneState.6; - symbol [ newZoneState %tmp.143 225 12 24 ]; - symbol [ _lastZoneState %tmp.145 225 28 42 ]; - %tmp.145 = getv ? :_lastZoneState; - %tmp.146 = ne %tmp.143 %tmp.145; - bf %tmp.146 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_225_8_245_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_225_8_245_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_225_44_242_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 226 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_226_12_240_12_if_stmt: - %tmp.147 = lgetv %newZoneState.6; - symbol [ newZoneState %tmp.147 226 16 28 ]; - %tmp.148 = -1; - %tmp.149 = eq %tmp.147 %tmp.148; - bf %tmp.149 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_226_12_240_12_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_226_12_240_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_226_36_231_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 228 16 ] - symbol [ System %tmp.150 228 34 40 ]; - %tmp.150 = getm $.Toybox.System; - symbol [ getTimer %tmp.151 228 41 49 ]; - %tmp.151 = getv function %tmp.150 :getTimer; - %tmp.152 = invoke %tmp.150 %tmp.151(); - symbol [ _alertStartTime ? 228 16 31 ]; - putv self :_alertStartTime %tmp.152; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 229 16 ] - symbol [ System %tmp.153 229 33 39 ]; - %tmp.153 = getm $.Toybox.System; - symbol [ getTimer %tmp.154 229 40 48 ]; - %tmp.154 = getv function %tmp.153 :getTimer; - %tmp.155 = invoke %tmp.153 %tmp.154(); - symbol [ _lastAlertTime ? 229 16 30 ]; - putv self :_lastAlertTime %tmp.155; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 230 16 ] - %tmp.156 = self; - symbol [ triggerSingleVibration %tmp.157 230 16 38 ]; - %tmp.157 = getv function %tmp.156 :triggerSingleVibration; - invoke %tmp.156 %tmp.157(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_226_36_231_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_226_12_240_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_226_12_240_12_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 231 19 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_231_19_240_12_if_stmt: - %tmp.158 = lgetv %newZoneState.6; - symbol [ newZoneState %tmp.158 231 23 35 ]; - %tmp.159 = 1; - %tmp.160 = eq %tmp.158 %tmp.159; - bf %tmp.160 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_231_19_240_12_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_231_19_240_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_231_42_236_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 233 16 ] - symbol [ System %tmp.161 233 34 40 ]; - %tmp.161 = getm $.Toybox.System; - symbol [ getTimer %tmp.162 233 41 49 ]; - %tmp.162 = getv function %tmp.161 :getTimer; - %tmp.163 = invoke %tmp.161 %tmp.162(); - symbol [ _alertStartTime ? 233 16 31 ]; - putv self :_alertStartTime %tmp.163; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 234 16 ] - symbol [ System %tmp.164 234 33 39 ]; - %tmp.164 = getm $.Toybox.System; - symbol [ getTimer %tmp.165 234 40 48 ]; - %tmp.165 = getv function %tmp.164 :getTimer; - %tmp.166 = invoke %tmp.164 %tmp.165(); - symbol [ _lastAlertTime ? 234 16 30 ]; - putv self :_lastAlertTime %tmp.166; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 235 16 ] - %tmp.167 = self; - symbol [ triggerDoubleVibration %tmp.168 235 16 38 ]; - %tmp.168 = getv function %tmp.167 :triggerDoubleVibration; - invoke %tmp.167 %tmp.168(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_231_42_236_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_231_19_240_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_231_19_240_12_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_236_19_240_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 238 16 ] - %tmp.169 = null; - symbol [ _alertStartTime ? 238 16 31 ]; - putv self :_alertStartTime %tmp.169; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 239 16 ] - %tmp.170 = 0; - symbol [ _lastAlertTime ? 239 16 30 ]; - putv self :_lastAlertTime %tmp.170; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_236_19_240_12_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_231_19_240_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_226_12_240_12_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 241 12 ] - %tmp.171 = lgetv %newZoneState.6; - symbol [ newZoneState %tmp.171 241 29 41 ]; - symbol [ _lastZoneState ? 241 12 26 ]; - putv self :_lastZoneState %tmp.171; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_225_44_242_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_225_8_245_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_225_8_245_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_242_15_245_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 244 12 ] - %tmp.172 = self; - symbol [ checkAndTriggerAlerts %tmp.173 244 12 33 ]; - %tmp.173 = getv function %tmp.172 :checkAndTriggerAlerts; - invoke %tmp.172 %tmp.173(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_242_15_245_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_225_8_245_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 247 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_8_251_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_12_247_53_begin: - %tmp.174 = lgetv %info.1; - symbol [ info %tmp.174 247 12 16 ]; - %tmp.175 = null; - %tmp.176 = ne %tmp.174 %tmp.175; - bf %tmp.176 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_8_251_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_28_247_53_true: - %tmp.177 = lgetv %info.1; - symbol [ info %tmp.177 247 28 32 ]; - %tmp.178 = as %tmp.177 { (!Null) }; - symbol [ currentHeartRate %tmp.179 247 33 49 ]; - %tmp.179 = getv %tmp.178 :currentHeartRate; - %tmp.180 = null; - %tmp.181 = ne %tmp.179 %tmp.180; - push %tmp.181; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_28_247_53_end: - %tmp.182 = phi [%tmp.176 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_12_247_53_begin] [%tmp.181 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_28_247_53_true] [%tmp.182 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_28_247_53_end]; - bf %tmp.182 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_8_251_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_8_251_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_58_249_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 248 12 ] - symbol [ _heartrateDisplay %tmp.184 248 12 29 ]; - %tmp.184 = getv ? :_heartrateDisplay; - symbol [ setText %tmp.185 248 30 37 ]; - %tmp.185 = getv function %tmp.184 :setText; - %tmp.186 = lgetv %info.1; - symbol [ info %tmp.186 248 38 42 ]; - %tmp.187 = as %tmp.186 { (!Null) }; - symbol [ currentHeartRate %tmp.188 248 43 59 ]; - %tmp.188 = getv %tmp.187 :currentHeartRate; - symbol [ toString %tmp.189 248 60 68 ]; - %tmp.189 = getv function %tmp.188 :toString; - %tmp.190 = invoke %tmp.188 %tmp.189(); - invoke %tmp.184 %tmp.185(%tmp.190); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_58_249_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_8_251_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_8_251_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_249_13_251_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 250 12 ] - symbol [ _heartrateDisplay %tmp.192 250 12 29 ]; - %tmp.192 = getv ? :_heartrateDisplay; - symbol [ setText %tmp.193 250 30 37 ]; - %tmp.193 = getv function %tmp.192 :setText; - %tmp.194 = "--"; - invoke %tmp.192 %tmp.193(%tmp.194); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_249_13_251_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_247_8_251_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 254 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_8_259_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_12_254_52_begin: - %tmp.195 = lgetv %info.1; - symbol [ info %tmp.195 254 12 16 ]; - %tmp.196 = null; - %tmp.197 = ne %tmp.195 %tmp.196; - bf %tmp.197 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_8_259_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_28_254_52_true: - %tmp.198 = lgetv %info.1; - symbol [ info %tmp.198 254 28 32 ]; - %tmp.199 = as %tmp.198 { (!Null) }; - symbol [ elapsedDistance %tmp.200 254 33 48 ]; - %tmp.200 = getv %tmp.199 :elapsedDistance; - %tmp.201 = null; - %tmp.202 = ne %tmp.200 %tmp.201; - push %tmp.202; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_28_254_52_end: - %tmp.203 = phi [%tmp.197 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_12_254_52_begin] [%tmp.202 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_28_254_52_true] [%tmp.203 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_28_254_52_end]; - bf %tmp.203 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_8_259_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_8_259_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_57_257_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 255 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_57_257_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_57_257_8_stop" ] - %distanceKm.8 = local; - symbol [ distanceKm %distanceKm.8 255 16 26 ]; - %tmp.204 = lgetv %info.1; - symbol [ info %tmp.204 255 29 33 ]; - %tmp.205 = as %tmp.204 { (!Null) }; - symbol [ elapsedDistance %tmp.206 255 34 49 ]; - %tmp.206 = getv %tmp.205 :elapsedDistance; - %tmp.207 = 100000.0; - %tmp.208 = div %tmp.206 %tmp.207; - lputv %distanceKm.8 %tmp.208; - symbol [ distanceKm %distanceKm.8 255 16 26 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 256 12 ] - symbol [ _distanceDisplay %tmp.210 256 12 28 ]; - %tmp.210 = getv ? :_distanceDisplay; - symbol [ setText %tmp.211 256 29 36 ]; - %tmp.211 = getv function %tmp.210 :setText; - %tmp.212 = lgetv %distanceKm.8; - symbol [ distanceKm %tmp.212 256 37 47 ]; - symbol [ format %tmp.213 256 48 54 ]; - %tmp.213 = getv function %tmp.212 :format; - %tmp.214 = "%.2f"; - %tmp.215 = invoke %tmp.212 %tmp.213(%tmp.214); - %tmp.216 = " KM"; - %tmp.217 = add %tmp.215 %tmp.216; - invoke %tmp.210 %tmp.211(%tmp.217); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_57_257_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_8_259_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_8_259_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_257_13_259_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 258 12 ] - symbol [ _distanceDisplay %tmp.219 258 12 28 ]; - %tmp.219 = getv ? :_distanceDisplay; - symbol [ setText %tmp.220 258 29 36 ]; - %tmp.220 = getv function %tmp.219 :setText; - %tmp.221 = "-- KM"; - invoke %tmp.219 %tmp.220(%tmp.221); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_257_13_259_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_254_8_259_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 262 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_8_270_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_12_262_46_begin: - %tmp.222 = lgetv %info.1; - symbol [ info %tmp.222 262 12 16 ]; - %tmp.223 = null; - %tmp.224 = ne %tmp.222 %tmp.223; - bf %tmp.224 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_8_270_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_28_262_46_true: - %tmp.225 = lgetv %info.1; - symbol [ info %tmp.225 262 28 32 ]; - %tmp.226 = as %tmp.225 { (!Null) }; - symbol [ timerTime %tmp.227 262 33 42 ]; - %tmp.227 = getv %tmp.226 :timerTime; - %tmp.228 = null; - %tmp.229 = ne %tmp.227 %tmp.228; - push %tmp.229; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_28_262_46_end: - %tmp.230 = phi [%tmp.224 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_12_262_46_begin] [%tmp.229 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_28_262_46_true] [%tmp.230 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_28_262_46_end]; - bf %tmp.230 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_8_270_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_8_270_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_51_268_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 263 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_51_268_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_51_268_8_stop" ] - %seconds.9 = local; - symbol [ seconds %seconds.9 263 16 23 ]; - %tmp.231 = lgetv %info.1; - symbol [ info %tmp.231 263 26 30 ]; - %tmp.232 = as %tmp.231 { (!Null) }; - symbol [ timerTime %tmp.233 263 31 40 ]; - %tmp.233 = getv %tmp.232 :timerTime; - %tmp.234 = 1000; - %tmp.235 = div %tmp.233 %tmp.234; - lputv %seconds.9 %tmp.235; - symbol [ seconds %seconds.9 263 16 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 264 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_51_268_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_51_268_8_stop" ] - %hours.10 = local; - symbol [ hours %hours.10 264 16 21 ]; - %tmp.236 = lgetv %seconds.9; - symbol [ seconds %tmp.236 264 24 31 ]; - %tmp.237 = 3600; - %tmp.238 = div %tmp.236 %tmp.237; - lputv %hours.10 %tmp.238; - symbol [ hours %hours.10 264 16 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 265 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_51_268_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_51_268_8_stop" ] - %minutes.11 = local; - symbol [ minutes %minutes.11 265 16 23 ]; - %tmp.239 = lgetv %seconds.9; - symbol [ seconds %tmp.239 265 27 34 ]; - %tmp.240 = 3600; - %tmp.241 = mod %tmp.239 %tmp.240; - %tmp.242 = 60; - %tmp.243 = div %tmp.241 %tmp.242; - lputv %minutes.11 %tmp.243; - symbol [ minutes %minutes.11 265 16 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 266 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_51_268_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_51_268_8_stop" ] - %secs.12 = local; - symbol [ secs %secs.12 266 16 20 ]; - %tmp.244 = lgetv %seconds.9; - symbol [ seconds %tmp.244 266 23 30 ]; - %tmp.245 = 60; - %tmp.246 = mod %tmp.244 %tmp.245; - lputv %secs.12 %tmp.246; - symbol [ secs %secs.12 266 16 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 267 12 ] - symbol [ _timeDisplay %tmp.248 267 12 24 ]; - %tmp.248 = getv ? :_timeDisplay; - symbol [ setText %tmp.249 267 25 32 ]; - %tmp.249 = getv function %tmp.248 :setText; - %tmp.250 = lgetv %hours.10; - symbol [ hours %tmp.250 267 33 38 ]; - symbol [ format %tmp.251 267 39 45 ]; - %tmp.251 = getv function %tmp.250 :format; - %tmp.252 = "%02d"; - %tmp.253 = invoke %tmp.250 %tmp.251(%tmp.252); - %tmp.254 = ":"; - %tmp.255 = add %tmp.253 %tmp.254; - %tmp.256 = lgetv %minutes.11; - symbol [ minutes %tmp.256 267 62 69 ]; - symbol [ format %tmp.257 267 70 76 ]; - %tmp.257 = getv function %tmp.256 :format; - %tmp.258 = "%02d"; - %tmp.259 = invoke %tmp.256 %tmp.257(%tmp.258); - %tmp.260 = add %tmp.255 %tmp.259; - %tmp.261 = ":"; - %tmp.262 = add %tmp.260 %tmp.261; - %tmp.263 = lgetv %secs.12; - symbol [ secs %tmp.263 267 93 97 ]; - symbol [ format %tmp.264 267 98 104 ]; - %tmp.264 = getv function %tmp.263 :format; - %tmp.265 = "%02d"; - %tmp.266 = invoke %tmp.263 %tmp.264(%tmp.265); - %tmp.267 = add %tmp.262 %tmp.266; - invoke %tmp.248 %tmp.249(%tmp.267); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_51_268_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_8_270_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_8_270_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_268_13_270_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 269 12 ] - symbol [ _timeDisplay %tmp.269 269 12 24 ]; - %tmp.269 = getv ? :_timeDisplay; - symbol [ setText %tmp.270 269 25 32 ]; - %tmp.270 = getv function %tmp.269 :setText; - %tmp.271 = "--:--:--"; - invoke %tmp.269 %tmp.270(%tmp.271); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_268_13_270_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_262_8_270_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 273 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_273_8_288_8_if_stmt: - symbol [ _cqDisplay %tmp.273 273 12 22 ]; - %tmp.273 = getv ? :_cqDisplay; - %tmp.274 = null; - %tmp.275 = ne %tmp.273 %tmp.274; - bf %tmp.275 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_273_8_288_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_273_8_288_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_273_32_288_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 274 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_273_32_288_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_273_32_288_8_stop" ] - %app.13 = local; - symbol [ app %app.13 274 16 19 ]; - %tmp.276 = self; - symbol [ getApp %tmp.277 274 22 28 ]; - %tmp.277 = getv function %tmp.276 :getApp; - %tmp.278 = invoke %tmp.276 %tmp.277(); - lputv %app.13 %tmp.278; - symbol [ app %app.13 274 16 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 275 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_273_32_288_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_273_32_288_8_stop" ] - %frozenCQ.14 = local; - symbol [ frozenCQ %frozenCQ.14 275 16 24 ]; - %tmp.279 = lgetv %app.13; - symbol [ app %tmp.279 275 27 30 ]; - symbol [ getFinalCadenceQuality %tmp.280 275 31 53 ]; - %tmp.280 = getv function %tmp.279 :getFinalCadenceQuality; - %tmp.281 = invoke %tmp.279 %tmp.280(); - lputv %frozenCQ.14 %tmp.281; - symbol [ frozenCQ %frozenCQ.14 275 16 24 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 277 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_277_12_287_12_if_stmt: - %tmp.282 = lgetv %frozenCQ.14; - symbol [ frozenCQ %tmp.282 277 16 24 ]; - %tmp.283 = null; - %tmp.284 = ne %tmp.282 %tmp.283; - bf %tmp.284 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_277_12_287_12_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_277_12_287_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_277_34_279_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 278 16 ] - symbol [ _cqDisplay %tmp.286 278 16 26 ]; - %tmp.286 = getv ? :_cqDisplay; - symbol [ setText %tmp.287 278 27 34 ]; - %tmp.287 = getv function %tmp.286 :setText; - %tmp.288 = "CQ: "; - %tmp.289 = lgetv %frozenCQ.14; - symbol [ frozenCQ %tmp.289 278 44 52 ]; - %tmp.290 = as %tmp.289 { (!Null) }; - symbol [ format %tmp.291 278 53 59 ]; - %tmp.291 = getv function %tmp.290 :format; - %tmp.292 = "%d"; - %tmp.293 = invoke %tmp.290 %tmp.291(%tmp.292); - %tmp.294 = add %tmp.288 %tmp.293; - %tmp.295 = "%"; - %tmp.296 = add %tmp.294 %tmp.295; - invoke %tmp.286 %tmp.287(%tmp.296); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_277_34_279_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_277_12_287_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_277_12_287_12_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_279_19_287_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 280 16 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_279_19_287_12_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_279_19_287_12_stop" ] - %cq.15 = local; - symbol [ cq %cq.15 280 20 22 ]; - %tmp.297 = lgetv %app.13; - symbol [ app %tmp.297 280 25 28 ]; - symbol [ computeCadenceQualityScore %tmp.298 280 29 55 ]; - %tmp.298 = getv function %tmp.297 :computeCadenceQualityScore; - %tmp.299 = invoke %tmp.297 %tmp.298(); - lputv %cq.15 %tmp.299; - symbol [ cq %cq.15 280 20 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 282 16 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_282_16_286_16_if_stmt: - %tmp.300 = lgetv %cq.15; - symbol [ cq %tmp.300 282 20 22 ]; - %tmp.301 = 0; - %tmp.302 = lt %tmp.300 %tmp.301; - bf %tmp.302 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_282_16_286_16_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_282_16_286_16_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_282_28_284_16_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 283 20 ] - symbol [ _cqDisplay %tmp.304 283 20 30 ]; - %tmp.304 = getv ? :_cqDisplay; - symbol [ setText %tmp.305 283 31 38 ]; - %tmp.305 = getv function %tmp.304 :setText; - %tmp.306 = "CQ: --%"; - invoke %tmp.304 %tmp.305(%tmp.306); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_282_28_284_16_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_282_16_286_16_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_282_16_286_16_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_284_23_286_16_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 285 20 ] - symbol [ _cqDisplay %tmp.308 285 20 30 ]; - %tmp.308 = getv ? :_cqDisplay; - symbol [ setText %tmp.309 285 31 38 ]; - %tmp.309 = getv function %tmp.308 :setText; - %tmp.310 = "CQ: "; - %tmp.311 = lgetv %cq.15; - symbol [ cq %tmp.311 285 48 50 ]; - symbol [ format %tmp.312 285 51 57 ]; - %tmp.312 = getv function %tmp.311 :format; - %tmp.313 = "%d"; - %tmp.314 = invoke %tmp.311 %tmp.312(%tmp.313); - %tmp.315 = add %tmp.310 %tmp.314; - %tmp.316 = "%"; - %tmp.317 = add %tmp.315 %tmp.316; - invoke %tmp.308 %tmp.309(%tmp.317); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_284_23_286_16_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_282_16_286_16_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_279_19_287_12_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_277_12_287_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_273_32_288_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_273_8_288_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_273_8_288_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 291 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_8_302_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_12_291_49_begin: - %tmp.318 = lgetv %info.1; - symbol [ info %tmp.318 291 12 16 ]; - %tmp.319 = null; - %tmp.320 = ne %tmp.318 %tmp.319; - bf %tmp.320 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_8_302_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_28_291_49_true: - %tmp.321 = lgetv %info.1; - symbol [ info %tmp.321 291 28 32 ]; - %tmp.322 = as %tmp.321 { (!Null) }; - symbol [ currentSpeed %tmp.323 291 33 45 ]; - %tmp.323 = getv %tmp.322 :currentSpeed; - %tmp.324 = null; - %tmp.325 = ne %tmp.323 %tmp.324; - push %tmp.325; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_28_291_49_end: - %tmp.326 = phi [%tmp.320 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_12_291_49_begin] [%tmp.325 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_28_291_49_true] [%tmp.326 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_28_291_49_end]; - bf %tmp.326 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_8_302_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_8_302_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_55_300_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 292 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_12_299_8_if_stmt: - %tmp.327 = lgetv %info.1; - symbol [ info %tmp.327 292 16 20 ]; - %tmp.328 = as %tmp.327 { (!Null) }; - symbol [ currentSpeed %tmp.329 292 21 33 ]; - %tmp.329 = getv %tmp.328 :currentSpeed; - %tmp.330 = 0; - %tmp.331 = gt %tmp.329 %tmp.330; - bf %tmp.331 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_12_299_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_12_299_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_39_297_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 293 16 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_39_297_12_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_39_297_12_stop" ] - %paceSecPerKm.16 = local; - symbol [ paceSecPerKm %paceSecPerKm.16 293 20 32 ]; - %tmp.332 = 1000.0; - %tmp.333 = lgetv %info.1; - symbol [ info %tmp.333 293 45 49 ]; - %tmp.334 = as %tmp.333 { (!Null) }; - symbol [ currentSpeed %tmp.335 293 50 62 ]; - %tmp.335 = getv %tmp.334 :currentSpeed; - %tmp.336 = div %tmp.332 %tmp.335; - symbol [ toNumber %tmp.337 293 64 72 ]; - %tmp.337 = getv function %tmp.336 :toNumber; - %tmp.338 = invoke %tmp.336 %tmp.337(); - lputv %paceSecPerKm.16 %tmp.338; - symbol [ paceSecPerKm %paceSecPerKm.16 293 20 32 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 294 16 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_39_297_12_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_39_297_12_stop" ] - %paceMin.17 = local; - symbol [ paceMin %paceMin.17 294 20 27 ]; - %tmp.339 = lgetv %paceSecPerKm.16; - symbol [ paceSecPerKm %tmp.339 294 30 42 ]; - %tmp.340 = 60; - %tmp.341 = div %tmp.339 %tmp.340; - lputv %paceMin.17 %tmp.341; - symbol [ paceMin %paceMin.17 294 20 27 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 295 16 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_39_297_12_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_39_297_12_stop" ] - %paceSec.18 = local; - symbol [ paceSec %paceSec.18 295 20 27 ]; - %tmp.342 = lgetv %paceSecPerKm.16; - symbol [ paceSecPerKm %tmp.342 295 30 42 ]; - %tmp.343 = 60; - %tmp.344 = mod %tmp.342 %tmp.343; - lputv %paceSec.18 %tmp.344; - symbol [ paceSec %paceSec.18 295 20 27 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 296 16 ] - symbol [ _paceDisplay %tmp.346 296 16 28 ]; - %tmp.346 = getv ? :_paceDisplay; - symbol [ setText %tmp.347 296 29 36 ]; - %tmp.347 = getv function %tmp.346 :setText; - %tmp.348 = lgetv %paceMin.17; - symbol [ paceMin %tmp.348 296 37 44 ]; - symbol [ format %tmp.349 296 45 51 ]; - %tmp.349 = getv function %tmp.348 :format; - %tmp.350 = "%d"; - %tmp.351 = invoke %tmp.348 %tmp.349(%tmp.350); - %tmp.352 = ":"; - %tmp.353 = add %tmp.351 %tmp.352; - %tmp.354 = lgetv %paceSec.18; - symbol [ paceSec %tmp.354 296 66 73 ]; - symbol [ format %tmp.355 296 74 80 ]; - %tmp.355 = getv function %tmp.354 :format; - %tmp.356 = "%02d"; - %tmp.357 = invoke %tmp.354 %tmp.355(%tmp.356); - %tmp.358 = add %tmp.353 %tmp.357; - invoke %tmp.346 %tmp.347(%tmp.358); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_39_297_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_12_299_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_12_299_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_297_19_299_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 298 16 ] - symbol [ _paceDisplay %tmp.360 298 16 28 ]; - %tmp.360 = getv ? :_paceDisplay; - symbol [ setText %tmp.361 298 29 36 ]; - %tmp.361 = getv function %tmp.360 :setText; - %tmp.362 = "--:--"; - invoke %tmp.360 %tmp.361(%tmp.362); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_297_19_299_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_292_12_299_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_55_300_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_8_302_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_8_302_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_300_15_302_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 301 12 ] - symbol [ _paceDisplay %tmp.364 301 12 24 ]; - %tmp.364 = getv ? :_paceDisplay; - symbol [ setText %tmp.365 301 25 32 ]; - %tmp.365 = getv function %tmp.364 :setText; - %tmp.366 = "--:--"; - invoke %tmp.364 %tmp.365(%tmp.366); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_300_15_302_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_291_8_302_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_184_37_304_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 307; @symbol_functiondef = [drawDividers,307,13,25]; @symbol_param<0> = [dc,307,26,28]; @symbol_param<0>_type<0> = [Dc,307,32,34]; ] - function drawDividers(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_307_44_320_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 308 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_307_44_320_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_307_44_320_4_stop" ] - %width.1 = local; - symbol [ width %width.1 308 12 17 ]; - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 308 20 22 ]; - symbol [ getWidth %tmp.2 308 23 31 ]; - %tmp.2 = getv function %tmp.1 :getWidth; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %width.1 %tmp.3; - symbol [ width %width.1 308 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 309 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_307_44_320_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_307_44_320_4_stop" ] - %height.2 = local; - symbol [ height %height.2 309 12 18 ]; - %tmp.4 = lgetv %dc; - symbol [ dc %tmp.4 309 21 23 ]; - symbol [ getHeight %tmp.5 309 24 33 ]; - %tmp.5 = getv function %tmp.4 :getHeight; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %height.2 %tmp.6; - symbol [ height %height.2 309 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 311 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 311 8 10 ]; - symbol [ setColor %tmp.8 311 11 19 ]; - %tmp.8 = getv function %tmp.7 :setColor; - symbol [ Graphics %tmp.9 311 20 28 ]; - %tmp.9 = getm $.Toybox.Graphics; - symbol [ COLOR_LT_GRAY %tmp.10 311 29 42 ]; - %tmp.10 = getv %tmp.9 :COLOR_LT_GRAY; - symbol [ Graphics %tmp.11 311 44 52 ]; - %tmp.11 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.12 311 53 70 ]; - %tmp.12 = getv %tmp.11 :COLOR_TRANSPARENT; - invoke %tmp.7 %tmp.8(%tmp.10, %tmp.12); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 313 8 ] - %tmp.13 = lgetv %dc; - symbol [ dc %tmp.13 313 8 10 ]; - symbol [ drawLine %tmp.14 313 11 19 ]; - %tmp.14 = getv function %tmp.13 :drawLine; - %tmp.15 = 20; - %tmp.16 = lgetv %height.2; - symbol [ height %tmp.16 313 24 30 ]; - %tmp.17 = 0.22; - %tmp.18 = mul %tmp.16 %tmp.17; - %tmp.19 = lgetv %width.1; - symbol [ width %tmp.19 313 39 44 ]; - %tmp.20 = 20; - %tmp.21 = sub %tmp.19 %tmp.20; - %tmp.22 = lgetv %height.2; - symbol [ height %tmp.22 313 51 57 ]; - %tmp.23 = 0.22; - %tmp.24 = mul %tmp.22 %tmp.23; - invoke %tmp.13 %tmp.14(%tmp.15, %tmp.18, %tmp.21, %tmp.24); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 315 8 ] - %tmp.25 = lgetv %dc; - symbol [ dc %tmp.25 315 8 10 ]; - symbol [ drawLine %tmp.26 315 11 19 ]; - %tmp.26 = getv function %tmp.25 :drawLine; - %tmp.27 = 20; - %tmp.28 = lgetv %height.2; - symbol [ height %tmp.28 315 24 30 ]; - %tmp.29 = 0.43; - %tmp.30 = mul %tmp.28 %tmp.29; - %tmp.31 = lgetv %width.1; - symbol [ width %tmp.31 315 39 44 ]; - %tmp.32 = 20; - %tmp.33 = sub %tmp.31 %tmp.32; - %tmp.34 = lgetv %height.2; - symbol [ height %tmp.34 315 51 57 ]; - %tmp.35 = 0.43; - %tmp.36 = mul %tmp.34 %tmp.35; - invoke %tmp.25 %tmp.26(%tmp.27, %tmp.30, %tmp.33, %tmp.36); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 317 8 ] - %tmp.37 = lgetv %dc; - symbol [ dc %tmp.37 317 8 10 ]; - symbol [ drawLine %tmp.38 317 11 19 ]; - %tmp.38 = getv function %tmp.37 :drawLine; - %tmp.39 = 20; - %tmp.40 = lgetv %height.2; - symbol [ height %tmp.40 317 24 30 ]; - %tmp.41 = 0.60; - %tmp.42 = mul %tmp.40 %tmp.41; - %tmp.43 = lgetv %width.1; - symbol [ width %tmp.43 317 39 44 ]; - %tmp.44 = 20; - %tmp.45 = sub %tmp.43 %tmp.44; - %tmp.46 = lgetv %height.2; - symbol [ height %tmp.46 317 51 57 ]; - %tmp.47 = 0.60; - %tmp.48 = mul %tmp.46 %tmp.47; - invoke %tmp.37 %tmp.38(%tmp.39, %tmp.42, %tmp.45, %tmp.48); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 319 8 ] - %tmp.49 = lgetv %dc; - symbol [ dc %tmp.49 319 8 10 ]; - symbol [ drawLine %tmp.50 319 11 19 ]; - %tmp.50 = getv function %tmp.49 :drawLine; - %tmp.51 = 20; - %tmp.52 = lgetv %height.2; - symbol [ height %tmp.52 319 24 30 ]; - %tmp.53 = 0.78; - %tmp.54 = mul %tmp.52 %tmp.53; - %tmp.55 = lgetv %width.1; - symbol [ width %tmp.55 319 39 44 ]; - %tmp.56 = 20; - %tmp.57 = sub %tmp.55 %tmp.56; - %tmp.58 = lgetv %height.2; - symbol [ height %tmp.58 319 51 57 ]; - %tmp.59 = 0.78; - %tmp.60 = mul %tmp.58 %tmp.59; - invoke %tmp.49 %tmp.50(%tmp.51, %tmp.54, %tmp.57, %tmp.60); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_307_44_320_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 323; @symbol_functiondef = [onLayout,323,13,21]; @symbol_param<0> = [dc,323,22,24]; @symbol_param<0>_type<0> = [Dc,323,28,30]; ] - function onLayout(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_323_40_339_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 324 8 ] - %tmp.1 = self; - symbol [ setLayout %tmp.2 324 8 17 ]; - %tmp.2 = getv function %tmp.1 :setLayout; - symbol [ Rez %tmp.4 324 18 21 ]; - %tmp.4 = getv ? :Rez; - symbol [ Layouts %tmp.5 324 22 29 ]; - %tmp.5 = getv %tmp.4 :Layouts; - symbol [ MainLayout %tmp.6 324 30 40 ]; - %tmp.6 = getv function %tmp.5 :MainLayout; - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 324 41 43 ]; - %tmp.8 = invoke %tmp.5 %tmp.6(%tmp.7); - invoke %tmp.1 %tmp.2(%tmp.8); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 325 8 ] - %tmp.9 = self; - symbol [ findDrawableById %tmp.10 325 26 42 ]; - %tmp.10 = getv function %tmp.9 :findDrawableById; - %tmp.11 = "cadence_text"; - %tmp.12 = invoke %tmp.9 %tmp.10(%tmp.11); - symbol [ _cadenceDisplay ? 325 8 23 ]; - putv self :_cadenceDisplay %tmp.12; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 326 8 ] - %tmp.13 = self; - symbol [ findDrawableById %tmp.14 326 30 46 ]; - %tmp.14 = getv function %tmp.13 :findDrawableById; - %tmp.15 = "cadence_zone"; - %tmp.16 = invoke %tmp.13 %tmp.14(%tmp.15); - symbol [ _cadenceZoneDisplay ? 326 8 27 ]; - putv self :_cadenceZoneDisplay %tmp.16; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 327 8 ] - %tmp.17 = self; - symbol [ findDrawableById %tmp.18 327 28 44 ]; - %tmp.18 = getv function %tmp.17 :findDrawableById; - %tmp.19 = "heartrate_text"; - %tmp.20 = invoke %tmp.17 %tmp.18(%tmp.19); - symbol [ _heartrateDisplay ? 327 8 25 ]; - putv self :_heartrateDisplay %tmp.20; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 328 8 ] - %tmp.21 = self; - symbol [ findDrawableById %tmp.22 328 27 43 ]; - %tmp.22 = getv function %tmp.21 :findDrawableById; - %tmp.23 = "distance_text"; - %tmp.24 = invoke %tmp.21 %tmp.22(%tmp.23); - symbol [ _distanceDisplay ? 328 8 24 ]; - putv self :_distanceDisplay %tmp.24; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 329 8 ] - %tmp.25 = self; - symbol [ findDrawableById %tmp.26 329 23 39 ]; - %tmp.26 = getv function %tmp.25 :findDrawableById; - %tmp.27 = "time_text"; - %tmp.28 = invoke %tmp.25 %tmp.26(%tmp.27); - symbol [ _timeDisplay ? 329 8 20 ]; - putv self :_timeDisplay %tmp.28; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 330 8 ] - %tmp.29 = self; - symbol [ findDrawableById %tmp.30 330 21 37 ]; - %tmp.30 = getv function %tmp.29 :findDrawableById; - %tmp.31 = "cq_text"; - %tmp.32 = invoke %tmp.29 %tmp.30(%tmp.31); - symbol [ _cqDisplay ? 330 8 18 ]; - putv self :_cqDisplay %tmp.32; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 331 8 ] - %tmp.33 = self; - symbol [ findDrawableById %tmp.34 331 23 39 ]; - %tmp.34 = getv function %tmp.33 :findDrawableById; - %tmp.35 = "pace_text"; - %tmp.36 = invoke %tmp.33 %tmp.34(%tmp.35); - symbol [ _paceDisplay ? 331 8 20 ]; - putv self :_paceDisplay %tmp.36; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 334 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_323_40_339_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_323_40_339_4_stop" ] - %_spmLabel.1 = local; - symbol [ _spmLabel %_spmLabel.1 334 12 21 ]; - %tmp.37 = self; - symbol [ findDrawableById %tmp.38 334 24 40 ]; - %tmp.38 = getv function %tmp.37 :findDrawableById; - %tmp.39 = "spm_label"; - %tmp.40 = invoke %tmp.37 %tmp.38(%tmp.39); - %tmp.41 = as %tmp.40 WatchUi.Text; - symbol [ WatchUi %tmp.41 334 57 64 ]; - symbol [ Text %tmp.41 334 65 69 ]; - lputv %_spmLabel.1 %tmp.41; - symbol [ _spmLabel %_spmLabel.1 334 12 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 335 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_335_12_337_12_if_stmt: - %tmp.42 = lgetv %_spmLabel.1; - symbol [ _spmLabel %tmp.42 335 16 25 ]; - %tmp.43 = null; - %tmp.44 = ne %tmp.42 %tmp.43; - bf %tmp.44 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_335_12_337_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_335_12_337_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_335_35_337_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc" 336 12 ] - %tmp.45 = lgetv %_spmLabel.1; - symbol [ _spmLabel %tmp.45 336 12 21 ]; - %tmp.46 = as %tmp.45 { (!Null) }; - symbol [ setText %tmp.47 336 22 29 ]; - %tmp.47 = getv function %tmp.46 :setText; - %tmp.48 = "SPM"; - invoke %tmp.46 %tmp.47(%tmp.48); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_335_35_337_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_335_12_337_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_335_12_337_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SimpleView_mc_323_40_339_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SimpleView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/StartConfirmView.mir b/bin/mir/source/Views/StartConfirmView.mir deleted file mode 100644 index 02006c1..0000000 --- a/bin/mir/source/Views/StartConfirmView.mir +++ /dev/null @@ -1,471 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 3; @symbol_usingdef<0> = [Rez,3,6,9]; ] -using Rez; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 5; @symbol_classdef = [StartConfirmView,5,6,22]; @symbol_extends<0> = [WatchUi,5,31,38]; @symbol_extends<1> = [View,5,39,43]; ] -class StartConfirmView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 5; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 5; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 7; @position = 16; @symbol_vardef = [_selectedOption,7,16,31]; ] - private - var _selectedOption = 0; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 9; @symbol_functiondef = [initialize,9,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_9_26_11_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 10 8 ] - symbol [ View %tmp.2 10 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 10 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_9_26_11_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 13; @symbol_functiondef = [setSelectedOption,13,13,30]; @symbol_param<0> = [value,13,31,36]; ] - function setSelectedOption(value) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_13_38_15_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 14 8 ] - %tmp.1 = lgetv %value; - symbol [ value %tmp.1 14 26 31 ]; - symbol [ _selectedOption ? 14 8 23 ]; - putv self :_selectedOption %tmp.1; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_13_38_15_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 17; @symbol_functiondef = [getSelectedOption,17,13,30]; ] - function getSelectedOption() { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_17_33_19_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 18 8 ] - symbol [ _selectedOption %tmp.2 18 15 30 ]; - %tmp.2 = getv ? :_selectedOption; - ret %tmp.2; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_17_33_19_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 21; @symbol_functiondef = [onUpdate,21,13,21]; @symbol_param<0> = [dc,21,22,24]; ] - function onUpdate(dc) { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 23 8 ] - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 23 8 10 ]; - symbol [ setColor %tmp.2 23 11 19 ]; - %tmp.2 = getv function %tmp.1 :setColor; - symbol [ Graphics %tmp.3 23 20 28 ]; - %tmp.3 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.4 23 29 46 ]; - %tmp.4 = getv %tmp.3 :COLOR_TRANSPARENT; - symbol [ Graphics %tmp.5 23 48 56 ]; - %tmp.5 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.6 23 57 68 ]; - %tmp.6 = getv %tmp.5 :COLOR_BLACK; - invoke %tmp.1 %tmp.2(%tmp.4, %tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 24 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 24 8 10 ]; - symbol [ clear %tmp.8 24 11 16 ]; - %tmp.8 = getv function %tmp.7 :clear; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 26 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_stop" ] - %width.1 = local; - symbol [ width %width.1 26 12 17 ]; - %tmp.9 = lgetv %dc; - symbol [ dc %tmp.9 26 20 22 ]; - symbol [ getWidth %tmp.10 26 23 31 ]; - %tmp.10 = getv function %tmp.9 :getWidth; - %tmp.11 = invoke %tmp.9 %tmp.10(); - lputv %width.1 %tmp.11; - symbol [ width %width.1 26 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 28 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_stop" ] - %tickIcon.2 = local; - symbol [ tickIcon %tickIcon.2 28 12 20 ]; - symbol [ WatchUi %tmp.12 28 23 30 ]; - %tmp.12 = getm $.Toybox.WatchUi; - symbol [ loadResource %tmp.13 28 31 43 ]; - %tmp.13 = getv function %tmp.12 :loadResource; - symbol [ Rez %tmp.14 28 44 47 ]; - %tmp.14 = getm $.Rez; - symbol [ Drawables %tmp.15 28 48 57 ]; - %tmp.15 = getv %tmp.14 :Drawables; - symbol [ TickIcon %tmp.16 28 58 66 ]; - %tmp.16 = getv %tmp.15 :TickIcon; - %tmp.17 = invoke %tmp.12 %tmp.13(%tmp.16); - lputv %tickIcon.2 %tmp.17; - symbol [ tickIcon %tickIcon.2 28 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 29 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_stop" ] - %crossIcon.3 = local; - symbol [ crossIcon %crossIcon.3 29 12 21 ]; - symbol [ WatchUi %tmp.18 29 24 31 ]; - %tmp.18 = getm $.Toybox.WatchUi; - symbol [ loadResource %tmp.19 29 32 44 ]; - %tmp.19 = getv function %tmp.18 :loadResource; - symbol [ Rez %tmp.20 29 45 48 ]; - %tmp.20 = getm $.Rez; - symbol [ Drawables %tmp.21 29 49 58 ]; - %tmp.21 = getv %tmp.20 :Drawables; - symbol [ CrossIcon %tmp.22 29 59 68 ]; - %tmp.22 = getv %tmp.21 :CrossIcon; - %tmp.23 = invoke %tmp.18 %tmp.19(%tmp.22); - lputv %crossIcon.3 %tmp.23; - symbol [ crossIcon %crossIcon.3 29 12 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 30 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_stop" ] - %recIcon.4 = local; - symbol [ recIcon %recIcon.4 30 12 19 ]; - symbol [ WatchUi %tmp.24 30 22 29 ]; - %tmp.24 = getm $.Toybox.WatchUi; - symbol [ loadResource %tmp.25 30 30 42 ]; - %tmp.25 = getv function %tmp.24 :loadResource; - symbol [ Rez %tmp.26 30 43 46 ]; - %tmp.26 = getm $.Rez; - symbol [ Drawables %tmp.27 30 47 56 ]; - %tmp.27 = getv %tmp.26 :Drawables; - symbol [ RecIcon %tmp.28 30 57 64 ]; - %tmp.28 = getv %tmp.27 :RecIcon; - %tmp.29 = invoke %tmp.24 %tmp.25(%tmp.28); - lputv %recIcon.4 %tmp.29; - symbol [ recIcon %recIcon.4 30 12 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 33 8 ] - %tmp.30 = lgetv %dc; - symbol [ dc %tmp.30 33 8 10 ]; - symbol [ setColor %tmp.31 33 11 19 ]; - %tmp.31 = getv function %tmp.30 :setColor; - symbol [ Graphics %tmp.32 33 20 28 ]; - %tmp.32 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.33 33 29 40 ]; - %tmp.33 = getv %tmp.32 :COLOR_WHITE; - symbol [ Graphics %tmp.34 33 42 50 ]; - %tmp.34 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.35 33 51 68 ]; - %tmp.35 = getv %tmp.34 :COLOR_TRANSPARENT; - invoke %tmp.30 %tmp.31(%tmp.33, %tmp.35); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 36 8 ] - %tmp.36 = lgetv %dc; - symbol [ dc %tmp.36 36 8 10 ]; - symbol [ drawBitmap %tmp.37 36 11 21 ]; - %tmp.37 = getv function %tmp.36 :drawBitmap; - %tmp.38 = lgetv %width.1; - symbol [ width %tmp.38 36 22 27 ]; - %tmp.39 = 2; - %tmp.40 = div %tmp.38 %tmp.39; - %tmp.41 = 18; - %tmp.42 = sub %tmp.40 %tmp.41; - %tmp.43 = 20; - %tmp.44 = lgetv %recIcon.4; - symbol [ recIcon %tmp.44 36 42 49 ]; - invoke %tmp.36 %tmp.37(%tmp.42, %tmp.43, %tmp.44); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 38 8 ] - %tmp.45 = lgetv %dc; - symbol [ dc %tmp.45 38 8 10 ]; - symbol [ drawText %tmp.46 38 11 19 ]; - %tmp.46 = getv function %tmp.45 :drawText; - %tmp.47 = lgetv %width.1; - symbol [ width %tmp.47 38 20 25 ]; - %tmp.48 = 2; - %tmp.49 = div %tmp.47 %tmp.48; - %tmp.50 = 80; - symbol [ Graphics %tmp.51 38 35 43 ]; - %tmp.51 = getm $.Toybox.Graphics; - symbol [ FONT_SYSTEM_SMALL %tmp.52 38 44 61 ]; - %tmp.52 = getv %tmp.51 :FONT_SYSTEM_SMALL; - %tmp.53 = "Do you want to"; - symbol [ Graphics %tmp.54 38 81 89 ]; - %tmp.54 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.55 38 90 109 ]; - %tmp.55 = getv %tmp.54 :TEXT_JUSTIFY_CENTER; - invoke %tmp.45 %tmp.46(%tmp.49, %tmp.50, %tmp.52, %tmp.53, %tmp.55); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 39 8 ] - %tmp.56 = lgetv %dc; - symbol [ dc %tmp.56 39 8 10 ]; - symbol [ drawText %tmp.57 39 11 19 ]; - %tmp.57 = getv function %tmp.56 :drawText; - %tmp.58 = lgetv %width.1; - symbol [ width %tmp.58 39 20 25 ]; - %tmp.59 = 2; - %tmp.60 = div %tmp.58 %tmp.59; - %tmp.61 = 140; - symbol [ Graphics %tmp.62 39 36 44 ]; - %tmp.62 = getm $.Toybox.Graphics; - symbol [ FONT_SYSTEM_SMALL %tmp.63 39 45 62 ]; - %tmp.63 = getv %tmp.62 :FONT_SYSTEM_SMALL; - %tmp.64 = "start recording?"; - symbol [ Graphics %tmp.65 39 84 92 ]; - %tmp.65 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.66 39 93 112 ]; - %tmp.66 = getv %tmp.65 :TEXT_JUSTIFY_CENTER; - invoke %tmp.56 %tmp.57(%tmp.60, %tmp.61, %tmp.63, %tmp.64, %tmp.66); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 41 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_stop" ] - %yesY.5 = local; - symbol [ yesY %yesY.5 41 12 16 ]; - %tmp.67 = 220; - lputv %yesY.5 %tmp.67; - symbol [ yesY %yesY.5 41 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 42 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_stop" ] - %noY.6 = local; - symbol [ noY %noY.6 42 12 15 ]; - %tmp.68 = 280; - lputv %noY.6 %tmp.68; - symbol [ noY %noY.6 42 12 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 45 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_stop" ] - %pointerX.7 = local; - symbol [ pointerX %pointerX.7 45 12 20 ]; - %tmp.69 = lgetv %width.1; - symbol [ width %tmp.69 45 24 29 ]; - %tmp.70 = 2; - %tmp.71 = div %tmp.69 %tmp.70; - %tmp.72 = 60; - %tmp.73 = sub %tmp.71 %tmp.72; - lputv %pointerX.7 %tmp.73; - symbol [ pointerX %pointerX.7 45 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 47 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_stop" ] - %iconX.8 = local; - symbol [ iconX %iconX.8 47 12 17 ]; - %tmp.74 = lgetv %width.1; - symbol [ width %tmp.74 47 21 26 ]; - %tmp.75 = 2; - %tmp.76 = div %tmp.74 %tmp.75; - %tmp.77 = 30; - %tmp.78 = sub %tmp.76 %tmp.77; - lputv %iconX.8 %tmp.78; - symbol [ iconX %iconX.8 47 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 49 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_stop" ] - %textX.9 = local; - symbol [ textX %textX.9 49 12 17 ]; - %tmp.79 = lgetv %width.1; - symbol [ width %tmp.79 49 21 26 ]; - %tmp.80 = 2; - %tmp.81 = div %tmp.79 %tmp.80; - %tmp.82 = 10; - %tmp.83 = add %tmp.81 %tmp.82; - lputv %textX.9 %tmp.83; - symbol [ textX %textX.9 49 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 51 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_stop" ] - %iconOffsetY.10 = local; - symbol [ iconOffsetY %iconOffsetY.10 51 12 23 ]; - %tmp.84 = 14; - lputv %iconOffsetY.10 %tmp.84; - symbol [ iconOffsetY %iconOffsetY.10 51 12 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 55 8 ] - %tmp.85 = lgetv %dc; - symbol [ dc %tmp.85 55 8 10 ]; - symbol [ setColor %tmp.86 55 11 19 ]; - %tmp.86 = getv function %tmp.85 :setColor; - symbol [ Graphics %tmp.87 55 20 28 ]; - %tmp.87 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.88 55 29 40 ]; - %tmp.88 = getv %tmp.87 :COLOR_WHITE; - symbol [ Graphics %tmp.89 55 42 50 ]; - %tmp.89 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.90 55 51 68 ]; - %tmp.90 = getv %tmp.89 :COLOR_TRANSPARENT; - invoke %tmp.85 %tmp.86(%tmp.88, %tmp.90); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 58 8 ] - %tmp.91 = lgetv %dc; - symbol [ dc %tmp.91 58 8 10 ]; - symbol [ drawBitmap %tmp.92 58 11 21 ]; - %tmp.92 = getv function %tmp.91 :drawBitmap; - %tmp.93 = lgetv %iconX.8; - symbol [ iconX %tmp.93 58 22 27 ]; - %tmp.94 = lgetv %yesY.5; - symbol [ yesY %tmp.94 58 29 33 ]; - %tmp.95 = lgetv %iconOffsetY.10; - symbol [ iconOffsetY %tmp.95 58 36 47 ]; - %tmp.96 = sub %tmp.94 %tmp.95; - %tmp.97 = lgetv %tickIcon.2; - symbol [ tickIcon %tmp.97 58 49 57 ]; - invoke %tmp.91 %tmp.92(%tmp.93, %tmp.96, %tmp.97); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 60 8 ] - %tmp.98 = lgetv %dc; - symbol [ dc %tmp.98 60 8 10 ]; - symbol [ drawText %tmp.99 60 11 19 ]; - %tmp.99 = getv function %tmp.98 :drawText; - %tmp.100 = lgetv %textX.9; - symbol [ textX %tmp.100 60 20 25 ]; - %tmp.101 = lgetv %yesY.5; - symbol [ yesY %tmp.101 60 27 31 ]; - symbol [ Graphics %tmp.102 60 33 41 ]; - %tmp.102 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.103 60 42 52 ]; - %tmp.103 = getv %tmp.102 :FONT_SMALL; - %tmp.104 = "Yes"; - symbol [ Graphics %tmp.105 60 61 69 ]; - %tmp.105 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.106 60 70 87 ]; - %tmp.106 = getv %tmp.105 :TEXT_JUSTIFY_LEFT; - symbol [ Graphics %tmp.107 60 90 98 ]; - %tmp.107 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.108 60 99 119 ]; - %tmp.108 = getv %tmp.107 :TEXT_JUSTIFY_VCENTER; - %tmp.109 = bitor %tmp.106 %tmp.108; - invoke %tmp.98 %tmp.99(%tmp.100, %tmp.101, %tmp.103, %tmp.104, %tmp.109); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 63 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_63_8_66_8_if_stmt: - symbol [ _selectedOption %tmp.111 63 12 27 ]; - %tmp.111 = getv ? :_selectedOption; - %tmp.112 = 0; - %tmp.113 = eq %tmp.111 %tmp.112; - bf %tmp.113 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_63_8_66_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_63_8_66_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_63_34_66_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 64 12 ] - %tmp.114 = lgetv %dc; - symbol [ dc %tmp.114 64 12 14 ]; - symbol [ setColor %tmp.115 64 15 23 ]; - %tmp.115 = getv function %tmp.114 :setColor; - symbol [ Graphics %tmp.116 64 24 32 ]; - %tmp.116 = getm $.Toybox.Graphics; - symbol [ COLOR_GREEN %tmp.117 64 33 44 ]; - %tmp.117 = getv %tmp.116 :COLOR_GREEN; - symbol [ Graphics %tmp.118 64 46 54 ]; - %tmp.118 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.119 64 55 72 ]; - %tmp.119 = getv %tmp.118 :COLOR_TRANSPARENT; - invoke %tmp.114 %tmp.115(%tmp.117, %tmp.119); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 65 12 ] - %tmp.120 = lgetv %dc; - symbol [ dc %tmp.120 65 12 14 ]; - symbol [ drawText %tmp.121 65 15 23 ]; - %tmp.121 = getv function %tmp.120 :drawText; - %tmp.122 = lgetv %pointerX.7; - symbol [ pointerX %tmp.122 65 24 32 ]; - %tmp.123 = lgetv %yesY.5; - symbol [ yesY %tmp.123 65 34 38 ]; - symbol [ Graphics %tmp.124 65 40 48 ]; - %tmp.124 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.125 65 49 59 ]; - %tmp.125 = getv %tmp.124 :FONT_SMALL; - %tmp.126 = ">"; - symbol [ Graphics %tmp.127 65 66 74 ]; - %tmp.127 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.128 65 75 92 ]; - %tmp.128 = getv %tmp.127 :TEXT_JUSTIFY_LEFT; - symbol [ Graphics %tmp.129 65 95 103 ]; - %tmp.129 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.130 65 104 124 ]; - %tmp.130 = getv %tmp.129 :TEXT_JUSTIFY_VCENTER; - %tmp.131 = bitor %tmp.128 %tmp.130; - invoke %tmp.120 %tmp.121(%tmp.122, %tmp.123, %tmp.125, %tmp.126, %tmp.131); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_63_34_66_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_63_8_66_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_63_8_66_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 69 8 ] - %tmp.132 = lgetv %dc; - symbol [ dc %tmp.132 69 8 10 ]; - symbol [ setColor %tmp.133 69 11 19 ]; - %tmp.133 = getv function %tmp.132 :setColor; - symbol [ Graphics %tmp.134 69 20 28 ]; - %tmp.134 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.135 69 29 40 ]; - %tmp.135 = getv %tmp.134 :COLOR_WHITE; - symbol [ Graphics %tmp.136 69 42 50 ]; - %tmp.136 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.137 69 51 68 ]; - %tmp.137 = getv %tmp.136 :COLOR_TRANSPARENT; - invoke %tmp.132 %tmp.133(%tmp.135, %tmp.137); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 72 8 ] - %tmp.138 = lgetv %dc; - symbol [ dc %tmp.138 72 8 10 ]; - symbol [ drawBitmap %tmp.139 72 11 21 ]; - %tmp.139 = getv function %tmp.138 :drawBitmap; - %tmp.140 = lgetv %iconX.8; - symbol [ iconX %tmp.140 72 22 27 ]; - %tmp.141 = lgetv %noY.6; - symbol [ noY %tmp.141 72 29 32 ]; - %tmp.142 = lgetv %iconOffsetY.10; - symbol [ iconOffsetY %tmp.142 72 35 46 ]; - %tmp.143 = sub %tmp.141 %tmp.142; - %tmp.144 = lgetv %crossIcon.3; - symbol [ crossIcon %tmp.144 72 48 57 ]; - invoke %tmp.138 %tmp.139(%tmp.140, %tmp.143, %tmp.144); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 74 8 ] - %tmp.145 = lgetv %dc; - symbol [ dc %tmp.145 74 8 10 ]; - symbol [ drawText %tmp.146 74 11 19 ]; - %tmp.146 = getv function %tmp.145 :drawText; - %tmp.147 = lgetv %textX.9; - symbol [ textX %tmp.147 74 20 25 ]; - %tmp.148 = lgetv %noY.6; - symbol [ noY %tmp.148 74 27 30 ]; - symbol [ Graphics %tmp.149 74 32 40 ]; - %tmp.149 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.150 74 41 51 ]; - %tmp.150 = getv %tmp.149 :FONT_SMALL; - %tmp.151 = "No"; - symbol [ Graphics %tmp.152 74 59 67 ]; - %tmp.152 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.153 74 68 85 ]; - %tmp.153 = getv %tmp.152 :TEXT_JUSTIFY_LEFT; - symbol [ Graphics %tmp.154 74 88 96 ]; - %tmp.154 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.155 74 97 117 ]; - %tmp.155 = getv %tmp.154 :TEXT_JUSTIFY_VCENTER; - %tmp.156 = bitor %tmp.153 %tmp.155; - invoke %tmp.145 %tmp.146(%tmp.147, %tmp.148, %tmp.150, %tmp.151, %tmp.156); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 77 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_77_8_80_8_if_stmt: - symbol [ _selectedOption %tmp.158 77 12 27 ]; - %tmp.158 = getv ? :_selectedOption; - %tmp.159 = 1; - %tmp.160 = eq %tmp.158 %tmp.159; - bf %tmp.160 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_77_8_80_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_77_8_80_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_77_34_80_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 78 12 ] - %tmp.161 = lgetv %dc; - symbol [ dc %tmp.161 78 12 14 ]; - symbol [ setColor %tmp.162 78 15 23 ]; - %tmp.162 = getv function %tmp.161 :setColor; - symbol [ Graphics %tmp.163 78 24 32 ]; - %tmp.163 = getm $.Toybox.Graphics; - symbol [ COLOR_RED %tmp.164 78 33 42 ]; - %tmp.164 = getv %tmp.163 :COLOR_RED; - symbol [ Graphics %tmp.165 78 44 52 ]; - %tmp.165 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.166 78 53 70 ]; - %tmp.166 = getv %tmp.165 :COLOR_TRANSPARENT; - invoke %tmp.161 %tmp.162(%tmp.164, %tmp.166); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc" 79 12 ] - %tmp.167 = lgetv %dc; - symbol [ dc %tmp.167 79 12 14 ]; - symbol [ drawText %tmp.168 79 15 23 ]; - %tmp.168 = getv function %tmp.167 :drawText; - %tmp.169 = lgetv %pointerX.7; - symbol [ pointerX %tmp.169 79 24 32 ]; - %tmp.170 = lgetv %noY.6; - symbol [ noY %tmp.170 79 34 37 ]; - symbol [ Graphics %tmp.171 79 39 47 ]; - %tmp.171 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.172 79 48 58 ]; - %tmp.172 = getv %tmp.171 :FONT_SMALL; - %tmp.173 = ">"; - symbol [ Graphics %tmp.174 79 65 73 ]; - %tmp.174 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.175 79 74 91 ]; - %tmp.175 = getv %tmp.174 :TEXT_JUSTIFY_LEFT; - symbol [ Graphics %tmp.176 79 94 102 ]; - %tmp.176 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.177 79 103 123 ]; - %tmp.177 = getv %tmp.176 :TEXT_JUSTIFY_VCENTER; - %tmp.178 = bitor %tmp.175 %tmp.177; - invoke %tmp.167 %tmp.168(%tmp.169, %tmp.170, %tmp.172, %tmp.173, %tmp.178); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_77_34_80_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_77_8_80_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_77_8_80_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_StartConfirmView_mc_21_26_81_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\StartConfirmView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/SummaryView.mir b/bin/mir/source/Views/SummaryView.mir deleted file mode 100644 index 3049ad5..0000000 --- a/bin/mir/source/Views/SummaryView.mir +++ /dev/null @@ -1,2575 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [Lang,2,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [System,3,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Activity,4,14,22]; ] -import Toybox.Activity; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 5; @symbol_importdef<0> = [Toybox,5,7,13]; @symbol_importdef<1> = [WatchUi,5,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 7; @symbol_classdef = [SummaryView,7,6,17]; @symbol_extends<0> = [WatchUi,7,26,33]; @symbol_extends<1> = [View,7,34,38]; ] -class SummaryView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 7; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 7; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 9; @position = 16; @symbol_vardef = [_iconDistance,9,16,29]; ] - private - var _iconDistance; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 10; @position = 16; @symbol_vardef = [_iconCadence,10,16,28]; ] - private - var _iconCadence; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 11; @position = 16; @symbol_vardef = [_iconHR,11,16,23]; ] - private - var _iconHR; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 12; @position = 16; @symbol_vardef = [_iconSteps,12,16,26]; ] - private - var _iconSteps; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 13; @position = 16; @symbol_vardef = [_iconTime,13,16,25]; ] - private - var _iconTime; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 15; @symbol_functiondef = [initialize,15,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_15_26_24_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 16 8 ] - symbol [ View %tmp.2 16 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 16 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 19 8 ] - symbol [ Application %tmp.5 19 24 35 ]; - %tmp.5 = getv ? :Application; - symbol [ loadResource %tmp.6 19 36 48 ]; - %tmp.6 = getv function %tmp.5 :loadResource; - symbol [ Rez %tmp.8 19 49 52 ]; - %tmp.8 = getv ? :Rez; - symbol [ Drawables %tmp.9 19 53 62 ]; - %tmp.9 = getv %tmp.8 :Drawables; - symbol [ IconDistance %tmp.10 19 63 75 ]; - %tmp.10 = getv %tmp.9 :IconDistance; - %tmp.11 = invoke %tmp.5 %tmp.6(%tmp.10); - symbol [ _iconDistance ? 19 8 21 ]; - putv self :_iconDistance %tmp.11; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 20 8 ] - symbol [ Application %tmp.13 20 23 34 ]; - %tmp.13 = getv ? :Application; - symbol [ loadResource %tmp.14 20 35 47 ]; - %tmp.14 = getv function %tmp.13 :loadResource; - symbol [ Rez %tmp.16 20 48 51 ]; - %tmp.16 = getv ? :Rez; - symbol [ Drawables %tmp.17 20 52 61 ]; - %tmp.17 = getv %tmp.16 :Drawables; - symbol [ IconCadence %tmp.18 20 62 73 ]; - %tmp.18 = getv %tmp.17 :IconCadence; - %tmp.19 = invoke %tmp.13 %tmp.14(%tmp.18); - symbol [ _iconCadence ? 20 8 20 ]; - putv self :_iconCadence %tmp.19; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 21 8 ] - symbol [ Application %tmp.21 21 18 29 ]; - %tmp.21 = getv ? :Application; - symbol [ loadResource %tmp.22 21 30 42 ]; - %tmp.22 = getv function %tmp.21 :loadResource; - symbol [ Rez %tmp.24 21 43 46 ]; - %tmp.24 = getv ? :Rez; - symbol [ Drawables %tmp.25 21 47 56 ]; - %tmp.25 = getv %tmp.24 :Drawables; - symbol [ IconHeartRate %tmp.26 21 57 70 ]; - %tmp.26 = getv %tmp.25 :IconHeartRate; - %tmp.27 = invoke %tmp.21 %tmp.22(%tmp.26); - symbol [ _iconHR ? 21 8 15 ]; - putv self :_iconHR %tmp.27; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 22 8 ] - symbol [ Application %tmp.29 22 21 32 ]; - %tmp.29 = getv ? :Application; - symbol [ loadResource %tmp.30 22 33 45 ]; - %tmp.30 = getv function %tmp.29 :loadResource; - symbol [ Rez %tmp.32 22 46 49 ]; - %tmp.32 = getv ? :Rez; - symbol [ Drawables %tmp.33 22 50 59 ]; - %tmp.33 = getv %tmp.32 :Drawables; - symbol [ IconSteps %tmp.34 22 60 69 ]; - %tmp.34 = getv %tmp.33 :IconSteps; - %tmp.35 = invoke %tmp.29 %tmp.30(%tmp.34); - symbol [ _iconSteps ? 22 8 18 ]; - putv self :_iconSteps %tmp.35; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 23 8 ] - symbol [ Application %tmp.37 23 20 31 ]; - %tmp.37 = getv ? :Application; - symbol [ loadResource %tmp.38 23 32 44 ]; - %tmp.38 = getv function %tmp.37 :loadResource; - symbol [ Rez %tmp.40 23 45 48 ]; - %tmp.40 = getv ? :Rez; - symbol [ Drawables %tmp.41 23 49 58 ]; - %tmp.41 = getv %tmp.40 :Drawables; - symbol [ IconTime %tmp.42 23 59 67 ]; - %tmp.42 = getv %tmp.41 :IconTime; - %tmp.43 = invoke %tmp.37 %tmp.38(%tmp.42); - symbol [ _iconTime ? 23 8 17 ]; - putv self :_iconTime %tmp.43; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_15_26_24_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 26; @symbol_functiondef = [onUpdate,26,9,17]; @symbol_param<0> = [dc,26,18,20]; @symbol_param<0>_type<0> = [Dc,26,24,26]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 28 4 ] - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 28 4 6 ]; - symbol [ setColor %tmp.2 28 7 15 ]; - %tmp.2 = getv function %tmp.1 :setColor; - symbol [ Graphics %tmp.3 28 16 24 ]; - %tmp.3 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.4 28 25 36 ]; - %tmp.4 = getv %tmp.3 :COLOR_BLACK; - symbol [ Graphics %tmp.5 28 38 46 ]; - %tmp.5 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.6 28 47 58 ]; - %tmp.6 = getv %tmp.5 :COLOR_BLACK; - invoke %tmp.1 %tmp.2(%tmp.4, %tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 29 4 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 29 4 6 ]; - symbol [ clear %tmp.8 29 7 12 ]; - %tmp.8 = getv function %tmp.7 :clear; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 31 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %app.1 = local; - symbol [ app %app.1 31 8 11 ]; - %tmp.9 = self; - symbol [ getApp %tmp.10 31 14 20 ]; - %tmp.10 = getv function %tmp.9 :getApp; - %tmp.11 = invoke %tmp.9 %tmp.10(); - lputv %app.1 %tmp.11; - symbol [ app %app.1 31 8 11 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 32 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %width.2 = local; - symbol [ width %width.2 32 8 13 ]; - %tmp.12 = lgetv %dc; - symbol [ dc %tmp.12 32 16 18 ]; - symbol [ getWidth %tmp.13 32 19 27 ]; - %tmp.13 = getv function %tmp.12 :getWidth; - %tmp.14 = invoke %tmp.12 %tmp.13(); - lputv %width.2 %tmp.14; - symbol [ width %width.2 32 8 13 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 33 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %height.3 = local; - symbol [ height %height.3 33 8 14 ]; - %tmp.15 = lgetv %dc; - symbol [ dc %tmp.15 33 17 19 ]; - symbol [ getHeight %tmp.16 33 20 29 ]; - %tmp.16 = getv function %tmp.15 :getHeight; - %tmp.17 = invoke %tmp.15 %tmp.16(); - lputv %height.3 %tmp.17; - symbol [ height %height.3 33 8 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 36 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_36_4_46_4_if_stmt: - %tmp.18 = lgetv %app.1; - symbol [ app %tmp.18 36 9 12 ]; - symbol [ hasValidSummaryData %tmp.19 36 13 32 ]; - %tmp.19 = getv function %tmp.18 :hasValidSummaryData; - %tmp.20 = invoke %tmp.18 %tmp.19(); - %tmp.21 = not %tmp.20; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_36_4_46_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_36_4_46_4_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_36_36_46_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 37 8 ] - %tmp.22 = lgetv %dc; - symbol [ dc %tmp.22 37 8 10 ]; - symbol [ setColor %tmp.23 37 11 19 ]; - %tmp.23 = getv function %tmp.22 :setColor; - symbol [ Graphics %tmp.24 37 20 28 ]; - %tmp.24 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.25 37 29 40 ]; - %tmp.25 = getv %tmp.24 :COLOR_WHITE; - symbol [ Graphics %tmp.26 37 42 50 ]; - %tmp.26 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.27 37 51 68 ]; - %tmp.27 = getv %tmp.26 :COLOR_TRANSPARENT; - invoke %tmp.22 %tmp.23(%tmp.25, %tmp.27); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 38 8 ] - %tmp.28 = lgetv %dc; - symbol [ dc %tmp.28 38 8 10 ]; - symbol [ drawText %tmp.29 38 11 19 ]; - %tmp.29 = getv function %tmp.28 :drawText; - %tmp.30 = lgetv %width.2; - symbol [ width %tmp.30 39 12 17 ]; - %tmp.31 = 2; - %tmp.32 = div %tmp.30 %tmp.31; - %tmp.33 = lgetv %height.3; - symbol [ height %tmp.33 40 12 18 ]; - %tmp.34 = 2; - %tmp.35 = div %tmp.33 %tmp.34; - symbol [ Graphics %tmp.36 41 12 20 ]; - %tmp.36 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.37 41 21 32 ]; - %tmp.37 = getv %tmp.36 :FONT_MEDIUM; - %tmp.38 = "No data available"; - symbol [ Graphics %tmp.39 43 12 20 ]; - %tmp.39 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.40 43 21 40 ]; - %tmp.40 = getv %tmp.39 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.41 43 43 51 ]; - %tmp.41 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.42 43 52 72 ]; - %tmp.42 = getv %tmp.41 :TEXT_JUSTIFY_VCENTER; - %tmp.43 = bitor %tmp.40 %tmp.42; - invoke %tmp.28 %tmp.29(%tmp.32, %tmp.35, %tmp.37, %tmp.38, %tmp.43); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 45 8 ] - ret ?; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_36_36_46_4_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_36_4_46_4_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_36_4_46_4_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 48 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %centerX.4 = local; - symbol [ centerX %centerX.4 48 8 15 ]; - %tmp.44 = lgetv %width.2; - symbol [ width %tmp.44 48 18 23 ]; - %tmp.45 = 2; - %tmp.46 = div %tmp.44 %tmp.45; - lputv %centerX.4 %tmp.46; - symbol [ centerX %centerX.4 48 8 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 51 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %titleY.5 = local; - symbol [ titleY %titleY.5 51 8 14 ]; - %tmp.47 = 40; - lputv %titleY.5 %tmp.47; - symbol [ titleY %titleY.5 51 8 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 52 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %startY.6 = local; - symbol [ startY %startY.6 52 8 14 ]; - %tmp.48 = 60; - lputv %startY.6 %tmp.48; - symbol [ startY %startY.6 52 8 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 53 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %gap.7 = local; - symbol [ gap %gap.7 53 8 11 ]; - %tmp.49 = 28; - lputv %gap.7 %tmp.49; - symbol [ gap %gap.7 53 8 11 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 55 4 ] - %tmp.50 = lgetv %dc; - symbol [ dc %tmp.50 55 4 6 ]; - symbol [ setColor %tmp.51 55 7 15 ]; - %tmp.51 = getv function %tmp.50 :setColor; - symbol [ Graphics %tmp.52 55 16 24 ]; - %tmp.52 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.53 55 25 36 ]; - %tmp.53 = getv %tmp.52 :COLOR_WHITE; - symbol [ Graphics %tmp.54 55 38 46 ]; - %tmp.54 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.55 55 47 58 ]; - %tmp.55 = getv %tmp.54 :COLOR_BLACK; - invoke %tmp.50 %tmp.51(%tmp.53, %tmp.55); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 58 4 ] - %tmp.56 = lgetv %dc; - symbol [ dc %tmp.56 58 4 6 ]; - symbol [ drawText %tmp.57 58 7 15 ]; - %tmp.57 = getv function %tmp.56 :drawText; - %tmp.58 = lgetv %centerX.4; - symbol [ centerX %tmp.58 58 16 23 ]; - %tmp.59 = lgetv %titleY.5; - symbol [ titleY %tmp.59 58 25 31 ]; - symbol [ Graphics %tmp.60 58 33 41 ]; - %tmp.60 = getm $.Toybox.Graphics; - symbol [ FONT_XTINY %tmp.61 58 42 52 ]; - %tmp.61 = getv %tmp.60 :FONT_XTINY; - %tmp.62 = "Workout Summary"; - symbol [ Graphics %tmp.63 60 8 16 ]; - %tmp.63 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.64 60 17 36 ]; - %tmp.64 = getv %tmp.63 :TEXT_JUSTIFY_CENTER; - invoke %tmp.56 %tmp.57(%tmp.58, %tmp.59, %tmp.61, %tmp.62, %tmp.64); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 64 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %duration.8 = local; - symbol [ duration %duration.8 64 8 16 ]; - %tmp.65 = lgetv %app.1; - symbol [ app %tmp.65 64 19 22 ]; - symbol [ getSessionDuration %tmp.66 64 23 41 ]; - %tmp.66 = getv function %tmp.65 :getSessionDuration; - %tmp.67 = invoke %tmp.65 %tmp.66(); - lputv %duration.8 %tmp.67; - symbol [ duration %duration.8 64 8 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 65 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %distance.9 = local; - symbol [ distance %distance.9 65 8 16 ]; - %tmp.68 = lgetv %app.1; - symbol [ app %tmp.68 65 19 22 ]; - symbol [ getSessionDistance %tmp.69 65 23 41 ]; - %tmp.69 = getv function %tmp.68 :getSessionDistance; - %tmp.70 = invoke %tmp.68 %tmp.69(); - lputv %distance.9 %tmp.70; - symbol [ distance %distance.9 65 8 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 66 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %hr.10 = local; - symbol [ hr %hr.10 66 8 10 ]; - %tmp.71 = lgetv %app.1; - symbol [ app %tmp.71 66 13 16 ]; - symbol [ getAvgHeartRate %tmp.72 66 17 32 ]; - %tmp.72 = getv function %tmp.71 :getAvgHeartRate; - %tmp.73 = invoke %tmp.71 %tmp.72(); - lputv %hr.10 %tmp.73; - symbol [ hr %hr.10 66 8 10 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 67 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %pace.11 = local; - symbol [ pace %pace.11 67 8 12 ]; - %tmp.74 = lgetv %app.1; - symbol [ app %tmp.74 67 15 18 ]; - symbol [ getAveragePace %tmp.75 67 19 33 ]; - %tmp.75 = getv function %tmp.74 :getAveragePace; - %tmp.76 = invoke %tmp.74 %tmp.75(); - lputv %pace.11 %tmp.76; - symbol [ pace %pace.11 67 8 12 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 68 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %qcScore.12 = local; - symbol [ qcScore %qcScore.12 68 8 15 ]; - %tmp.77 = lgetv %app.1; - symbol [ app %tmp.77 68 18 21 ]; - symbol [ getfinalQC %tmp.78 68 22 32 ]; - %tmp.78 = getv function %tmp.77 :getfinalQC; - %tmp.79 = invoke %tmp.77 %tmp.78(); - lputv %qcScore.12 %tmp.79; - symbol [ qcScore %qcScore.12 68 8 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 69 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %temperature.13 = local; - symbol [ temperature %temperature.13 69 8 19 ]; - %tmp.80 = lgetv %app.1; - symbol [ app %tmp.80 69 22 25 ]; - symbol [ getLinkedTemperature %tmp.81 69 26 46 ]; - %tmp.81 = getv function %tmp.80 :getLinkedTemperature; - %tmp.82 = invoke %tmp.80 %tmp.81(); - lputv %temperature.13 %tmp.82; - symbol [ temperature %temperature.13 69 8 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 71 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_71_4_71_42_if_stmt: - %tmp.83 = lgetv %duration.8; - symbol [ duration %tmp.83 71 8 16 ]; - %tmp.84 = null; - %tmp.85 = eq %tmp.83 %tmp.84; - bf %tmp.85 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_71_4_71_42_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_71_4_71_42_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_71_26_71_42_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 71 28 ] - %tmp.86 = 0; - lputv %duration.8 %tmp.86; - symbol [ duration %duration.8 71 28 36 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_71_26_71_42_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_71_4_71_42_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_71_4_71_42_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 72 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_72_4_72_42_if_stmt: - %tmp.87 = lgetv %distance.9; - symbol [ distance %tmp.87 72 8 16 ]; - %tmp.88 = null; - %tmp.89 = eq %tmp.87 %tmp.88; - bf %tmp.89 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_72_4_72_42_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_72_4_72_42_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_72_26_72_42_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 72 28 ] - %tmp.90 = 0; - lputv %distance.9 %tmp.90; - symbol [ distance %distance.9 72 28 36 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_72_26_72_42_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_72_4_72_42_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_72_4_72_42_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 73 4 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_73_4_73_30_if_stmt: - %tmp.91 = lgetv %hr.10; - symbol [ hr %tmp.91 73 8 10 ]; - %tmp.92 = null; - %tmp.93 = eq %tmp.91 %tmp.92; - bf %tmp.93 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_73_4_73_30_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_73_4_73_30_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_73_20_73_30_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 73 22 ] - %tmp.94 = 0; - lputv %hr.10 %tmp.94; - symbol [ hr %hr.10 73 22 24 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_73_20_73_30_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_73_4_73_30_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_73_4_73_30_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 76 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %seconds.14 = local; - symbol [ seconds %seconds.14 76 8 15 ]; - %tmp.95 = lgetv %duration.8; - symbol [ duration %tmp.95 76 18 26 ]; - %tmp.96 = 1000; - %tmp.97 = div %tmp.95 %tmp.96; - lputv %seconds.14 %tmp.97; - symbol [ seconds %seconds.14 76 8 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 77 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %h.15 = local; - symbol [ h %h.15 77 8 9 ]; - %tmp.98 = lgetv %seconds.14; - symbol [ seconds %tmp.98 77 12 19 ]; - %tmp.99 = 3600; - %tmp.100 = div %tmp.98 %tmp.99; - lputv %h.15 %tmp.100; - symbol [ h %h.15 77 8 9 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 78 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %m.16 = local; - symbol [ m %m.16 78 8 9 ]; - %tmp.101 = lgetv %seconds.14; - symbol [ seconds %tmp.101 78 13 20 ]; - %tmp.102 = 3600; - %tmp.103 = mod %tmp.101 %tmp.102; - %tmp.104 = 60; - %tmp.105 = div %tmp.103 %tmp.104; - lputv %m.16 %tmp.105; - symbol [ m %m.16 78 8 9 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 79 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %s.17 = local; - symbol [ s %s.17 79 8 9 ]; - %tmp.106 = lgetv %seconds.14; - symbol [ seconds %tmp.106 79 12 19 ]; - %tmp.107 = 60; - %tmp.108 = mod %tmp.106 %tmp.107; - lputv %s.17 %tmp.108; - symbol [ s %s.17 79 8 9 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 81 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %timeStr.18 = local; - symbol [ timeStr %timeStr.18 81 8 15 ]; - %tmp.109 = lgetv %h.15; - symbol [ h %tmp.109 81 18 19 ]; - symbol [ format %tmp.110 81 20 26 ]; - %tmp.110 = getv function %tmp.109 :format; - %tmp.111 = "%02d"; - %tmp.112 = invoke %tmp.109 %tmp.110(%tmp.111); - %tmp.113 = ":"; - %tmp.114 = add %tmp.112 %tmp.113; - %tmp.115 = lgetv %m.16; - symbol [ m %tmp.115 82 18 19 ]; - symbol [ format %tmp.116 82 20 26 ]; - %tmp.116 = getv function %tmp.115 :format; - %tmp.117 = "%02d"; - %tmp.118 = invoke %tmp.115 %tmp.116(%tmp.117); - %tmp.119 = add %tmp.114 %tmp.118; - %tmp.120 = ":"; - %tmp.121 = add %tmp.119 %tmp.120; - %tmp.122 = lgetv %s.17; - symbol [ s %tmp.122 83 18 19 ]; - symbol [ format %tmp.123 83 20 26 ]; - %tmp.123 = getv function %tmp.122 :format; - %tmp.124 = "%02d"; - %tmp.125 = invoke %tmp.122 %tmp.123(%tmp.124); - %tmp.126 = add %tmp.121 %tmp.125; - lputv %timeStr.18 %tmp.126; - symbol [ timeStr %timeStr.18 81 8 15 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 86 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop" ] - %km.19 = local; - symbol [ km %km.19 86 8 10 ]; - %tmp.127 = lgetv %distance.9; - symbol [ distance %tmp.127 86 13 21 ]; - %tmp.128 = 100000.0; - %tmp.129 = div %tmp.127 %tmp.128; - lputv %km.19 %tmp.129; - symbol [ km %km.19 86 8 10 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 88 8 ] - %tmp.130 = self; - symbol [ drawRow %tmp.131 88 8 15 ]; - %tmp.131 = getv function %tmp.130 :drawRow; - %tmp.132 = lgetv %dc; - symbol [ dc %tmp.132 88 16 18 ]; - %tmp.133 = lgetv %width.2; - symbol [ width %tmp.133 88 20 25 ]; - %tmp.134 = lgetv %startY.6; - symbol [ startY %tmp.134 88 27 33 ]; - %tmp.135 = lgetv %gap.7; - symbol [ gap %tmp.135 88 36 39 ]; - %tmp.136 = add %tmp.134 %tmp.135; - %tmp.137 = lgetv %timeStr.18; - symbol [ timeStr %tmp.137 88 41 48 ]; - symbol [ _iconTime %tmp.139 88 50 59 ]; - %tmp.139 = getv ? :_iconTime; - %tmp.140 = "TIME"; - invoke %tmp.130 %tmp.131(%tmp.132, %tmp.133, %tmp.136, %tmp.137, %tmp.139, %tmp.140); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 89 8 ] - %tmp.141 = self; - symbol [ drawRow %tmp.142 89 8 15 ]; - %tmp.142 = getv function %tmp.141 :drawRow; - %tmp.143 = lgetv %dc; - symbol [ dc %tmp.143 89 16 18 ]; - %tmp.144 = lgetv %width.2; - symbol [ width %tmp.144 89 20 25 ]; - %tmp.145 = lgetv %startY.6; - symbol [ startY %tmp.145 89 27 33 ]; - %tmp.146 = lgetv %gap.7; - symbol [ gap %tmp.146 89 36 39 ]; - %tmp.147 = 2; - %tmp.148 = mul %tmp.146 %tmp.147; - %tmp.149 = add %tmp.145 %tmp.148; - %tmp.150 = lgetv %km.19; - symbol [ km %tmp.150 89 45 47 ]; - symbol [ format %tmp.151 89 48 54 ]; - %tmp.151 = getv function %tmp.150 :format; - %tmp.152 = "%.2f"; - %tmp.153 = invoke %tmp.150 %tmp.151(%tmp.152); - symbol [ _iconDistance %tmp.155 89 64 77 ]; - %tmp.155 = getv ? :_iconDistance; - %tmp.156 = "DISTANCE"; - invoke %tmp.141 %tmp.142(%tmp.143, %tmp.144, %tmp.149, %tmp.153, %tmp.155, %tmp.156); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 90 8 ] - %tmp.157 = self; - symbol [ drawRow %tmp.158 90 8 15 ]; - %tmp.158 = getv function %tmp.157 :drawRow; - %tmp.159 = lgetv %dc; - symbol [ dc %tmp.159 90 16 18 ]; - %tmp.160 = lgetv %width.2; - symbol [ width %tmp.160 90 20 25 ]; - %tmp.161 = lgetv %startY.6; - symbol [ startY %tmp.161 90 27 33 ]; - %tmp.162 = lgetv %gap.7; - symbol [ gap %tmp.162 90 36 39 ]; - %tmp.163 = 3; - %tmp.164 = mul %tmp.162 %tmp.163; - %tmp.165 = add %tmp.161 %tmp.164; - %tmp.166 = "--"; - symbol [ _iconCadence %tmp.168 90 51 63 ]; - %tmp.168 = getv ? :_iconCadence; - %tmp.169 = "CADENCE"; - invoke %tmp.157 %tmp.158(%tmp.159, %tmp.160, %tmp.165, %tmp.166, %tmp.168, %tmp.169); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 91 8 ] - %tmp.170 = self; - symbol [ drawRow %tmp.171 91 8 15 ]; - %tmp.171 = getv function %tmp.170 :drawRow; - %tmp.172 = lgetv %dc; - symbol [ dc %tmp.172 91 16 18 ]; - %tmp.173 = lgetv %width.2; - symbol [ width %tmp.173 91 20 25 ]; - %tmp.174 = lgetv %startY.6; - symbol [ startY %tmp.174 91 27 33 ]; - %tmp.175 = lgetv %gap.7; - symbol [ gap %tmp.175 91 36 39 ]; - %tmp.176 = 4; - %tmp.177 = mul %tmp.175 %tmp.176; - %tmp.178 = add %tmp.174 %tmp.177; - %tmp.179 = lgetv %hr.10; - symbol [ hr %tmp.179 91 45 47 ]; - %tmp.180 = ""; - %tmp.181 = add %tmp.179 %tmp.180; - symbol [ _iconHR %tmp.183 91 54 61 ]; - %tmp.183 = getv ? :_iconHR; - %tmp.184 = "BPM (AVG)"; - invoke %tmp.170 %tmp.171(%tmp.172, %tmp.173, %tmp.178, %tmp.181, %tmp.183, %tmp.184); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 92 8 ] - %tmp.185 = self; - symbol [ drawRow %tmp.186 92 8 15 ]; - %tmp.186 = getv function %tmp.185 :drawRow; - %tmp.187 = lgetv %dc; - symbol [ dc %tmp.187 92 16 18 ]; - %tmp.188 = lgetv %width.2; - symbol [ width %tmp.188 92 20 25 ]; - %tmp.189 = lgetv %startY.6; - symbol [ startY %tmp.189 92 27 33 ]; - %tmp.190 = lgetv %gap.7; - symbol [ gap %tmp.190 92 36 39 ]; - %tmp.191 = 5; - %tmp.192 = mul %tmp.190 %tmp.191; - %tmp.193 = add %tmp.189 %tmp.192; - %tmp.194 = "--"; - symbol [ _iconSteps %tmp.196 92 51 61 ]; - %tmp.196 = getv ? :_iconSteps; - %tmp.197 = "STEPS"; - invoke %tmp.185 %tmp.186(%tmp.187, %tmp.188, %tmp.193, %tmp.194, %tmp.196, %tmp.197); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 94 8 ] - %tmp.198 = self; - symbol [ drawRow %tmp.199 94 8 15 ]; - %tmp.199 = getv function %tmp.198 :drawRow; - %tmp.200 = lgetv %dc; - symbol [ dc %tmp.200 94 16 18 ]; - %tmp.201 = lgetv %width.2; - symbol [ width %tmp.201 94 20 25 ]; - %tmp.202 = lgetv %startY.6; - symbol [ startY %tmp.202 94 27 33 ]; - %tmp.203 = lgetv %gap.7; - symbol [ gap %tmp.203 94 36 39 ]; - %tmp.204 = 6; - %tmp.205 = mul %tmp.203 %tmp.204; - %tmp.206 = add %tmp.202 %tmp.205; - %tmp.207 = lgetv %pace.11; - symbol [ pace %tmp.207 94 45 49 ]; - symbol [ _iconCadence %tmp.209 94 51 63 ]; - %tmp.209 = getv ? :_iconCadence; - %tmp.210 = "AVG PACE"; - invoke %tmp.198 %tmp.199(%tmp.200, %tmp.201, %tmp.206, %tmp.207, %tmp.209, %tmp.210); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 95 8 ] - %tmp.211 = self; - symbol [ drawRow %tmp.212 95 8 15 ]; - %tmp.212 = getv function %tmp.211 :drawRow; - %tmp.213 = lgetv %dc; - symbol [ dc %tmp.213 95 16 18 ]; - %tmp.214 = lgetv %width.2; - symbol [ width %tmp.214 95 20 25 ]; - %tmp.215 = lgetv %startY.6; - symbol [ startY %tmp.215 95 27 33 ]; - %tmp.216 = lgetv %gap.7; - symbol [ gap %tmp.216 95 36 39 ]; - %tmp.217 = 7; - %tmp.218 = mul %tmp.216 %tmp.217; - %tmp.219 = add %tmp.215 %tmp.218; - %tmp.220 = lgetv %qcScore.12; - symbol [ qcScore %tmp.220 95 45 52 ]; - symbol [ _iconHR %tmp.222 95 54 61 ]; - %tmp.222 = getv ? :_iconHR; - %tmp.223 = "QC SCORE"; - invoke %tmp.211 %tmp.212(%tmp.213, %tmp.214, %tmp.219, %tmp.220, %tmp.222, %tmp.223); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 96 8 ] - %tmp.224 = self; - symbol [ drawRow %tmp.225 96 8 15 ]; - %tmp.225 = getv function %tmp.224 :drawRow; - %tmp.226 = lgetv %dc; - symbol [ dc %tmp.226 96 16 18 ]; - %tmp.227 = lgetv %width.2; - symbol [ width %tmp.227 96 20 25 ]; - %tmp.228 = lgetv %startY.6; - symbol [ startY %tmp.228 96 27 33 ]; - %tmp.229 = lgetv %gap.7; - symbol [ gap %tmp.229 96 36 39 ]; - %tmp.230 = 8; - %tmp.231 = mul %tmp.229 %tmp.230; - %tmp.232 = add %tmp.228 %tmp.231; - %tmp.233 = lgetv %temperature.13; - symbol [ temperature %tmp.233 96 45 56 ]; - symbol [ _iconSteps %tmp.235 96 58 68 ]; - %tmp.235 = getv ? :_iconSteps; - %tmp.236 = "TEMP"; - invoke %tmp.224 %tmp.225(%tmp.226, %tmp.227, %tmp.232, %tmp.233, %tmp.235, %tmp.236); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_26_36_97_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 101; @symbol_functiondef = [drawRow,101,9,16]; @symbol_param<0> = [dc,101,17,19]; @symbol_param<0>_type<0> = [Dc,101,23,25]; @symbol_param<1> = [width,101,27,32]; @symbol_param<1>_type<0> = [Number,101,36,42]; @symbol_param<2> = [y,101,44,45]; @symbol_param<2>_type<0> = [Number,101,49,55]; @symbol_param<3> = [value,101,57,62]; @symbol_param<3>_type<0> = [String,101,66,72]; @symbol_param<4> = [icon,101,74,78]; @symbol_param<4>_type<0> = [Graphics,101,82,90]; @symbol_param<4>_type<1> = [BitmapType,101,91,101]; @symbol_param<5> = [label,101,103,108]; @symbol_param<5>_type<0> = [String,101,112,118]; ] - function drawRow(dc as Dc, width as Number, y as Number, value as String, icon as Graphics.BitmapType, label as String) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_101_128_114_0_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 103 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_101_128_114_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_101_128_114_0_stop" ] - %leftMargin.1 = local; - symbol [ leftMargin %leftMargin.1 103 8 18 ]; - %tmp.1 = 40; - lputv %leftMargin.1 %tmp.1; - symbol [ leftMargin %leftMargin.1 103 8 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 104 4 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_101_128_114_0_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_101_128_114_0_stop" ] - %rightMargin.2 = local; - symbol [ rightMargin %rightMargin.2 104 8 19 ]; - %tmp.2 = lgetv %width; - symbol [ width %tmp.2 104 22 27 ]; - %tmp.3 = 40; - %tmp.4 = sub %tmp.2 %tmp.3; - lputv %rightMargin.2 %tmp.4; - symbol [ rightMargin %rightMargin.2 104 8 19 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 107 4 ] - %tmp.5 = lgetv %dc; - symbol [ dc %tmp.5 107 4 6 ]; - symbol [ drawBitmap %tmp.6 107 7 17 ]; - %tmp.6 = getv function %tmp.5 :drawBitmap; - %tmp.7 = lgetv %leftMargin.1; - symbol [ leftMargin %tmp.7 107 18 28 ]; - %tmp.8 = lgetv %y; - symbol [ y %tmp.8 107 30 31 ]; - %tmp.9 = 24; - %tmp.10 = sub %tmp.8 %tmp.9; - %tmp.11 = lgetv %icon; - symbol [ icon %tmp.11 107 38 42 ]; - invoke %tmp.5 %tmp.6(%tmp.7, %tmp.10, %tmp.11); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 110 4 ] - %tmp.12 = lgetv %dc; - symbol [ dc %tmp.12 110 4 6 ]; - symbol [ drawText %tmp.13 110 7 15 ]; - %tmp.13 = getv function %tmp.12 :drawText; - %tmp.14 = lgetv %leftMargin.1; - symbol [ leftMargin %tmp.14 110 16 26 ]; - %tmp.15 = 50; - %tmp.16 = add %tmp.14 %tmp.15; - %tmp.17 = lgetv %y; - symbol [ y %tmp.17 110 33 34 ]; - symbol [ Graphics %tmp.18 110 36 44 ]; - %tmp.18 = getm $.Toybox.Graphics; - symbol [ FONT_XTINY %tmp.19 110 45 55 ]; - %tmp.19 = getv %tmp.18 :FONT_XTINY; - %tmp.20 = lgetv %label; - symbol [ label %tmp.20 110 57 62 ]; - symbol [ Graphics %tmp.21 110 64 72 ]; - %tmp.21 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.22 110 73 90 ]; - %tmp.22 = getv %tmp.21 :TEXT_JUSTIFY_LEFT; - symbol [ Graphics %tmp.23 110 93 101 ]; - %tmp.23 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.24 110 102 122 ]; - %tmp.24 = getv %tmp.23 :TEXT_JUSTIFY_VCENTER; - %tmp.25 = bitor %tmp.22 %tmp.24; - invoke %tmp.12 %tmp.13(%tmp.16, %tmp.17, %tmp.19, %tmp.20, %tmp.25); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 113 4 ] - %tmp.26 = lgetv %dc; - symbol [ dc %tmp.26 113 4 6 ]; - symbol [ drawText %tmp.27 113 7 15 ]; - %tmp.27 = getv function %tmp.26 :drawText; - %tmp.28 = lgetv %rightMargin.2; - symbol [ rightMargin %tmp.28 113 16 27 ]; - %tmp.29 = lgetv %y; - symbol [ y %tmp.29 113 29 30 ]; - symbol [ Graphics %tmp.30 113 32 40 ]; - %tmp.30 = getm $.Toybox.Graphics; - symbol [ FONT_XTINY %tmp.31 113 41 51 ]; - %tmp.31 = getv %tmp.30 :FONT_XTINY; - %tmp.32 = lgetv %value; - symbol [ value %tmp.32 113 53 58 ]; - symbol [ Graphics %tmp.33 113 60 68 ]; - %tmp.33 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_RIGHT %tmp.34 113 69 87 ]; - %tmp.34 = getv %tmp.33 :TEXT_JUSTIFY_RIGHT; - symbol [ Graphics %tmp.35 113 90 98 ]; - %tmp.35 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.36 113 99 119 ]; - %tmp.36 = getv %tmp.35 :TEXT_JUSTIFY_VCENTER; - %tmp.37 = bitor %tmp.34 %tmp.36; - invoke %tmp.26 %tmp.27(%tmp.28, %tmp.29, %tmp.31, %tmp.32, %tmp.37); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_101_128_114_0_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 116; @symbol_functiondef = [drawNoDataMessage,116,13,30]; @symbol_param<0> = [dc,116,31,33]; @symbol_param<0>_type<0> = [Dc,116,37,39]; @symbol_param<1> = [width,116,41,46]; @symbol_param<1>_type<0> = [Number,116,50,56]; @symbol_param<2> = [height,116,58,64]; @symbol_param<2>_type<0> = [Number,116,68,74]; ] - function drawNoDataMessage(dc as Dc, width as Number, height as Number) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_116_84_125_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 117 8 ] - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 117 8 10 ]; - symbol [ setColor %tmp.2 117 11 19 ]; - %tmp.2 = getv function %tmp.1 :setColor; - symbol [ Graphics %tmp.3 117 20 28 ]; - %tmp.3 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.4 117 29 40 ]; - %tmp.4 = getv %tmp.3 :COLOR_WHITE; - symbol [ Graphics %tmp.5 117 42 50 ]; - %tmp.5 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.6 117 51 68 ]; - %tmp.6 = getv %tmp.5 :COLOR_TRANSPARENT; - invoke %tmp.1 %tmp.2(%tmp.4, %tmp.6); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 118 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 118 8 10 ]; - symbol [ drawText %tmp.8 118 11 19 ]; - %tmp.8 = getv function %tmp.7 :drawText; - %tmp.9 = lgetv %width; - symbol [ width %tmp.9 119 12 17 ]; - %tmp.10 = 2; - %tmp.11 = div %tmp.9 %tmp.10; - %tmp.12 = lgetv %height; - symbol [ height %tmp.12 120 12 18 ]; - %tmp.13 = 2; - %tmp.14 = div %tmp.12 %tmp.13; - symbol [ Graphics %tmp.15 121 12 20 ]; - %tmp.15 = getm $.Toybox.Graphics; - symbol [ FONT_MEDIUM %tmp.16 121 21 32 ]; - %tmp.16 = getv %tmp.15 :FONT_MEDIUM; - %tmp.17 = "No data available"; - symbol [ Graphics %tmp.18 123 12 20 ]; - %tmp.18 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.19 123 21 40 ]; - %tmp.19 = getv %tmp.18 :TEXT_JUSTIFY_CENTER; - symbol [ Graphics %tmp.20 123 43 51 ]; - %tmp.20 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_VCENTER %tmp.21 123 52 72 ]; - %tmp.21 = getv %tmp.20 :TEXT_JUSTIFY_VCENTER; - %tmp.22 = bitor %tmp.19 %tmp.21; - invoke %tmp.7 %tmp.8(%tmp.11, %tmp.14, %tmp.16, %tmp.17, %tmp.22); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_116_84_125_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 127; @symbol_functiondef = [drawSummaryContent,127,13,31]; @symbol_param<0> = [dc,127,32,34]; @symbol_param<0>_type<0> = [Dc,127,38,40]; @symbol_param<1> = [width,127,42,47]; @symbol_param<1>_type<0> = [Number,127,51,57]; @symbol_param<2> = [height,127,59,65]; @symbol_param<2>_type<0> = [Number,127,69,75]; @symbol_param<3> = [app,127,77,80]; @symbol_param<3>_type<0> = [GarminApp,127,84,93]; ] - function drawSummaryContent(dc as Dc, width as Number, height as Number, app as GarminApp) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 128 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %yPos.1 = local; - symbol [ yPos %yPos.1 128 12 16 ]; - %tmp.1 = 10; - lputv %yPos.1 %tmp.1; - symbol [ yPos %yPos.1 128 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 129 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %lineHeight.2 = local; - symbol [ lineHeight %lineHeight.2 129 12 22 ]; - %tmp.2 = 25; - lputv %lineHeight.2 %tmp.2; - symbol [ lineHeight %lineHeight.2 129 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 130 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %sectionSpacing.3 = local; - symbol [ sectionSpacing %sectionSpacing.3 130 12 26 ]; - %tmp.3 = 15; - lputv %sectionSpacing.3 %tmp.3; - symbol [ sectionSpacing %sectionSpacing.3 130 12 26 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 133 8 ] - %tmp.4 = lgetv %dc; - symbol [ dc %tmp.4 133 8 10 ]; - symbol [ setColor %tmp.5 133 11 19 ]; - %tmp.5 = getv function %tmp.4 :setColor; - symbol [ Graphics %tmp.6 133 20 28 ]; - %tmp.6 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.7 133 29 40 ]; - %tmp.7 = getv %tmp.6 :COLOR_WHITE; - symbol [ Graphics %tmp.8 133 42 50 ]; - %tmp.8 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.9 133 51 68 ]; - %tmp.9 = getv %tmp.8 :COLOR_TRANSPARENT; - invoke %tmp.4 %tmp.5(%tmp.7, %tmp.9); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 134 8 ] - %tmp.10 = lgetv %dc; - symbol [ dc %tmp.10 134 8 10 ]; - symbol [ drawText %tmp.11 134 11 19 ]; - %tmp.11 = getv function %tmp.10 :drawText; - %tmp.12 = lgetv %width; - symbol [ width %tmp.12 135 12 17 ]; - %tmp.13 = 2; - %tmp.14 = div %tmp.12 %tmp.13; - %tmp.15 = lgetv %yPos.1; - symbol [ yPos %tmp.15 136 12 16 ]; - symbol [ Graphics %tmp.16 137 12 20 ]; - %tmp.16 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.17 137 21 31 ]; - %tmp.17 = getv %tmp.16 :FONT_SMALL; - %tmp.18 = "SESSION SUMMARY"; - symbol [ Graphics %tmp.19 139 12 20 ]; - %tmp.19 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.20 139 21 40 ]; - %tmp.20 = getv %tmp.19 :TEXT_JUSTIFY_CENTER; - invoke %tmp.10 %tmp.11(%tmp.14, %tmp.15, %tmp.17, %tmp.18, %tmp.20); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 141 8 ] - %tmp.21 = lgetv %yPos.1; - symbol [ yPos %tmp.21 141 8 12 ]; - %tmp.22 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.22 141 16 26 ]; - %tmp.23 = lgetv %sectionSpacing.3; - symbol [ sectionSpacing %tmp.23 141 29 43 ]; - %tmp.24 = add %tmp.22 %tmp.23; - %tmp.25 = add %tmp.21 %tmp.24; - lputv %yPos.1 %tmp.25; - symbol [ yPos %yPos.1 141 8 12 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 144 8 ] - %tmp.26 = lgetv %dc; - symbol [ dc %tmp.26 144 8 10 ]; - symbol [ setColor %tmp.27 144 11 19 ]; - %tmp.27 = getv function %tmp.26 :setColor; - symbol [ Graphics %tmp.28 144 20 28 ]; - %tmp.28 = getm $.Toybox.Graphics; - symbol [ COLOR_DK_GRAY %tmp.29 144 29 42 ]; - %tmp.29 = getv %tmp.28 :COLOR_DK_GRAY; - symbol [ Graphics %tmp.30 144 44 52 ]; - %tmp.30 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.31 144 53 70 ]; - %tmp.31 = getv %tmp.30 :COLOR_TRANSPARENT; - invoke %tmp.26 %tmp.27(%tmp.29, %tmp.31); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 145 8 ] - %tmp.32 = lgetv %dc; - symbol [ dc %tmp.32 145 8 10 ]; - symbol [ drawLine %tmp.33 145 11 19 ]; - %tmp.33 = getv function %tmp.32 :drawLine; - %tmp.34 = 10; - %tmp.35 = lgetv %yPos.1; - symbol [ yPos %tmp.35 145 24 28 ]; - %tmp.36 = lgetv %width; - symbol [ width %tmp.36 145 30 35 ]; - %tmp.37 = 10; - %tmp.38 = sub %tmp.36 %tmp.37; - %tmp.39 = lgetv %yPos.1; - symbol [ yPos %tmp.39 145 42 46 ]; - invoke %tmp.32 %tmp.33(%tmp.34, %tmp.35, %tmp.38, %tmp.39); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 146 8 ] - %tmp.40 = lgetv %yPos.1; - symbol [ yPos %tmp.40 146 8 12 ]; - %tmp.41 = lgetv %sectionSpacing.3; - symbol [ sectionSpacing %tmp.41 146 16 30 ]; - %tmp.42 = add %tmp.40 %tmp.41; - lputv %yPos.1 %tmp.42; - symbol [ yPos %yPos.1 146 8 12 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 149 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %cq.4 = local; - symbol [ cq %cq.4 149 12 14 ]; - %tmp.43 = lgetv %app; - symbol [ app %tmp.43 149 17 20 ]; - symbol [ getFinalCadenceQuality %tmp.44 149 21 43 ]; - %tmp.44 = getv function %tmp.43 :getFinalCadenceQuality; - %tmp.45 = invoke %tmp.43 %tmp.44(); - lputv %cq.4 %tmp.45; - symbol [ cq %cq.4 149 12 14 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 150 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_8_191_8_if_stmt: - %tmp.46 = lgetv %cq.4; - symbol [ cq %tmp.46 150 12 14 ]; - %tmp.47 = null; - %tmp.48 = ne %tmp.46 %tmp.47; - bf %tmp.48 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_8_191_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_8_191_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_24_191_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 151 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_24_191_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_24_191_8_stop" ] - %cqColor.5 = local; - symbol [ cqColor %cqColor.5 151 16 23 ]; - %tmp.49 = self; - symbol [ getCQColor %tmp.50 151 26 36 ]; - %tmp.50 = getv function %tmp.49 :getCQColor; - %tmp.51 = lgetv %cq.4; - symbol [ cq %tmp.51 151 37 39 ]; - %tmp.52 = as %tmp.51 { (!Null) }; - %tmp.53 = invoke %tmp.49 %tmp.50(%tmp.52); - lputv %cqColor.5 %tmp.53; - symbol [ cqColor %cqColor.5 151 16 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 152 12 ] - %tmp.54 = lgetv %dc; - symbol [ dc %tmp.54 152 12 14 ]; - symbol [ setColor %tmp.55 152 15 23 ]; - %tmp.55 = getv function %tmp.54 :setColor; - %tmp.56 = lgetv %cqColor.5; - symbol [ cqColor %tmp.56 152 24 31 ]; - symbol [ Graphics %tmp.57 152 33 41 ]; - %tmp.57 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.58 152 42 59 ]; - %tmp.58 = getv %tmp.57 :COLOR_TRANSPARENT; - invoke %tmp.54 %tmp.55(%tmp.56, %tmp.58); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 155 12 ] - %tmp.59 = lgetv %dc; - symbol [ dc %tmp.59 155 12 14 ]; - symbol [ setColor %tmp.60 155 15 23 ]; - %tmp.60 = getv function %tmp.59 :setColor; - symbol [ Graphics %tmp.61 155 24 32 ]; - %tmp.61 = getm $.Toybox.Graphics; - symbol [ COLOR_LT_GRAY %tmp.62 155 33 46 ]; - %tmp.62 = getv %tmp.61 :COLOR_LT_GRAY; - symbol [ Graphics %tmp.63 155 48 56 ]; - %tmp.63 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.64 155 57 74 ]; - %tmp.64 = getv %tmp.63 :COLOR_TRANSPARENT; - invoke %tmp.59 %tmp.60(%tmp.62, %tmp.64); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 156 12 ] - %tmp.65 = lgetv %dc; - symbol [ dc %tmp.65 156 12 14 ]; - symbol [ drawText %tmp.66 156 15 23 ]; - %tmp.66 = getv function %tmp.65 :drawText; - %tmp.67 = lgetv %width; - symbol [ width %tmp.67 157 16 21 ]; - %tmp.68 = 2; - %tmp.69 = div %tmp.67 %tmp.68; - %tmp.70 = lgetv %yPos.1; - symbol [ yPos %tmp.70 158 16 20 ]; - symbol [ Graphics %tmp.71 159 15 23 ]; - %tmp.71 = getm $.Toybox.Graphics; - symbol [ FONT_XTINY %tmp.72 159 24 34 ]; - %tmp.72 = getv %tmp.71 :FONT_XTINY; - %tmp.73 = "Cadence Quality"; - symbol [ Graphics %tmp.74 161 16 24 ]; - %tmp.74 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.75 161 25 44 ]; - %tmp.75 = getv %tmp.74 :TEXT_JUSTIFY_CENTER; - invoke %tmp.65 %tmp.66(%tmp.69, %tmp.70, %tmp.72, %tmp.73, %tmp.75); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 163 12 ] - %tmp.76 = lgetv %yPos.1; - symbol [ yPos %tmp.76 163 12 16 ]; - %tmp.77 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.77 163 20 30 ]; - %tmp.78 = add %tmp.76 %tmp.77; - lputv %yPos.1 %tmp.78; - symbol [ yPos %yPos.1 163 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 166 12 ] - %tmp.79 = lgetv %dc; - symbol [ dc %tmp.79 166 12 14 ]; - symbol [ setColor %tmp.80 166 15 23 ]; - %tmp.80 = getv function %tmp.79 :setColor; - %tmp.81 = lgetv %cqColor.5; - symbol [ cqColor %tmp.81 166 24 31 ]; - symbol [ Graphics %tmp.82 166 33 41 ]; - %tmp.82 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.83 166 42 59 ]; - %tmp.83 = getv %tmp.82 :COLOR_TRANSPARENT; - invoke %tmp.79 %tmp.80(%tmp.81, %tmp.83); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 167 12 ] - %tmp.84 = lgetv %dc; - symbol [ dc %tmp.84 167 12 14 ]; - symbol [ drawText %tmp.85 167 15 23 ]; - %tmp.85 = getv function %tmp.84 :drawText; - %tmp.86 = lgetv %width; - symbol [ width %tmp.86 168 16 21 ]; - %tmp.87 = 2; - %tmp.88 = div %tmp.86 %tmp.87; - %tmp.89 = lgetv %yPos.1; - symbol [ yPos %tmp.89 169 16 20 ]; - symbol [ Graphics %tmp.90 170 16 24 ]; - %tmp.90 = getm $.Toybox.Graphics; - symbol [ FONT_NUMBER_HOT %tmp.91 170 25 40 ]; - %tmp.91 = getv %tmp.90 :FONT_NUMBER_HOT; - %tmp.92 = lgetv %cq.4; - symbol [ cq %tmp.92 171 16 18 ]; - %tmp.93 = as %tmp.92 { (!Null) }; - symbol [ format %tmp.94 171 19 25 ]; - %tmp.94 = getv function %tmp.93 :format; - %tmp.95 = "%d"; - %tmp.96 = invoke %tmp.93 %tmp.94(%tmp.95); - %tmp.97 = "%"; - %tmp.98 = add %tmp.96 %tmp.97; - symbol [ Graphics %tmp.99 172 16 24 ]; - %tmp.99 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.100 172 25 44 ]; - %tmp.100 = getv %tmp.99 :TEXT_JUSTIFY_CENTER; - invoke %tmp.84 %tmp.85(%tmp.88, %tmp.89, %tmp.91, %tmp.98, %tmp.100); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 174 12 ] - %tmp.101 = lgetv %yPos.1; - symbol [ yPos %tmp.101 174 12 16 ]; - %tmp.102 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.102 174 20 30 ]; - %tmp.103 = 5; - %tmp.104 = add %tmp.102 %tmp.103; - %tmp.105 = add %tmp.101 %tmp.104; - lputv %yPos.1 %tmp.105; - symbol [ yPos %yPos.1 174 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 177 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_24_191_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_24_191_8_stop" ] - %confidence.6 = local; - symbol [ confidence %confidence.6 177 16 26 ]; - %tmp.106 = lgetv %app; - symbol [ app %tmp.106 177 29 32 ]; - symbol [ getFinalCQConfidence %tmp.107 177 33 53 ]; - %tmp.107 = getv function %tmp.106 :getFinalCQConfidence; - %tmp.108 = invoke %tmp.106 %tmp.107(); - lputv %confidence.6 %tmp.108; - symbol [ confidence %confidence.6 177 16 26 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 178 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_24_191_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_24_191_8_stop" ] - %trend.7 = local; - symbol [ trend %trend.7 178 16 21 ]; - %tmp.109 = lgetv %app; - symbol [ app %tmp.109 178 24 27 ]; - symbol [ getFinalCQTrend %tmp.110 178 28 43 ]; - %tmp.110 = getv function %tmp.109 :getFinalCQTrend; - %tmp.111 = invoke %tmp.109 %tmp.110(); - lputv %trend.7 %tmp.111; - symbol [ trend %trend.7 178 16 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 179 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_12_190_12_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_16_179_47_begin: - %tmp.112 = lgetv %confidence.6; - symbol [ confidence %tmp.112 179 16 26 ]; - %tmp.113 = null; - %tmp.114 = ne %tmp.112 %tmp.113; - bf %tmp.114 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_12_190_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_38_179_47_true: - %tmp.115 = lgetv %trend.7; - symbol [ trend %tmp.115 179 38 43 ]; - %tmp.116 = null; - %tmp.117 = ne %tmp.115 %tmp.116; - push %tmp.117; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_38_179_47_end: - %tmp.118 = phi [%tmp.114 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_16_179_47_begin] [%tmp.117 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_38_179_47_true] [%tmp.118 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_38_179_47_end]; - bf %tmp.118 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_12_190_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_12_190_12_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_53_190_12_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 180 16 ] - %tmp.119 = lgetv %dc; - symbol [ dc %tmp.119 180 16 18 ]; - symbol [ setColor %tmp.120 180 19 27 ]; - %tmp.120 = getv function %tmp.119 :setColor; - symbol [ Graphics %tmp.121 180 28 36 ]; - %tmp.121 = getm $.Toybox.Graphics; - symbol [ COLOR_LT_GRAY %tmp.122 180 37 50 ]; - %tmp.122 = getv %tmp.121 :COLOR_LT_GRAY; - symbol [ Graphics %tmp.123 180 52 60 ]; - %tmp.123 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.124 180 61 78 ]; - %tmp.124 = getv %tmp.123 :COLOR_TRANSPARENT; - invoke %tmp.119 %tmp.120(%tmp.122, %tmp.124); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 181 16 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_53_190_12_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_53_190_12_stop" ] - %statusText.8 = local; - symbol [ statusText %statusText.8 181 20 30 ]; - %tmp.125 = "("; - %tmp.126 = lgetv %confidence.6; - symbol [ confidence %tmp.126 181 39 49 ]; - %tmp.127 = as %tmp.126 { (!Null) }; - %tmp.128 = add %tmp.125 %tmp.127; - %tmp.129 = ", "; - %tmp.130 = add %tmp.128 %tmp.129; - %tmp.131 = lgetv %trend.7; - symbol [ trend %tmp.131 181 59 64 ]; - %tmp.132 = as %tmp.131 { (!Null) }; - %tmp.133 = add %tmp.130 %tmp.132; - %tmp.134 = ")"; - %tmp.135 = add %tmp.133 %tmp.134; - lputv %statusText.8 %tmp.135; - symbol [ statusText %statusText.8 181 20 30 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 182 16 ] - %tmp.136 = lgetv %dc; - symbol [ dc %tmp.136 182 16 18 ]; - symbol [ drawText %tmp.137 182 19 27 ]; - %tmp.137 = getv function %tmp.136 :drawText; - %tmp.138 = lgetv %width; - symbol [ width %tmp.138 183 20 25 ]; - %tmp.139 = 2; - %tmp.140 = div %tmp.138 %tmp.139; - %tmp.141 = lgetv %yPos.1; - symbol [ yPos %tmp.141 184 20 24 ]; - symbol [ Graphics %tmp.142 185 20 28 ]; - %tmp.142 = getm $.Toybox.Graphics; - symbol [ FONT_TINY %tmp.143 185 29 38 ]; - %tmp.143 = getv %tmp.142 :FONT_TINY; - %tmp.144 = lgetv %statusText.8; - symbol [ statusText %tmp.144 186 20 30 ]; - symbol [ Graphics %tmp.145 187 20 28 ]; - %tmp.145 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.146 187 29 48 ]; - %tmp.146 = getv %tmp.145 :TEXT_JUSTIFY_CENTER; - invoke %tmp.136 %tmp.137(%tmp.140, %tmp.141, %tmp.143, %tmp.144, %tmp.146); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 189 16 ] - %tmp.147 = lgetv %yPos.1; - symbol [ yPos %tmp.147 189 16 20 ]; - %tmp.148 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.148 189 24 34 ]; - %tmp.149 = lgetv %sectionSpacing.3; - symbol [ sectionSpacing %tmp.149 189 37 51 ]; - %tmp.150 = add %tmp.148 %tmp.149; - %tmp.151 = add %tmp.147 %tmp.150; - lputv %yPos.1 %tmp.151; - symbol [ yPos %yPos.1 189 16 20 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_53_190_12_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_12_190_12_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_179_12_190_12_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_24_191_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_8_191_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_150_8_191_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 194 8 ] - %tmp.152 = lgetv %dc; - symbol [ dc %tmp.152 194 8 10 ]; - symbol [ setColor %tmp.153 194 11 19 ]; - %tmp.153 = getv function %tmp.152 :setColor; - symbol [ Graphics %tmp.154 194 20 28 ]; - %tmp.154 = getm $.Toybox.Graphics; - symbol [ COLOR_DK_GRAY %tmp.155 194 29 42 ]; - %tmp.155 = getv %tmp.154 :COLOR_DK_GRAY; - symbol [ Graphics %tmp.156 194 44 52 ]; - %tmp.156 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.157 194 53 70 ]; - %tmp.157 = getv %tmp.156 :COLOR_TRANSPARENT; - invoke %tmp.152 %tmp.153(%tmp.155, %tmp.157); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 195 8 ] - %tmp.158 = lgetv %dc; - symbol [ dc %tmp.158 195 8 10 ]; - symbol [ drawLine %tmp.159 195 11 19 ]; - %tmp.159 = getv function %tmp.158 :drawLine; - %tmp.160 = 10; - %tmp.161 = lgetv %yPos.1; - symbol [ yPos %tmp.161 195 24 28 ]; - %tmp.162 = lgetv %width; - symbol [ width %tmp.162 195 30 35 ]; - %tmp.163 = 10; - %tmp.164 = sub %tmp.162 %tmp.163; - %tmp.165 = lgetv %yPos.1; - symbol [ yPos %tmp.165 195 42 46 ]; - invoke %tmp.158 %tmp.159(%tmp.160, %tmp.161, %tmp.164, %tmp.165); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 196 8 ] - %tmp.166 = lgetv %yPos.1; - symbol [ yPos %tmp.166 196 8 12 ]; - %tmp.167 = lgetv %sectionSpacing.3; - symbol [ sectionSpacing %tmp.167 196 16 30 ]; - %tmp.168 = add %tmp.166 %tmp.167; - lputv %yPos.1 %tmp.168; - symbol [ yPos %yPos.1 196 8 12 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 199 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %timeInZone.9 = local; - symbol [ timeInZone %timeInZone.9 199 12 22 ]; - %tmp.169 = lgetv %app; - symbol [ app %tmp.169 199 25 28 ]; - symbol [ getTimeInZonePercentage %tmp.170 199 29 52 ]; - %tmp.170 = getv function %tmp.169 :getTimeInZonePercentage; - %tmp.171 = invoke %tmp.169 %tmp.170(); - lputv %timeInZone.9 %tmp.171; - symbol [ timeInZone %timeInZone.9 199 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 200 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_200_8_223_8_if_stmt: - %tmp.172 = lgetv %timeInZone.9; - symbol [ timeInZone %tmp.172 200 12 22 ]; - %tmp.173 = 0; - %tmp.174 = gte %tmp.172 %tmp.173; - bf %tmp.174 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_200_8_223_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_200_8_223_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_200_29_223_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 201 12 ] - %tmp.175 = lgetv %dc; - symbol [ dc %tmp.175 201 12 14 ]; - symbol [ setColor %tmp.176 201 15 23 ]; - %tmp.176 = getv function %tmp.175 :setColor; - symbol [ Graphics %tmp.177 201 24 32 ]; - %tmp.177 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.178 201 33 44 ]; - %tmp.178 = getv %tmp.177 :COLOR_WHITE; - symbol [ Graphics %tmp.179 201 46 54 ]; - %tmp.179 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.180 201 55 72 ]; - %tmp.180 = getv %tmp.179 :COLOR_TRANSPARENT; - invoke %tmp.175 %tmp.176(%tmp.178, %tmp.180); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 202 12 ] - %tmp.181 = lgetv %dc; - symbol [ dc %tmp.181 202 12 14 ]; - symbol [ drawText %tmp.182 202 15 23 ]; - %tmp.182 = getv function %tmp.181 :drawText; - %tmp.183 = 15; - %tmp.184 = lgetv %yPos.1; - symbol [ yPos %tmp.184 204 16 20 ]; - symbol [ Graphics %tmp.185 205 16 24 ]; - %tmp.185 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.186 205 25 35 ]; - %tmp.186 = getv %tmp.185 :FONT_SMALL; - %tmp.187 = "Time in Zone:"; - symbol [ Graphics %tmp.188 207 16 24 ]; - %tmp.188 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.189 207 25 42 ]; - %tmp.189 = getv %tmp.188 :TEXT_JUSTIFY_LEFT; - invoke %tmp.181 %tmp.182(%tmp.183, %tmp.184, %tmp.186, %tmp.187, %tmp.189); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 210 12 ] - %tmp.190 = lgetv %dc; - symbol [ dc %tmp.190 210 12 14 ]; - symbol [ setColor %tmp.191 210 15 23 ]; - %tmp.191 = getv function %tmp.190 :setColor; - symbol [ Graphics %tmp.192 210 24 32 ]; - %tmp.192 = getm $.Toybox.Graphics; - symbol [ COLOR_GREEN %tmp.193 210 33 44 ]; - %tmp.193 = getv %tmp.192 :COLOR_GREEN; - symbol [ Graphics %tmp.194 210 46 54 ]; - %tmp.194 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.195 210 55 72 ]; - %tmp.195 = getv %tmp.194 :COLOR_TRANSPARENT; - invoke %tmp.190 %tmp.191(%tmp.193, %tmp.195); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 211 12 ] - %tmp.196 = lgetv %dc; - symbol [ dc %tmp.196 211 12 14 ]; - symbol [ drawText %tmp.197 211 15 23 ]; - %tmp.197 = getv function %tmp.196 :drawText; - %tmp.198 = lgetv %width; - symbol [ width %tmp.198 212 16 21 ]; - %tmp.199 = 15; - %tmp.200 = sub %tmp.198 %tmp.199; - %tmp.201 = lgetv %yPos.1; - symbol [ yPos %tmp.201 213 16 20 ]; - symbol [ Graphics %tmp.202 214 16 24 ]; - %tmp.202 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.203 214 25 35 ]; - %tmp.203 = getv %tmp.202 :FONT_SMALL; - %tmp.204 = lgetv %timeInZone.9; - symbol [ timeInZone %tmp.204 215 16 26 ]; - symbol [ format %tmp.205 215 27 33 ]; - %tmp.205 = getv function %tmp.204 :format; - %tmp.206 = "%d"; - %tmp.207 = invoke %tmp.204 %tmp.205(%tmp.206); - %tmp.208 = "%"; - %tmp.209 = add %tmp.207 %tmp.208; - symbol [ Graphics %tmp.210 216 16 24 ]; - %tmp.210 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_RIGHT %tmp.211 216 25 43 ]; - %tmp.211 = getv %tmp.210 :TEXT_JUSTIFY_RIGHT; - invoke %tmp.196 %tmp.197(%tmp.200, %tmp.201, %tmp.203, %tmp.209, %tmp.211); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 218 12 ] - %tmp.212 = lgetv %yPos.1; - symbol [ yPos %tmp.212 218 12 16 ]; - %tmp.213 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.213 218 20 30 ]; - %tmp.214 = 3; - %tmp.215 = add %tmp.213 %tmp.214; - %tmp.216 = add %tmp.212 %tmp.215; - lputv %yPos.1 %tmp.216; - symbol [ yPos %yPos.1 218 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 221 12 ] - %tmp.217 = self; - symbol [ drawProgressBar %tmp.218 221 12 27 ]; - %tmp.218 = getv function %tmp.217 :drawProgressBar; - %tmp.219 = lgetv %dc; - symbol [ dc %tmp.219 221 28 30 ]; - %tmp.220 = lgetv %width; - symbol [ width %tmp.220 221 32 37 ]; - %tmp.221 = lgetv %yPos.1; - symbol [ yPos %tmp.221 221 39 43 ]; - %tmp.222 = lgetv %timeInZone.9; - symbol [ timeInZone %tmp.222 221 45 55 ]; - symbol [ Graphics %tmp.223 221 57 65 ]; - %tmp.223 = getm $.Toybox.Graphics; - symbol [ COLOR_GREEN %tmp.224 221 66 77 ]; - %tmp.224 = getv %tmp.223 :COLOR_GREEN; - invoke %tmp.217 %tmp.218(%tmp.219, %tmp.220, %tmp.221, %tmp.222, %tmp.224); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 222 12 ] - %tmp.225 = lgetv %yPos.1; - symbol [ yPos %tmp.225 222 12 16 ]; - %tmp.226 = 12; - %tmp.227 = lgetv %sectionSpacing.3; - symbol [ sectionSpacing %tmp.227 222 25 39 ]; - %tmp.228 = add %tmp.226 %tmp.227; - %tmp.229 = add %tmp.225 %tmp.228; - lputv %yPos.1 %tmp.229; - symbol [ yPos %yPos.1 222 12 16 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_200_29_223_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_200_8_223_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_200_8_223_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 226 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %avgCadence.10 = local; - symbol [ avgCadence %avgCadence.10 226 12 22 ]; - %tmp.230 = lgetv %app; - symbol [ app %tmp.230 226 25 28 ]; - symbol [ getAverageCadence %tmp.231 226 29 46 ]; - %tmp.231 = getv function %tmp.230 :getAverageCadence; - %tmp.232 = invoke %tmp.230 %tmp.231(); - lputv %avgCadence.10 %tmp.232; - symbol [ avgCadence %avgCadence.10 226 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 227 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_227_8_246_8_if_stmt: - %tmp.233 = lgetv %avgCadence.10; - symbol [ avgCadence %tmp.233 227 12 22 ]; - %tmp.234 = 0; - %tmp.235 = gt %tmp.233 %tmp.234; - bf %tmp.235 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_227_8_246_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_227_8_246_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_227_28_246_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 228 12 ] - %tmp.236 = lgetv %dc; - symbol [ dc %tmp.236 228 12 14 ]; - symbol [ setColor %tmp.237 228 15 23 ]; - %tmp.237 = getv function %tmp.236 :setColor; - symbol [ Graphics %tmp.238 228 24 32 ]; - %tmp.238 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.239 228 33 44 ]; - %tmp.239 = getv %tmp.238 :COLOR_WHITE; - symbol [ Graphics %tmp.240 228 46 54 ]; - %tmp.240 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.241 228 55 72 ]; - %tmp.241 = getv %tmp.240 :COLOR_TRANSPARENT; - invoke %tmp.236 %tmp.237(%tmp.239, %tmp.241); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 229 12 ] - %tmp.242 = lgetv %dc; - symbol [ dc %tmp.242 229 12 14 ]; - symbol [ drawText %tmp.243 229 15 23 ]; - %tmp.243 = getv function %tmp.242 :drawText; - %tmp.244 = 15; - %tmp.245 = lgetv %yPos.1; - symbol [ yPos %tmp.245 231 16 20 ]; - symbol [ Graphics %tmp.246 232 16 24 ]; - %tmp.246 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.247 232 25 35 ]; - %tmp.247 = getv %tmp.246 :FONT_SMALL; - %tmp.248 = "Avg Cadence:"; - symbol [ Graphics %tmp.249 234 16 24 ]; - %tmp.249 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.250 234 25 42 ]; - %tmp.250 = getv %tmp.249 :TEXT_JUSTIFY_LEFT; - invoke %tmp.242 %tmp.243(%tmp.244, %tmp.245, %tmp.247, %tmp.248, %tmp.250); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 237 12 ] - %tmp.251 = lgetv %dc; - symbol [ dc %tmp.251 237 12 14 ]; - symbol [ setColor %tmp.252 237 15 23 ]; - %tmp.252 = getv function %tmp.251 :setColor; - symbol [ Graphics %tmp.253 237 24 32 ]; - %tmp.253 = getm $.Toybox.Graphics; - symbol [ COLOR_GREEN %tmp.254 237 33 44 ]; - %tmp.254 = getv %tmp.253 :COLOR_GREEN; - symbol [ Graphics %tmp.255 237 46 54 ]; - %tmp.255 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.256 237 55 72 ]; - %tmp.256 = getv %tmp.255 :COLOR_TRANSPARENT; - invoke %tmp.251 %tmp.252(%tmp.254, %tmp.256); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 238 12 ] - %tmp.257 = lgetv %dc; - symbol [ dc %tmp.257 238 12 14 ]; - symbol [ drawText %tmp.258 238 15 23 ]; - %tmp.258 = getv function %tmp.257 :drawText; - %tmp.259 = lgetv %width; - symbol [ width %tmp.259 239 16 21 ]; - %tmp.260 = 15; - %tmp.261 = sub %tmp.259 %tmp.260; - %tmp.262 = lgetv %yPos.1; - symbol [ yPos %tmp.262 240 16 20 ]; - symbol [ Graphics %tmp.263 241 16 24 ]; - %tmp.263 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.264 241 25 35 ]; - %tmp.264 = getv %tmp.263 :FONT_SMALL; - %tmp.265 = lgetv %avgCadence.10; - symbol [ avgCadence %tmp.265 242 16 26 ]; - symbol [ format %tmp.266 242 27 33 ]; - %tmp.266 = getv function %tmp.265 :format; - %tmp.267 = "%.0f"; - %tmp.268 = invoke %tmp.265 %tmp.266(%tmp.267); - %tmp.269 = " spm"; - %tmp.270 = add %tmp.268 %tmp.269; - symbol [ Graphics %tmp.271 243 16 24 ]; - %tmp.271 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_RIGHT %tmp.272 243 25 43 ]; - %tmp.272 = getv %tmp.271 :TEXT_JUSTIFY_RIGHT; - invoke %tmp.257 %tmp.258(%tmp.261, %tmp.262, %tmp.264, %tmp.270, %tmp.272); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 245 12 ] - %tmp.273 = lgetv %yPos.1; - symbol [ yPos %tmp.273 245 12 16 ]; - %tmp.274 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.274 245 20 30 ]; - %tmp.275 = lgetv %sectionSpacing.3; - symbol [ sectionSpacing %tmp.275 245 33 47 ]; - %tmp.276 = add %tmp.274 %tmp.275; - %tmp.277 = add %tmp.273 %tmp.276; - lputv %yPos.1 %tmp.277; - symbol [ yPos %yPos.1 245 12 16 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_227_28_246_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_227_8_246_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_227_8_246_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 249 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %minCad.11 = local; - symbol [ minCad %minCad.11 249 12 18 ]; - %tmp.278 = lgetv %app; - symbol [ app %tmp.278 249 21 24 ]; - symbol [ getMinCadenceFromHistory %tmp.279 249 25 49 ]; - %tmp.279 = getv function %tmp.278 :getMinCadenceFromHistory; - %tmp.280 = invoke %tmp.278 %tmp.279(); - lputv %minCad.11 %tmp.280; - symbol [ minCad %minCad.11 249 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 250 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %maxCad.12 = local; - symbol [ maxCad %maxCad.12 250 12 18 ]; - %tmp.281 = lgetv %app; - symbol [ app %tmp.281 250 21 24 ]; - symbol [ getMaxCadenceFromHistory %tmp.282 250 25 49 ]; - %tmp.282 = getv function %tmp.281 :getMaxCadenceFromHistory; - %tmp.283 = invoke %tmp.281 %tmp.282(); - lputv %maxCad.12 %tmp.283; - symbol [ maxCad %maxCad.12 250 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 251 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_8_271_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_12_251_35_begin: - %tmp.284 = lgetv %minCad.11; - symbol [ minCad %tmp.284 251 12 18 ]; - %tmp.285 = 0; - %tmp.286 = gt %tmp.284 %tmp.285; - bf %tmp.286 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_8_271_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_26_251_35_true: - %tmp.287 = lgetv %maxCad.12; - symbol [ maxCad %tmp.287 251 26 32 ]; - %tmp.288 = 0; - %tmp.289 = gt %tmp.287 %tmp.288; - push %tmp.289; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_26_251_35_end: - %tmp.290 = phi [%tmp.286 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_12_251_35_begin] [%tmp.289 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_26_251_35_true] [%tmp.290 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_26_251_35_end]; - bf %tmp.290 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_8_271_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_8_271_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_38_271_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 252 12 ] - %tmp.291 = lgetv %dc; - symbol [ dc %tmp.291 252 12 14 ]; - symbol [ setColor %tmp.292 252 15 23 ]; - %tmp.292 = getv function %tmp.291 :setColor; - symbol [ Graphics %tmp.293 252 24 32 ]; - %tmp.293 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.294 252 33 44 ]; - %tmp.294 = getv %tmp.293 :COLOR_WHITE; - symbol [ Graphics %tmp.295 252 46 54 ]; - %tmp.295 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.296 252 55 72 ]; - %tmp.296 = getv %tmp.295 :COLOR_TRANSPARENT; - invoke %tmp.291 %tmp.292(%tmp.294, %tmp.296); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 253 12 ] - %tmp.297 = lgetv %dc; - symbol [ dc %tmp.297 253 12 14 ]; - symbol [ drawText %tmp.298 253 15 23 ]; - %tmp.298 = getv function %tmp.297 :drawText; - %tmp.299 = 15; - %tmp.300 = lgetv %yPos.1; - symbol [ yPos %tmp.300 255 16 20 ]; - symbol [ Graphics %tmp.301 256 16 24 ]; - %tmp.301 = getm $.Toybox.Graphics; - symbol [ FONT_TINY %tmp.302 256 25 34 ]; - %tmp.302 = getv %tmp.301 :FONT_TINY; - %tmp.303 = "Range:"; - symbol [ Graphics %tmp.304 258 16 24 ]; - %tmp.304 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.305 258 25 42 ]; - %tmp.305 = getv %tmp.304 :TEXT_JUSTIFY_LEFT; - invoke %tmp.297 %tmp.298(%tmp.299, %tmp.300, %tmp.302, %tmp.303, %tmp.305); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 261 12 ] - %tmp.306 = lgetv %dc; - symbol [ dc %tmp.306 261 12 14 ]; - symbol [ setColor %tmp.307 261 15 23 ]; - %tmp.307 = getv function %tmp.306 :setColor; - symbol [ Graphics %tmp.308 261 24 32 ]; - %tmp.308 = getm $.Toybox.Graphics; - symbol [ COLOR_LT_GRAY %tmp.309 261 33 46 ]; - %tmp.309 = getv %tmp.308 :COLOR_LT_GRAY; - symbol [ Graphics %tmp.310 261 48 56 ]; - %tmp.310 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.311 261 57 74 ]; - %tmp.311 = getv %tmp.310 :COLOR_TRANSPARENT; - invoke %tmp.306 %tmp.307(%tmp.309, %tmp.311); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 262 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_38_271_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_38_271_8_stop" ] - %rangeText.13 = local; - symbol [ rangeText %rangeText.13 262 16 25 ]; - %tmp.312 = lgetv %minCad.11; - symbol [ minCad %tmp.312 262 28 34 ]; - symbol [ format %tmp.313 262 35 41 ]; - %tmp.313 = getv function %tmp.312 :format; - %tmp.314 = "%.0f"; - %tmp.315 = invoke %tmp.312 %tmp.313(%tmp.314); - %tmp.316 = "-"; - %tmp.317 = add %tmp.315 %tmp.316; - %tmp.318 = lgetv %maxCad.12; - symbol [ maxCad %tmp.318 262 58 64 ]; - symbol [ format %tmp.319 262 65 71 ]; - %tmp.319 = getv function %tmp.318 :format; - %tmp.320 = "%.0f"; - %tmp.321 = invoke %tmp.318 %tmp.319(%tmp.320); - %tmp.322 = add %tmp.317 %tmp.321; - %tmp.323 = " spm"; - %tmp.324 = add %tmp.322 %tmp.323; - lputv %rangeText.13 %tmp.324; - symbol [ rangeText %rangeText.13 262 16 25 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 263 12 ] - %tmp.325 = lgetv %dc; - symbol [ dc %tmp.325 263 12 14 ]; - symbol [ drawText %tmp.326 263 15 23 ]; - %tmp.326 = getv function %tmp.325 :drawText; - %tmp.327 = lgetv %width; - symbol [ width %tmp.327 264 16 21 ]; - %tmp.328 = 15; - %tmp.329 = sub %tmp.327 %tmp.328; - %tmp.330 = lgetv %yPos.1; - symbol [ yPos %tmp.330 265 16 20 ]; - symbol [ Graphics %tmp.331 266 16 24 ]; - %tmp.331 = getm $.Toybox.Graphics; - symbol [ FONT_TINY %tmp.332 266 25 34 ]; - %tmp.332 = getv %tmp.331 :FONT_TINY; - %tmp.333 = lgetv %rangeText.13; - symbol [ rangeText %tmp.333 267 16 25 ]; - symbol [ Graphics %tmp.334 268 16 24 ]; - %tmp.334 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_RIGHT %tmp.335 268 25 43 ]; - %tmp.335 = getv %tmp.334 :TEXT_JUSTIFY_RIGHT; - invoke %tmp.325 %tmp.326(%tmp.329, %tmp.330, %tmp.332, %tmp.333, %tmp.335); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 270 12 ] - %tmp.336 = lgetv %yPos.1; - symbol [ yPos %tmp.336 270 12 16 ]; - %tmp.337 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.337 270 20 30 ]; - %tmp.338 = add %tmp.336 %tmp.337; - lputv %yPos.1 %tmp.338; - symbol [ yPos %yPos.1 270 12 16 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_38_271_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_8_271_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_251_8_271_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 274 8 ] - %tmp.339 = lgetv %dc; - symbol [ dc %tmp.339 274 8 10 ]; - symbol [ setColor %tmp.340 274 11 19 ]; - %tmp.340 = getv function %tmp.339 :setColor; - symbol [ Graphics %tmp.341 274 20 28 ]; - %tmp.341 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.342 274 29 40 ]; - %tmp.342 = getv %tmp.341 :COLOR_WHITE; - symbol [ Graphics %tmp.343 274 42 50 ]; - %tmp.343 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.344 274 51 68 ]; - %tmp.344 = getv %tmp.343 :COLOR_TRANSPARENT; - invoke %tmp.339 %tmp.340(%tmp.342, %tmp.344); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 275 8 ] - %tmp.345 = lgetv %dc; - symbol [ dc %tmp.345 275 8 10 ]; - symbol [ drawText %tmp.346 275 11 19 ]; - %tmp.346 = getv function %tmp.345 :drawText; - %tmp.347 = 15; - %tmp.348 = lgetv %yPos.1; - symbol [ yPos %tmp.348 277 12 16 ]; - symbol [ Graphics %tmp.349 278 12 20 ]; - %tmp.349 = getm $.Toybox.Graphics; - symbol [ FONT_TINY %tmp.350 278 21 30 ]; - %tmp.350 = getv %tmp.349 :FONT_TINY; - %tmp.351 = "Target:"; - symbol [ Graphics %tmp.352 280 12 20 ]; - %tmp.352 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.353 280 21 38 ]; - %tmp.353 = getv %tmp.352 :TEXT_JUSTIFY_LEFT; - invoke %tmp.345 %tmp.346(%tmp.347, %tmp.348, %tmp.350, %tmp.351, %tmp.353); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 283 8 ] - %tmp.354 = lgetv %dc; - symbol [ dc %tmp.354 283 8 10 ]; - symbol [ setColor %tmp.355 283 11 19 ]; - %tmp.355 = getv function %tmp.354 :setColor; - symbol [ Graphics %tmp.356 283 20 28 ]; - %tmp.356 = getm $.Toybox.Graphics; - symbol [ COLOR_LT_GRAY %tmp.357 283 29 42 ]; - %tmp.357 = getv %tmp.356 :COLOR_LT_GRAY; - symbol [ Graphics %tmp.358 283 44 52 ]; - %tmp.358 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.359 283 53 70 ]; - %tmp.359 = getv %tmp.358 :COLOR_TRANSPARENT; - invoke %tmp.354 %tmp.355(%tmp.357, %tmp.359); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 284 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %targetText.14 = local; - symbol [ targetText %targetText.14 284 12 22 ]; - %tmp.360 = lgetv %app; - symbol [ app %tmp.360 284 25 28 ]; - symbol [ getMinCadence %tmp.361 284 29 42 ]; - %tmp.361 = getv function %tmp.360 :getMinCadence; - %tmp.362 = invoke %tmp.360 %tmp.361(); - symbol [ toString %tmp.363 284 45 53 ]; - %tmp.363 = getv function %tmp.362 :toString; - %tmp.364 = invoke %tmp.362 %tmp.363(); - %tmp.365 = "-"; - %tmp.366 = add %tmp.364 %tmp.365; - %tmp.367 = lgetv %app; - symbol [ app %tmp.367 284 64 67 ]; - symbol [ getMaxCadence %tmp.368 284 68 81 ]; - %tmp.368 = getv function %tmp.367 :getMaxCadence; - %tmp.369 = invoke %tmp.367 %tmp.368(); - symbol [ toString %tmp.370 284 84 92 ]; - %tmp.370 = getv function %tmp.369 :toString; - %tmp.371 = invoke %tmp.369 %tmp.370(); - %tmp.372 = add %tmp.366 %tmp.371; - %tmp.373 = " spm"; - %tmp.374 = add %tmp.372 %tmp.373; - lputv %targetText.14 %tmp.374; - symbol [ targetText %targetText.14 284 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 285 8 ] - %tmp.375 = lgetv %dc; - symbol [ dc %tmp.375 285 8 10 ]; - symbol [ drawText %tmp.376 285 11 19 ]; - %tmp.376 = getv function %tmp.375 :drawText; - %tmp.377 = lgetv %width; - symbol [ width %tmp.377 286 12 17 ]; - %tmp.378 = 15; - %tmp.379 = sub %tmp.377 %tmp.378; - %tmp.380 = lgetv %yPos.1; - symbol [ yPos %tmp.380 287 12 16 ]; - symbol [ Graphics %tmp.381 288 12 20 ]; - %tmp.381 = getm $.Toybox.Graphics; - symbol [ FONT_TINY %tmp.382 288 21 30 ]; - %tmp.382 = getv %tmp.381 :FONT_TINY; - %tmp.383 = lgetv %targetText.14; - symbol [ targetText %tmp.383 289 12 22 ]; - symbol [ Graphics %tmp.384 290 12 20 ]; - %tmp.384 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_RIGHT %tmp.385 290 21 39 ]; - %tmp.385 = getv %tmp.384 :TEXT_JUSTIFY_RIGHT; - invoke %tmp.375 %tmp.376(%tmp.379, %tmp.380, %tmp.382, %tmp.383, %tmp.385); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 292 8 ] - %tmp.386 = lgetv %yPos.1; - symbol [ yPos %tmp.386 292 8 12 ]; - %tmp.387 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.387 292 16 26 ]; - %tmp.388 = lgetv %sectionSpacing.3; - symbol [ sectionSpacing %tmp.388 292 29 43 ]; - %tmp.389 = add %tmp.387 %tmp.388; - %tmp.390 = add %tmp.386 %tmp.389; - lputv %yPos.1 %tmp.390; - symbol [ yPos %yPos.1 292 8 12 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 295 8 ] - %tmp.391 = lgetv %dc; - symbol [ dc %tmp.391 295 8 10 ]; - symbol [ setColor %tmp.392 295 11 19 ]; - %tmp.392 = getv function %tmp.391 :setColor; - symbol [ Graphics %tmp.393 295 20 28 ]; - %tmp.393 = getm $.Toybox.Graphics; - symbol [ COLOR_DK_GRAY %tmp.394 295 29 42 ]; - %tmp.394 = getv %tmp.393 :COLOR_DK_GRAY; - symbol [ Graphics %tmp.395 295 44 52 ]; - %tmp.395 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.396 295 53 70 ]; - %tmp.396 = getv %tmp.395 :COLOR_TRANSPARENT; - invoke %tmp.391 %tmp.392(%tmp.394, %tmp.396); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 296 8 ] - %tmp.397 = lgetv %dc; - symbol [ dc %tmp.397 296 8 10 ]; - symbol [ drawLine %tmp.398 296 11 19 ]; - %tmp.398 = getv function %tmp.397 :drawLine; - %tmp.399 = 10; - %tmp.400 = lgetv %yPos.1; - symbol [ yPos %tmp.400 296 24 28 ]; - %tmp.401 = lgetv %width; - symbol [ width %tmp.401 296 30 35 ]; - %tmp.402 = 10; - %tmp.403 = sub %tmp.401 %tmp.402; - %tmp.404 = lgetv %yPos.1; - symbol [ yPos %tmp.404 296 42 46 ]; - invoke %tmp.397 %tmp.398(%tmp.399, %tmp.400, %tmp.403, %tmp.404); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 297 8 ] - %tmp.405 = lgetv %yPos.1; - symbol [ yPos %tmp.405 297 8 12 ]; - %tmp.406 = lgetv %sectionSpacing.3; - symbol [ sectionSpacing %tmp.406 297 16 30 ]; - %tmp.407 = add %tmp.405 %tmp.406; - lputv %yPos.1 %tmp.407; - symbol [ yPos %yPos.1 297 8 12 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 300 8 ] - %tmp.408 = lgetv %dc; - symbol [ dc %tmp.408 300 8 10 ]; - symbol [ setColor %tmp.409 300 11 19 ]; - %tmp.409 = getv function %tmp.408 :setColor; - symbol [ Graphics %tmp.410 300 20 28 ]; - %tmp.410 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.411 300 29 40 ]; - %tmp.411 = getv %tmp.410 :COLOR_WHITE; - symbol [ Graphics %tmp.412 300 42 50 ]; - %tmp.412 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.413 300 51 68 ]; - %tmp.413 = getv %tmp.412 :COLOR_TRANSPARENT; - invoke %tmp.408 %tmp.409(%tmp.411, %tmp.413); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 301 8 ] - %tmp.414 = lgetv %dc; - symbol [ dc %tmp.414 301 8 10 ]; - symbol [ drawText %tmp.415 301 11 19 ]; - %tmp.415 = getv function %tmp.414 :drawText; - %tmp.416 = lgetv %width; - symbol [ width %tmp.416 302 12 17 ]; - %tmp.417 = 2; - %tmp.418 = div %tmp.416 %tmp.417; - %tmp.419 = lgetv %yPos.1; - symbol [ yPos %tmp.419 303 12 16 ]; - symbol [ Graphics %tmp.420 304 12 20 ]; - %tmp.420 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.421 304 21 31 ]; - %tmp.421 = getv %tmp.420 :FONT_SMALL; - %tmp.422 = "Activity Metrics"; - symbol [ Graphics %tmp.423 306 12 20 ]; - %tmp.423 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.424 306 21 40 ]; - %tmp.424 = getv %tmp.423 :TEXT_JUSTIFY_CENTER; - invoke %tmp.414 %tmp.415(%tmp.418, %tmp.419, %tmp.421, %tmp.422, %tmp.424); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 308 8 ] - %tmp.425 = lgetv %yPos.1; - symbol [ yPos %tmp.425 308 8 12 ]; - %tmp.426 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.426 308 16 26 ]; - %tmp.427 = lgetv %sectionSpacing.3; - symbol [ sectionSpacing %tmp.427 308 29 43 ]; - %tmp.428 = add %tmp.426 %tmp.427; - %tmp.429 = add %tmp.425 %tmp.428; - lputv %yPos.1 %tmp.429; - symbol [ yPos %yPos.1 308 8 12 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 311 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %duration.15 = local; - symbol [ duration %duration.15 311 12 20 ]; - %tmp.430 = lgetv %app; - symbol [ app %tmp.430 311 23 26 ]; - symbol [ getSessionDuration %tmp.431 311 27 45 ]; - %tmp.431 = getv function %tmp.430 :getSessionDuration; - %tmp.432 = invoke %tmp.430 %tmp.431(); - lputv %duration.15 %tmp.432; - symbol [ duration %duration.15 311 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 312 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_8_337_8_if_stmt: - %tmp.433 = lgetv %duration.15; - symbol [ duration %tmp.433 312 12 20 ]; - %tmp.434 = null; - %tmp.435 = ne %tmp.433 %tmp.434; - bf %tmp.435 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_8_337_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_8_337_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 313 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_stop" ] - %seconds.16 = local; - symbol [ seconds %seconds.16 313 16 23 ]; - %tmp.436 = lgetv %duration.15; - symbol [ duration %tmp.436 313 26 34 ]; - %tmp.437 = as %tmp.436 { (!Null) }; - %tmp.438 = 1000; - %tmp.439 = div %tmp.437 %tmp.438; - lputv %seconds.16 %tmp.439; - symbol [ seconds %seconds.16 313 16 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 314 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_stop" ] - %hours.17 = local; - symbol [ hours %hours.17 314 16 21 ]; - %tmp.440 = lgetv %seconds.16; - symbol [ seconds %tmp.440 314 24 31 ]; - %tmp.441 = 3600; - %tmp.442 = div %tmp.440 %tmp.441; - lputv %hours.17 %tmp.442; - symbol [ hours %hours.17 314 16 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 315 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_stop" ] - %minutes.18 = local; - symbol [ minutes %minutes.18 315 16 23 ]; - %tmp.443 = lgetv %seconds.16; - symbol [ seconds %tmp.443 315 27 34 ]; - %tmp.444 = 3600; - %tmp.445 = mod %tmp.443 %tmp.444; - %tmp.446 = 60; - %tmp.447 = div %tmp.445 %tmp.446; - lputv %minutes.18 %tmp.447; - symbol [ minutes %minutes.18 315 16 23 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 316 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_stop" ] - %secs.19 = local; - symbol [ secs %secs.19 316 16 20 ]; - %tmp.448 = lgetv %seconds.16; - symbol [ seconds %tmp.448 316 23 30 ]; - %tmp.449 = 60; - %tmp.450 = mod %tmp.448 %tmp.449; - lputv %secs.19 %tmp.450; - symbol [ secs %secs.19 316 16 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 317 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_stop" ] - %durationText.20 = local; - symbol [ durationText %durationText.20 317 16 28 ]; - %tmp.451 = lgetv %hours.17; - symbol [ hours %tmp.451 317 31 36 ]; - symbol [ format %tmp.452 317 37 43 ]; - %tmp.452 = getv function %tmp.451 :format; - %tmp.453 = "%02d"; - %tmp.454 = invoke %tmp.451 %tmp.452(%tmp.453); - %tmp.455 = ":"; - %tmp.456 = add %tmp.454 %tmp.455; - %tmp.457 = lgetv %minutes.18; - symbol [ minutes %tmp.457 317 60 67 ]; - symbol [ format %tmp.458 317 68 74 ]; - %tmp.458 = getv function %tmp.457 :format; - %tmp.459 = "%02d"; - %tmp.460 = invoke %tmp.457 %tmp.458(%tmp.459); - %tmp.461 = add %tmp.456 %tmp.460; - %tmp.462 = ":"; - %tmp.463 = add %tmp.461 %tmp.462; - %tmp.464 = lgetv %secs.19; - symbol [ secs %tmp.464 317 91 95 ]; - symbol [ format %tmp.465 317 96 102 ]; - %tmp.465 = getv function %tmp.464 :format; - %tmp.466 = "%02d"; - %tmp.467 = invoke %tmp.464 %tmp.465(%tmp.466); - %tmp.468 = add %tmp.463 %tmp.467; - lputv %durationText.20 %tmp.468; - symbol [ durationText %durationText.20 317 16 28 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 319 12 ] - %tmp.469 = lgetv %dc; - symbol [ dc %tmp.469 319 12 14 ]; - symbol [ setColor %tmp.470 319 15 23 ]; - %tmp.470 = getv function %tmp.469 :setColor; - symbol [ Graphics %tmp.471 319 24 32 ]; - %tmp.471 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.472 319 33 44 ]; - %tmp.472 = getv %tmp.471 :COLOR_WHITE; - symbol [ Graphics %tmp.473 319 46 54 ]; - %tmp.473 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.474 319 55 72 ]; - %tmp.474 = getv %tmp.473 :COLOR_TRANSPARENT; - invoke %tmp.469 %tmp.470(%tmp.472, %tmp.474); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 320 12 ] - %tmp.475 = lgetv %dc; - symbol [ dc %tmp.475 320 12 14 ]; - symbol [ drawText %tmp.476 320 15 23 ]; - %tmp.476 = getv function %tmp.475 :drawText; - %tmp.477 = 15; - %tmp.478 = lgetv %yPos.1; - symbol [ yPos %tmp.478 322 16 20 ]; - symbol [ Graphics %tmp.479 323 16 24 ]; - %tmp.479 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.480 323 25 35 ]; - %tmp.480 = getv %tmp.479 :FONT_SMALL; - %tmp.481 = "Duration:"; - symbol [ Graphics %tmp.482 325 16 24 ]; - %tmp.482 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.483 325 25 42 ]; - %tmp.483 = getv %tmp.482 :TEXT_JUSTIFY_LEFT; - invoke %tmp.475 %tmp.476(%tmp.477, %tmp.478, %tmp.480, %tmp.481, %tmp.483); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 328 12 ] - %tmp.484 = lgetv %dc; - symbol [ dc %tmp.484 328 12 14 ]; - symbol [ setColor %tmp.485 328 15 23 ]; - %tmp.485 = getv function %tmp.484 :setColor; - symbol [ Graphics %tmp.486 328 24 32 ]; - %tmp.486 = getm $.Toybox.Graphics; - symbol [ COLOR_GREEN %tmp.487 328 33 44 ]; - %tmp.487 = getv %tmp.486 :COLOR_GREEN; - symbol [ Graphics %tmp.488 328 46 54 ]; - %tmp.488 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.489 328 55 72 ]; - %tmp.489 = getv %tmp.488 :COLOR_TRANSPARENT; - invoke %tmp.484 %tmp.485(%tmp.487, %tmp.489); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 329 12 ] - %tmp.490 = lgetv %dc; - symbol [ dc %tmp.490 329 12 14 ]; - symbol [ drawText %tmp.491 329 15 23 ]; - %tmp.491 = getv function %tmp.490 :drawText; - %tmp.492 = lgetv %width; - symbol [ width %tmp.492 330 16 21 ]; - %tmp.493 = 15; - %tmp.494 = sub %tmp.492 %tmp.493; - %tmp.495 = lgetv %yPos.1; - symbol [ yPos %tmp.495 331 16 20 ]; - symbol [ Graphics %tmp.496 332 16 24 ]; - %tmp.496 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.497 332 25 35 ]; - %tmp.497 = getv %tmp.496 :FONT_SMALL; - %tmp.498 = lgetv %durationText.20; - symbol [ durationText %tmp.498 333 16 28 ]; - symbol [ Graphics %tmp.499 334 16 24 ]; - %tmp.499 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_RIGHT %tmp.500 334 25 43 ]; - %tmp.500 = getv %tmp.499 :TEXT_JUSTIFY_RIGHT; - invoke %tmp.490 %tmp.491(%tmp.494, %tmp.495, %tmp.497, %tmp.498, %tmp.500); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 336 12 ] - %tmp.501 = lgetv %yPos.1; - symbol [ yPos %tmp.501 336 12 16 ]; - %tmp.502 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.502 336 20 30 ]; - %tmp.503 = lgetv %sectionSpacing.3; - symbol [ sectionSpacing %tmp.503 336 33 47 ]; - %tmp.504 = add %tmp.502 %tmp.503; - %tmp.505 = add %tmp.501 %tmp.504; - lputv %yPos.1 %tmp.505; - symbol [ yPos %yPos.1 336 12 16 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_30_337_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_8_337_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_312_8_337_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 340 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %distance.21 = local; - symbol [ distance %distance.21 340 12 20 ]; - %tmp.506 = lgetv %app; - symbol [ app %tmp.506 340 23 26 ]; - symbol [ getSessionDistance %tmp.507 340 27 45 ]; - %tmp.507 = getv function %tmp.506 :getSessionDistance; - %tmp.508 = invoke %tmp.506 %tmp.507(); - lputv %distance.21 %tmp.508; - symbol [ distance %distance.21 340 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 341 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_341_8_362_8_if_stmt: - %tmp.509 = lgetv %distance.21; - symbol [ distance %tmp.509 341 12 20 ]; - %tmp.510 = null; - %tmp.511 = ne %tmp.509 %tmp.510; - bf %tmp.511 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_341_8_362_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_341_8_362_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_341_30_362_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 342 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_341_30_362_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_341_30_362_8_stop" ] - %distanceKm.22 = local; - symbol [ distanceKm %distanceKm.22 342 16 26 ]; - %tmp.512 = lgetv %distance.21; - symbol [ distance %tmp.512 342 29 37 ]; - %tmp.513 = as %tmp.512 { (!Null) }; - %tmp.514 = 100000.0; - %tmp.515 = div %tmp.513 %tmp.514; - lputv %distanceKm.22 %tmp.515; - symbol [ distanceKm %distanceKm.22 342 16 26 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 344 12 ] - %tmp.516 = lgetv %dc; - symbol [ dc %tmp.516 344 12 14 ]; - symbol [ setColor %tmp.517 344 15 23 ]; - %tmp.517 = getv function %tmp.516 :setColor; - symbol [ Graphics %tmp.518 344 24 32 ]; - %tmp.518 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.519 344 33 44 ]; - %tmp.519 = getv %tmp.518 :COLOR_WHITE; - symbol [ Graphics %tmp.520 344 46 54 ]; - %tmp.520 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.521 344 55 72 ]; - %tmp.521 = getv %tmp.520 :COLOR_TRANSPARENT; - invoke %tmp.516 %tmp.517(%tmp.519, %tmp.521); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 345 12 ] - %tmp.522 = lgetv %dc; - symbol [ dc %tmp.522 345 12 14 ]; - symbol [ drawText %tmp.523 345 15 23 ]; - %tmp.523 = getv function %tmp.522 :drawText; - %tmp.524 = 15; - %tmp.525 = lgetv %yPos.1; - symbol [ yPos %tmp.525 347 16 20 ]; - symbol [ Graphics %tmp.526 348 16 24 ]; - %tmp.526 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.527 348 25 35 ]; - %tmp.527 = getv %tmp.526 :FONT_SMALL; - %tmp.528 = "Distance:"; - symbol [ Graphics %tmp.529 350 16 24 ]; - %tmp.529 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.530 350 25 42 ]; - %tmp.530 = getv %tmp.529 :TEXT_JUSTIFY_LEFT; - invoke %tmp.522 %tmp.523(%tmp.524, %tmp.525, %tmp.527, %tmp.528, %tmp.530); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 353 12 ] - %tmp.531 = lgetv %dc; - symbol [ dc %tmp.531 353 12 14 ]; - symbol [ setColor %tmp.532 353 15 23 ]; - %tmp.532 = getv function %tmp.531 :setColor; - symbol [ Graphics %tmp.533 353 24 32 ]; - %tmp.533 = getm $.Toybox.Graphics; - symbol [ COLOR_GREEN %tmp.534 353 33 44 ]; - %tmp.534 = getv %tmp.533 :COLOR_GREEN; - symbol [ Graphics %tmp.535 353 46 54 ]; - %tmp.535 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.536 353 55 72 ]; - %tmp.536 = getv %tmp.535 :COLOR_TRANSPARENT; - invoke %tmp.531 %tmp.532(%tmp.534, %tmp.536); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 354 12 ] - %tmp.537 = lgetv %dc; - symbol [ dc %tmp.537 354 12 14 ]; - symbol [ drawText %tmp.538 354 15 23 ]; - %tmp.538 = getv function %tmp.537 :drawText; - %tmp.539 = lgetv %width; - symbol [ width %tmp.539 355 16 21 ]; - %tmp.540 = 15; - %tmp.541 = sub %tmp.539 %tmp.540; - %tmp.542 = lgetv %yPos.1; - symbol [ yPos %tmp.542 356 16 20 ]; - symbol [ Graphics %tmp.543 357 16 24 ]; - %tmp.543 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.544 357 25 35 ]; - %tmp.544 = getv %tmp.543 :FONT_SMALL; - %tmp.545 = lgetv %distanceKm.22; - symbol [ distanceKm %tmp.545 358 16 26 ]; - symbol [ format %tmp.546 358 27 33 ]; - %tmp.546 = getv function %tmp.545 :format; - %tmp.547 = "%.2f"; - %tmp.548 = invoke %tmp.545 %tmp.546(%tmp.547); - %tmp.549 = " km"; - %tmp.550 = add %tmp.548 %tmp.549; - symbol [ Graphics %tmp.551 359 16 24 ]; - %tmp.551 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_RIGHT %tmp.552 359 25 43 ]; - %tmp.552 = getv %tmp.551 :TEXT_JUSTIFY_RIGHT; - invoke %tmp.537 %tmp.538(%tmp.541, %tmp.542, %tmp.544, %tmp.550, %tmp.552); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 361 12 ] - %tmp.553 = lgetv %yPos.1; - symbol [ yPos %tmp.553 361 12 16 ]; - %tmp.554 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.554 361 20 30 ]; - %tmp.555 = lgetv %sectionSpacing.3; - symbol [ sectionSpacing %tmp.555 361 33 47 ]; - %tmp.556 = add %tmp.554 %tmp.555; - %tmp.557 = add %tmp.553 %tmp.556; - lputv %yPos.1 %tmp.557; - symbol [ yPos %yPos.1 361 12 16 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_341_30_362_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_341_8_362_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_341_8_362_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 365 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %avgHR.23 = local; - symbol [ avgHR %avgHR.23 365 12 17 ]; - %tmp.558 = lgetv %app; - symbol [ app %tmp.558 365 20 23 ]; - symbol [ getAvgHeartRate %tmp.559 365 24 39 ]; - %tmp.559 = getv function %tmp.558 :getAvgHeartRate; - %tmp.560 = invoke %tmp.558 %tmp.559(); - lputv %avgHR.23 %tmp.560; - symbol [ avgHR %avgHR.23 365 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 366 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_366_8_385_8_if_stmt: - %tmp.561 = lgetv %avgHR.23; - symbol [ avgHR %tmp.561 366 12 17 ]; - %tmp.562 = null; - %tmp.563 = ne %tmp.561 %tmp.562; - bf %tmp.563 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_366_8_385_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_366_8_385_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_366_27_385_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 367 12 ] - %tmp.564 = lgetv %dc; - symbol [ dc %tmp.564 367 12 14 ]; - symbol [ setColor %tmp.565 367 15 23 ]; - %tmp.565 = getv function %tmp.564 :setColor; - symbol [ Graphics %tmp.566 367 24 32 ]; - %tmp.566 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.567 367 33 44 ]; - %tmp.567 = getv %tmp.566 :COLOR_WHITE; - symbol [ Graphics %tmp.568 367 46 54 ]; - %tmp.568 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.569 367 55 72 ]; - %tmp.569 = getv %tmp.568 :COLOR_TRANSPARENT; - invoke %tmp.564 %tmp.565(%tmp.567, %tmp.569); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 368 12 ] - %tmp.570 = lgetv %dc; - symbol [ dc %tmp.570 368 12 14 ]; - symbol [ drawText %tmp.571 368 15 23 ]; - %tmp.571 = getv function %tmp.570 :drawText; - %tmp.572 = 15; - %tmp.573 = lgetv %yPos.1; - symbol [ yPos %tmp.573 370 16 20 ]; - symbol [ Graphics %tmp.574 371 16 24 ]; - %tmp.574 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.575 371 25 35 ]; - %tmp.575 = getv %tmp.574 :FONT_SMALL; - %tmp.576 = "Avg HR:"; - symbol [ Graphics %tmp.577 373 16 24 ]; - %tmp.577 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.578 373 25 42 ]; - %tmp.578 = getv %tmp.577 :TEXT_JUSTIFY_LEFT; - invoke %tmp.570 %tmp.571(%tmp.572, %tmp.573, %tmp.575, %tmp.576, %tmp.578); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 376 12 ] - %tmp.579 = lgetv %dc; - symbol [ dc %tmp.579 376 12 14 ]; - symbol [ setColor %tmp.580 376 15 23 ]; - %tmp.580 = getv function %tmp.579 :setColor; - symbol [ Graphics %tmp.581 376 24 32 ]; - %tmp.581 = getm $.Toybox.Graphics; - symbol [ COLOR_RED %tmp.582 376 33 42 ]; - %tmp.582 = getv %tmp.581 :COLOR_RED; - symbol [ Graphics %tmp.583 376 44 52 ]; - %tmp.583 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.584 376 53 70 ]; - %tmp.584 = getv %tmp.583 :COLOR_TRANSPARENT; - invoke %tmp.579 %tmp.580(%tmp.582, %tmp.584); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 377 12 ] - %tmp.585 = lgetv %dc; - symbol [ dc %tmp.585 377 12 14 ]; - symbol [ drawText %tmp.586 377 15 23 ]; - %tmp.586 = getv function %tmp.585 :drawText; - %tmp.587 = lgetv %width; - symbol [ width %tmp.587 378 16 21 ]; - %tmp.588 = 15; - %tmp.589 = sub %tmp.587 %tmp.588; - %tmp.590 = lgetv %yPos.1; - symbol [ yPos %tmp.590 379 16 20 ]; - symbol [ Graphics %tmp.591 380 16 24 ]; - %tmp.591 = getm $.Toybox.Graphics; - symbol [ FONT_SMALL %tmp.592 380 25 35 ]; - %tmp.592 = getv %tmp.591 :FONT_SMALL; - %tmp.593 = lgetv %avgHR.23; - symbol [ avgHR %tmp.593 381 16 21 ]; - %tmp.594 = as %tmp.593 { (!Null) }; - symbol [ toString %tmp.595 381 22 30 ]; - %tmp.595 = getv function %tmp.594 :toString; - %tmp.596 = invoke %tmp.594 %tmp.595(); - %tmp.597 = " bpm"; - %tmp.598 = add %tmp.596 %tmp.597; - symbol [ Graphics %tmp.599 382 16 24 ]; - %tmp.599 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_RIGHT %tmp.600 382 25 43 ]; - %tmp.600 = getv %tmp.599 :TEXT_JUSTIFY_RIGHT; - invoke %tmp.585 %tmp.586(%tmp.589, %tmp.590, %tmp.592, %tmp.598, %tmp.600); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 384 12 ] - %tmp.601 = lgetv %yPos.1; - symbol [ yPos %tmp.601 384 12 16 ]; - %tmp.602 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.602 384 20 30 ]; - %tmp.603 = add %tmp.601 %tmp.602; - lputv %yPos.1 %tmp.603; - symbol [ yPos %yPos.1 384 12 16 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_366_27_385_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_366_8_385_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_366_8_385_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 388 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop" ] - %peakHR.24 = local; - symbol [ peakHR %peakHR.24 388 12 18 ]; - %tmp.604 = lgetv %app; - symbol [ app %tmp.604 388 21 24 ]; - symbol [ getPeakHeartRate %tmp.605 388 25 41 ]; - %tmp.605 = getv function %tmp.604 :getPeakHeartRate; - %tmp.606 = invoke %tmp.604 %tmp.605(); - lputv %peakHR.24 %tmp.606; - symbol [ peakHR %peakHR.24 388 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 389 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_8_408_8_if_stmt: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_12_389_56_begin: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_12_389_39_begin: - %tmp.607 = lgetv %peakHR.24; - symbol [ peakHR %tmp.607 389 12 18 ]; - %tmp.608 = null; - %tmp.609 = ne %tmp.607 %tmp.608; - bf %tmp.609 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_8_408_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_30_389_39_true: - %tmp.610 = lgetv %avgHR.23; - symbol [ avgHR %tmp.610 389 30 35 ]; - %tmp.611 = null; - %tmp.612 = ne %tmp.610 %tmp.611; - push %tmp.612; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_30_389_39_end: - %tmp.613 = phi [%tmp.609 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_12_389_39_begin] [%tmp.612 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_30_389_39_true] [%tmp.613 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_30_389_39_end]; - bf %tmp.613 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_8_408_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_47_389_56_true: - %tmp.614 = lgetv %peakHR.24; - symbol [ peakHR %tmp.614 389 47 53 ]; - %tmp.615 = as %tmp.614 { (!Null) }; - %tmp.616 = lgetv %avgHR.23; - symbol [ avgHR %tmp.616 389 56 61 ]; - %tmp.617 = as %tmp.616 { (!Null) }; - %tmp.618 = gt %tmp.615 %tmp.617; - push %tmp.618; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_47_389_56_end: - %tmp.619 = phi [%tmp.613 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_12_389_56_begin] [%tmp.618 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_47_389_56_true] [%tmp.619 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_47_389_56_end]; - bf %tmp.619 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_8_408_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_8_408_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_63_408_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 390 12 ] - %tmp.620 = lgetv %dc; - symbol [ dc %tmp.620 390 12 14 ]; - symbol [ setColor %tmp.621 390 15 23 ]; - %tmp.621 = getv function %tmp.620 :setColor; - symbol [ Graphics %tmp.622 390 24 32 ]; - %tmp.622 = getm $.Toybox.Graphics; - symbol [ COLOR_WHITE %tmp.623 390 33 44 ]; - %tmp.623 = getv %tmp.622 :COLOR_WHITE; - symbol [ Graphics %tmp.624 390 46 54 ]; - %tmp.624 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.625 390 55 72 ]; - %tmp.625 = getv %tmp.624 :COLOR_TRANSPARENT; - invoke %tmp.620 %tmp.621(%tmp.623, %tmp.625); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 391 12 ] - %tmp.626 = lgetv %dc; - symbol [ dc %tmp.626 391 12 14 ]; - symbol [ drawText %tmp.627 391 15 23 ]; - %tmp.627 = getv function %tmp.626 :drawText; - %tmp.628 = 15; - %tmp.629 = lgetv %yPos.1; - symbol [ yPos %tmp.629 393 16 20 ]; - symbol [ Graphics %tmp.630 394 16 24 ]; - %tmp.630 = getm $.Toybox.Graphics; - symbol [ FONT_TINY %tmp.631 394 25 34 ]; - %tmp.631 = getv %tmp.630 :FONT_TINY; - %tmp.632 = "Peak HR:"; - symbol [ Graphics %tmp.633 396 16 24 ]; - %tmp.633 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_LEFT %tmp.634 396 25 42 ]; - %tmp.634 = getv %tmp.633 :TEXT_JUSTIFY_LEFT; - invoke %tmp.626 %tmp.627(%tmp.628, %tmp.629, %tmp.631, %tmp.632, %tmp.634); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 399 12 ] - %tmp.635 = lgetv %dc; - symbol [ dc %tmp.635 399 12 14 ]; - symbol [ setColor %tmp.636 399 15 23 ]; - %tmp.636 = getv function %tmp.635 :setColor; - symbol [ Graphics %tmp.637 399 24 32 ]; - %tmp.637 = getm $.Toybox.Graphics; - symbol [ COLOR_DK_RED %tmp.638 399 33 45 ]; - %tmp.638 = getv %tmp.637 :COLOR_DK_RED; - symbol [ Graphics %tmp.639 399 47 55 ]; - %tmp.639 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.640 399 56 73 ]; - %tmp.640 = getv %tmp.639 :COLOR_TRANSPARENT; - invoke %tmp.635 %tmp.636(%tmp.638, %tmp.640); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 400 12 ] - %tmp.641 = lgetv %dc; - symbol [ dc %tmp.641 400 12 14 ]; - symbol [ drawText %tmp.642 400 15 23 ]; - %tmp.642 = getv function %tmp.641 :drawText; - %tmp.643 = lgetv %width; - symbol [ width %tmp.643 401 16 21 ]; - %tmp.644 = 15; - %tmp.645 = sub %tmp.643 %tmp.644; - %tmp.646 = lgetv %yPos.1; - symbol [ yPos %tmp.646 402 16 20 ]; - symbol [ Graphics %tmp.647 403 16 24 ]; - %tmp.647 = getm $.Toybox.Graphics; - symbol [ FONT_TINY %tmp.648 403 25 34 ]; - %tmp.648 = getv %tmp.647 :FONT_TINY; - %tmp.649 = lgetv %peakHR.24; - symbol [ peakHR %tmp.649 404 16 22 ]; - %tmp.650 = as %tmp.649 { (!Null) }; - symbol [ toString %tmp.651 404 23 31 ]; - %tmp.651 = getv function %tmp.650 :toString; - %tmp.652 = invoke %tmp.650 %tmp.651(); - %tmp.653 = " bpm"; - %tmp.654 = add %tmp.652 %tmp.653; - symbol [ Graphics %tmp.655 405 16 24 ]; - %tmp.655 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_RIGHT %tmp.656 405 25 43 ]; - %tmp.656 = getv %tmp.655 :TEXT_JUSTIFY_RIGHT; - invoke %tmp.641 %tmp.642(%tmp.645, %tmp.646, %tmp.648, %tmp.654, %tmp.656); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 407 12 ] - %tmp.657 = lgetv %yPos.1; - symbol [ yPos %tmp.657 407 12 16 ]; - %tmp.658 = lgetv %lineHeight.2; - symbol [ lineHeight %tmp.658 407 20 30 ]; - %tmp.659 = add %tmp.657 %tmp.658; - lputv %yPos.1 %tmp.659; - symbol [ yPos %yPos.1 407 12 16 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_63_408_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_8_408_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_389_8_408_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 411 8 ] - %tmp.660 = lgetv %height; - symbol [ height %tmp.660 411 15 21 ]; - %tmp.661 = 20; - %tmp.662 = sub %tmp.660 %tmp.661; - lputv %yPos.1 %tmp.662; - symbol [ yPos %yPos.1 411 8 12 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 412 8 ] - %tmp.663 = lgetv %dc; - symbol [ dc %tmp.663 412 8 10 ]; - symbol [ setColor %tmp.664 412 11 19 ]; - %tmp.664 = getv function %tmp.663 :setColor; - symbol [ Graphics %tmp.665 412 20 28 ]; - %tmp.665 = getm $.Toybox.Graphics; - symbol [ COLOR_DK_GRAY %tmp.666 412 29 42 ]; - %tmp.666 = getv %tmp.665 :COLOR_DK_GRAY; - symbol [ Graphics %tmp.667 412 44 52 ]; - %tmp.667 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.668 412 53 70 ]; - %tmp.668 = getv %tmp.667 :COLOR_TRANSPARENT; - invoke %tmp.663 %tmp.664(%tmp.666, %tmp.668); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 413 8 ] - %tmp.669 = lgetv %dc; - symbol [ dc %tmp.669 413 8 10 ]; - symbol [ drawText %tmp.670 413 11 19 ]; - %tmp.670 = getv function %tmp.669 :drawText; - %tmp.671 = lgetv %width; - symbol [ width %tmp.671 414 12 17 ]; - %tmp.672 = 2; - %tmp.673 = div %tmp.671 %tmp.672; - %tmp.674 = lgetv %yPos.1; - symbol [ yPos %tmp.674 415 12 16 ]; - symbol [ Graphics %tmp.675 416 12 20 ]; - %tmp.675 = getm $.Toybox.Graphics; - symbol [ FONT_XTINY %tmp.676 416 21 31 ]; - %tmp.676 = getv %tmp.675 :FONT_XTINY; - %tmp.677 = "Press SELECT to continue"; - symbol [ Graphics %tmp.678 418 12 20 ]; - %tmp.678 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.679 418 21 40 ]; - %tmp.679 = getv %tmp.678 :TEXT_JUSTIFY_CENTER; - invoke %tmp.669 %tmp.670(%tmp.673, %tmp.674, %tmp.676, %tmp.677, %tmp.679); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_127_103_420_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 422; @symbol_functiondef = [drawProgressBar,422,13,28]; @symbol_param<0> = [dc,422,29,31]; @symbol_param<0>_type<0> = [Dc,422,35,37]; @symbol_param<1> = [width,422,39,44]; @symbol_param<1>_type<0> = [Number,422,48,54]; @symbol_param<2> = [yPos,422,56,60]; @symbol_param<2>_type<0> = [Number,422,64,70]; @symbol_param<3> = [percentage,422,72,82]; @symbol_param<3>_type<0> = [Number,422,86,92]; @symbol_param<4> = [color,422,94,99]; @symbol_param<4>_type<0> = [Number,422,103,109]; ] - function drawProgressBar(dc as Dc, width as Number, yPos as Number, percentage as Number, color as Number) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_422_119_444_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 423 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_422_119_444_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_422_119_444_4_stop" ] - %barWidth.1 = local; - symbol [ barWidth %barWidth.1 423 12 20 ]; - %tmp.1 = lgetv %width; - symbol [ width %tmp.1 423 23 28 ]; - %tmp.2 = 30; - %tmp.3 = sub %tmp.1 %tmp.2; - lputv %barWidth.1 %tmp.3; - symbol [ barWidth %barWidth.1 423 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 424 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_422_119_444_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_422_119_444_4_stop" ] - %barHeight.2 = local; - symbol [ barHeight %barHeight.2 424 12 21 ]; - %tmp.4 = 8; - lputv %barHeight.2 %tmp.4; - symbol [ barHeight %barHeight.2 424 12 21 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 425 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_422_119_444_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_422_119_444_4_stop" ] - %barX.3 = local; - symbol [ barX %barX.3 425 12 16 ]; - %tmp.5 = 15; - lputv %barX.3 %tmp.5; - symbol [ barX %barX.3 425 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 426 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_422_119_444_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_422_119_444_4_stop" ] - %barY.4 = local; - symbol [ barY %barY.4 426 12 16 ]; - %tmp.6 = lgetv %yPos; - symbol [ yPos %tmp.6 426 19 23 ]; - lputv %barY.4 %tmp.6; - symbol [ barY %barY.4 426 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 429 8 ] - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 429 8 10 ]; - symbol [ setColor %tmp.8 429 11 19 ]; - %tmp.8 = getv function %tmp.7 :setColor; - symbol [ Graphics %tmp.9 429 20 28 ]; - %tmp.9 = getm $.Toybox.Graphics; - symbol [ COLOR_DK_GRAY %tmp.10 429 29 42 ]; - %tmp.10 = getv %tmp.9 :COLOR_DK_GRAY; - symbol [ Graphics %tmp.11 429 44 52 ]; - %tmp.11 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.12 429 53 70 ]; - %tmp.12 = getv %tmp.11 :COLOR_TRANSPARENT; - invoke %tmp.7 %tmp.8(%tmp.10, %tmp.12); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 430 8 ] - %tmp.13 = lgetv %dc; - symbol [ dc %tmp.13 430 8 10 ]; - symbol [ fillRectangle %tmp.14 430 11 24 ]; - %tmp.14 = getv function %tmp.13 :fillRectangle; - %tmp.15 = lgetv %barX.3; - symbol [ barX %tmp.15 430 25 29 ]; - %tmp.16 = lgetv %barY.4; - symbol [ barY %tmp.16 430 31 35 ]; - %tmp.17 = lgetv %barWidth.1; - symbol [ barWidth %tmp.17 430 37 45 ]; - %tmp.18 = lgetv %barHeight.2; - symbol [ barHeight %tmp.18 430 47 56 ]; - invoke %tmp.13 %tmp.14(%tmp.15, %tmp.16, %tmp.17, %tmp.18); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 433 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_433_8_439_8_if_stmt: - %tmp.19 = lgetv %percentage; - symbol [ percentage %tmp.19 433 12 22 ]; - %tmp.20 = 0; - %tmp.21 = gt %tmp.19 %tmp.20; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_433_8_439_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_433_8_439_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_433_28_439_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 434 12 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_433_28_439_8_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_433_28_439_8_stop" ] - %filledWidth.5 = local; - symbol [ filledWidth %filledWidth.5 434 16 27 ]; - %tmp.22 = lgetv %barWidth.1; - symbol [ barWidth %tmp.22 434 31 39 ]; - %tmp.23 = lgetv %percentage; - symbol [ percentage %tmp.23 434 42 52 ]; - %tmp.24 = mul %tmp.22 %tmp.23; - %tmp.25 = 100.0; - %tmp.26 = div %tmp.24 %tmp.25; - symbol [ toNumber %tmp.27 434 62 70 ]; - %tmp.27 = getv function %tmp.26 :toNumber; - %tmp.28 = invoke %tmp.26 %tmp.27(); - lputv %filledWidth.5 %tmp.28; - symbol [ filledWidth %filledWidth.5 434 16 27 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 435 12 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_435_12_435_66_if_stmt: - %tmp.29 = lgetv %filledWidth.5; - symbol [ filledWidth %tmp.29 435 16 27 ]; - %tmp.30 = lgetv %barWidth.1; - symbol [ barWidth %tmp.30 435 30 38 ]; - %tmp.31 = gt %tmp.29 %tmp.30; - bf %tmp.31 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_435_12_435_66_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_435_12_435_66_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_435_40_435_66_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 435 42 ] - %tmp.32 = lgetv %barWidth.1; - symbol [ barWidth %tmp.32 435 56 64 ]; - lputv %filledWidth.5 %tmp.32; - symbol [ filledWidth %filledWidth.5 435 42 53 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_435_40_435_66_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_435_12_435_66_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_435_12_435_66_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 437 12 ] - %tmp.33 = lgetv %dc; - symbol [ dc %tmp.33 437 12 14 ]; - symbol [ setColor %tmp.34 437 15 23 ]; - %tmp.34 = getv function %tmp.33 :setColor; - %tmp.35 = lgetv %color; - symbol [ color %tmp.35 437 24 29 ]; - symbol [ Graphics %tmp.36 437 31 39 ]; - %tmp.36 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.37 437 40 57 ]; - %tmp.37 = getv %tmp.36 :COLOR_TRANSPARENT; - invoke %tmp.33 %tmp.34(%tmp.35, %tmp.37); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 438 12 ] - %tmp.38 = lgetv %dc; - symbol [ dc %tmp.38 438 12 14 ]; - symbol [ fillRectangle %tmp.39 438 15 28 ]; - %tmp.39 = getv function %tmp.38 :fillRectangle; - %tmp.40 = lgetv %barX.3; - symbol [ barX %tmp.40 438 29 33 ]; - %tmp.41 = lgetv %barY.4; - symbol [ barY %tmp.41 438 35 39 ]; - %tmp.42 = lgetv %filledWidth.5; - symbol [ filledWidth %tmp.42 438 41 52 ]; - %tmp.43 = lgetv %barHeight.2; - symbol [ barHeight %tmp.43 438 54 63 ]; - invoke %tmp.38 %tmp.39(%tmp.40, %tmp.41, %tmp.42, %tmp.43); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_433_28_439_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_433_8_439_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_433_8_439_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 442 8 ] - %tmp.44 = lgetv %dc; - symbol [ dc %tmp.44 442 8 10 ]; - symbol [ setColor %tmp.45 442 11 19 ]; - %tmp.45 = getv function %tmp.44 :setColor; - symbol [ Graphics %tmp.46 442 20 28 ]; - %tmp.46 = getm $.Toybox.Graphics; - symbol [ COLOR_LT_GRAY %tmp.47 442 29 42 ]; - %tmp.47 = getv %tmp.46 :COLOR_LT_GRAY; - symbol [ Graphics %tmp.48 442 44 52 ]; - %tmp.48 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.49 442 53 70 ]; - %tmp.49 = getv %tmp.48 :COLOR_TRANSPARENT; - invoke %tmp.44 %tmp.45(%tmp.47, %tmp.49); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 443 8 ] - %tmp.50 = lgetv %dc; - symbol [ dc %tmp.50 443 8 10 ]; - symbol [ drawRectangle %tmp.51 443 11 24 ]; - %tmp.51 = getv function %tmp.50 :drawRectangle; - %tmp.52 = lgetv %barX.3; - symbol [ barX %tmp.52 443 25 29 ]; - %tmp.53 = lgetv %barY.4; - symbol [ barY %tmp.53 443 31 35 ]; - %tmp.54 = lgetv %barWidth.1; - symbol [ barWidth %tmp.54 443 37 45 ]; - %tmp.55 = lgetv %barHeight.2; - symbol [ barHeight %tmp.55 443 47 56 ]; - invoke %tmp.50 %tmp.51(%tmp.52, %tmp.53, %tmp.54, %tmp.55); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_422_119_444_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 446; @symbol_functiondef = [getCQColor,446,13,23]; @symbol_param<0> = [cq,446,24,26]; @symbol_param<0>_type<0> = [Number,446,30,36]; @symbol_return<0> = [Number,446,41,47]; ] - function getCQColor(cq as Number) as Number { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_446_48_456_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 447 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_447_8_455_8_if_stmt: - %tmp.1 = lgetv %cq; - symbol [ cq %tmp.1 447 12 14 ]; - %tmp.2 = 80; - %tmp.3 = gte %tmp.1 %tmp.2; - bf %tmp.3 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_447_8_455_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_447_8_455_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_447_22_449_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 448 12 ] - symbol [ Graphics %tmp.4 448 19 27 ]; - %tmp.4 = getm $.Toybox.Graphics; - symbol [ COLOR_GREEN %tmp.5 448 28 39 ]; - %tmp.5 = getv %tmp.4 :COLOR_GREEN; - ret %tmp.5; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_447_22_449_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_447_8_455_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_447_8_455_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 449 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_449_15_455_8_if_stmt: - %tmp.6 = lgetv %cq; - symbol [ cq %tmp.6 449 19 21 ]; - %tmp.7 = 60; - %tmp.8 = gte %tmp.6 %tmp.7; - bf %tmp.8 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_449_15_455_8_if_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_449_15_455_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_449_29_451_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 450 12 ] - symbol [ Graphics %tmp.9 450 19 27 ]; - %tmp.9 = getm $.Toybox.Graphics; - symbol [ COLOR_YELLOW %tmp.10 450 28 40 ]; - %tmp.10 = getv %tmp.9 :COLOR_YELLOW; - ret %tmp.10; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_449_29_451_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_449_15_455_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_449_15_455_8_if_false: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 451 15 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_451_15_455_8_if_stmt: - %tmp.11 = lgetv %cq; - symbol [ cq %tmp.11 451 19 21 ]; - %tmp.12 = 40; - %tmp.13 = gte %tmp.11 %tmp.12; - bf %tmp.13 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_451_15_455_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_451_15_455_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_451_29_453_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 452 12 ] - symbol [ Graphics %tmp.14 452 19 27 ]; - %tmp.14 = getm $.Toybox.Graphics; - symbol [ COLOR_ORANGE %tmp.15 452 28 40 ]; - %tmp.15 = getv %tmp.14 :COLOR_ORANGE; - ret %tmp.15; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_451_29_453_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_451_15_455_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_451_15_455_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_453_15_455_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc" 454 12 ] - symbol [ Graphics %tmp.16 454 19 27 ]; - %tmp.16 = getm $.Toybox.Graphics; - symbol [ COLOR_RED %tmp.17 454 28 37 ]; - %tmp.17 = getv %tmp.16 :COLOR_RED; - ret %tmp.17; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_453_15_455_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_451_15_455_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_449_15_455_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_447_8_455_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_SummaryView_mc_446_48_456_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\SummaryView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/TimeView.mir b/bin/mir/source/Views/TimeView.mir deleted file mode 100644 index e734352..0000000 --- a/bin/mir/source/Views/TimeView.mir +++ /dev/null @@ -1,312 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Graphics,1,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [System,3,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Time,4,14,18]; ] -import Toybox.Time; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 5; @symbol_importdef<0> = [Toybox,5,7,13]; @symbol_importdef<1> = [Time,5,14,18]; @symbol_importdef<2> = [Gregorian,5,19,28]; ] -import Toybox.Time.Gregorian; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 6; @symbol_importdef<0> = [Toybox,6,7,13]; @symbol_importdef<1> = [Lang,6,14,18]; ] -import Toybox.Lang; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 8; @symbol_classdef = [TimeView,8,6,14]; @symbol_extends<0> = [WatchUi,8,23,30]; @symbol_extends<1> = [View,8,31,35]; ] -class TimeView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 8; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 8; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 11; @symbol_functiondef = [initialize,11,13,23]; ] - function initialize() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_11_26_13_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 12 8 ] - symbol [ View %tmp.2 12 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 12 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_11_26_13_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 16; @symbol_functiondef = [onLayout,16,13,21]; @symbol_param<0> = [dc,16,22,24]; @symbol_param<0>_type<0> = [Dc,16,28,30]; ] - function onLayout(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_16_40_18_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 17 8 ] - %tmp.1 = self; - symbol [ setLayout %tmp.2 17 8 17 ]; - %tmp.2 = getv function %tmp.1 :setLayout; - symbol [ Rez %tmp.4 17 18 21 ]; - %tmp.4 = getv ? :Rez; - symbol [ Layouts %tmp.5 17 22 29 ]; - %tmp.5 = getv %tmp.4 :Layouts; - symbol [ WatchFace %tmp.6 17 30 39 ]; - %tmp.6 = getv function %tmp.5 :WatchFace; - %tmp.7 = lgetv %dc; - symbol [ dc %tmp.7 17 40 42 ]; - %tmp.8 = invoke %tmp.5 %tmp.6(%tmp.7); - invoke %tmp.1 %tmp.2(%tmp.8); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_16_40_18_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 23; @symbol_functiondef = [onShow,23,13,19]; ] - function onShow() as Void { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 28; @symbol_functiondef = [onUpdate,28,13,21]; @symbol_param<0> = [dc,28,22,24]; @symbol_param<0>_type<0> = [Dc,28,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 29 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_stop" ] - %date.1 = local; - symbol [ date %date.1 29 12 16 ]; - symbol [ Gregorian %tmp.1 29 19 28 ]; - %tmp.1 = getm $.Toybox.Time.Gregorian; - symbol [ info %tmp.2 29 29 33 ]; - %tmp.2 = getv function %tmp.1 :info; - symbol [ Time %tmp.3 29 34 38 ]; - %tmp.3 = getm $.Toybox.Time; - symbol [ now %tmp.4 29 39 42 ]; - %tmp.4 = getv function %tmp.3 :now; - %tmp.5 = invoke %tmp.3 %tmp.4(); - symbol [ Time %tmp.6 29 46 50 ]; - %tmp.6 = getm $.Toybox.Time; - symbol [ FORMAT_SHORT %tmp.7 29 51 63 ]; - %tmp.7 = getv %tmp.6 :FORMAT_SHORT; - %tmp.8 = invoke %tmp.1 %tmp.2(%tmp.5, %tmp.7); - lputv %date.1 %tmp.8; - symbol [ date %date.1 29 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 30 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_stop" ] - %dayNames.2 = local; - symbol [ dayNames %dayNames.2 30 12 20 ]; - %tmp.9 = newa 7; - %tmp.10 = "Sun"; - %tmp.11 = dup %tmp.9; - %tmp.12 = aputv %tmp.11 0 %tmp.10; - %tmp.13 = "Mon"; - %tmp.14 = dup %tmp.12; - %tmp.15 = aputv %tmp.14 1 %tmp.13; - %tmp.16 = "Tue"; - %tmp.17 = dup %tmp.15; - %tmp.18 = aputv %tmp.17 2 %tmp.16; - %tmp.19 = "Wed"; - %tmp.20 = dup %tmp.18; - %tmp.21 = aputv %tmp.20 3 %tmp.19; - %tmp.22 = "Thu"; - %tmp.23 = dup %tmp.21; - %tmp.24 = aputv %tmp.23 4 %tmp.22; - %tmp.25 = "Fri"; - %tmp.26 = dup %tmp.24; - %tmp.27 = aputv %tmp.26 5 %tmp.25; - %tmp.28 = "Sat"; - %tmp.29 = dup %tmp.27; - %tmp.30 = aputv %tmp.29 6 %tmp.28; - lputv %dayNames.2 %tmp.30; - symbol [ dayNames %dayNames.2 30 12 20 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 31 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_stop" ] - %monthNames.3 = local; - symbol [ monthNames %monthNames.3 31 12 22 ]; - %tmp.31 = newa 12; - %tmp.32 = "Jan"; - %tmp.33 = dup %tmp.31; - %tmp.34 = aputv %tmp.33 0 %tmp.32; - %tmp.35 = "Feb"; - %tmp.36 = dup %tmp.34; - %tmp.37 = aputv %tmp.36 1 %tmp.35; - %tmp.38 = "Mar"; - %tmp.39 = dup %tmp.37; - %tmp.40 = aputv %tmp.39 2 %tmp.38; - %tmp.41 = "Apr"; - %tmp.42 = dup %tmp.40; - %tmp.43 = aputv %tmp.42 3 %tmp.41; - %tmp.44 = "May"; - %tmp.45 = dup %tmp.43; - %tmp.46 = aputv %tmp.45 4 %tmp.44; - %tmp.47 = "Jun"; - %tmp.48 = dup %tmp.46; - %tmp.49 = aputv %tmp.48 5 %tmp.47; - %tmp.50 = "Jul"; - %tmp.51 = dup %tmp.49; - %tmp.52 = aputv %tmp.51 6 %tmp.50; - %tmp.53 = "Aug"; - %tmp.54 = dup %tmp.52; - %tmp.55 = aputv %tmp.54 7 %tmp.53; - %tmp.56 = "Sep"; - %tmp.57 = dup %tmp.55; - %tmp.58 = aputv %tmp.57 8 %tmp.56; - %tmp.59 = "Oct"; - %tmp.60 = dup %tmp.58; - %tmp.61 = aputv %tmp.60 9 %tmp.59; - %tmp.62 = "Nov"; - %tmp.63 = dup %tmp.61; - %tmp.64 = aputv %tmp.63 10 %tmp.62; - %tmp.65 = "Dec"; - %tmp.66 = dup %tmp.64; - %tmp.67 = aputv %tmp.66 11 %tmp.65; - lputv %monthNames.3 %tmp.67; - symbol [ monthNames %monthNames.3 31 12 22 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 34 8 ] - symbol [ View %tmp.69 34 9 13 ]; - %tmp.69 = getv ? :View; - symbol [ findDrawableById %tmp.70 34 14 30 ]; - %tmp.70 = getv function %tmp.69 :findDrawableById; - %tmp.71 = "Date"; - %tmp.72 = invoke %tmp.69 %tmp.70(%tmp.71); - %tmp.73 = as %tmp.72 WatchUi.Text; - symbol [ WatchUi %tmp.73 34 42 49 ]; - symbol [ Text %tmp.73 34 50 54 ]; - symbol [ setText %tmp.74 34 56 63 ]; - %tmp.74 = getv function %tmp.73 :setText; - %tmp.75 = lgetv %dayNames.2; - symbol [ dayNames %tmp.75 35 12 20 ]; - %tmp.76 = lgetv %date.1; - symbol [ date %tmp.76 35 21 25 ]; - symbol [ day_of_week %tmp.77 35 26 37 ]; - %tmp.77 = getv %tmp.76 :day_of_week; - %tmp.78 = 1; - %tmp.79 = sub %tmp.77 %tmp.78; - %tmp.80 = agetv %tmp.75 %tmp.79; - %tmp.81 = " "; - %tmp.82 = add %tmp.80 %tmp.81; - %tmp.83 = lgetv %date.1; - symbol [ date %tmp.83 35 51 55 ]; - symbol [ day %tmp.84 35 56 59 ]; - %tmp.84 = getv %tmp.83 :day; - symbol [ format %tmp.85 35 60 66 ]; - %tmp.85 = getv function %tmp.84 :format; - %tmp.86 = "%2d"; - %tmp.87 = invoke %tmp.84 %tmp.85(%tmp.86); - %tmp.88 = add %tmp.82 %tmp.87; - %tmp.89 = " "; - %tmp.90 = add %tmp.88 %tmp.89; - %tmp.91 = lgetv %monthNames.3; - symbol [ monthNames %tmp.91 35 82 92 ]; - %tmp.92 = lgetv %date.1; - symbol [ date %tmp.92 35 93 97 ]; - symbol [ month %tmp.93 35 98 103 ]; - %tmp.93 = getv %tmp.92 :month; - %tmp.94 = 1; - %tmp.95 = sub %tmp.93 %tmp.94; - %tmp.96 = agetv %tmp.91 %tmp.95; - %tmp.97 = add %tmp.90 %tmp.96; - invoke %tmp.73 %tmp.74(%tmp.97); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 38 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_stop" ] - %hour12.4 = local; - symbol [ hour12 %hour12.4 38 12 18 ]; - %tmp.98 = lgetv %date.1; - symbol [ date %tmp.98 38 21 25 ]; - symbol [ hour %tmp.99 38 26 30 ]; - %tmp.99 = getv %tmp.98 :hour; - %tmp.100 = 12; - %tmp.101 = mod %tmp.99 %tmp.100; - lputv %hour12.4 %tmp.101; - symbol [ hour12 %hour12.4 38 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 39 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_39_8_41_8_if_stmt: - %tmp.102 = lgetv %hour12.4; - symbol [ hour12 %tmp.102 39 12 18 ]; - %tmp.103 = 0; - %tmp.104 = eq %tmp.102 %tmp.103; - bf %tmp.104 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_39_8_41_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_39_8_41_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_39_25_41_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 40 12 ] - %tmp.105 = 12; - lputv %hour12.4 %tmp.105; - symbol [ hour12 %hour12.4 40 12 18 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_39_25_41_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_39_8_41_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_39_8_41_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 42 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_stop" ] - %ampm.5 = local; - symbol [ ampm %ampm.5 42 12 16 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_42_19_42_45_begin: - %tmp.106 = lgetv %date.1; - symbol [ date %tmp.106 42 20 24 ]; - symbol [ hour %tmp.107 42 25 29 ]; - %tmp.107 = getv %tmp.106 :hour; - %tmp.108 = 12; - %tmp.109 = lt %tmp.107 %tmp.108; - bf %tmp.109 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_42_19_42_45_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_42_19_42_45_true: - %tmp.110 = "AM"; - push %tmp.110; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_42_19_42_45_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_42_19_42_45_else_false: - %tmp.111 = "PM"; - push %tmp.111; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_42_19_42_45_end: - %tmp.112 = phi [%tmp.109 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_42_19_42_45_begin] [%tmp.110 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_42_19_42_45_true] [%tmp.111 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_42_19_42_45_else_false] [%tmp.112 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_42_19_42_45_end]; - lputv %ampm.5 %tmp.112; - symbol [ ampm %ampm.5 42 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 43 8 ] - symbol [ View %tmp.114 43 9 13 ]; - %tmp.114 = getv ? :View; - symbol [ findDrawableById %tmp.115 43 14 30 ]; - %tmp.115 = getv function %tmp.114 :findDrawableById; - %tmp.116 = "HoursAndMinutes"; - %tmp.117 = invoke %tmp.114 %tmp.115(%tmp.116); - %tmp.118 = as %tmp.117 WatchUi.Text; - symbol [ WatchUi %tmp.118 43 53 60 ]; - symbol [ Text %tmp.118 43 61 65 ]; - symbol [ setText %tmp.119 43 67 74 ]; - %tmp.119 = getv function %tmp.118 :setText; - %tmp.120 = lgetv %hour12.4; - symbol [ hour12 %tmp.120 44 12 18 ]; - symbol [ format %tmp.121 44 19 25 ]; - %tmp.121 = getv function %tmp.120 :format; - %tmp.122 = "%02d"; - %tmp.123 = invoke %tmp.120 %tmp.121(%tmp.122); - %tmp.124 = ":"; - %tmp.125 = add %tmp.123 %tmp.124; - %tmp.126 = lgetv %date.1; - symbol [ date %tmp.126 44 42 46 ]; - symbol [ min %tmp.127 44 47 50 ]; - %tmp.127 = getv %tmp.126 :min; - symbol [ format %tmp.128 44 51 57 ]; - %tmp.128 = getv function %tmp.127 :format; - %tmp.129 = "%02d"; - %tmp.130 = invoke %tmp.127 %tmp.128(%tmp.129); - %tmp.131 = add %tmp.125 %tmp.130; - invoke %tmp.118 %tmp.119(%tmp.131); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 46 8 ] - symbol [ View %tmp.133 46 9 13 ]; - %tmp.133 = getv ? :View; - symbol [ findDrawableById %tmp.134 46 14 30 ]; - %tmp.134 = getv function %tmp.133 :findDrawableById; - %tmp.135 = "AmPm"; - %tmp.136 = invoke %tmp.133 %tmp.134(%tmp.135); - %tmp.137 = as %tmp.136 WatchUi.Text; - symbol [ WatchUi %tmp.137 46 42 49 ]; - symbol [ Text %tmp.137 46 50 54 ]; - symbol [ setText %tmp.138 46 56 63 ]; - %tmp.138 = getv function %tmp.137 :setText; - %tmp.139 = lgetv %ampm.5; - symbol [ ampm %tmp.139 46 64 68 ]; - invoke %tmp.137 %tmp.138(%tmp.139); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc" 51 8 ] - symbol [ View %tmp.141 51 8 12 ]; - %tmp.141 = getv ? :View; - symbol [ onUpdate %tmp.142 51 13 21 ]; - %tmp.142 = getv function %tmp.141 :onUpdate; - %tmp.143 = lgetv %dc; - symbol [ dc %tmp.143 51 22 24 ]; - invoke %tmp.141 %tmp.142(%tmp.143); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_TimeView_mc_28_40_52_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 57; @symbol_functiondef = [onHide,57,13,19]; ] - function onHide() as Void { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 61; @symbol_functiondef = [onExitSleep,61,13,24]; ] - function onExitSleep() as Void { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 66; @symbol_functiondef = [onEnterSleep,66,13,25]; ] - function onEnterSleep() as Void { - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\TimeView.mc"; @line = 1; ] - { -} diff --git a/bin/mir/source/Views/VibrationView.mir b/bin/mir/source/Views/VibrationView.mir deleted file mode 100644 index 28423fe..0000000 --- a/bin/mir/source/Views/VibrationView.mir +++ /dev/null @@ -1,246 +0,0 @@ -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [WatchUi,1,14,21]; ] -import Toybox.WatchUi; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [Graphics,2,14,22]; ] -import Toybox.Graphics; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [System,3,14,20]; ] -import Toybox.System; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Timer,4,14,19]; ] -import Toybox.Timer; -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 6; @symbol_classdef = [VibrationView,6,6,19]; @symbol_extends<0> = [WatchUi,6,28,35]; @symbol_extends<1> = [View,6,36,40]; ] -class VibrationView extends WatchUi.View { - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 6; ] - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 6; ] - static - { - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 8; @position = 16; @symbol_vardef = [_enabled,8,16,24]; ] - private - var _enabled; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 9; @position = 16; @symbol_vardef = [_closeTimer,9,16,27]; ] - private - var _closeTimer; - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 11; @symbol_functiondef = [initialize,11,13,23]; @symbol_param<0> = [enabled,11,24,31]; ] - function initialize(enabled) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_11_33_14_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 12 8 ] - symbol [ View %tmp.2 12 8 12 ]; - %tmp.2 = getv ? :View; - symbol [ initialize %tmp.3 12 13 23 ]; - %tmp.3 = getv function %tmp.2 :initialize; - invoke %tmp.2 %tmp.3(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 13 8 ] - %tmp.4 = lgetv %enabled; - symbol [ enabled %tmp.4 13 19 26 ]; - symbol [ _enabled ? 13 8 16 ]; - putv self :_enabled %tmp.4; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_11_33_14_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 16; @symbol_functiondef = [onShow,16,13,19]; ] - function onShow() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_16_30_19_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 17 8 ] - symbol [ Timer %tmp.3 17 26 31 ]; - %tmp.3 = getm $.Toybox.Timer; - symbol [ Timer %tmp.4 17 32 37 ]; - %tmp.4 = getv function ? %tmp.3 :Timer; - %tmp.1 = newc %tmp.4 (); - symbol [ _closeTimer ? 17 8 19 ]; - putv self :_closeTimer %tmp.1; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 18 8 ] - symbol [ _closeTimer %tmp.6 18 8 19 ]; - %tmp.6 = getv ? :_closeTimer; - symbol [ start %tmp.7 18 20 25 ]; - %tmp.7 = getv function %tmp.6 :start; - %tmp.8 = self; - symbol [ method %tmp.9 18 26 32 ]; - %tmp.9 = getv function %tmp.8 :method; - %tmp.11 = const :closeMessage; - symbol [ closeMessage %tmp.11 18 34 46 const ]; - %tmp.12 = invoke %tmp.8 %tmp.9(%tmp.11); - %tmp.13 = 1200; - %tmp.14 = false; - invoke %tmp.6 %tmp.7(%tmp.12, %tmp.13, %tmp.14); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_16_30_19_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 21; @symbol_functiondef = [onHide,21,13,19]; ] - function onHide() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_21_30_26_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 22 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_22_8_25_8_if_stmt: - symbol [ _closeTimer %tmp.2 22 12 23 ]; - %tmp.2 = getv ? :_closeTimer; - %tmp.3 = null; - %tmp.4 = ne %tmp.2 %tmp.3; - bf %tmp.4 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_22_8_25_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_22_8_25_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_22_33_25_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 23 12 ] - symbol [ _closeTimer %tmp.6 23 12 23 ]; - %tmp.6 = getv ? :_closeTimer; - %tmp.7 = as %tmp.6 { (!Null) }; - symbol [ stop %tmp.8 23 24 28 ]; - %tmp.8 = getv function %tmp.7 :stop; - invoke %tmp.7 %tmp.8(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 24 12 ] - %tmp.9 = null; - symbol [ _closeTimer ? 24 12 23 ]; - putv self :_closeTimer %tmp.9; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_22_33_25_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_22_8_25_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_22_8_25_8_if_end: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_21_30_26_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 28; @symbol_functiondef = [closeMessage,28,13,25]; ] - function closeMessage() as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_28_36_30_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 29 8 ] - symbol [ WatchUi %tmp.1 29 8 15 ]; - %tmp.1 = getm $.Toybox.WatchUi; - symbol [ popView %tmp.2 29 16 23 ]; - %tmp.2 = getv function %tmp.1 :popView; - symbol [ WatchUi %tmp.3 29 24 31 ]; - %tmp.3 = getm $.Toybox.WatchUi; - symbol [ SLIDE_IMMEDIATE %tmp.4 29 32 47 ]; - %tmp.4 = getv %tmp.3 :SLIDE_IMMEDIATE; - invoke %tmp.1 %tmp.2(%tmp.4); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_28_36_30_4_stop: - } - [ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 47; @symbol_functiondef = [onUpdate,47,13,21]; @symbol_param<0> = [dc,47,22,24]; @symbol_param<0>_type<0> = [Dc,47,28,30]; ] - function onUpdate(dc as Dc) as Void { -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_47_40_72_4_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 48 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_47_40_72_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_47_40_72_4_stop" ] - %width.1 = local; - symbol [ width %width.1 48 12 17 ]; - %tmp.1 = lgetv %dc; - symbol [ dc %tmp.1 48 20 22 ]; - symbol [ getWidth %tmp.2 48 23 31 ]; - %tmp.2 = getv function %tmp.1 :getWidth; - %tmp.3 = invoke %tmp.1 %tmp.2(); - lputv %width.1 %tmp.3; - symbol [ width %width.1 48 12 17 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 49 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_47_40_72_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_47_40_72_4_stop" ] - %height.2 = local; - symbol [ height %height.2 49 12 18 ]; - %tmp.4 = lgetv %dc; - symbol [ dc %tmp.4 49 21 23 ]; - symbol [ getHeight %tmp.5 49 24 33 ]; - %tmp.5 = getv function %tmp.4 :getHeight; - %tmp.6 = invoke %tmp.4 %tmp.5(); - lputv %height.2 %tmp.6; - symbol [ height %height.2 49 12 18 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 51 8 ] - [ "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_47_40_72_4_start" "C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_47_40_72_4_stop" ] - %text.3 = local; - symbol [ text %text.3 51 12 16 ]; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_51_19_51_47_begin: - symbol [ _enabled %tmp.8 51 19 27 ]; - %tmp.8 = getv ? :_enabled; - bf %tmp.8 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_51_19_51_47_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_51_19_51_47_true: - %tmp.9 = "Vibration ON"; - push %tmp.9; - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_51_19_51_47_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_51_19_51_47_else_false: - %tmp.10 = "Vibration OFF"; - push %tmp.10; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_51_19_51_47_end: - %tmp.11 = phi [%tmp.8 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_51_19_51_47_begin] [%tmp.9 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_51_19_51_47_true] [%tmp.10 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_51_19_51_47_else_false] [%tmp.11 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_51_19_51_47_end]; - lputv %text.3 %tmp.11; - symbol [ text %text.3 51 12 16 ]; -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 54 8 ] - %tmp.12 = lgetv %dc; - symbol [ dc %tmp.12 54 8 10 ]; - symbol [ setColor %tmp.13 54 11 19 ]; - %tmp.13 = getv function %tmp.12 :setColor; - symbol [ Graphics %tmp.14 54 20 28 ]; - %tmp.14 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.15 54 29 40 ]; - %tmp.15 = getv %tmp.14 :COLOR_BLACK; - symbol [ Graphics %tmp.16 54 42 50 ]; - %tmp.16 = getm $.Toybox.Graphics; - symbol [ COLOR_BLACK %tmp.17 54 51 62 ]; - %tmp.17 = getv %tmp.16 :COLOR_BLACK; - invoke %tmp.12 %tmp.13(%tmp.15, %tmp.17); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 55 8 ] - %tmp.18 = lgetv %dc; - symbol [ dc %tmp.18 55 8 10 ]; - symbol [ clear %tmp.19 55 11 16 ]; - %tmp.19 = getv function %tmp.18 :clear; - invoke %tmp.18 %tmp.19(); -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 58 8 ] -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_58_8_62_8_if_stmt: - symbol [ _enabled %tmp.21 58 12 20 ]; - %tmp.21 = getv ? :_enabled; - bf %tmp.21 @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_58_8_62_8_if_else_false; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_58_8_62_8_if_true: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_58_22_60_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 59 12 ] - %tmp.22 = lgetv %dc; - symbol [ dc %tmp.22 59 12 14 ]; - symbol [ setColor %tmp.23 59 15 23 ]; - %tmp.23 = getv function %tmp.22 :setColor; - symbol [ Graphics %tmp.24 59 24 32 ]; - %tmp.24 = getm $.Toybox.Graphics; - symbol [ COLOR_GREEN %tmp.25 59 33 44 ]; - %tmp.25 = getv %tmp.24 :COLOR_GREEN; - symbol [ Graphics %tmp.26 59 46 54 ]; - %tmp.26 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.27 59 55 72 ]; - %tmp.27 = getv %tmp.26 :COLOR_TRANSPARENT; - invoke %tmp.22 %tmp.23(%tmp.25, %tmp.27); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_58_22_60_8_stop: - goto @C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_58_8_62_8_if_end; -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_58_8_62_8_if_else_false: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_60_15_62_8_start: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 61 12 ] - %tmp.28 = lgetv %dc; - symbol [ dc %tmp.28 61 12 14 ]; - symbol [ setColor %tmp.29 61 15 23 ]; - %tmp.29 = getv function %tmp.28 :setColor; - symbol [ Graphics %tmp.30 61 24 32 ]; - %tmp.30 = getm $.Toybox.Graphics; - symbol [ COLOR_RED %tmp.31 61 33 42 ]; - %tmp.31 = getv %tmp.30 :COLOR_RED; - symbol [ Graphics %tmp.32 61 44 52 ]; - %tmp.32 = getm $.Toybox.Graphics; - symbol [ COLOR_TRANSPARENT %tmp.33 61 53 70 ]; - %tmp.33 = getv %tmp.32 :COLOR_TRANSPARENT; - invoke %tmp.28 %tmp.29(%tmp.31, %tmp.33); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_60_15_62_8_stop: -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_58_8_62_8_if_end: -[ "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc" 65 8 ] - %tmp.34 = lgetv %dc; - symbol [ dc %tmp.34 65 8 10 ]; - symbol [ drawText %tmp.35 65 11 19 ]; - %tmp.35 = getv function %tmp.34 :drawText; - %tmp.36 = lgetv %width.1; - symbol [ width %tmp.36 66 12 17 ]; - %tmp.37 = 2; - %tmp.38 = div %tmp.36 %tmp.37; - %tmp.39 = lgetv %height.2; - symbol [ height %tmp.39 67 12 18 ]; - %tmp.40 = 2; - %tmp.41 = div %tmp.39 %tmp.40; - %tmp.42 = 10; - %tmp.43 = sub %tmp.41 %tmp.42; - symbol [ Graphics %tmp.44 68 12 20 ]; - %tmp.44 = getm $.Toybox.Graphics; - symbol [ FONT_LARGE %tmp.45 68 21 31 ]; - %tmp.45 = getv %tmp.44 :FONT_LARGE; - %tmp.46 = lgetv %text.3; - symbol [ text %tmp.46 69 12 16 ]; - symbol [ Graphics %tmp.47 70 12 20 ]; - %tmp.47 = getm $.Toybox.Graphics; - symbol [ TEXT_JUSTIFY_CENTER %tmp.48 70 21 40 ]; - %tmp.48 = getv %tmp.47 :TEXT_JUSTIFY_CENTER; - invoke %tmp.34 %tmp.35(%tmp.38, %tmp.43, %tmp.45, %tmp.46, %tmp.48); -C__Users_Jack_Documents_GitHub_garmin_smartwatch_source_Views_VibrationView_mc_47_40_72_4_stop: - } -} -[ @file = "C:\Users\Jack\Documents\GitHub\garmin-smartwatch\source\Views\VibrationView.mc"; @line = 1; ] - { -} diff --git a/dashboard/Running analysis.pbix b/dashboard/Running analysis.pbix new file mode 100644 index 0000000..28e26a2 Binary files /dev/null and b/dashboard/Running analysis.pbix differ diff --git a/data/cardioActivities.csv b/data/cardioActivities.csv new file mode 100644 index 0000000..4d48eee --- /dev/null +++ b/data/cardioActivities.csv @@ -0,0 +1,511 @@ +Date,Activity Id,Type,Route Name,Distance (km),Duration,Average Pace,Average Speed (km/h),Calories Burned,Climb (m),Average Heart Rate (bpm),Friend's Tagged,Notes,GPX File +2018-11-11 14:05:12,c9627fed-14ac-47a2-bed3-2a2630c63c15,Running,,10.44,58:40,5:37,10.68,774.0,130,159.0,,,2018-11-11-140512.gpx +2018-11-09 15:02:35,be65818d-a801-4847-a43b-2acdf4dc70e7,Running,,12.84,1:14:12,5:47,10.39,954.0,168,159.0,,,2018-11-09-150235.gpx +2018-11-04 16:05:00,c09b2f92-f855-497c-b624-c196b3ef036c,Running,,13.01,1:15:16,5:47,10.37,967.0,171,155.0,,,2018-11-04-160500.gpx +2018-11-01 14:03:58,bc9b612d-3499-43ff-b82a-9b17b71b8a36,Running,,12.98,1:14:25,5:44,10.47,960.0,169,158.0,,,2018-11-01-140358.gpx +2018-10-27 17:01:36,972567b2-1b0e-437c-9e82-fef8078d6438,Running,,13.02,1:12:50,5:36,10.73,967.0,170,154.0,,,2018-10-27-170136.gpx +2018-10-19 17:52:32,fe2cb3fc-6330-40fa-8a92-0f86f4e72282,Running,,10.29,59:18,5:46,10.41,764.0,133,155.0,,,2018-10-19-175232.gpx +2018-10-14 17:28:56,96acedc9-d3d5-4aac-8df4-f549a6418c1d,Running,,12.93,1:10:16,5:26,11.04,953.0,159,158.0,,,2018-10-14-172856.gpx +2018-10-12 17:41:58,3c91092b-e6f3-4565-b540-6b6537358006,Running,,12.31,1:09:26,5:38,10.64,903.0,134,157.0,,,2018-10-12-174158.gpx +2018-10-06 16:45:02,4c163abe-3a57-42fd-b50b-7f365960cbd4,Cycling,,19.63,1:26:26,4:24,13.63,577.0,210,79.0,,,2018-10-06-164502.gpx +2018-09-30 16:52:34,70c7f2ba-f4cb-4403-a9e4-bf2c9b93bb05,Running,,12.97,1:13:56,5:42,10.52,964.0,171,156.0,,,2018-09-30-165234.gpx +2018-09-16 14:55:03,30aaa821-1d3a-4f2f-9688-8543cebbd6e8,Cycling,,32.61,1:55:15,3:32,16.98,830.0,462,118.0,,,2018-09-16-145503.gpx +2018-09-02 17:24:28,51781e97-560e-48d0-9522-44f303f9235f,Other,,17.65,1:01:28,3:29,17.23,1164.0,219,77.0,,,2018-09-02-172428.gpx +2018-09-01 17:06:15,2bd1841f-b428-4683-a41b-2bfb4be7e908,Cycling,,36.89,1:58:39,3:13,18.65,937.0,491,122.0,,,2018-09-01-170615.gpx +2018-08-28 18:44:33,c9a8e088-441d-4b3f-bfbc-287e87585ca7,Cycling,,28.17,1:27:07,3:06,19.4,685.0,400,111.0,,,2018-08-28-184433.gpx +2018-08-25 17:18:32,12723b6e-571b-4b68-be17-2c797982d3f9,Cycling,,19.41,1:11:33,3:41,16.28,536.0,199,124.0,,,2018-08-25-171832.gpx +2018-08-22 18:25:22,503a12b4-9a16-4c63-bbcd-be528ae0787a,Running,,4.38,33:55,7:45,7.75,334.0,60,138.0,,,2018-08-22-182522.gpx +2018-08-12 17:37:17,fa9f57d9-4995-4efe-9eb8-00983fde4486,Running,,22.09,2:13:22,6:02,9.94,1652.0,342,148.0,,,2018-08-12-173717.gpx +2018-08-08 18:44:59,dc1669de-2d66-4e14-a24f-ba0ed06d70a1,Running,,15.27,1:19:37,5:13,11.51,1143.0,241,150.0,,,2018-08-08-184459.gpx +2018-08-05 10:17:10,d4a6b5b2-2dba-464a-a26e-eec0b67db077,Running,,18.7,1:49:19,5:51,10.26,1397.0,280,150.0,,,2018-08-05-101710.gpx +2018-08-01 18:20:26,03006a09-870b-4f15-bb6c-9b979793e75a,Running,,18.2,1:43:05,5:40,10.59,1355.0,259,145.0,,,2018-08-01-182026.gpx +2018-07-31 18:25:24,a929c543-bc2e-446d-9431-40e60fbc6270,Other,,16.8,1:07:21,4:01,14.97,1075.0,202,94.0,,,2018-07-31-182524.gpx +2018-07-30 18:18:47,6c6dd4aa-7567-40c7-8a8c-e6fc33cc80fb,Running,,17.87,1:44:00,5:49,10.31,1269.0,261,141.0,,TomTom MySports Watch,2018-07-30-181847.gpx +2018-07-27 11:43:03,eb6a80cb-bf87-4426-bc11-9610b7b70cba,Running,,12.71,1:14:51,5:53,10.19,893.0,180,145.0,,TomTom MySports Watch,2018-07-27-114303.gpx +2018-07-20 08:01:51,83e5d964-2630-475d-9c17-d906ddd59eb0,Running,,11.01,59:18,5:23,11.14,795.0,85,,,,2018-07-20-080151.gpx +2018-07-18 08:08:39,1906f2c4-e77e-4364-98f2-f4eb1d8c9960,Running,,11.04,55:41,5:03,11.9,801.0,87,,,,2018-07-18-080839.gpx +2018-07-13 17:43:20,324c89a8-c3c9-4576-867e-9038ba3fe761,Running,,17.96,1:41:36,5:40,10.6,1271.0,258,145.0,,TomTom MySports Watch,2018-07-13-174320.gpx +2018-07-07 16:02:30,4968a9c1-bc7a-4568-8394-815a406a6c86,Running,,17.85,1:37:40,5:28,10.97,1261.0,266,149.0,,TomTom MySports Watch,2018-07-07-160230.gpx +2018-07-03 18:00:05,e91eba7e-dd4c-4ae4-8909-c35dc6e2debb,Running,,18.75,1:41:30,5:25,11.08,1332.0,300,139.0,,TomTom MySports Watch,2018-07-03-180005.gpx +2018-06-28 12:24:25,8aa44a93-bf2a-449b-bee4-603135afec7b,Running,,17.95,1:36:59,5:24,11.1,1261.0,260,148.0,,TomTom MySports Watch,2018-06-28-122425.gpx +2018-06-25 18:11:12,4007c802-acff-47ad-a9b0-8403ef8d3def,Running,,18.72,1:39:27,5:19,11.3,1317.0,301,142.0,,TomTom MySports Watch,2018-06-25-181112.gpx +2018-06-21 18:03:18,71c6e320-9ca9-4504-9cd6-4e8636ce5018,Running,,14.38,1:15:59,5:17,11.36,1007.0,211,145.0,,TomTom MySports Watch,2018-06-21-180318.gpx +2018-06-18 18:17:49,874c8870-8621-4356-81fd-e309d38f714a,Running,,11.63,1:02:52,5:24,11.1,811.0,145,141.0,,TomTom MySports Watch,2018-06-18-181749.gpx +2018-06-16 17:29:00,b5c6d02f-8c7f-4359-8263-29a9ca658af1,Running,,14.95,1:19:03,5:17,11.35,1057.0,243,147.0,,TomTom MySports Watch,2018-06-16-172900.gpx +2018-06-13 18:50:49,2f10b609-c2ef-4d8d-90ad-bd49cec2c41b,Running,,12.75,1:07:30,5:18,11.34,890.0,173,147.0,,TomTom MySports Watch,2018-06-13-185049.gpx +2018-06-11 18:23:11,784ecb1a-3614-47e1-a0ba-651f29c98f4c,Running,,15.74,1:22:58,5:16,11.38,1101.0,209,147.0,,TomTom MySports Watch,2018-06-11-182311.gpx +2018-06-06 18:44:29,e65e79d8-d30e-4ec1-b15e-aa7c63385dc9,Running,,12.78,1:07:56,5:19,11.29,901.0,170,143.0,,TomTom MySports Watch,2018-06-06-184429.gpx +2018-06-03 17:21:51,7f80d0e7-d2b2-455a-99fd-baa10dabc2b7,Running,,17.58,1:33:29,5:19,11.28,1240.0,235,149.0,,TomTom MySports Watch,2018-06-03-172151.gpx +2018-05-30 18:48:00,568802c2-29e3-481d-abc6-a504ee825345,Running,,12.81,1:08:12,5:20,11.27,907.0,172,147.0,,TomTom MySports Watch,2018-05-30-184800.gpx +2018-05-27 17:31:09,14196951-8a86-40f1-a99b-a966d26bb616,Running,,21.73,2:03:22,5:41,10.57,1528.0,343,140.0,,TomTom MySports Watch,2018-05-27-173109.gpx +2018-05-23 18:13:17,75a8e0c9-98f5-4f1c-a72f-31eab419477d,Running,,15.59,1:20:32,5:10,11.62,1078.0,208,158.0,,TomTom MySports Watch,2018-05-23-181317.gpx +2018-05-21 18:29:35,5527e00c-758e-411c-87ae-21669adcbc7c,Running,,12.79,1:07:03,5:15,11.44,899.0,168,144.0,,TomTom MySports Watch,2018-05-21-182935.gpx +2018-05-18 18:38:50,bfe5cada-e8c9-4e01-8a99-6baa5190d902,Running,,12.79,1:05:52,5:09,11.66,893.0,168,147.0,,TomTom MySports Watch,2018-05-18-183850.gpx +2018-05-15 18:56:19,775b794a-fde4-485c-a200-112a5d325a27,Running,,12.8,1:05:52,5:09,11.66,889.0,167,148.0,,TomTom MySports Watch,2018-05-15-185619.gpx +2018-05-09 18:03:20,90b07c52-c7e6-4458-a73f-7278beedde39,Running,,12.76,1:08:31,5:22,11.18,892.0,170,143.0,,TomTom MySports Watch,2018-05-09-180320.gpx +2018-05-05 11:43:10,daf91acd-00ea-4e13-b49b-11aba2980590,Running,,15.38,1:30:56,5:55,10.15,1098.0,234,152.0,,TomTom MySports Watch,2018-05-05-114310.gpx +2018-05-02 18:22:09,f99fd0ac-163d-4752-ba14-28f9f4361a63,Running,,12.77,1:07:59,5:19,11.27,894.0,174,147.0,,TomTom MySports Watch,2018-05-02-182209.gpx +2018-04-29 16:53:30,58da30d2-6e3c-44d2-849e-6530743419e4,Running,,15.0,1:25:03,5:40,10.58,1061.0,245,149.0,,TomTom MySports Watch,2018-04-29-165330.gpx +2018-04-24 18:17:23,0e04a385-bc28-416d-b173-d37feb3df7c7,Running,,12.84,1:08:48,5:22,11.2,902.0,171,143.0,,TomTom MySports Watch,2018-04-24-181723.gpx +2018-04-21 18:18:13,e870e465-ae64-405f-b05f-f3d7737b5347,Running,,12.7,1:07:12,5:18,11.34,893.0,171,148.0,,TomTom MySports Watch,2018-04-21-181813.gpx +2018-04-18 18:16:49,f66c27e3-a1c7-45c2-baa4-d2e583522c18,Running,,12.84,1:06:56,5:13,11.51,901.0,172,146.0,,TomTom MySports Watch,2018-04-18-181649.gpx +2018-04-15 11:32:26,13b1f4bc-9d04-448b-9b0b-44d340c3b47c,Running,,12.76,1:07:57,5:20,11.26,892.0,169,154.0,,TomTom MySports Watch,2018-04-15-113226.gpx +2018-04-13 18:37:12,911b312b-cf1d-499d-bb46-cdeb31da9c9e,Running,,12.9,1:07:47,5:15,11.42,908.0,169,147.0,,TomTom MySports Watch,2018-04-13-183712.gpx +2018-04-11 18:17:35,5581c2b2-e254-46f8-99b0-388913baf5cf,Running,,12.82,1:07:10,5:14,11.45,892.0,173,147.0,,TomTom MySports Watch,2018-04-11-181735.gpx +2018-04-08 11:41:49,cfddcad3-7551-4944-b218-06b28149ac54,Running,,16.48,1:31:35,5:33,10.8,1158.0,236,164.0,,TomTom MySports Watch,2018-04-08-114149.gpx +2018-04-06 18:01:30,eaaf724a-d9fd-4937-8aaa-9e6445aaaad5,Running,,12.75,1:10:54,5:34,10.79,900.0,170,154.0,,TomTom MySports Watch,2018-04-06-180130.gpx +2018-04-03 18:43:05,dff3a1e2-ba08-4694-95dd-00acd3f1bf76,Running,,8.32,46:53,5:38,10.65,582.0,135,143.0,,TomTom MySports Watch,2018-04-03-184305.gpx +2018-03-26 18:33:12,e92b419b-61ee-45d6-9264-2f47e70f6d85,Running,,11.82,1:05:28,5:32,10.83,841.0,202,150.0,,TomTom MySports Watch,2018-03-26-183312.gpx +2018-03-21 18:57:05,98b6e3aa-d64a-4aa1-96e2-4b27cc428ba9,Running,,6.4,37:41,5:53,10.19,458.0,116,137.0,,TomTom MySports Watch,2018-03-21-185705.gpx +2018-03-18 18:14:45,a3e837f5-c99e-4ea1-9e51-b8a9b0a2544f,Running,,10.36,1:00:17,5:49,10.31,738.0,188,147.0,,TomTom MySports Watch,2018-03-18-181445.gpx +2018-03-15 18:31:35,462e7678-375e-4b97-bef4-95596625b711,Running,,10.15,58:40,5:47,10.38,719.0,182,149.0,,TomTom MySports Watch,2018-03-15-183135.gpx +2018-02-19 18:28:16,f37df89c-b59a-406a-a509-3ee09f080aa6,Running,,10.42,1:00:10,5:46,10.39,742.0,174,143.0,,TomTom MySports Watch,2018-02-19-182816.gpx +2018-02-15 19:11:33,dd258b46-8c3b-429a-9884-c38d29f1a77d,Running,,10.27,1:00:19,5:52,10.22,730.0,174,146.0,,TomTom MySports Watch,2018-02-15-191133.gpx +2018-02-13 18:27:44,cd9359da-2c5b-4c41-ac83-b4c237a85701,Running,,10.6,1:01:20,5:47,10.37,750.0,179,146.0,,TomTom MySports Watch,2018-02-13-182744.gpx +2018-02-04 17:47:37,e8203d40-8298-4484-9380-617d6b0d3aa5,Running,,10.08,58:57,5:51,10.26,713.0,175,141.0,,TomTom MySports Watch,2018-02-04-174737.gpx +2018-01-28 13:23:30,d1d36e85-9f28-4ab4-a4c2-60aea8f77490,Running,,13.0,1:13:42,5:40,10.59,910.0,174,152.0,,TomTom MySports Watch,2018-01-28-132330.gpx +2018-01-24 18:13:26,6d853ab2-e3c3-4206-af59-e22096f1b1d5,Running,,11.59,1:10:30,6:05,9.86,847.0,196,143.0,,TomTom MySports Watch,2018-01-24-181326.gpx +2018-01-21 11:46:12,2a24b579-7365-49da-a4e4-67c13d097e39,Running,,10.52,1:00:59,5:48,10.35,744.0,153,154.0,,TomTom MySports Watch,2018-01-21-114612.gpx +2018-01-14 12:48:41,039df468-14d0-4fdd-8496-c9f06f5a5d47,Running,,13.01,1:12:44,5:35,10.73,910.0,180,153.0,,TomTom MySports Watch,2018-01-14-124841.gpx +2018-01-08 18:25:42,2e4cf2f3-0bec-47fa-8890-86883953620a,Running,,10.64,1:03:43,5:59,10.02,769.0,182,140.0,,TomTom MySports Watch,2018-01-08-182542.gpx +2018-01-05 17:45:58,6344fc66-c0ec-47c5-bfae-c1d2b8d599c1,Running,,11.4,1:06:31,5:50,10.28,804.0,187,150.0,,TomTom MySports Watch,2018-01-05-174558.gpx +2018-01-02 17:41:34,04c2266b-0ff3-4789-9ebb-8e28d483a3bd,Running,,11.51,1:07:45,5:53,10.2,815.0,190,150.0,,TomTom MySports Watch,2018-01-02-174134.gpx +2017-12-30 17:11:53,bbfe7660-45db-4b6f-982f-11ca900db7e5,Running,,11.69,1:10:16,6:01,9.98,841.0,192,150.0,,TomTom MySports Watch,2017-12-30-171153.gpx +2017-12-27 18:50:24,c0706fc2-7192-4c28-b1f4-0553dc423ded,Running,,8.29,45:56,5:33,10.83,622.0,131,147.0,,TomTom MySports Watch,2017-12-27-185024.gpx +2017-12-04 18:14:41,45475dee-1fba-4bc5-bdf1-1ca458d0b20a,Running,,10.0,59:43,5:58,10.05,717.0,160,142.0,,TomTom MySports Watch,2017-12-04-181441.gpx +2017-11-25 12:17:22,402c9db6-fae4-43fe-b98b-92d474872f81,Running,,12.85,1:10:04,5:27,11.0,899.0,176,157.0,,TomTom MySports Watch,2017-11-25-121722.gpx +2017-11-22 18:21:12,bae73a36-cb24-4137-96c2-156e569cd015,Running,,7.55,43:29,5:46,10.42,534.0,129,140.0,,TomTom MySports Watch,2017-11-22-182112.gpx +2017-11-15 18:06:19,80ef1296-34ab-4880-af73-f7d9c8814b27,Running,,10.42,1:03:00,6:03,9.93,748.0,159,139.0,,TomTom MySports Watch,2017-11-15-180619.gpx +2017-11-09 18:39:48,3f5756f2-b3dc-4aa7-acc3-e38d7fa8e546,Running,,9.2,53:40,5:50,10.29,656.0,155,155.0,,TomTom MySports Watch,2017-11-09-183948.gpx +2017-11-05 15:48:01,b2fcf898-872d-48ea-8d29-29e11191c5cf,Running,,12.78,1:10:36,5:31,10.86,897.0,172,154.0,,TomTom MySports Watch,2017-11-05-154801.gpx +2017-10-28 16:07:20,88c26827-340d-4ef9-ba4e-e3fe1fdf6da4,Running,,12.87,1:11:13,5:32,10.84,895.0,170,148.0,,TomTom MySports Watch,2017-10-28-160720.gpx +2017-10-19 18:22:10,85c4573b-109d-404a-a3ba-a0d62bdb9ffc,Running,,8.85,50:41,5:44,10.47,624.0,144,140.0,,TomTom MySports Watch,2017-10-19-182210.gpx +2017-10-16 17:09:27,4d1cf5d9-cfc2-4020-892c-2deee6d125ed,Running,,14.9,1:22:16,5:31,10.86,1045.0,215,146.0,,TomTom MySports Watch,2017-10-16-170927.gpx +2017-10-10 18:24:47,a734675d-6dca-437e-8bbe-0aaec901a5f2,Running,,8.04,43:22,5:24,11.13,570.0,126,146.0,,TomTom MySports Watch,2017-10-10-182447.gpx +2017-10-07 16:29:17,8c38fe9f-c35b-416f-b77a-038777036e03,Running,,18.67,1:48:11,5:48,10.36,1327.0,297,143.0,,TomTom MySports Watch,2017-10-07-162917.gpx +2017-10-01 17:55:38,83409eae-5b76-47b8-89f0-db1e04801fc9,Running,,12.76,1:11:15,5:35,10.74,886.0,174,144.0,,TomTom MySports Watch,2017-10-01-175538.gpx +2017-09-28 18:20:48,acb25a0d-251b-4d39-86cd-63d49110d02e,Running,,12.77,1:07:38,5:18,11.33,897.0,171,143.0,,TomTom MySports Watch,2017-09-28-182048.gpx +2017-09-25 18:39:09,685a3715-03e9-42ad-af5f-4d08ae973c14,Running,,12.75,1:06:43,5:14,11.46,896.0,169,148.0,,TomTom MySports Watch,2017-09-25-183909.gpx +2017-09-22 12:27:14,4817879b-dedb-4b3d-a2e8-92d41757ccea,Cycling,,49.18,2:42:32,3:18,18.15,852.0,367,,,,2017-09-22-122714.gpx +2017-09-19 16:24:08,01fad411-6664-4cda-826c-044d3ad9e2bf,Running,,17.77,1:39:39,5:36,10.7,1247.0,257,139.0,,TomTom MySports Watch,2017-09-19-162408.gpx +2017-09-16 17:26:25,2fe19360-3ce6-4740-8d45-5fe77b21df75,Running,,18.6,1:43:09,5:33,10.82,1305.0,313,138.0,,TomTom MySports Watch,2017-09-16-172625.gpx +2017-09-10 16:57:56,fac04b5b-6fc2-45fc-bc29-63fa4eb77569,Running,,23.64,2:16:31,5:47,10.39,1682.0,394,142.0,,TomTom MySports Watch,2017-09-10-165756.gpx +2017-09-07 18:44:44,c95ca273-6089-4f22-9292-b22e3c0a89a1,Running,,8.5,44:32,5:14,11.45,603.0,88,141.0,,TomTom MySports Watch,2017-09-07-184444.gpx +2017-09-05 18:34:21,5fb52c7a-0331-4382-9636-b9fca42a797f,Running,,12.77,1:06:15,5:11,11.56,896.0,127,152.0,,TomTom MySports Watch,2017-09-05-183421.gpx +2017-09-03 17:20:20,861a0fed-e63d-415e-9193-b5815e65ff9f,Running,,23.8,2:11:00,5:30,10.9,1669.0,384,151.0,,TomTom MySports Watch,2017-09-03-172020.gpx +2017-08-31 18:44:27,51fb7201-2bba-4611-b2af-6530343ebc88,Running,,12.79,1:06:39,5:13,11.51,895.0,169,142.0,,TomTom MySports Watch,2017-08-31-184427.gpx +2017-08-29 18:36:14,e7a75592-c649-4c99-96be-ec52d555beca,Running,,12.7,1:07:42,5:20,11.25,901.0,127,147.0,,TomTom MySports Watch,2017-08-29-183614.gpx +2017-08-19 18:01:57,6e8cc448-7326-4986-b175-4a9341ec5d30,Running,,23.62,2:17:14,5:49,10.33,1667.0,377,138.0,,TomTom MySports Watch,2017-08-19-180157.gpx +2017-08-17 18:36:00,3c980f93-7aa1-477c-9f90-72ca01552031,Cycling,,15.53,40:04,2:35,23.25,380.0,164,138.0,,TomTom MySports Watch,2017-08-17-183600.gpx +2017-08-16 19:00:40,3522a99f-e715-4a5b-93fe-a681bdef0ea1,Running,,12.79,1:07:40,5:17,11.34,896.0,170,148.0,,TomTom MySports Watch,2017-08-16-190040.gpx +2017-08-14 18:01:38,e3f350ab-c7fa-42dd-8ccc-22162be34ab7,Running,,12.77,1:08:40,5:23,11.16,893.0,171,142.0,,TomTom MySports Watch,2017-08-14-180138.gpx +2017-08-10 18:28:54,7b11bced-0b12-4e02-9717-09587f4c715f,Running,,8.43,43:48,5:12,11.54,596.0,86,147.0,,TomTom MySports Watch,2017-08-10-182854.gpx +2017-08-08 18:39:14,d5f7dd47-f709-437c-ac71-30e87ce7e7ab,Running,,12.56,59:37,4:45,12.64,849.0,121,158.0,,TomTom MySports Watch,2017-08-08-183914.gpx +2017-08-05 17:14:00,57990ccc-1fc5-41b0-bc71-8b28ddf0d1b0,Running,,18.6,1:44:22,5:37,10.69,1398.0,295,142.0,,,2017-08-05-171400.gpx +2017-08-01 18:39:42,f116bf61-c409-448a-b80d-35de131c5afd,Running,,8.4,42:50,5:06,11.77,589.0,83,156.0,,TomTom MySports Watch,2017-08-01-183942.gpx +2017-07-30 17:24:23,13415fa0-b417-4681-969c-bcc5bc62882b,Running,,18.58,1:45:15,5:40,10.59,1312.0,307,145.0,,TomTom MySports Watch,2017-07-30-172423.gpx +2017-07-23 17:14:16,a93a029b-ba9f-46c3-acb5-1bfbb75257b2,Running,,18.71,1:39:26,5:19,11.29,1308.0,298,144.0,,TomTom MySports Watch,2017-07-23-171416.gpx +2017-07-19 18:50:31,ebe894be-7567-4b56-91ab-164554e20357,Running,,12.8,1:08:04,5:19,11.28,891.0,170,143.0,,TomTom MySports Watch,2017-07-19-185031.gpx +2017-07-16 10:34:21,20b3b267-b9a2-4c64-89a3-3ba0463b582c,Running,,18.54,1:44:22,5:38,10.66,1302.0,295,142.0,,TomTom MySports Watch,2017-07-16-103421.gpx +2017-07-10 18:26:02,8087a508-a36b-4bbd-bca3-cb458f855e9c,Running,,12.6,1:04:42,5:08,11.68,880.0,124,155.0,,TomTom MySports Watch,2017-07-10-182602.gpx +2017-07-08 16:26:43,ad867d0a-2a2b-4358-9a7a-65c2e098e8e6,Running,,23.59,2:13:08,5:39,10.63,1668.0,390,143.0,,TomTom MySports Watch,2017-07-08-162643.gpx +2017-07-05 18:53:40,2301d707-d4e3-461d-b6af-5ffff1b77dbf,Running,,12.78,1:07:52,5:19,11.3,875.0,173,140.0,,TomTom MySports Watch,2017-07-05-185340.gpx +2017-07-02 18:34:53,67d8bff0-657c-46ce-aa3a-4c6533e2f883,Running,,10.25,58:05,5:40,10.59,714.0,130,138.0,,TomTom MySports Watch,2017-07-02-183453.gpx +2017-07-02 17:15:47,f6e2f233-cf73-4d68-9938-52231df7c56a,Running,,13.39,1:16:21,5:42,10.52,938.0,248,136.0,,TomTom MySports Watch,2017-07-02-171547.gpx +2017-06-28 18:24:55,242d25a7-3f50-4e56-a351-59cbcf3f25fc,Running,,12.7,1:07:16,5:18,11.33,883.0,171,147.0,,TomTom MySports Watch,2017-06-28-182455.gpx +2017-06-25 15:57:36,7b4de242-4cb7-4962-8ec3-c0cbc71fb9b7,Running,,21.27,2:04:36,5:51,10.24,1518.0,340,145.0,,TomTom MySports Watch,2017-06-25-155736.gpx +2017-06-21 18:42:29,1a03076f-c730-4d45-8415-b0fe189cc672,Running,,12.72,1:09:23,5:27,11.0,885.0,175,139.0,,TomTom MySports Watch,2017-06-21-184229.gpx +2017-06-17 10:13:45,d4fccef8-c615-43a8-bf27-fa75bb200d13,Running,,14.87,1:25:46,5:46,10.41,1048.0,247,143.0,,TomTom MySports Watch,2017-06-17-101345.gpx +2017-06-15 18:54:32,86cdd8ff-11c5-4c6a-b221-3e65a88cc136,Running,,12.8,1:06:15,5:10,11.59,901.0,128,147.0,,TomTom MySports Watch,2017-06-15-185432.gpx +2017-06-12 18:25:58,ba13aabc-d722-4803-9c1f-4e5043ecced6,Running,,12.67,1:05:58,5:12,11.53,893.0,128,148.0,,TomTom MySports Watch,2017-06-12-182558.gpx +2017-06-04 16:01:52,f607c11e-85ad-492d-9cd3-df2f41d60c24,Running,,21.02,2:02:14,5:49,10.32,1482.0,330,138.0,,TomTom MySports Watch,2017-06-04-160152.gpx +2017-06-01 19:00:16,7937624f-091c-4ba4-933f-15c22bf65c4a,Running,,8.65,45:28,5:15,11.41,612.0,88,143.0,,TomTom MySports Watch,2017-06-01-190016.gpx +2017-05-30 18:19:20,58569994-61c8-400c-a647-114e161ff8df,Running,,8.42,42:48,5:05,11.8,584.0,85,154.0,,TomTom MySports Watch,2017-05-30-181920.gpx +2017-05-28 16:42:07,524ed1b8-7056-4455-be45-331b472c21f7,Running,,21.11,1:58:50,5:38,10.66,1477.0,337,143.0,,TomTom MySports Watch,2017-05-28-164207.gpx +2017-05-24 18:23:30,719a8602-3d87-471a-b74b-0621ea4c813d,Running,,12.74,1:09:47,5:29,10.95,892.0,171,140.0,,TomTom MySports Watch,2017-05-24-182330.gpx +2017-05-21 12:18:56,88ada870-907d-43d0-9a5a-bc92c8c6b97b,Running,,22.07,2:06:18,5:43,10.48,1569.0,354,146.0,,TomTom MySports Watch,2017-05-21-121856.gpx +2017-05-17 18:18:34,f53266a4-2f39-4c18-ad50-6fd60ab34285,Running,,13.82,1:10:59,5:08,11.68,1000.0,128,,,,2017-05-17-181834.gpx +2017-05-15 18:25:55,8eef0492-ce75-4cd5-8de5-f94bb69ef4dc,Running,,16.83,1:24:48,5:02,11.91,1177.0,167,151.0,,TomTom MySports Watch,2017-05-15-182555.gpx +2017-05-10 18:40:04,0edf90b1-2417-413a-96b6-368d01df8677,Running,,8.53,43:24,5:05,11.79,595.0,87,146.0,,TomTom MySports Watch,2017-05-10-184004.gpx +2017-05-03 18:32:01,f5dd15c6-ffbd-48e5-aa1c-3777ed5a97c7,Running,,12.43,1:04:04,5:09,11.64,865.0,125,151.0,,TomTom MySports Watch,2017-05-03-183201.gpx +2017-05-01 17:38:35,9a5c1022-08f3-4c9b-9cc5-492d4d7178f9,Cycling,,20.19,54:29,2:42,22.24,491.0,204,135.0,,TomTom MySports Watch,2017-05-01-173835.gpx +2017-04-29 17:05:47,0c00d186-32b8-43ff-ad2b-a982a535e270,Running,,21.18,2:02:14,5:46,10.39,1504.0,343,142.0,,TomTom MySports Watch,2017-04-29-170547.gpx +2017-04-25 18:44:32,51eb30dc-bc11-4296-bb7d-d40c83c60319,Running,,8.68,44:46,5:09,11.63,606.0,86,150.0,,TomTom MySports Watch,2017-04-25-184432.gpx +2017-04-23 11:50:12,943aff3a-a7a5-49c6-a179-5d5111600f01,Running,Two roads - Irpin,19.27,1:50:24,5:44,10.47,1450.0,305,149.0,,TomTom MySports Watch,2017-04-23-115012.gpx +2017-04-17 16:20:08,51ab838c-9266-436d-b26a-eb6b0d7c0fa5,Running,,15.0,1:21:03,5:24,11.1,1060.0,222,147.0,,TomTom MySports Watch,2017-04-17-162008.gpx +2017-04-13 19:04:16,48ea0a3a-4a02-4ee9-b310-8a367fd4e59d,Running,,8.58,46:21,5:24,11.1,603.0,88,145.0,,TomTom MySports Watch,2017-04-13-190416.gpx +2017-04-10 18:46:56,7263bbb0-934f-47a7-9d9e-f0a0816286be,Running,,12.72,1:07:05,5:16,11.38,908.9999994764161,122,146.0,,TomTom MySports Watch,2017-04-10-184656.gpx +2017-04-06 19:07:46,344ece5a-187e-418e-9287-0e8a11a07643,Running,,8.65,42:24,4:54,12.25,594.99999965728,87,156.0,,TomTom MySports Watch,2017-04-06-190746.gpx +2017-04-04 18:31:11,6b2ca811-ca43-42ed-9b08-8752d2ddac50,Running,,8.61,45:58,5:20,11.24,612.999999646912,89,143.0,,TomTom MySports Watch,2017-04-04-183111.gpx +2017-04-01 16:56:53,410ddb93-7109-4248-9ca6-86da1fdd311b,Running,,13.53,1:14:46,5:32,10.86,955.999999449344,196,146.0,,TomTom MySports Watch,2017-04-01-165653.gpx +2017-03-30 19:06:29,9a3ec53a-d6f2-4ba7-87e1-085edf2a8064,Running,,8.48,46:53,5:32,10.85,606.999999650368,90,143.0,,TomTom MySports Watch,2017-03-30-190629.gpx +2017-03-28 19:13:23,0b6616e6-be34-4950-b04e-11f0deeca9ab,Running,,8.65,45:24,5:15,11.43,611.999999647488,88,152.0,,TomTom MySports Watch,2017-03-28-191323.gpx +2017-03-26 17:10:40,2c90030a-14cb-46e6-8152-646bccabe3b5,Running,,14.62,1:21:54,5:36,10.71,1062.0,149,,,,2017-03-26-171040.gpx +2017-03-20 18:44:13,f7461f26-c148-430d-be37-c1ede0e57ec5,Running,,14.42,1:18:40,5:27,11.0,1017.9999994136301,99,148.0,,TomTom MySports Watch,2017-03-20-184413.gpx +2017-03-16 18:21:05,02eff545-2173-439c-afc3-d446e5802528,Running,,6.8,36:18,5:20,11.24,489.9999997177599,67,151.0,,TomTom MySports Watch,2017-03-16-182105.gpx +2017-03-13 18:34:11,a286c0fa-6876-491b-854a-c6d8813b4237,Running,,12.06,1:07:14,5:34,10.77,839.99999951616,113,143.0,,TomTom MySports Watch,2017-03-13-183411.gpx +2017-03-09 18:20:43,cfdbf8c5-6f66-4de4-af0b-afc5f5a8ab28,Running,,9.52,54:28,5:43,10.49,675.9999996106241,81,139.0,,TomTom MySports Watch,2017-03-09-182043.gpx +2017-02-27 18:57:30,853911d0-7a12-456d-8e72-974a8e3782e5,Running,,11.02,59:26,5:24,11.12,790.999999544384,102,150.0,,TomTom MySports Watch,2017-02-27-185730.gpx +2017-02-23 18:39:15,97b7530f-7db6-421e-95a4-6055cf6834df,Running,,8.8,50:57,5:47,10.37,617.999999644032,85,139.0,,TomTom MySports Watch,2017-02-23-183915.gpx +2017-02-21 19:16:07,37a6dd24-87a6-4ec7-8df2-bed0faddf4c8,Running,,7.4,41:20,5:35,10.75,521.999999699328,82,140.0,,TomTom MySports Watch,2017-02-21-191607.gpx +2017-02-13 18:42:55,a95379e3-8981-4309-9c3e-3f4397bf432d,Running,,9.78,56:19,5:45,10.42,691.9999996014079,78,146.0,,TomTom MySports Watch,2017-02-13-184255.gpx +2017-02-06 18:45:01,a3b20f84-2a41-4d82-ba64-ba5ae415d5a1,Running,,9.79,58:23,5:58,10.07,716.999999587008,76,145.0,,TomTom MySports Watch,2017-02-06-184501.gpx +2017-01-30 18:43:33,dcf483e9-421e-42b6-b116-884c794f5366,Running,,6.98,37:28,5:22,11.18,496.999999713728,66,143.0,,TomTom MySports Watch,2017-01-30-184333.gpx +2017-01-26 18:47:36,d61065b6-749d-46bf-a680-6ebb7067620c,Running,,8.3,44:30,5:22,11.19,585.999999662464,74,144.0,,TomTom MySports Watch,2017-01-26-184736.gpx +2017-01-23 18:39:10,9a35d26a-e947-4374-b411-a28c07f0b153,Running,,11.98,1:07:49,5:40,10.6,849.9999995103999,100,150.0,,TomTom MySports Watch,2017-01-23-183910.gpx +2017-01-19 18:10:00,e3e565d9-b63b-4a12-9704-b3daef064784,Running,,7.43,41:36,5:36,10.72,517.999999701632,51,132.0,,TomTom MySports Watch,2017-01-19-181000.gpx +2017-01-16 18:04:30,5847c202-4eb8-4416-b641-530232791775,Running,,12.15,1:08:32,5:38,10.64,849.9999995103999,99,143.0,,TomTom MySports Watch,2017-01-16-180430.gpx +2017-01-12 18:19:37,1a0c5ffe-b6ef-4c05-8126-acd92ab1b5a6,Running,,12.0,1:08:08,5:41,10.57,859.9999995046401,100,148.0,,TomTom MySports Watch,2017-01-12-181937.gpx +2017-01-05 18:15:10,e6f58116-e2c7-4f3a-848e-0529635f8bb3,Running,,7.02,39:42,5:39,10.61,492.99999971603205,68,143.0,,TomTom MySports Watch,2017-01-05-181510.gpx +2017-01-03 18:26:07,2e8b8cba-c1b5-4837-a124-9b8a30cc5ff9,Running,,10.05,57:27,5:43,10.49,699.9999995968,93,143.0,,TomTom MySports Watch,2017-01-03-182607.gpx +2016-12-29 19:08:37,85115e40-2460-4043-ab77-9c48ad4e1aa3,Running,,7.0,39:48,5:41,10.55,490.999999717184,67,113.0,,TomTom MySports Watch,2016-12-29-190837.gpx +2016-12-26 18:37:08,8f84f8fd-d26f-46d9-91bc-9ee4ddb6b2a8,Running,,6.92,39:42,5:44,10.45,478.99999972409597,67,139.0,,TomTom MySports Watch,2016-12-26-183708.gpx +2016-12-22 18:43:38,94105764-bf26-4123-b199-f4efef9c9959,Running,,6.9,38:28,5:35,10.76,481.999999722368,64,137.0,,TomTom MySports Watch,2016-12-22-184338.gpx +2016-12-15 18:53:07,ad7aec27-c204-403a-aa08-5f4068d5b239,Running,,6.85,37:44,5:30,10.9,486.999999719488,67,140.0,,TomTom MySports Watch,2016-12-15-185307.gpx +2016-12-06 18:36:37,159d92f4-c96b-43ea-88a3-8f1060d170ed,Running,,6.99,41:34,5:57,10.08,499.999999712,49,139.0,,TomTom MySports Watch,2016-12-06-183637.gpx +2016-12-01 18:39:39,5671ace7-1b97-4466-b4a3-e89a40588690,Running,,6.96,39:33,5:41,10.56,478.99999972409597,66,126.0,,TomTom MySports Watch,2016-12-01-183939.gpx +2016-11-28 18:46:07,f603036c-01a9-40dd-ae80-101e70056810,Running,,10.13,57:41,5:42,10.54,708.9999995916161,95,144.0,,TomTom MySports Watch,2016-11-28-184607.gpx +2016-11-24 18:50:24,1bfdff30-6f7f-4428-9316-3b6289bd57f3,Running,,6.73,36:01,5:21,11.21,470.999999728704,65,163.0,,TomTom MySports Watch,2016-11-24-185024.gpx +2016-11-21 18:57:32,dcb51374-c574-4fac-8f30-d2f2080368eb,Running,,10.05,56:45,5:39,10.63,703.999999594496,96,146.0,,TomTom MySports Watch,2016-11-21-185732.gpx +2016-11-17 18:52:21,56571fdf-a69d-4662-87f2-0a0cc0621d4e,Running,,6.95,40:32,5:50,10.28,493.999999715456,67,161.0,,TomTom MySports Watch,2016-11-17-185221.gpx +2016-11-15 18:27:55,89e8ac21-0c79-4251-9d0b-ddef7c7cb0f3,Running,,6.94,40:44,5:52,10.22,491.999999716608,66,134.0,,TomTom MySports Watch,2016-11-15-182755.gpx +2016-11-10 18:31:03,e29a6eb4-cd05-4dab-ac97-39ee3ecf0555,Running,,6.83,40:03,5:52,10.22,483.999999721216,67,134.0,,TomTom MySports Watch,2016-11-10-183103.gpx +2016-11-03 18:17:35,912e75d6-3060-44c9-b67a-b2510b1fad32,Running,,6.77,37:58,5:37,10.7,482.999999721792,64,142.0,,TomTom MySports Watch,2016-11-03-181735.gpx +2016-10-31 19:34:32,86ea4944-dc1b-4cc9-8e20-eb3a0267e3ff,Running,,10.15,56:36,5:35,10.76,700.999999596224,109,132.0,,TomTom MySports Watch,2016-10-31-193432.gpx +2016-10-27 19:17:55,f7222eab-f4cf-4f15-ab3e-fb6a723b1294,Running,,6.84,34:57,5:06,11.75,477.999999724672,75,146.0,,TomTom MySports Watch,2016-10-27-191755.gpx +2016-10-24 18:38:31,7d043cea-6c58-4e18-8d31-6ac3f1deb2a8,Running,,10.15,58:25,5:45,10.42,703.999999594496,92,139.0,,TomTom MySports Watch,2016-10-24-183831.gpx +2016-10-20 18:57:48,772cc020-ef53-429b-9ae7-43e8cc474d86,Running,,10.19,56:25,5:32,10.83,715.999999587584,89,148.0,,TomTom MySports Watch,2016-10-20-185748.gpx +2016-10-17 18:39:56,605ee6a1-3eba-4b09-8528-66f0a34368d5,Running,,10.02,55:56,5:35,10.75,712.999999589312,92,136.0,,TomTom MySports Watch,2016-10-17-183956.gpx +2016-10-15 17:14:34,467ce511-b823-4bf8-a6b8-3de45da696b9,Running,,13.49,1:14:11,5:30,10.91,942.9999994568319,182,143.0,,TomTom MySports Watch,2016-10-15-171434.gpx +2016-10-12 17:50:31,0762a080-72c1-4316-9af3-520de54776dd,Running,,9.77,52:12,5:21,11.22,700.0,57,,,,2016-10-12-175031.gpx +2016-10-03 11:47:16,d7f518d9-57aa-4c3f-b5d1-a3f758155737,Cycling,,23.62,1:12:42,3:05,19.5,606.0,301,126.0,,TomTom MySports Watch,2016-10-03-114716.gpx +2016-10-02 16:36:05,f9df1129-32bf-4ff8-93fa-8e2617617c37,Running,,13.43,1:12:20,5:23,11.14,945.9999994551041,184,141.0,,TomTom MySports Watch,2016-10-02-163605.gpx +2016-09-27 18:11:27,e47410e1-1a6c-428f-a03d-7f5c86a1e6e7,Running,,6.88,32:47,4:46,12.59,496.0,49,,,,2016-09-27-181127.gpx +2016-09-24 16:39:37,90d59463-bd07-4aa2-bf45-51c5cc985a1f,Running,,19.41,1:46:24,5:29,10.95,1344.9999992252801,320,140.0,,TomTom MySports Watch,2016-09-24-163937.gpx +2016-09-22 18:52:22,1454fad1-9940-448a-82fb-8ae9f3bf05e5,Running,,6.96,37:14,5:21,11.22,493.999999715456,63,135.0,,TomTom MySports Watch,2016-09-22-185222.gpx +2016-09-20 18:42:40,b6743512-8841-4278-9f54-8028ca96eae6,Running,,10.03,53:21,5:19,11.28,712.999999589312,89,139.0,,TomTom MySports Watch,2016-09-20-184240.gpx +2016-09-15 18:38:53,27a3ae81-deee-44f8-97ce-da1ed9d11ab6,Running,,10.0,47:55,4:47,12.52,673.9999996117759,91,150.0,,TomTom MySports Watch,2016-09-15-183853.gpx +2016-09-12 18:23:04,76fd4f11-78e0-4c31-a25f-4933c9163901,Running,,13.08,1:10:33,5:24,11.12,916.999999471808,116,141.0,,TomTom MySports Watch,2016-09-12-182304.gpx +2016-09-10 17:13:51,be77ab12-11b2-4604-828d-6ac7ee0b6c50,Cycling,,13.11,32:47,2:30,23.99,328.0,163,136.0,,TomTom MySports Watch,2016-09-10-171351.gpx +2016-09-08 18:19:56,8a409a09-8312-448c-b513-ea63a18cbca1,Running,,13.12,1:04:40,4:56,12.17,905.9999994781441,110,154.0,,TomTom MySports Watch,2016-09-08-181956.gpx +2016-09-04 17:08:28,cc9e2d95-fc5d-4633-9801-a6a92df8eebe,Cycling,,13.64,40:43,2:59,20.09,342.0,184,134.0,,TomTom MySports Watch,2016-09-04-170828.gpx +2016-09-03 17:28:11,9697ecb1-cfe8-454c-86c6-1def815159b2,Running,,13.5,1:17:44,5:46,10.42,948.9999994533761,184,138.0,,TomTom MySports Watch,2016-09-03-172811.gpx +2016-08-31 18:33:50,d2e170c7-70e0-430c-ad0a-185fc87a4dae,Running,,13.06,1:04:09,4:55,12.22,898.999999482176,107,152.0,,TomTom MySports Watch,2016-08-31-183350.gpx +2016-08-28 18:00:16,3054ec70-ce18-45a0-aaa3-badaa9d89711,Running,,12.05,1:07:14,5:35,10.76,834.9999995190401,172,143.0,,TomTom MySports Watch,2016-08-28-180016.gpx +2016-08-27 17:08:38,e3fc3373-0a83-4dba-8042-7eca0b3cf676,Cycling,,24.67,1:08:53,2:48,21.49,623.0,307,134.0,,TomTom MySports Watch,2016-08-27-170838.gpx +2016-08-24 17:26:00,81b6ef5d-8f11-4c2f-966d-d253706aa921,Running,,13.25,1:11:57,5:26,11.05,897.9999994827521,181,141.0,,TomTom MySports Watch,2016-08-24-172600.gpx +2016-08-22 18:14:48,ee6099f2-aa7e-4607-9934-829a12fd5224,Running,,10.06,51:20,5:06,11.76,716.0,58,,,,2016-08-22-181448.gpx +2016-08-20 15:43:49,d71c6646-114b-4fb9-a011-d195c560591b,Cycling,,31.48,1:29:50,2:51,21.03,740.0,553,138.0,,TomTom MySports Watch,2016-08-20-154349.gpx +2016-08-19 16:57:41,454b61da-b805-4a17-9a46-940c3607e8ee,Running,,13.43,1:14:24,5:32,10.83,904.9999994787199,185,150.0,,TomTom MySports Watch,2016-08-19-165741.gpx +2016-08-17 17:17:09,af644132-ea3f-4770-a8d3-703c17d6c858,Cycling,,21.82,1:22:34,3:47,15.86,533.0,316,122.0,,TomTom MySports Watch,2016-08-17-171709.gpx +2016-08-14 12:32:07,a871f64a-5aba-44ce-b166-f3b57c4406a6,Running,,21.16,2:04:44,5:54,10.18,1469.99999915328,351,149.0,,TomTom MySports Watch,2016-08-14-123207.gpx +2016-08-01 17:40:40,513f1448-16e1-4cc3-8f1f-71c02809d8c2,Running,,14.32,1:20:36,5:38,10.66,997.9999994251519,213,151.0,,TomTom MySports Watch,2016-08-01-174040.gpx +2016-07-24 17:13:38,34994797-0b06-484c-8a7a-ebd8760084a9,Running,,20.81,2:03:35,5:56,10.11,1435.99999917286,367,144.0,,TomTom MySports Watch,2016-07-24-171338.gpx +2016-07-18 18:28:47,d937fa3d-ace4-4083-abaa-ce450bf92ea9,Running,,10.01,50:49,5:05,11.82,682.999999606592,92,151.0,,TomTom MySports Watch,2016-07-18-182847.gpx +2016-07-16 17:27:12,5085cce1-bebb-48cb-8429-33ff77b6fdf3,Running,,22.06,2:08:28,5:49,10.3,1524.9999991216,354,143.0,,TomTom MySports Watch,2016-07-16-172712.gpx +2016-07-12 18:20:28,d1b3933f-2b58-4158-b2e7-b2385682da43,Running,,9.71,50:45,5:14,11.47,696.0,52,,,,2016-07-12-182028.gpx +2016-07-10 16:35:25,85014381-7900-49e2-88f0-42c75e0954c1,Running,,19.27,1:49:48,5:42,10.53,1323.99999923738,319,142.0,,TomTom MySports Watch,2016-07-10-163525.gpx +2016-07-04 18:24:46,b8d35359-b7ee-4270-bd59-0b108b86bafd,Running,,16.46,1:28:53,5:24,11.11,1139.99999934336,146,144.0,,TomTom MySports Watch,2016-07-04-182446.gpx +2016-07-02 17:52:07,04a5969e-40b1-45de-a8f4-79745c556c59,Running,,13.55,1:18:01,5:46,10.42,933.999999462016,189,137.0,,TomTom MySports Watch,2016-07-02-175207.gpx +2016-06-27 18:40:44,20ef6c75-37e5-48cc-ab4a-934347347632,Running,,13.28,1:12:43,5:29,10.96,903.999999479296,180,146.0,,TomTom MySports Watch,2016-06-27-184044.gpx +2016-06-25 17:02:44,c306e91d-482d-40b4-96f6-c6f2117eaab4,Running,,13.22,1:16:38,5:48,10.35,917.999999471232,226,142.0,,TomTom MySports Watch,2016-06-25-170244.gpx +2016-06-23 18:29:58,7bedfff1-e270-4ca6-9b34-61f3fc016487,Running,,10.02,51:35,5:09,11.65,719.0,60,,,"Very hot, up to 30+ +",2016-06-23-182958.gpx +2016-06-19 17:04:31,2c7b0c7c-1a8e-46d8-88f0-f52cde314a5d,Running,,18.59,1:49:24,5:53,10.19,1283.9999992604198,295,142.0,,TomTom MySports Watch,2016-06-19-170431.gpx +2016-06-14 18:40:51,86208dc5-01ec-4383-8284-89afd17ff565,Running,,13.21,1:08:35,5:11,11.56,904.9999994787199,119,155.0,,TomTom MySports Watch,2016-06-14-184051.gpx +2016-06-12 12:07:08,5ba46d07-d64a-4204-b64c-11b5fb095be6,Running,,19.89,1:45:59,5:20,11.26,1452.0,202,,,,2016-06-12-120708.gpx +2016-06-05 17:10:29,adb38948-116e-4000-9598-877aa7b718da,Running,,15.52,1:30:35,5:50,10.28,1073.99999938138,254,142.0,,TomTom MySports Watch,2016-06-05-171029.gpx +2016-06-02 18:43:44,7d056151-5c10-44c8-ad58-43bf7e1e6fe6,Running,,13.24,1:09:06,5:13,11.5,910.999999475264,117,145.0,,TomTom MySports Watch,2016-06-02-184344.gpx +2016-05-30 18:51:32,69ba4306-6177-4ef1-b3c6-cea3e9700116,Running,,10.03,52:02,5:11,11.57,685.999999604864,91,145.0,,TomTom MySports Watch,2016-05-30-185132.gpx +2016-05-26 18:30:37,e6a0852a-16ff-446c-b522-21c9489c07b7,Running,,12.88,1:08:16,5:18,11.32,892.999999485632,145,149.0,,TomTom MySports Watch,2016-05-26-183037.gpx +2016-05-23 18:26:58,bf304a1c-a01b-4ceb-9559-bde274612398,Running,,10.02,51:25,5:08,11.68,720.0,64,,,,2016-05-23-182658.gpx +2016-05-22 15:31:06,d6e2c045-ce5b-49be-846e-a59df6bd4f0d,Cycling,,39.62,1:48:59,2:45,21.81,877.0,319,,,,2016-05-22-153106.gpx +2016-05-19 18:54:07,fc27d591-a215-4c9b-b30d-22dc38a9293e,Running,,10.14,55:00,5:26,11.06,701.9999995956481,99,145.0,,TomTom MySports Watch,2016-05-19-185407.gpx +2016-05-09 16:46:49,6efb6c1b-fcb4-449c-be9b-6c70d6d0acab,Running,,13.5,1:15:04,5:34,10.79,920.9999994695039,181,147.0,,TomTom MySports Watch,2016-05-09-164649.gpx +2016-04-24 17:16:01,3c60a550-2443-4986-b9b8-666f29b2b367,Running,,12.85,1:16:56,5:59,10.02,902.999999479872,185,142.0,,TomTom MySports Watch,2016-04-24-171601.gpx +2016-04-17 16:20:56,5fe9a80e-d885-426e-816e-2d7aca6844ec,Running,,13.47,1:17:55,5:47,10.37,927.999999465472,180,140.0,,TomTom MySports Watch,2016-04-17-162056.gpx +2016-04-11 18:25:11,f5856eb2-a21b-4796-9b0c-b581bfb0f777,Running,,8.88,47:00,5:17,11.34,615.9999996451841,83,143.0,,TomTom MySports Watch,2016-04-11-182511.gpx +2016-04-07 18:50:38,f260fb9a-5017-40e2-af1d-77ff22e3c5f6,Running,,10.0,51:15,5:07,11.71,684.99999960544,92,145.0,,TomTom MySports Watch,2016-04-07-185038.gpx +2016-04-03 16:27:37,30839785-9325-435a-97d2-219039984113,Running,,10.3,58:59,5:44,10.47,705.999999593344,143,142.0,,TomTom MySports Watch,2016-04-03-162737.gpx +2016-03-28 16:12:15,bd2a55a4-2553-4007-808d-5456de4482c6,Running,,15.62,1:32:26,5:55,10.14,1084.99999937504,258,145.0,,TomTom MySports Watch,2016-03-28-161215.gpx +2016-03-21 18:51:35,63c7f05c-2285-489e-ae1e-af1b7ecce87c,Running,,9.1,51:25,5:39,10.62,625.999999639424,85,142.0,,TomTom MySports Watch,2016-03-21-185135.gpx +2016-03-13 13:02:38,c1105c54-b975-486c-8606-9e0a80994541,Running,,7.19,43:26,6:03,9.93,511.999999705088,111,136.0,,TomTom MySports Watch,2016-03-13-130238.gpx +2016-03-07 13:23:44,375d191f-2d90-4781-8223-a2a8146ca445,Running,,13.69,1:20:39,5:54,10.18,995.0,141,,,,2016-03-07-132344.gpx +2016-02-28 13:37:46,37908beb-2ae0-41e7-9554-3662d9beefec,Running,,13.48,1:19:28,5:54,10.18,941.999999457408,183,144.0,,TomTom MySports Watch,2016-02-28-133746.gpx +2016-02-21 15:48:48,ba4a23cd-25ef-43ea-84c4-fb8c3c1e3b57,Running,,13.69,1:22:23,6:01,9.97,997.0,144,,,"Cold and windy +",2016-02-21-154848.gpx +2016-02-18 19:09:01,6b831381-6425-4a66-ada4-7f57f013ea05,Running,,6.92,39:25,5:42,10.54,472.99999972755205,67,141.0,,TomTom MySports Watch,2016-02-18-190901.gpx +2016-02-15 18:37:04,c41ee42c-c911-4367-8594-e86cffbec427,Running,,10.02,1:00:08,6:00,10.0,702.999999595072,92,157.0,,TomTom MySports Watch,2016-02-15-183704.gpx +2016-02-08 18:09:03,09404e9f-88f0-4a78-8df8-e7a51c5246e0,Running,,6.81,41:18,6:04,9.89,488.999999718336,68,165.0,,TomTom MySports Watch,2016-02-08-180903.gpx +2016-02-04 18:46:32,baed89f0-0754-4b54-a5cb-7959c39459c0,Running,,6.84,40:02,5:51,10.25,477.999999724672,67,139.0,,TomTom MySports Watch,2016-02-04-184632.gpx +2016-01-14 18:40:08,f5f333b1-3453-4555-aafd-d19923d0b84e,Running,,7.0,41:18,5:54,10.17,486.999999719488,70,142.0,,TomTom MySports Watch,2016-01-14-184008.gpx +2015-12-27 13:14:59,7c59b1da-9dfd-43df-8170-a0bc4ad2bdb6,Running,,13.53,1:16:48,5:41,10.57,921.9999994689281,185,152.0,,TomTom MySports Watch,2015-12-27-131459.gpx +2015-12-23 18:45:03,49f7059a-97c3-499e-9f42-85df1506aa90,Running,,10.12,59:02,5:50,10.29,692.9999996008321,95,158.0,,TomTom MySports Watch,2015-12-23-184503.gpx +2015-12-21 18:31:25,620a65d8-185f-40f4-8967-9ce068f02269,Running,,10.02,57:55,5:47,10.38,686.9999996042881,91,138.0,,TomTom MySports Watch,2015-12-21-183125.gpx +2015-12-06 12:54:29,2c3636ee-cb13-4f41-80c7-2373427859ac,Running,,13.77,1:18:04,5:40,10.58,1009.0,146,,,,2015-12-06-125429.gpx +2015-11-17 18:37:11,5996f583-c53c-4ef3-867e-76db1c54dd6d,Running,,10.0,58:32,5:51,10.25,687.999999603712,93,140.0,,TomTom MySports Watch,2015-11-17-183711.gpx +2015-11-09 18:21:31,df774be0-d4a3-4104-a9e4-ee120e17bcba,Running,,9.72,55:01,5:40,10.6,658.999999620416,89,131.0,,TomTom MySports Watch,2015-11-09-182131.gpx +2015-11-02 18:23:37,bd307ec2-4c6d-4be5-b7d1-d15fb11a7b9d,Running,,6.6,36:15,5:30,10.92,455.99999973734396,62,145.0,,TomTom MySports Watch,2015-11-02-182337.gpx +2015-10-18 15:43:06,340e4fd4-6817-4a03-b1af-7c2deb9768ae,Cycling,,16.67,1:08:46,4:08,14.54,427.0,166,,,,2015-10-18-154306.gpx +2015-10-04 10:15:57,2ff0ef92-5476-4321-8f24-49a6b92433f3,Running,,38.32,4:28:19,7:00,8.57,2587.9999985093104,646,140.0,,TomTom MySports Watch,2015-10-04-101557.gpx +2015-09-28 18:21:21,16bb07d0-9417-428e-b30e-2e7286b2d25a,Running,,18.94,1:44:26,5:31,10.88,1300.99999925062,158,138.0,,TomTom MySports Watch,2015-09-28-182121.gpx +2015-09-24 18:28:14,949d5983-73ea-4a25-a589-87e0280b1b8e,Running,,9.43,51:16,5:26,11.03,649.9999996256,77,138.0,,TomTom MySports Watch,2015-09-24-182814.gpx +2015-09-21 18:13:10,fc1187a9-6b18-4f14-b37a-ecb82a51e9d6,Running,,9.65,46:56,4:52,12.33,635.9999996336641,83,153.0,,TomTom MySports Watch,2015-09-21-181310.gpx +2015-09-18 18:39:38,3273b8d6-96a2-4162-99d4-5277ebe826ce,Running,,22.15,2:01:30,5:29,10.94,1543.9999991106602,182,149.0,,TomTom MySports Watch,2015-09-18-183938.gpx +2015-09-16 17:59:37,249d96bc-0b86-4602-b6cf-6fa40cf5006f,Running,,19.35,1:46:38,5:31,10.89,1299.9999992512,303,146.0,,TomTom MySports Watch,2015-09-16-175937.gpx +2015-09-13 17:14:13,d9544e4a-4567-4a19-8bfe-4ef938d95a1c,Running,,23.95,2:23:03,5:58,10.04,1657.9999990449899,390,140.0,,TomTom MySports Watch,2015-09-13-171413.gpx +2015-09-09 18:37:26,1977cad0-afd4-450c-9355-8aeabae10a7c,Running,,15.88,1:24:05,5:18,11.33,1101.99999936525,132,145.0,,TomTom MySports Watch,2015-09-09-183726.gpx +2015-09-07 18:47:06,e005376b-b79c-45de-8b2e-a924dd9aa3d8,Running,,15.62,1:22:49,5:18,11.32,1069.99999938368,241,144.0,,TomTom MySports Watch,2015-09-07-184706.gpx +2015-09-03 18:49:40,773f4ab1-e42e-4acb-b9ee-3e21f2283849,Running,,9.55,53:21,5:35,10.74,653.9999996232959,85,127.0,,TomTom MySports Watch,2015-09-03-184940.gpx +2015-08-24 17:21:48,0730fe8a-08a3-4d22-9728-60bdccc06124,Running,,28.14,2:46:07,5:54,10.17,1971.99999886413,518,138.0,,TomTom MySports Watch,2015-08-24-172148.gpx +2015-08-23 17:35:47,9f29e8bd-7885-43f5-bc86-fae947a5ab8a,Cycling,,35.09,1:32:58,2:39,22.64,786.0,336,,,,2015-08-23-173547.gpx +2015-08-21 18:18:37,2909eefe-b2da-4fa1-9136-1b273cf0b70e,Running,,12.48,1:08:30,5:29,10.93,853.999999508096,102,151.0,,TomTom MySports Watch,2015-08-21-181837.gpx +2015-08-16 17:35:23,cb29be64-8750-4197-b7a7-21fb2c9f158d,Running,,26.01,2:33:13,5:54,10.18,1793.99999896666,436,136.0,,TomTom MySports Watch,2015-08-16-173523.gpx +2015-08-15 18:46:21,318bf8f5-6344-4f1e-8fb8-f52d7a38ebc1,Cycling,,13.72,38:39,2:49,21.3,313.0,139,,,,2015-08-15-184621.gpx +2015-08-14 17:44:35,c749a53c-be67-496f-8626-fb438382aab8,Running,,19.04,1:52:10,5:54,10.18,1315.99999924198,301,130.0,,TomTom MySports Watch,2015-08-14-174435.gpx +2015-08-09 16:29:48,632b4c1e-96ce-4e45-9d8e-945b64c8d912,Running,,18.58,1:48:49,5:51,10.25,1278.9999992633,285,138.0,,TomTom MySports Watch,2015-08-09-162948.gpx +2015-08-03 18:30:49,b1a19f5a-4cb7-479a-b8bc-60e3fb62f218,Running,,18.95,1:38:16,5:11,11.57,1298.99999925178,156,149.0,,TomTom MySports Watch,2015-08-03-183049.gpx +2015-08-01 18:40:14,fad4d129-7045-41f5-ad01-7043d9c5db12,Cycling,,18.79,56:41,3:01,19.88,430.0,195,,,,2015-08-01-184014.gpx +2015-07-29 18:14:34,47192c06-cc2b-4112-92a1-0c53f5afc344,Running,,0.76,5:15,6:55,8.67,53.999999968896,6,133.0,,TomTom MySports Watch,2015-07-29-181434.gpx +2015-07-26 08:02:36,6e225b5e-08d0-46d0-bbb2-6f6fd3dec433,Running,,22.09,2:16:22,6:10,9.72,1557.0,372,142.0,,,2015-07-26-080236.gpx +2015-07-24 18:49:43,0998a635-1166-4d12-b143-56a922e05fd2,Running,,12.69,1:05:15,5:09,11.67,858.0,108,146.0,,,2015-07-24-184943.gpx +2015-07-21 18:22:38,0a903a48-5c63-461d-bddc-303e6c1e935f,Running,,12.66,1:08:07,5:23,11.15,867.999999500032,109,138.0,,TomTom MySports Watch,2015-07-21-182238.gpx +2015-07-19 17:19:38,1e224c99-4090-4dea-aef4-2f519099fff5,Running,,23.88,2:27:32,6:11,9.71,1688.0,391,135.0,,,2015-07-19-171938.gpx +2015-07-16 18:32:18,ae62b3b8-f681-49b7-a7bf-464934bc9e33,Running,,9.57,45:28,4:45,12.63,628.0,77,148.0,,,2015-07-16-183218.gpx +2015-07-14 18:39:53,7d04c79d-fa1c-43d1-8786-1cffe6abbc5e,Running,,12.66,1:04:46,5:07,11.73,852.0,108,145.0,,,2015-07-14-183953.gpx +2015-07-12 18:14:14,8e08fa81-ec96-4811-8ac2-db1250c9cee1,Running,,19.04,1:51:58,5:53,10.2,1316.0,295,133.0,,,2015-07-12-181414.gpx +2015-07-10 18:35:16,17d24474-bead-48b6-b215-8f9a09f0e13d,Running,,19.02,1:34:06,4:57,12.13,1279.0,156,144.0,,,2015-07-10-183516.gpx +2015-07-07 18:39:38,cb393e1d-af41-4f89-a810-3e4963d307ee,Running,,9.55,48:59,5:08,11.7,650.0,88,143.0,,,2015-07-07-183938.gpx +2015-07-05 17:53:06,c0cb05cc-c1a5-4897-a685-cb8aa01b712d,Running,,19.7,1:52:23,5:42,10.52,1358.0,303,142.0,,,2015-07-05-175306.gpx +2015-07-01 18:16:02,3a85bdfa-776d-4282-b2c2-c36ca414a04e,Running,,18.83,1:34:34,5:01,11.95,1268.0,154,142.0,,,2015-07-01-181602.gpx +2015-06-28 17:39:02,bdbd37a8-9c4f-41c4-9e87-1980a096881c,Running,,19.81,1:55:57,5:51,10.25,1360.0,313,133.0,,,2015-06-28-173902.gpx +2015-06-24 18:27:23,f27bbf5b-e534-4328-b053-70a1f7fd3195,Running,,11.14,1:03:45,5:43,10.49,766.0,162,133.0,,,2015-06-24-182723.gpx +2015-06-22 18:19:53,2b3bb63b-e5b7-419e-9b53-744ce195fa83,Running,,18.84,1:41:17,5:22,11.16,1294.0,156,141.0,,,2015-06-22-181953.gpx +2015-06-21 17:53:46,ee566558-df2c-4874-8470-4c96bc16e11b,Cycling,,34.49,1:35:39,2:46,21.63,751.0,318,,,,2015-06-21-175346.gpx +2015-06-17 18:39:44,744827f5-674f-4ec6-9ffe-82866f2b021e,Running,,12.61,1:07:45,5:22,11.17,859.0,109,137.0,,,2015-06-17-183944.gpx +2015-06-15 18:27:00,c089d063-ac9b-4931-af17-3b6329f5954a,Running,,12.64,1:02:17,4:56,12.18,926.0,107,158.0,,,2015-06-15-182700.gpx +2015-06-14 17:03:23,bf89325d-987a-4421-903f-eba2022ec226,Cycling,,28.49,1:20:47,2:50,21.16,621.0,294,,,,2015-06-14-170323.gpx +2015-06-12 18:27:52,92d68e43-b394-4a2e-be6a-49074f30a793,Running,,12.63,1:02:18,4:56,12.16,855.0,107,154.0,,,2015-06-12-182752.gpx +2015-06-10 18:14:03,791454fb-a749-47c1-9913-f72aeb7fe000,Running,,14.35,1:21:05,5:39,10.62,986.0,226,136.0,,,2015-06-10-181403.gpx +2015-06-08 18:18:18,d77c5897-a8f2-41a0-82d4-210315a0b17c,Running,,9.6,44:45,4:40,12.88,626.0,85,161.0,,,2015-06-08-181818.gpx +2015-06-07 16:51:14,4ca793f5-809f-4659-98a4-01bbd63f8d07,Running,,13.01,1:13:07,5:37,10.68,876.0,193,147.0,,,2015-06-07-165114.gpx +2015-06-06 18:30:39,04538557-0367-48ee-bcfd-e6c0a16568a8,Cycling,,18.96,1:19:02,4:10,14.39,510.0,123,,,,2015-06-06-183039.gpx +2015-06-04 18:15:45,5fe00119-e51b-48c6-a3e3-f6d75374df67,Running,,15.97,1:23:18,5:13,11.5,1097.0,135,141.0,,,2015-06-04-181545.gpx +2015-06-01 17:40:42,d2ec6e32-2140-4860-ac6b-3eb7b5923e44,Running,,11.85,1:04:46,5:28,10.98,810.0,180,145.0,,,2015-06-01-174042.gpx +2015-05-31 04:02:00,3ea58a0a-a2c8-4e8f-8e27-ac86ccbd2eb2,Cycling,,29.4,2:35:00,5:16,11.38,710.0,58,,,,2015-05-31-040200.gpx +2015-05-29 18:45:22,748d5149-2314-4bd0-8528-59d7e7ffee1d,Running,,9.73,46:22,4:46,12.59,636.0,84,150.0,,,2015-05-29-184522.gpx +2015-05-27 18:19:22,9ef5388f-c3af-4bd0-8c4c-437f1255eb99,Running,,12.8,1:03:46,4:59,12.05,859.0,108,150.0,,,2015-05-27-181922.gpx +2015-05-23 19:07:40,b685d6f3-056b-49a7-9599-8aa7a4a0248e,Cycling,,13.65,43:06,3:09,19.0,332.0,144,124.0,,,2015-05-23-190740.gpx +2015-05-21 18:45:51,98e685ee-8f60-49ef-93e5-028ce01520ba,Running,,9.54,45:19,4:45,12.64,624.0,82,147.0,,,2015-05-21-184551.gpx +2015-05-19 18:48:36,21c55ade-208e-4525-893f-07b152dd7799,Running,,12.73,1:02:30,4:55,12.22,859.0,109,134.0,,,2015-05-19-184836.gpx +2015-05-17 17:33:15,396f0254-c9ca-4ac5-bf6d-e176f6e5a2a1,Running,,9.64,48:27,5:02,11.94,642.0,85,150.0,,,2015-05-17-173315.gpx +2015-05-13 18:39:34,edd6a664-91fa-4978-9a3d-a9a9e97da0cb,Running,,12.71,1:09:15,5:27,11.01,875.0,108,158.0,,,2015-05-13-183934.gpx +2015-05-11 18:39:02,54793068-82e4-4c34-9be0-c50c8067d195,Running,,9.61,48:38,5:04,11.86,653.0,91,158.0,,,2015-05-11-183902.gpx +2015-05-06 18:18:49,295df484-190b-4ca4-a39f-99d3793cbcff,Running,,12.83,1:07:10,5:14,11.46,880.0,107,142.0,,,2015-05-06-181849.gpx +2015-05-02 18:48:03,993ca426-7e01-48eb-9b50-1bc32ee4a239,Running,,7.39,43:11,5:50,10.27,509.0,162,165.0,,,2015-05-02-184803.gpx +2015-05-01 18:05:38,7bd07c52-14d5-4c06-98aa-1b84e0a14127,Cycling,,11.41,42:39,3:44,16.06,282.0,132,125.0,,,2015-05-01-180538.gpx +2015-04-26 09:03:15,570f915e-613f-40eb-b537-219bbeab5ab1,Running,,21.12,1:38:42,4:40,12.84,1381.0,982,170.0,,,2015-04-26-090315.gpx +2015-04-23 18:48:37,9a7a2e67-0935-444c-967f-da900632f1d5,Running,,6.87,37:32,5:28,10.97,493.0,81,,,,2015-04-23-184837.gpx +2015-04-15 18:38:43,bb763b6b-6395-4684-b53f-5e671822f748,Running,,12.68,1:05:47,5:11,11.56,869.0,110,141.0,,,2015-04-15-183843.gpx +2015-04-13 16:57:26,f1b5dd21-9053-4340-b265-a074659a5dfe,Running,,18.06,1:53:38,6:17,9.54,1240.0,228,140.0,,,2015-04-13-165726.gpx +2015-04-07 18:33:21,32025da2-62c6-48d4-8ae7-3b2c72170928,Running,,15.79,1:22:37,5:14,11.46,1090.0,135,152.0,,,2015-04-07-183321.gpx +2015-04-02 18:50:23,e25f6a16-dad0-46b0-9bfb-1f1dcaa2b329,Running,,12.83,1:06:28,5:11,11.58,873.0,106,146.0,,,2015-04-02-185023.gpx +2015-03-30 18:10:03,d6b9e271-eaaa-4d22-ad7d-518fee325c62,Running,,5.73,30:12,5:17,11.37,395.0,50,123.0,,,2015-03-30-181003.gpx +2015-03-25 18:40:19,ba09e7d3-8123-4307-b3d9-17f9d93d95ee,Running,,9.73,55:12,5:40,10.58,660.0,84,131.0,,,2015-03-25-184019.gpx +2015-03-16 18:23:38,760c4a61-d435-47ca-a787-005202a803df,Running,,16.15,1:26:37,5:22,11.19,1118.0,133,131.0,,,2015-03-16-182338.gpx +2015-03-11 18:21:26,b40900ba-56b7-45cf-b8cf-73f70f43fa19,Running,,15.91,1:28:23,5:33,10.8,1082.0,136,140.0,,,2015-03-11-182126.gpx +2015-03-06 18:44:58,b7397558-85ae-4da5-9405-e36ccf729442,Running,,12.81,1:06:04,5:09,11.63,868.0,106,172.0,,,2015-03-06-184458.gpx +2015-03-04 19:00:17,029102b9-7b7d-40f9-a78d-4f42b9c618e2,Running,,10.25,58:27,5:42,10.52,691.0,90,125.0,,,2015-03-04-190017.gpx +2015-03-02 18:15:36,c5cf3852-76aa-44f0-bd03-eacb5ecd20e9,Running,,15.99,1:31:46,5:44,10.46,1079.0,128,154.0,,,2015-03-02-181536.gpx +2015-02-28 09:11:09,85adaf46-27e4-4ec3-a86f-1129e21e5f38,Running,,3.5,20:19,5:48,10.34,238.0,33,116.0,,,2015-02-28-091109.gpx +2015-02-25 18:18:41,bc2a7d16-5d71-4f3f-8534-7ac87e0010a6,Running,,9.78,54:08,5:32,10.84,661.0,87,144.0,,,2015-02-25-181841.gpx +2015-02-23 18:14:09,3f3231db-0394-4c84-811e-116c9d12a6c6,Running,,12.84,1:10:50,5:31,10.88,883.0,105,141.0,,,2015-02-23-181409.gpx +2015-02-17 18:34:53,c8ac7ae5-1a85-4057-813b-29d1bf7a2c54,Running,,9.86,55:53,5:40,10.58,707.0,60,,,,2015-02-17-183453.gpx +2015-02-12 18:22:44,2c5f4777-b55a-43b2-82f3-d633c19bbdc8,Running,,6.75,36:25,5:24,11.12,485.0,42,,,,2015-02-12-182244.gpx +2015-02-09 18:40:18,b76fc1f0-9f7d-49d0-a99f-d7305ba859c2,Running,,9.94,55:22,5:34,10.77,723.208399932435,61,,,,2015-02-09-184018.gpx +2015-02-04 18:31:10,40d23e37-2a9f-4956-900c-23bb1f721ce5,Running,,10.23,55:10,5:24,11.12,652.0,59,,,,2015-02-04-183110.gpx +2015-02-02 18:31:00,9cb617f8-0380-47c0-8c73-08f699684c24,Running,,9.91,58:57,5:57,10.08,725.2215765028999,259,,,,2015-02-02-183100.gpx +2015-01-31 09:30:04,cdd5299e-788a-4eba-afb0-99eb7ee1a2d0,Running,,6.55,40:01,6:06,9.83,436.0,37,,,,2015-01-31-093004.gpx +2015-01-28 18:43:29,22b8c0e9-c1f2-49ac-8fa2-aaa44e183d54,Running,,10.02,55:13,5:31,10.89,726.17670389112,61,,,,2015-01-28-184329.gpx +2015-01-26 18:30:18,ae5b3a84-3ea6-455c-a941-d010153f9a4e,Running,,13.11,1:14:30,5:41,10.55,960.696640142744,76,,,,2015-01-26-183018.gpx +2015-01-14 17:50:00,52dc197c-1cb1-4cb2-b1a5-d514b42a206e,Running,,9.78,52:45,5:24,11.12,654.0,51,,,,2015-01-14-175000.gpx +2015-01-12 18:20:00,27a1e74e-531f-42b5-90fc-a0b12de12031,Running,,9.78,51:45,5:18,11.34,655.0,51,,,,2015-01-12-182000.gpx +2015-01-03 17:20:00,51b58a2c-c40f-4eaa-9e10-dd600b4fba4f,Running,,9.78,52:45,5:24,11.12,654.0,51,,,,2015-01-03-172000.gpx +2014-12-26 17:50:00,14766461-48ab-47cc-8039-0930953e02f6,Running,,9.78,49:45,5:05,11.79,655.0,51,,,,2014-12-26-175000.gpx +2014-12-24 18:18:00,41b6ea5b-d428-4cc1-a27d-e0de92b2ec9c,Running,,6.59,32:00,4:51,12.35,461.0,33,,,,2014-12-24-181800.gpx +2014-12-08 16:18:00,48eebce4-1d5f-4700-856d-754f24292b2e,Running,,6.63,32:00,4:49,12.44,431.0,33,,,,2014-12-08-161800.gpx +2014-12-03 18:18:00,c61a98ea-d68f-4604-a35b-d5d42235250b,Running,,6.63,32:00,4:49,12.44,431.0,33,,,,2014-12-03-181800.gpx +2014-12-01 18:18:00,6a6d8b25-79d0-4ceb-8f89-8ed7688f80dd,Running,,6.63,32:00,4:49,12.44,429.0,33,,,,2014-12-01-181800.gpx +2014-11-25 17:50:00,d6574cc9-2e03-4d1c-a0f8-e3fe8090e8c5,Running,,9.78,51:45,5:18,11.34,655.0,51,,,,2014-11-25-175000.gpx +2014-11-19 18:18:00,04dd1189-d5cb-4ce2-ba31-0189ad5f673a,Running,,6.22,31:00,4:59,12.03,446.0,33,,,,2014-11-19-181800.gpx +2014-11-11 15:50:00,5dd88a5b-a923-4d7b-81fc-ffcb94473cc6,Running,,9.78,49:45,5:05,11.79,655.0,51,,,,2014-11-11-155000.gpx +2014-11-04 18:18:00,5a5804c3-ea87-4b47-92bb-c0f8e9f67419,Running,,6.22,32:00,5:09,11.66,445.0,33,,,,2014-11-04-181800.gpx +2014-10-30 17:50:00,99a90af9-50d0-46e0-aa9d-98d57fac335b,Running,,9.78,49:45,5:05,11.79,658.0,51,,,,2014-10-30-175000.gpx +2014-10-27 18:30:00,1e0bd31f-8aa0-4c22-9192-2bf32089855e,Running,,12.98,1:05:45,5:04,11.85,888.0,67,,,,2014-10-27-183000.gpx +2014-10-22 17:50:00,628b90a0-6cae-4dfe-9981-416e85fa5477,Running,,9.61,49:45,5:10,11.59,670.0,54,,,,2014-10-22-175000.gpx +2014-10-20 18:10:00,bc53fc84-3a38-4dca-bfb9-0fa3548ec398,Running,,9.61,51:17,5:20,11.25,672.0,54,,,,2014-10-20-181000.gpx +2014-10-14 18:10:00,26ce3134-3ff1-4546-9f1b-bcc3ff528e89,Running,,12.82,1:02:45,4:54,12.26,913.0,70,,,,2014-10-14-181000.gpx +2014-10-09 18:10:00,df510a68-0447-4ca6-ade8-d558cd700e76,Running,,9.61,52:17,5:26,11.03,677.0,54,,,,2014-10-09-181000.gpx +2014-10-07 19:10:00,85a66cf6-c96c-49dd-b8a0-23b56b771ff7,Running,,9.61,49:17,5:08,11.7,679.0,54,,,,2014-10-07-191000.gpx +2014-09-28 10:01:30,8e3e4cb5-9044-4948-a95b-8dec52112fc6,Running,,21.32,1:45:27,4:57,12.13,1633.0,447,,,,2014-09-28-100130.gpx +2014-09-23 18:10:00,37280fb2-6f9d-434b-a96e-7a55bc762680,Running,,12.82,1:02:45,4:54,12.26,921.0,70,,,,2014-09-23-181000.gpx +2014-09-18 18:12:00,560f5bd3-956a-44b3-961f-cf243d71286b,Running,,19.19,1:42:03,5:19,11.29,1353.0,111,,,,2014-09-18-181200.gpx +2014-09-15 18:30:00,a2306eac-c313-4abd-a653-e62bb74f9e3b,Running,,9.55,48:54,5:07,11.72,684.0,51,,,,2014-09-15-183000.gpx +2014-09-11 19:10:00,46be3354-011e-4fc3-8b54-3b78e4f9ea2c,Running,,9.61,48:22,5:02,11.93,682.0,54,,,,2014-09-11-191000.gpx +2014-09-08 18:00:00,8fdbb114-946e-4760-b7bc-ebc94c7a2bb4,Running,,19.19,1:42:03,5:19,11.29,1356.0,111,,,,2014-09-08-180000.gpx +2014-09-04 18:55:54,1c1779d8-5020-4bb9-b0ad-1e1f886afd46,Running,,9.61,50:22,5:14,11.45,690.0,54,,,,2014-09-04-185554.gpx +2014-09-01 18:46:00,4e983ab7-2e8d-4c1f-8e08-268304b395e6,Running,,15.59,1:23:41,5:22,11.18,1125.0,110,,,,2014-09-01-184600.gpx +2014-08-29 18:56:02,800c94a1-551e-408e-8282-ae9bb8d3ddd3,Cycling,,20.7,1:00:37,2:56,20.49,519.0,113,,,,2014-08-29-185602.gpx +2014-08-28 18:10:00,9642232e-00a5-4e7d-8a92-a8766a7b5b01,Running,,12.82,1:05:45,5:08,11.7,920.0,70,,,,2014-08-28-181000.gpx +2014-08-26 18:16:03,1cdfd12b-09c4-4b95-a0da-45b53b8129ac,Running,,16.06,1:21:39,5:05,11.8,1151.0,89,,,,2014-08-26-181603.gpx +2014-08-21 18:49:00,8f3de547-78e3-4d6c-a467-1705d536129b,Running,,9.55,53:54,5:39,10.63,684.0,51,,,,2014-08-21-184900.gpx +2014-08-18 18:37:00,5284fd7d-9fde-46b7-9f63-c0645dfa07ef,Running,,12.82,1:05:44,5:08,11.7,920.0,70,,,,2014-08-18-183700.gpx +2014-08-12 18:50:00,b4f32f79-e995-4610-b584-932134dac4c4,Running,,9.55,53:54,5:39,10.63,684.0,51,,,HOT!,2014-08-12-185000.gpx +2014-08-08 08:00:16,f9fe4f45-6f49-4b73-8336-c98413b25ac5,Running,,9.82,50:20,5:08,11.7,703.0,62,,,,2014-08-08-080016.gpx +2014-07-25 18:35:00,779e140d-38cb-49e5-b340-ee0db1b9a3eb,Running,,13.17,1:05:08,4:57,12.13,925.0,83,,,,2014-07-25-183500.gpx +2014-07-22 18:08:00,3faa84dd-552a-46b5-a2c8-b0a87123be2a,Running,,12.75,59:41,4:41,12.81,889.0,71,,,,2014-07-22-180800.gpx +2014-07-17 18:30:00,e89d7bfb-2e0d-4274-987f-eaa56f06e1e2,Running,,9.55,53:54,5:39,10.63,684.0,51,,,"It was not easy, as it was +29 Celcius",2014-07-17-183000.gpx +2014-07-10 18:45:00,47833e3a-1049-4fc9-97f1-e3a41cf1a722,Running,,12.75,1:00:41,4:46,12.6,884.0,71,,,"It was raining heavily, which was absolute fun to run that distance",2014-07-10-184500.gpx +2014-07-02 18:31:00,0fcef878-d446-45cf-aec2-61bd86740501,Running,,12.75,1:02:41,4:55,12.2,888.0,71,,,,2014-07-02-183100.gpx +2014-06-24 18:12:00,93c308f7-14b5-4f27-b030-7d44e223cd54,Running,,16.21,1:21:46,5:03,11.89,1145.0,85,,,,2014-06-24-181200.gpx +2014-06-18 18:29:00,1da0fc26-5121-4528-a25d-be8e6897b047,Running,,16.21,1:21:46,5:03,11.89,1145.0,85,,,,2014-06-18-182900.gpx +2014-06-11 18:08:00,8a7f85e2-f89f-4fed-93c3-a5c50779d32f,Running,,12.75,1:02:41,4:55,12.2,895.0,71,,,,2014-06-11-180800.gpx +2014-06-04 18:07:39,0f94765c-b3ea-4400-9dbf-3f6aa534b94b,Running,,16.17,1:20:57,5:00,11.98,1146.0,93,,,,2014-06-04-180739.gpx +2014-05-26 18:30:00,094db0ab-834e-41e2-89c5-162f88297e35,Running,,9.55,53:54,5:39,10.63,684.0,51,,,,2014-05-26-183000.gpx +2014-05-21 18:45:00,3ed219e7-77f6-4981-920b-b19d3246e26b,Running,,12.75,1:01:41,4:50,12.4,893.0,71,,,,2014-05-21-184500.gpx +2014-05-19 18:15:00,0a3dbdc0-61ef-48f2-9493-f1bd09a77ca4,Running,,12.75,1:03:01,4:57,12.14,895.0,71,,,,2014-05-19-181500.gpx +2014-05-17 07:50:00,faf85ff4-89f1-4f2d-bd73-0194b745deba,Running,,6.56,35:23,5:24,11.12,470.0,36,,,,2014-05-17-075000.gpx +2014-05-14 18:09:11,a9560e7b-7e4a-453c-a2ae-04752f26076b,Running,,13.17,1:05:08,4:57,12.13,930.0,84,,,,2014-05-14-180911.gpx +2014-05-12 18:06:22,07034064-71cd-449e-9e4e-04320cc46555,Running,,12.63,1:01:22,4:51,12.35,906.0,69,,,,2014-05-12-180622.gpx +2014-05-06 18:32:00,cbe17784-1222-446e-9101-86212817b116,Running,,12.85,1:05:41,5:07,11.74,903.0,71,,,,2014-05-06-183200.gpx +2014-05-02 18:47:02,18a3a5a6-69e6-435f-8d5b-1e80640fa7b3,Running,,7.08,37:56,5:21,11.2,537.0,127,,,,2014-05-02-184702.gpx +2014-04-27 10:00:00,a0c970d4-cfa5-4db9-8532-8e6d5b43d06f,Running,,21.73,1:46:38,4:54,12.23,1543.0,22,,,,2014-04-27-100000.gpx +2014-04-21 19:08:29,03b72419-2aeb-40ce-afb5-70f5ca298984,Running,,12.75,59:41,4:41,12.81,908.0,71,,,,2014-04-21-190829.gpx +2014-04-16 18:22:23,ae983e43-fdbe-499c-bc11-67fa63fdc1fe,Running,,19.08,1:35:03,4:59,12.04,1361.0,111,,,,2014-04-16-182223.gpx +2014-04-14 18:19:40,f32f311f-1a02-44c3-8bc8-efbcd2f33aef,Running,,12.83,1:04:32,5:02,11.92,891.0,71,,,,2014-04-14-181940.gpx +2014-04-09 18:29:04,dd153376-3f4d-4b58-83d8-5e2a50773288,Running,,16.21,1:21:45,5:03,11.9,1145.0,85,,,,2014-04-09-182904.gpx +2014-04-07 18:28:42,9e71740b-bdeb-44d0-987f-12bf6d5a43b9,Running,,12.57,1:04:09,5:06,11.75,901.0,73,,,,2014-04-07-182842.gpx +2014-04-02 18:30:00,a189ac9e-f156-4e0a-9227-6c3c5907ae87,Running,,12.47,1:04:33,5:11,11.59,895.0,69,,,,2014-04-02-183000.gpx +2014-04-02 18:18:43,2a58f421-94a3-4e02-a4af-cf5e1fc25c9c,Running,,6.22,32:00,5:09,11.65,446.0,33,,,,2014-04-02-181843.gpx +2014-03-24 18:56:12,1f2a8c46-872a-4edd-9055-95fcc0457be5,Running,,6.32,36:30,5:47,10.39,455.0,36,,,,2014-03-24-185612.gpx +2014-03-20 18:49:11,54b15891-50ae-4885-a415-3924557d5e21,Running,,9.55,53:54,5:39,10.63,684.0,51,,,,2014-03-20-184911.gpx +2014-03-18 18:49:39,920faab9-c2bf-46c0-8180-8a7039d43e9d,Running,,9.71,57:20,5:55,10.15,672.0,53,,,,2014-03-18-184939.gpx +2014-03-13 18:41:49,f9aa0165-eb95-414e-bde5-9b26aa006347,Running,,8.62,51:36,5:59,10.02,613.0,48,,,,2014-03-13-184149.gpx +2014-03-11 19:14:15,05a608e9-0ca9-4250-9a3c-2c8b3d8965d6,Running,,6.35,36:54,5:49,10.33,455.0,34,,,,2014-03-11-191415.gpx +2014-03-04 18:45:09,7e0966e7-e843-4a6f-a0a7-4b323a69b526,Running,,9.45,53:34,5:40,10.58,677.0,52,,,,2014-03-04-184509.gpx +2014-02-28 18:34:12,031d04da-435b-4b17-a27f-233242290f13,Running,,6.34,36:02,5:41,10.56,454.0,32,,,,2014-02-28-183412.gpx +2014-02-25 18:23:39,271e28ad-4f6f-4710-9973-07fb70ac4d42,Running,,6.33,36:09,5:43,10.51,454.0,35,,,,2014-02-25-182339.gpx +2014-02-19 18:40:00,16aafe53-0259-43f3-a5b6-7c7ffea90e52,Running,,6.38,36:10,5:40,10.58,458.0,34,,,,2014-02-19-184000.gpx +2014-02-15 08:55:15,9d8d9396-b49a-439d-a31d-c300bcd7b621,Running,,6.29,34:34,5:30,10.91,449.0,35,,,,2014-02-15-085515.gpx +2014-02-13 18:08:01,e8c1276e-5ecd-4b6f-bc06-72bab7efcc29,Running,,6.38,38:00,5:57,10.08,458.0,34,,,,2014-02-13-180801.gpx +2014-02-06 06:32:00,d2db35ca-1373-45d5-a1ef-a88d5aba63ad,Running,,6.56,42:23,6:28,9.29,474.0,36,,,,2014-02-06-063200.gpx +2014-01-07 18:13:04,0bb7d5c0-9f1e-4c7c-9842-29ae605e3204,Running,,10.81,1:01:31,5:42,10.54,774.0,56,,,,2014-01-07-181304.gpx +2014-01-02 09:45:05,e721a5b1-59ab-4e99-851c-cbc9eee2009f,Running,,3.38,18:10,5:23,11.16,241.0,16,,,,2014-01-02-094505.gpx +2013-12-31 08:32:35,e42c97c6-742c-4065-aad3-1c82477af7d0,Running,,6.57,36:02,5:29,10.93,471.0,36,,,,2013-12-31-083235.gpx +2013-12-23 18:59:00,806866ca-023b-4c68-98ff-17af1d765e2f,Running,,9.5,54:08,5:42,10.53,676.0,52,,,,2013-12-23-185900.gpx +2013-12-21 07:39:48,40fa8105-04cd-491a-a4f6-e32ed2849436,Running,,6.34,36:02,5:41,10.56,454.0,33,,,,2013-12-21-073948.gpx +2013-12-19 18:58:42,9627ce3e-458a-4cb8-b3f0-64d6b71dee2e,Running,,9.5,53:06,5:35,10.73,679.0,52,,,,2013-12-19-185842.gpx +2013-12-07 09:15:00,cb9e2c89-18ae-49b3-a028-d17748326a8c,Running,,6.3,34:59,5:33,10.8,452.0,35,,,,2013-12-07-091500.gpx +2013-12-04 18:36:22,0a1d041d-9ea5-438a-a2df-dcac74a33116,Running,,12.48,1:10:42,5:40,10.59,896.0,69,,,,2013-12-04-183622.gpx +2013-11-30 09:06:01,07f223e5-b7d2-49b6-b6b1-94b816cef1ac,Running,,6.33,34:24,5:26,11.03,451.0,35,,,,2013-11-30-090601.gpx +2013-11-20 18:18:12,40dd6d44-18d2-4f89-bc34-e1360590b89e,Running,,11.73,1:06:41,5:41,10.55,840.0,63,,,,2013-11-20-181812.gpx +2013-11-16 09:00:24,14e9f43f-6868-41dc-9c87-48b4206330fd,Running,,6.15,32:46,5:20,11.26,424.0,21,,,, +2013-11-07 19:00:59,0bf65ae6-1658-4bc2-9971-5dc20ac44eb0,Running,,9.47,50:07,5:18,11.33,679.0,53,,,,2013-11-07-190059.gpx +2013-11-02 09:15:18,36627858-ea69-40e5-9ed5-689e38e980cd,Running,,3.14,18:23,5:51,10.25,226.0,18,,,,2013-11-02-091518.gpx +2013-10-30 18:42:16,4d8f1e78-73bb-4cac-9ce7-6167fbca9da9,Running,,5.81,33:12,5:43,10.49,413.0,32,,,,2013-10-30-184216.gpx +2013-10-23 18:51:35,929e7c6a-ef2f-44d1-b4a9-d0159e5aa618,Running,,6.3,35:41,5:40,10.59,453.0,35,,,,2013-10-23-185135.gpx +2013-10-18 18:07:56,eb690f23-7d74-4d07-853f-58a8a3872f19,Running,,12.53,1:09:46,5:34,10.77,897.0,74,,,,2013-10-18-180756.gpx +2013-10-15 18:28:14,9aef5085-2cab-4872-8797-85794667ba23,Running,,8.57,49:35,5:47,10.37,616.0,45,,,,2013-10-15-182814.gpx +2013-10-12 09:36:00,2c71d785-7846-47f1-81f0-55ea80e6e22c,Running,,6.36,34:21,5:24,11.11,455.0,35,,,,2013-10-12-093600.gpx +2013-10-10 18:08:08,178f39db-9acd-4833-b57c-851fb430e5d4,Running,,9.34,50:21,5:24,11.12,669.0,52,,,,2013-10-10-180808.gpx +2013-10-05 07:36:47,981fe91d-aa68-4bb8-8009-71e62dbe5d34,Running,,6.36,34:21,5:24,11.1,455.0,35,,,,2013-10-05-073647.gpx +2013-09-30 18:50:38,f50f24f1-b79e-4bf3-8dfc-6b43d46f385f,Running,,6.45,32:41,5:04,11.84,462.0,34,,,,2013-09-30-185038.gpx +2013-09-10 18:13:42,f696092e-4359-44fb-9544-da83ddbfc1c4,Running,,12.72,1:01:54,4:52,12.33,1018.0,398,,,,2013-09-10-181342.gpx +2013-09-02 19:10:44,42adb02c-8d84-43fc-9612-0a7e0b4256a5,Running,,6.41,32:23,5:03,11.88,458.0,34,,,,2013-09-02-191044.gpx +2013-08-17 08:09:12,7f7de28d-ae25-47e7-b018-bb2e903d98b2,Running,,6.45,31:22,4:52,12.32,449.0,30,,,,2013-08-17-080912.gpx +2013-08-15 18:49:50,666cbe78-b3d5-4bbb-8a22-2717507d32c2,Walking,,2.48,2:23:46,57:56,1.04,306.0,67,,,,2013-08-15-184950.gpx +2013-08-14 18:17:00,fcd7295f-2a3d-4d55-bcf3-6916c9ecf699,Running,,15.61,1:25:55,5:30,10.9,1121.0,88,,,,2013-08-14-181700.gpx +2013-08-08 18:30:36,00f40213-297d-44f0-8311-a6254ac6fa4f,Running,,12.47,1:06:33,5:20,11.24,891.0,61,,,,2013-08-08-183036.gpx +2013-08-08 07:56:08,9ea3ec6e-48fa-417f-8bdf-2b197e19f5d4,Walking,,1.51,15:24,10:11,5.89,85.0,6,,,,2013-08-08-075608.gpx +2013-08-04 08:27:54,7ed0a8cb-0253-4ee4-aa39-3e2c444121ce,Running,,12.49,1:06:24,5:19,11.29,896.0,68,,,,2013-08-04-082754.gpx +2013-07-30 18:49:22,e62b5ac5-e900-4c30-9f93-5f6a11da04f8,Running,,12.47,1:05:43,5:16,11.39,893.0,67,,,,2013-07-30-184922.gpx +2013-07-21 07:57:30,924ee968-8f2c-47d9-a005-dbc732966fab,Running,,11.87,1:00:37,5:07,11.74,845.0,64,,,,2013-07-21-075730.gpx +2013-07-19 18:40:13,0547ce8b-c7c8-40b6-bb71-feff6298c5be,Running,,1.72,8:33,4:58,12.07,40.0,6,,,,2013-07-19-184013.gpx +2013-07-18 07:47:00,1eb83982-20b9-494a-954c-ed4152f01273,Running,,6.15,32:36,5:18,11.33,416.0,30,,,,2013-07-18-074700.gpx +2013-07-07 08:43:13,f85d8da1-0d59-4b30-bc5a-fce86874b167,Running,,3.75,21:36,5:46,10.41,281.0,56,,,,2013-07-07-084313.gpx +2013-07-06 07:15:00,8de39009-9e2e-44ce-ad83-eb129f896e61,Running,,3.75,21:12,5:39,10.61,280.0,55,,,,2013-07-06-071500.gpx +2013-07-05 08:01:00,a1f6c8f6-f85f-454e-8c2a-6946404f9d2a,Running,,3.75,21:10,5:39,10.63,280.0,55,,,,2013-07-05-080100.gpx +2013-07-03 07:20:00,e4d4f094-e32e-4518-8119-742667e662c4,Running,,3.75,21:55,5:51,10.26,281.0,55,,,,2013-07-03-072000.gpx +2013-07-02 07:43:00,0e41b390-7317-4d7f-9e0e-b1db01825f31,Running,,3.75,21:40,5:47,10.38,281.0,55,,,,2013-07-02-074300.gpx +2013-07-01 07:09:00,fbd264b0-ca3a-4af0-97a8-36ef4fd84db7,Running,,3.75,21:10,5:39,10.63,262.0,0,,,, +2013-06-26 18:19:00,64178ec8-556d-4d95-a2b3-249441e33199,Running,,16.0,1:06:49,4:11,14.37,1101.0,0,,,, +2013-06-22 08:05:20,3dbd78e7-44eb-4dd9-9bc6-f2c94ff1acc9,Running,,6.23,32:25,5:12,11.52,446.0,35,,,,2013-06-22-080520.gpx +2013-06-15 08:44:27,6ada32e6-e73f-44a2-a4d5-bf6fd194986e,Running,,6.37,29:53,4:41,12.79,417.0,36,,,,2013-06-15-084427.gpx +2013-06-12 18:21:40,d5ce4d6e-3607-4eab-bae6-35beb7c2f4da,Running,,16.59,1:09:29,4:11,14.32,963.0,77,,,,2013-06-12-182140.gpx +2013-06-08 07:45:08,b144b295-a4a7-4065-b9f1-0cf24dcf378e,Running,,6.35,33:51,5:20,11.24,455.0,36,,,,2013-06-08-074508.gpx +2013-06-03 07:04:59,d091607e-10a2-467a-93d6-f2c54d47a0d9,Walking,,1.33,11:59,9:03,6.63,76.0,5,,,,2013-06-03-070459.gpx +2013-06-01 07:24:07,45431395-0b88-4709-9477-22ddc6333f71,Running,,12.57,1:06:30,5:18,11.33,898.0,67,,,,2013-06-01-072407.gpx +2013-05-28 07:16:32,8f49ef93-f404-4abe-9925-adf9cd7a330e,Running,,6.5,24:17,3:44,16.05,361.0,30,,,,2013-05-28-071632.gpx +2013-05-21 18:45:38,ff3611e3-eb35-4a44-bafa-4a8696fcf8aa,Running,,11.63,1:00:35,5:12,11.52,833.0,63,,,,2013-05-21-184538.gpx +2013-05-11 08:06:42,4c1d24a6-fd63-46b3-8379-16fc55a506a9,Running,,6.15,31:38,5:08,11.67,420.0,32,,,,2013-05-11-080642.gpx +2013-05-09 17:24:19,b22dfd09-a8df-4796-86e4-e4d00ca151f6,Cycling,,15.47,38:08,2:28,24.33,339.0,88,,,,2013-05-09-172419.gpx +2013-05-09 09:20:00,17f6a5bb-983c-4207-8cbe-9e3fc66e99fb,Running,,6.53,40:00,6:08,9.79,430.0,0,,,, +2013-05-05 14:26:37,4370c545-ff6f-4829-967d-b0dbd0b54798,Cycling,,20.3,1:06:29,3:17,18.31,498.0,97,,,,2013-05-05-142637.gpx +2013-05-05 09:13:02,23fdde24-02f1-4e54-9e0a-f05db884dc5b,Running,,6.41,33:58,5:18,11.33,454.0,34,,,,2013-05-05-091302.gpx +2013-05-04 08:47:51,1f942355-8c6a-4ef4-87fd-36a1e99f5a3f,Running,,3.15,16:35,5:16,11.38,225.0,16,,,,2013-05-04-084751.gpx +2013-05-02 08:36:30,0b4fc38b-5a1d-4b1f-887c-e643f5cb5624,Running,,6.21,32:51,5:18,11.33,445.0,36,,,,2013-05-02-083630.gpx +2013-05-01 08:14:59,911ec4f7-a0ec-4385-971d-d5c63fba60de,Running,,6.22,32:29,5:13,11.48,446.0,34,,,,2013-05-01-081459.gpx +2013-04-29 18:48:30,f157d4ff-bbf3-47e9-b07c-58f692ef9e6f,Walking,,1.37,22:39,16:30,3.64,95.0,10,,,,2013-04-29-184830.gpx +2013-04-29 13:10:14,313fbef4-deeb-4da5-b1b2-ecee74cba0f6,Walking,,3.83,38:30,10:04,5.96,255.0,25,,,,2013-04-29-131014.gpx +2013-04-28 17:26:52,ea228333-1dc2-4798-90e6-d4b7aa93545c,Cycling,,13.87,48:27,3:30,17.17,341.0,133,,,,2013-04-28-172652.gpx +2013-04-28 10:56:47,7f6060d2-2bed-4370-8baa-c2c74164ec2d,Walking,,1.32,13:48,10:30,5.72,67.0,5,,,,2013-04-28-105647.gpx +2013-04-28 09:02:23,cec17320-57d8-411b-af44-10f6f769b89b,Running,,3.12,16:36,5:19,11.28,224.0,17,,,,2013-04-28-090223.gpx +2013-04-24 18:31:02,75670af6-0184-4f69-9df5-40020f998a66,Running,,6.25,29:29,4:43,12.71,399.0,33,,,,2013-04-24-183102.gpx +2013-04-18 21:48:44,71e7c467-b916-4c78-870e-bdd2d1d2d03b,Walking,,1.5,24:41,16:28,3.64,86.0,9,,,,2013-04-18-214844.gpx +2013-04-17 19:27:15,3d9dd7e0-dbbe-4eaa-9419-66c80a795702,Running,,6.48,32:49,5:04,11.84,452.0,37,,,,2013-04-17-192715.gpx +2013-04-13 08:51:29,2c971ecf-efdd-4a3d-be67-ba249aa5557a,Running,,6.34,33:02,5:13,11.51,454.0,33,,,,2013-04-13-085129.gpx +2013-03-20 18:49:59,4f96c2a3-06f9-4061-9691-ed17e73bc918,Running,,7.04,40:12,5:43,10.5,490.0,0,,,,2013-03-20-184959.gpx +2013-03-13 18:59:51,7b7594d4-8fd9-4dec-b8a8-ce1ac7cd0e6c,Running,,6.41,37:48,5:54,10.17,461.0,35,,,,2013-03-13-185951.gpx +2013-03-11 18:27:56,fa653f20-dd82-443d-99b9-c1d5cac5755d,Walking,,1.86,16:39,8:56,6.72,116.0,16,,,,2013-03-11-182756.gpx +2013-02-28 18:46:54,390a66d3-5bce-4af5-acdc-38d4ebf58963,Running,,10.3,1:02:36,6:05,9.87,739.0,67,,,,2013-02-28-184654.gpx +2013-02-26 18:37:02,3c4a82e7-36bb-40cd-b5d4-0ab611b0987f,Running,,9.53,54:44,5:45,10.45,683.0,52,,,,2013-02-26-183702.gpx +2013-02-22 19:23:38,df659987-77a5-4c7b-8633-74dbb15d3390,Running,,6.32,35:58,5:41,10.55,454.0,35,,,,2013-02-22-192338.gpx +2013-02-20 18:43:56,d55c811c-8a0e-4222-857c-58552d95ccc8,Running,,9.59,52:35,5:29,10.94,687.0,52,,,,2013-02-20-184356.gpx +2013-02-15 18:46:00,e7fea3e7-d1c2-4852-bbc0-5b50b4d3dbaa,Running,,9.48,50:29,5:20,11.27,655.0,51,,,,2013-02-15-184600.gpx +2013-02-06 18:58:31,c8aec0f4-aeb4-49e3-8196-2b42c40250e1,Running,,3.07,8:54,2:54,20.72,103.0,9,,,,2013-02-06-185831.gpx +2013-01-23 18:38:29,0ee9afe5-668e-4801-9fd3-6208ec87f2e6,Running,,8.65,50:13,5:48,10.34,614.0,45,,,,2013-01-23-183829.gpx +2013-01-19 09:58:50,98321fac-a333-47d7-b568-1c609096a08f,Running,,3.39,15:56,4:42,12.75,190.0,15,,,,2013-01-19-095850.gpx +2013-01-15 18:40:08,7c512661-6a01-4ef0-80dd-b8119d5f8a59,Running,,6.72,32:42,4:52,12.34,398.0,32,,,,2013-01-15-184008.gpx +2013-01-12 08:39:55,3a08d9a1-fc17-4002-80c1-419700be1e22,Running,,3.09,20:07,6:31,9.21,201.0,13,,,,2013-01-12-083955.gpx +2013-01-02 18:35:11,57ff5696-7610-4296-903a-88c63c207603,Running,,5.47,31:24,5:45,10.44,392.0,28,,,,2013-01-02-183511.gpx +2012-12-22 08:29:13,d7cceab2-22af-4472-9dea-5380ebe7ecd4,Running,,3.05,18:44,6:09,9.76,216.0,17,,,,2012-12-22-082913.gpx +2012-12-15 09:43:53,d29db938-2212-4ea2-9f5c-4ddc42a14510,Running,,3.14,20:08,6:25,9.36,227.0,18,,,,2012-12-15-094353.gpx +2012-12-08 08:37:38,f7eca580-962a-41b8-90ad-e7369b2f2dd7,Running,,3.21,18:50,5:53,10.21,228.0,18,,,,2012-12-08-083738.gpx +2012-12-04 18:52:39,9da5a18d-925d-41d4-9468-c4a1e3b29185,Running,,6.63,32:05,4:50,12.39,406.0,30,,,,2012-12-04-185239.gpx +2012-12-01 08:21:18,b5f841a8-d2e1-47b2-adc5-14bf65172db3,Running,,3.31,18:07,5:28,10.97,230.0,18,,,,2012-12-01-082118.gpx +2012-11-28 18:58:02,cca72ec6-e859-453e-b099-0425b5372062,Running,,6.28,37:29,5:58,10.04,450.0,35,,,,2012-11-28-185802.gpx +2012-11-24 08:57:47,0cec5506-32bd-423c-b651-b76718eaba89,Running,,2.65,14:07,5:20,11.27,186.0,15,,,,2012-11-24-085747.gpx +2012-11-18 09:51:18,fc685fa0-d2b5-4984-b336-af3e578f456d,Running,,3.18,17:13,5:25,11.09,228.0,18,,,,2012-11-18-095118.gpx +2012-11-10 08:37:49,6660d9fc-c010-4de8-8d42-8ec5857a2493,Running,,2.85,16:52,5:55,10.14,205.0,16,,,,2012-11-10-083749.gpx +2012-11-07 18:54:35,9a0c4163-980c-45a3-a553-1c48503b0cbc,Running,,4.79,27:16,5:42,10.53,340.0,23,,,,2012-11-07-185435.gpx +2012-11-04 18:59:06,3909e197-5ff0-4f6d-8508-358d2da68249,Walking,,1.22,12:05,9:54,6.07,67.0,10,,,,2012-11-04-185906.gpx +2012-10-23 18:43:56,1387c891-e974-4c9f-9e52-3d211fb12a68,Running,,5.2,29:26,5:40,10.59,371.0,27,,,,2012-10-23-184356.gpx +2012-10-20 08:37:33,e91aba7a-6bc5-418a-98f4-e6b23d80e7e5,Running,,3.18,19:28,6:07,9.8,228.0,18,,,,2012-10-20-083733.gpx +2012-10-18 18:39:07,9beb9122-ddc7-4e0b-ac94-7c3064fcf669,Running,,3.7,19:17,5:13,11.51,264.0,20,,,,2012-10-18-183907.gpx +2012-10-16 20:27:31,20e33458-ae07-4b47-92d8-5d565666216a,Running,,1.28,13:17,10:24,5.77,69.0,9,,,,2012-10-16-202731.gpx +2012-09-22 08:56:08,07b5c213-ee70-4499-ad44-fd8cfe3f2fb5,Running,,3.16,16:26,5:13,11.52,225.0,18,,,,2012-09-22-085608.gpx +2012-09-15 08:05:15,94a6d776-4746-4fab-9923-e8d443888e9c,Running,,3.11,16:58,5:28,10.98,223.0,18,,,,2012-09-15-080515.gpx +2012-09-08 08:35:02,730f5507-59cc-43e6-b696-387f0946c57e,Running,,3.27,15:55,4:52,12.32,231.0,15,,,,2012-09-08-083502.gpx +2012-09-04 19:12:17,9a6868f1-a41c-435e-9775-d7a803aa61ad,Running,,6.26,32:35,5:12,11.53,455.0,34,,,,2012-09-04-191217.gpx +2012-09-03 15:25:22,a5be0bd3-03ae-430e-bcc8-c4a02d0a921e,Walking,,2.49,26:58,10:51,5.53,189.0,14,,,,2012-09-03-152522.gpx +2012-09-03 13:20:56,1295cefc-d712-4e02-8915-61cf3dc4a4b8,Walking,,4.29,39:25,9:12,6.53,316.0,112,,,,2012-09-03-132056.gpx +2012-09-02 08:41:31,4a9e2e1b-3a98-4630-8a89-3632aea5559a,Running,,3.14,16:16,5:11,11.56,230.0,18,,,,2012-09-02-084131.gpx +2012-08-30 07:10:21,3067c059-dd1a-4df7-90b7-5e30b9d7e355,Walking,,1.43,15:12,10:40,5.63,77.0,7,,,I was feeling sick,2012-08-30-071021.gpx +2012-08-29 18:19:26,bad065da-c772-4acc-a986-bc60aafa9473,Walking,,1.34,13:14,9:55,6.05,82.0,16,,,,2012-08-29-181926.gpx +2012-08-29 08:21:43,5c8520ac-6d45-4c1d-b0a9-61e9c689c1fd,Walking,,1.48,14:48,10:02,5.98,89.0,6,,,,2012-08-29-082143.gpx +2012-08-28 19:43:52,159e2b06-5808-4204-9d86-013132be67af,Walking,,1.46,13:24,9:12,6.52,87.0,13,,,,2012-08-28-194352.gpx +2012-08-28 07:06:57,f5218490-a372-44c8-bb20-de3b91984cbe,Walking,,1.57,13:39,8:41,6.91,926743.0,7,,,,2012-08-28-070657.gpx +2012-08-24 12:59:42,018f66a7-da5e-4985-a8fe-725a33317c87,Walking,,1.48,17:56,12:09,4.94,942192.0,12,,,,2012-08-24-125942.gpx +2012-08-24 10:12:16,7acec95a-d63d-435d-837c-7befb352f500,Walking,,1.49,13:43,9:14,6.49,924486.0,9,,,,2012-08-24-101216.gpx +2012-08-24 08:13:12,f790bdb2-b921-4018-bd39-d59d870c5847,Running,,3.15,16:00,5:05,11.82,2288868.0,17,,,,2012-08-24-081312.gpx +2012-08-22 18:53:54,706d4d6b-767d-40aa-81c9-e5e85a102051,Running,,5.69,31:08,5:29,10.95,4072685.0,32,,,,2012-08-22-185354.gpx diff --git a/manifest.xml b/manifest.xml index 6d512d3..d25297e 100644 --- a/manifest.xml +++ b/manifest.xml @@ -5,7 +5,7 @@ Use "Monkey C: Edit Application" from the Visual Studio Code command palette to update the application attributes. --> - +