/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/mainview_screen/MainViewViewBase.hpp>
#include <touchgfx/Color.hpp>
#include <texts/TextKeysAndLanguages.hpp>
#include "BitmapDatabase.hpp"

MainViewViewBase::MainViewViewBase() :
    buttonCallback(this, &MainViewViewBase::buttonCallbackHandler)
{

    touchgfx::CanvasWidgetRenderer::setupBuffer(canvasBuffer, CANVAS_BUFFER_SIZE);

    __background.setPosition(0, 0, 480, 272);
    __background.setColor(touchgfx::Color::getColorFrom24BitRGB(0, 0, 0));

    bgView.setPosition(0, 0, 480, 270);
    bgView.setColor(touchgfx::Color::getColorFrom24BitRGB(255, 255, 255));

    labelTitle.setXY(337, 254);
    labelTitle.setColor(touchgfx::Color::getColorFrom24BitRGB(0, 0, 0));
    labelTitle.setLinespacing(0);
    labelTitle.setRotation(touchgfx::TEXT_ROTATE_180);
    labelTitle.setTypedText(touchgfx::TypedText(T_SINGLEUSEID1));

    bgSignal.setPosition(225, 18, 150, 23);
    bgSignal.setColor(touchgfx::Color::getColorFrom24BitRGB(20, 151, 197));

    labelSignal.setPosition(232, 24, 137, 13);
    labelSignal.setColor(touchgfx::Color::getColorFrom24BitRGB(0, 0, 0));
    labelSignal.setLinespacing(0);
    labelSignal.setRotation(touchgfx::TEXT_ROTATE_180);
    touchgfx::Unicode::snprintf(labelSignalBuffer1, LABELSIGNALBUFFER1_SIZE, "%s", touchgfx::TypedText(T_SINGLEUSEID3).getText());
    labelSignal.setWildcard1(labelSignalBuffer1);
    touchgfx::Unicode::snprintf(labelSignalBuffer2, LABELSIGNALBUFFER2_SIZE, "%s", touchgfx::TypedText(T_SINGLEUSEID4).getText());
    labelSignal.setWildcard2(labelSignalBuffer2);
    labelSignal.setTypedText(touchgfx::TypedText(T_SINGLEUSEID2));

    labelDivTime.setPosition(125, 24, 70, 13);
    labelDivTime.setColor(touchgfx::Color::getColorFrom24BitRGB(0, 0, 0));
    labelDivTime.setLinespacing(0);
    labelDivTime.setRotation(touchgfx::TEXT_ROTATE_180);
    Unicode::snprintf(labelDivTimeBuffer, LABELDIVTIME_SIZE, "%s", touchgfx::TypedText(T_SINGLEUSEID6).getText());
    labelDivTime.setWildcard(labelDivTimeBuffer);
    labelDivTime.setTypedText(touchgfx::TypedText(T_SINGLEUSEID5));

    chartBG.setPosition(10, 62, 460, 190);
    chartBG.setColor(touchgfx::Color::getColorFrom24BitRGB(0, 0, 0));

    chart.setScale(1);
    chart.setPosition(10, 62, 460, 190);
    chart.setGraphAreaMargin(0, 0, 0, 0);
    chart.setGraphAreaPadding(0, 0, 0, 0);
    chart.setGraphRangeY(0, 4000);

    chartMajorXAxisGrid.setScale(1);
    chartMajorXAxisGrid.setColor(touchgfx::Color::getColorFrom24BitRGB(255, 255, 255));
    chartMajorXAxisGrid.setInterval(1000);
    chartMajorXAxisGrid.setLineWidth(1);
    chartMajorXAxisGrid.setAlpha(100);
    chart.addGraphElement(chartMajorXAxisGrid);

    chartDiamonds1.setScale(1);
    chartDiamonds1Painter.setColor(touchgfx::Color::getColorFrom24BitRGB(20, 151, 197));
    chartDiamonds1.setPainter(chartDiamonds1Painter);
    chartDiamonds1.setDiamondWidth(2);
    chart.addGraphElement(chartDiamonds1);

    chart.addDataPoint(2498.16152996877f);
    chart.addDataPoint(2353.95011743646f);
    chart.addDataPoint(2210.80821332167f);
    chart.addDataPoint(2070.05481729737f);
    chart.addDataPoint(1932.97153961643f);
    chart.addDataPoint(1800.78814567344f);
    chart.addDataPoint(1674.66882819202f);
    chart.addDataPoint(1555.69916716249f);
    chart.addDataPoint(1444.87411595045f);
    chart.addDataPoint(1343.08698011751f);
    chart.addDataPoint(1251.11972804461f);
    chart.addDataPoint(1169.63449708926f);
    chart.addDataPoint(1099.16662094741f);
    chart.addDataPoint(1040.11906555873f);
    chart.addDataPoint(992.758542289057f);
    chart.addDataPoint(957.213121282826f);
    chart.addDataPoint(933.471549578937f);
    chart.addDataPoint(921.38424501381f);
    chart.addDataPoint(920.665790167825f);
    chart.addDataPoint(930.899187522654f);
    chart.addDataPoint(951.541530336835f);
    chart.addDataPoint(981.93123076167f);
    chart.addDataPoint(1021.29663957473f);
    chart.addDataPoint(1068.76586000854f);
    chart.addDataPoint(1123.37796281667f);
    chart.addDataPoint(1184.09489254652f);
    chart.addDataPoint(1249.8145791573f);
    chart.addDataPoint(1319.38467005141f);
    chart.addDataPoint(1391.61679834098f);
    chart.addDataPoint(1465.30135390912f);
    chart.addDataPoint(1539.22239194769f);
    chart.addDataPoint(1612.17263012064f);
    chart.addDataPoint(1682.96846154533f);
    chart.addDataPoint(1750.46432811646f);
    chart.addDataPoint(1813.56696147545f);
    chart.addDataPoint(1871.24883186929f);
    chart.addDataPoint(1922.56077711325f);
    chart.addDataPoint(1966.64374977601f);
    chart.addDataPoint(2002.73940438593f);
    chart.addDataPoint(2030.19950071225f);
    chart.addDataPoint(2048.49403431417f);
    chart.addDataPoint(2057.21777807045f);
    chart.addDataPoint(2056.09550467788f);
    chart.addDataPoint(2044.98552461555f);
    chart.addDataPoint(2023.88166162241f);
    chart.addDataPoint(1992.91358991483f);
    chart.addDataPoint(1952.34552608547f);
    chart.addDataPoint(1902.57327759355f);
    chart.addDataPoint(1844.11977000313f);
    chart.addDataPoint(1777.62897037958f);
    chart.addDataPoint(1703.85838058905f);
    chart.addDataPoint(1623.67014552512f);
    chart.addDataPoint(1538.02089450502f);
    chart.addDataPoint(1447.9504312774f);
    chart.addDataPoint(1354.56943547979f);
    chart.addDataPoint(1259.0461475607f);
    chart.addDataPoint(1162.59262620909f);
    chart.addDataPoint(1066.45017210997f);
    chart.addDataPoint(971.874501447191f);
    chart.addDataPoint(880.120711308616f);
    chart.addDataPoint(792.428184160252f);
    chart.addDataPoint(710.005681751191f);
    chart.addDataPoint(634.016768675663f);
    chart.addDataPoint(565.565601529158f);
    chart.addDataPoint(505.68368954229f);
    chart.addDataPoint(455.317158634531f);
    chart.addDataPoint(415.315187263601f);
    chart.addDataPoint(386.419490879107f);
    chart.addDataPoint(369.255042057208f);
    chart.addDataPoint(364.322200496632f);
    chart.addDataPoint(371.990166717139f);
    chart.addDataPoint(392.492133117652f);
    chart.addDataPoint(425.921861841366f);
    chart.addDataPoint(472.231936115555f);
    chart.addDataPoint(531.233706073466f);
    chart.addDataPoint(602.598789580077f);
    chart.addDataPoint(685.862296500597f);
    chart.addDataPoint(780.427567731731f);
    chart.addDataPoint(885.572529669522f);
    chart.addDataPoint(1000.45742275318f);
    chart.addDataPoint(1124.13399219547f);
    chart.addDataPoint(1255.55587422353f);
    chart.addDataPoint(1393.59021511007f);
    chart.addDataPoint(1537.03019411295f);
    chart.addDataPoint(1684.60852006747f);
    chart.addDataPoint(1835.01153347648f);
    chart.addDataPoint(1986.89399779531f);
    chart.addDataPoint(2138.89404077774f);
    chart.addDataPoint(2289.64847189597f);
    chart.addDataPoint(2437.80808073271f);
    chart.addDataPoint(2582.05272647299f);
    chart.addDataPoint(2721.10608771059f);
    chart.addDataPoint(2853.74994882636f);
    chart.addDataPoint(2978.83781807243f);
    chart.addDataPoint(3095.30756984534f);
    chart.addDataPoint(3202.19327671974f);
    chart.addDataPoint(3298.63579179001f);
    chart.addDataPoint(3383.89217684947f);
    chart.addDataPoint(3457.34366964745f);
    chart.addDataPoint(3518.50230180494f);
    chart.addDataPoint(3567.01591958549f);
    chart.addDataPoint(3602.67163395874f);
    chart.addDataPoint(3625.39767053562f);
    chart.addDataPoint(3635.26355411185f);
    chart.addDataPoint(3632.47862876818f);
    chart.addDataPoint(3617.38900991434f);
    chart.addDataPoint(3590.47286387441f);
    chart.addDataPoint(3552.33423363138f);
    chart.addDataPoint(3503.69537303091f);
    chart.addDataPoint(3445.38761143459f);
    chart.addDataPoint(3378.3412081086f);
    chart.addDataPoint(3303.57380212666f);
    chart.addDataPoint(3222.17802057502f);
    chart.addDataPoint(3135.30817200449f);
    chart.addDataPoint(3044.166248269f);
    chart.addDataPoint(2949.98745373155f);
    chart.addDataPoint(2854.02518371323f);
    chart.addDataPoint(2757.53615856496f);
    chart.addDataPoint(2661.76522859386f);
    chart.addDataPoint(2567.93050714519f);
    chart.addDataPoint(2477.20883705247f);
    chart.addDataPoint(2390.72175970029f);
    chart.addDataPoint(2309.52218834859f);
    chart.addDataPoint(2234.58193493706f);
    chart.addDataPoint(2166.78013694806f);
    chart.addDataPoint(2106.89301267804f);
    chart.addDataPoint(2055.58465989646f);
    chart.addDataPoint(2013.39932441127f);
    chart.addDataPoint(1980.75508403971f);
    chart.addDataPoint(1957.93907588148f);
    chart.addDataPoint(1945.1042817061f);
    chart.addDataPoint(1942.26794078699f);
    chart.addDataPoint(1949.31162629146f);
    chart.addDataPoint(1965.98289062426f);
    chart.addDataPoint(1991.89859887366f);
    chart.addDataPoint(2026.54977969581f);
    chart.addDataPoint(2069.3080249602f);
    chart.addDataPoint(2119.433335051f);
    chart.addDataPoint(2176.08324500966f);
    chart.addDataPoint(2238.32337033183f);
    chart.addDataPoint(2305.13876941222f);
    chart.addDataPoint(2375.44655479914f);
    chart.addDataPoint(2448.10922594882f);
    chart.addDataPoint(2521.94863912144f);
    chart.addDataPoint(2595.76056303148f);
    chart.addDataPoint(2668.32948177598f);
    chart.addDataPoint(2738.4435797728f);
    chart.addDataPoint(2804.90985277496f);
    chart.addDataPoint(2866.56866627047f);
    chart.addDataPoint(2922.30828770099f);
    chart.addDataPoint(2971.07872543616f);
    chart.addDataPoint(3011.90481544661f);
    chart.addDataPoint(3043.89854139799f);
    chart.addDataPoint(3066.27023498035f);
    chart.addDataPoint(3078.33868226174f);
    chart.addDataPoint(3079.54003172265f);
    chart.addDataPoint(3069.43510535031f);
    chart.addDataPoint(3047.71550665825f);
    chart.addDataPoint(3014.20800126284f);
    chart.addDataPoint(2968.87739554036f);
    chart.addDataPoint(2911.82778837808f);
    chart.addDataPoint(2843.30211356424f);
    chart.addDataPoint(2763.68011441604f);
    chart.addDataPoint(2673.4746622863f);
    chart.addDataPoint(2573.32650786433f);
    chart.addDataPoint(2463.99754642104f);
    chart.addDataPoint(2346.362568763f);
    chart.addDataPoint(2221.39977876022f);
    chart.addDataPoint(2090.17997322145f);
    chart.addDataPoint(1953.85471604644f);
    chart.addDataPoint(1813.64340885993f);
    chart.addDataPoint(1670.81975385948f);
    chart.addDataPoint(1526.69735672767f);
    chart.addDataPoint(1382.61496923895f);
    chart.addDataPoint(1239.92132944347f);
    chart.addDataPoint(1099.95995587542f);
    chart.addDataPoint(964.053892264863f);
    chart.addDataPoint(833.490758502282f);
    chart.addDataPoint(709.508057423063f);
    chart.addDataPoint(593.279270304739f);
    chart.addDataPoint(485.900483250455f);
    chart.addDataPoint(388.377965351926f);
    chart.addDataPoint(301.616800551568f);
    chart.addDataPoint(226.410680474746f);
    chart.addDataPoint(163.43295501403f);
    chart.addDataPoint(113.229075138452f);
    chart.addDataPoint(76.2105749778991f);
    chart.addDataPoint(52.6505180589065f);
    chart.addDataPoint(42.6806035220837f);
    chart.addDataPoint(46.2898714575933f);
    chart.addDataPoint(63.3250931045901f);
    chart.addDataPoint(93.4927744120464f);
    chart.addDataPoint(136.362787286027f);
    chart.addDataPoint(191.373643826556f);
    chart.addDataPoint(257.839143167425f);
    chart.addDataPoint(334.956595035294f);
    chart.addDataPoint(421.816315070845f);
    chart.addDataPoint(517.412361789622f);
    chart.addDataPoint(620.654370745523f);
    chart.addDataPoint(730.380356240368f);
    chart.addDataPoint(845.37028959636f);
    chart.addDataPoint(964.360467495699f);
    chart.addDataPoint(1086.05808950723f);
    chart.addDataPoint(1209.15640558989f);
    chart.addDataPoint(1332.34988107002f);
    chart.addDataPoint(1454.34932207031f);
    chart.addDataPoint(1573.89676964443f);
    chart.addDataPoint(1689.78000127185f);
    chart.addDataPoint(1800.84653724104f);
    chart.addDataPoint(1906.01670713524f);
    chart.addDataPoint(2004.29605104954f);
    chart.addDataPoint(2094.78654937146f);
    chart.addDataPoint(2176.69675925518f);
    chart.addDataPoint(2249.35059519109f);
    chart.addDataPoint(2312.19479389216f);
    chart.addDataPoint(2364.80485171087f);
    chart.addDataPoint(2406.88943546893f);
    chart.addDataPoint(2438.29320033238f);
    chart.addDataPoint(2458.99798635566f);
    chart.addDataPoint(2469.12234008041f);
    chart.addDataPoint(2468.91947352481f);
    chart.addDataPoint(2458.77351973709f);
    chart.addDataPoint(2439.19432293755f);
    chart.addDataPoint(2410.81068455502f);
    chart.addDataPoint(2374.36208998218f);
    chart.addDataPoint(2330.68937852645f);
    chart.addDataPoint(2280.72391295925f);
    chart.addDataPoint(2225.47586807717f);
    chart.addDataPoint(2166.02149167661f);
    chart.addDataPoint(2103.48957747199f);
    chart.addDataPoint(2039.04741596675f);
    chart.addDataPoint(1973.88602793813f);
    chart.addDataPoint(1909.20552218248f);
    chart.addDataPoint(1846.19997587994f);
    chart.addDataPoint(1786.04253402068f);
    chart.addDataPoint(1729.87080256671f);
    chart.addDataPoint(1678.77255417956f);
    chart.addDataPoint(1633.77213758327f);
    chart.addDataPoint(1595.81758930656f);
    chart.addDataPoint(1565.76855018638f);
    chart.addDataPoint(1544.38551394646f);
    chart.addDataPoint(1532.31997294539f);
    chart.addDataPoint(1530.10597737818f);
    chart.addDataPoint(1538.15313844642f);
    chart.addDataPoint(1556.74101607895f);
    chart.addDataPoint(1586.01515687331f);
    chart.addDataPoint(1625.9846632246f);
    chart.addDataPoint(1676.52140771814f);
    chart.addDataPoint(1737.36092814148f);
    chart.addDataPoint(1808.10487827696f);
    chart.addDataPoint(1888.22516451379f);
    chart.addDataPoint(1977.06958137832f);
    chart.addDataPoint(2073.86894154431f);
    chart.addDataPoint(2177.74563684763f);
    chart.addDataPoint(2287.72354797896f);
    chart.addDataPoint(2402.73899488014f);
    chart.addDataPoint(2521.65291823011f);
    chart.addDataPoint(2643.26388132495f);
    chart.addDataPoint(2766.32189239938f);
    chart.addDataPoint(2889.54278249335f);
    chart.addDataPoint(3011.62306557547f);
    chart.addDataPoint(3131.25499905342f);
    chart.addDataPoint(3247.14188083541f);
    chart.addDataPoint(3358.0129709998f);
    chart.addDataPoint(3462.63841824187f);
    chart.addDataPoint(3559.84359562074f);
    chart.addDataPoint(3648.52285735013f);
    chart.addDataPoint(3727.65250435361f);
    chart.addDataPoint(3796.30282722524f);
    chart.addDataPoint(3853.64905371093f);
    chart.addDataPoint(3898.98117791971f);
    chart.addDataPoint(3931.71229875958f);
    chart.addDataPoint(3951.38572146587f);
    chart.addDataPoint(3957.68045537062f);
    chart.addDataPoint(3950.41517261464f);
    chart.addDataPoint(3929.55055854869f);
    chart.addDataPoint(3895.19000288732f);
    chart.addDataPoint(3847.57864600903f);
    chart.addDataPoint(3787.10080002096f);
    chart.addDataPoint(3714.27573869891f);
    chart.addDataPoint(3629.75195174718f);
    chart.addDataPoint(3534.29986340332f);
    chart.addDataPoint(3428.80319976948f);
    chart.addDataPoint(3314.24898859747f);
    chart.addDataPoint(3191.71643507156f);
    chart.addDataPoint(3062.36461146352f);
    chart.addDataPoint(2927.41944329348f);
    chart.addDataPoint(2788.15972115477f);
    chart.addDataPoint(2645.90264312584f);
    chart.addDataPoint(2501.98884496645f);
    chart.addDataPoint(2357.76726270145f);
    chart.addDataPoint(2214.57983025488f);
    chart.addDataPoint(2073.74636632937f);
    chart.addDataPoint(1936.54960532935f);
    chart.addDataPoint(1804.22089677646f);
    chart.addDataPoint(1677.92634493268f);
    chart.addDataPoint(1558.75377445362f);
    chart.addDataPoint(1447.70067201258f);
    chart.addDataPoint(1345.6632080031f);
    chart.addDataPoint(1253.4264045126f);
    chart.addDataPoint(1171.65566854496f);
    chart.addDataPoint(1100.88976868054f);
    chart.addDataPoint(1041.53524635275f);
    chart.addDataPoint(993.862465092334f);
    chart.addDataPoint(958.003180627205f);
    chart.addDataPoint(933.949859564873f);
    chart.addDataPoint(921.556530593503f);
    chart.addDataPoint(920.541329289649f);
    chart.addDataPoint(930.490704937062f);
    chart.addDataPoint(950.864993196064f);
    chart.addDataPoint(981.005649077371f);
    chart.addDataPoint(1020.14382101058f);
    chart.addDataPoint(1067.41015692803f);
    chart.addDataPoint(1121.84589142383f);
    chart.addDataPoint(1182.41487125746f);
    chart.addDataPoint(1248.01652164594f);
    chart.addDataPoint(1317.49969871034f);
    chart.addDataPoint(1389.67677360021f);
    chart.addDataPoint(1463.33850793239f);
    chart.addDataPoint(1537.26893053666f);
    chart.addDataPoint(1610.26036401239f);
    chart.addDataPoint(1681.12832816866f);
    chart.addDataPoint(1748.72606660092f);
    chart.addDataPoint(1811.95881658905f);
    chart.addDataPoint(1869.79709527656f);
    chart.addDataPoint(1921.28951063418f);
    chart.addDataPoint(1965.57448330145f);
    chart.addDataPoint(2001.89086569557f);
    chart.addDataPoint(2029.58740943056f);
    chart.addDataPoint(2048.13084529744f);
    chart.addDataPoint(2057.11257466468f);
    chart.addDataPoint(2056.25388421828f);
    chart.addDataPoint(2045.40950085282f);
    chart.addDataPoint(2024.56964241742f);
    chart.addDataPoint(1993.86038960647f);
    chart.addDataPoint(1953.54241075325f);
    chart.addDataPoint(1904.00809154626f);
    chart.addDataPoint(1845.77705060754f);
    chart.addDataPoint(1779.49015375888f);
    chart.addDataPoint(1705.90196543066f);
    chart.addDataPoint(1625.87199676958f);
    chart.addDataPoint(1540.35451220129f);
    chart.addDataPoint(1450.38726430556f);
    chart.addDataPoint(1357.07919241112f);
    chart.addDataPoint(1261.59723989917f);
    chart.addDataPoint(1165.15249486225f);
    chart.addDataPoint(1068.98560742878f);
    chart.addDataPoint(974.352139779205f);
    chart.addDataPoint(882.507398631334f);
    chart.addDataPoint(794.691376751108f);
    chart.addDataPoint(712.113841980428f);
    chart.addDataPoint(635.939706871071f);
    chart.addDataPoint(567.274941714921f);
    chart.addDataPoint(507.15314312083f);
    chart.addDataPoint(456.522808819327f);
    chart.addDataPoint(416.235853959984f);
    chart.addDataPoint(387.036969719073f);
    chart.addDataPoint(369.55433315549f);
    chart.addDataPoint(364.29169162753f);
    chart.addDataPoint(371.621813962782f);
    chart.addDataPoint(391.781540339122f);
    chart.addDataPoint(424.868359468104f);
    chart.addDataPoint(470.83860623253f);
    chart.addDataPoint(529.507366880094f);
    chart.addDataPoint(600.54993098868f);
    chart.addDataPoint(683.504974994862f);
    chart.addDataPoint(777.779276008702f);
    chart.addDataPoint(882.653963300039f);
    chart.addDataPoint(997.292285246845f);
    chart.addDataPoint(1120.74875519554f);
    chart.addDataPoint(1251.97946884273f);
    chart.addDataPoint(1389.85370193824f);
    chart.addDataPoint(1533.16642478815f);
    chart.addDataPoint(1680.65177820295f);
    chart.addDataPoint(1830.99715142559f);
    chart.addDataPoint(1982.85791724914f);
    chart.addDataPoint(2134.87243854262f);
    chart.addDataPoint(2285.67742200897f);
    chart.addDataPoint(2433.9230610023f);
    chart.addDataPoint(2578.2882510653f);
    chart.addDataPoint(2717.49532120618f);
    chart.addDataPoint(2850.32435993187f);
    chart.addDataPoint(2975.62675594322f);
    chart.addDataPoint(3092.33801373674f);
    chart.addDataPoint(3199.48949559456f);
    chart.addDataPoint(3296.21913159931f);
    chart.addDataPoint(3381.78077265175f);
    chart.addDataPoint(3455.55227068475f);
    chart.addDataPoint(3517.04211665236f);
    chart.addDataPoint(3565.89450437512f);
    chart.addDataPoint(3601.8928130386f);
    chart.addDataPoint(3624.96153115415f);
    chart.addDataPoint(3635.16642408051f);
    chart.addDataPoint(3632.71317821097f);
    chart.addDataPoint(3617.94432952306f);
    chart.addDataPoint(3591.33461477786f);
    chart.addDataPoint(3553.48483595369f);
    chart.addDataPoint(3505.11418751151f);
    chart.addDataPoint(3447.05128616496f);
    chart.addDataPoint(3380.22391379834f);
    chart.addDataPoint(3305.64749791147f);
    chart.addDataPoint(3224.41286875589f);
    chart.addDataPoint(3137.67287670428f);
    chart.addDataPoint(3046.62843409265f);
    chart.addDataPoint(2952.51402656411f);
    chart.addDataPoint(2856.58281810206f);
    chart.addDataPoint(2760.091608704f);
    chart.addDataPoint(2664.28578438551f);
    chart.addDataPoint(2570.38429951837f);
    chart.addDataPoint(2479.56530457072f);
    chart.addDataPoint(2392.95198315891f);
    chart.addDataPoint(2311.59923422638f);
    chart.addDataPoint(2236.48115524935f);
    chart.addDataPoint(2168.47952031568f);
    chart.addDataPoint(2108.37339412916f);
    chart.addDataPoint(2056.82992602497f);
    chart.addDataPoint(2014.39664288975f);
    chart.addDataPoint(1981.495038458f);
    chart.addDataPoint(1958.41577151333f);
    chart.addDataPoint(1945.31540727837f);
    chart.addDataPoint(1942.21480435281f);
    chart.addDataPoint(1948.99910599523f);
    chart.addDataPoint(1965.41937643595f);
    chart.addDataPoint(1991.09591078094f);
    chart.addDataPoint(2025.52299108748f);
    chart.addDataPoint(2068.07528223298f);
    chart.addDataPoint(2118.01563201244f);
    chart.addDataPoint(2174.50418683294f);
    chart.addDataPoint(2236.60881235034f);
    chart.addDataPoint(2303.31656583111f);
    chart.addDataPoint(2373.5461653903f);
    chart.addDataPoint(2446.16143700458f);
    chart.addDataPoint(2519.98510176538f);
    chart.addDataPoint(2593.81343038455f);
    chart.addDataPoint(2666.4310124983f);
    chart.addDataPoint(2736.62576879968f);
    chart.addDataPoint(2803.2039479659f);
    chart.addDataPoint(2865.00483561013f);
    chart.addDataPoint(2920.91532333287f);
    chart.addDataPoint(2969.88356107525f);
    chart.addDataPoint(3010.93224353809f);
    chart.addDataPoint(3043.17089357408f);
    chart.addDataPoint(3065.8070907262f);
    chart.addDataPoint(3078.15665948738f);
    chart.addDataPoint(3079.65248281779f);
    chart.addDataPoint(3069.85200594073f);
    chart.addDataPoint(3048.44331873356f);
    chart.addDataPoint(3015.24954647983f);
    chart.addDataPoint(2970.23181101964f);
    chart.addDataPoint(2913.49051528455f);
    chart.addDataPoint(2845.26492082728f);
    chart.addDataPoint(2765.93119664907f);
    chart.addDataPoint(2675.99873849282f);
    chart.addDataPoint(2576.10500292531f);
    chart.addDataPoint(2467.00874055675f);
    chart.addDataPoint(2349.58187879895f);
    chart.addDataPoint(2224.80001320788f);
    chart.addDataPoint(2093.73163279017f);
    chart.addDataPoint(1957.52629442287f);
    chart.addDataPoint(1817.40182531075f);

    btnPlus.setXY(5, 1);
    btnPlus.setBitmaps(touchgfx::Bitmap(BITMAP_BLUE_BUTTONS_SQUARE_ICON_BUTTON_ID), touchgfx::Bitmap(BITMAP_BLUE_BUTTONS_SQUARE_ICON_BUTTON_PRESSED_ID));
    btnPlus.setAction(buttonCallback);

    btnMinus.setXY(65, 1);
    btnMinus.setBitmaps(touchgfx::Bitmap(BITMAP_BLUE_BUTTONS_SQUARE_ICON_BUTTON_ID), touchgfx::Bitmap(BITMAP_BLUE_BUTTONS_SQUARE_ICON_BUTTON_PRESSED_ID));
    btnMinus.setAction(buttonCallback);

    btnTrigger.setXY(415, 1);
    btnTrigger.setBitmaps(touchgfx::Bitmap(BITMAP_BLUE_BUTTONS_SQUARE_ICON_BUTTON_ID), touchgfx::Bitmap(BITMAP_BLUE_BUTTONS_SQUARE_ICON_BUTTON_PRESSED_ID));
    btnTrigger.setAction(buttonCallback);

    labelTrigger.setXY(428, 24);
    labelTrigger.setColor(touchgfx::Color::getColorFrom24BitRGB(255, 255, 255));
    labelTrigger.setLinespacing(0);
    labelTrigger.setRotation(touchgfx::TEXT_ROTATE_180);
    labelTrigger.setTypedText(touchgfx::TypedText(T_SINGLEUSEID7));

    labelPlus.setXY(18, 2);
    labelPlus.setColor(touchgfx::Color::getColorFrom24BitRGB(255, 255, 255));
    labelPlus.setLinespacing(0);
    labelPlus.setTypedText(touchgfx::TypedText(T_SINGLEUSEID8));

    labelMinus.setXY(85, 2);
    labelMinus.setColor(touchgfx::Color::getColorFrom24BitRGB(255, 255, 255));
    labelMinus.setLinespacing(0);
    labelMinus.setTypedText(touchgfx::TypedText(T_SINGLEUSEID9));

    redLedEnable.setXY(388, 21);
    redLedEnable.setBitmap(touchgfx::Bitmap(BITMAP_RED_LED_CIRCLE_01_ID));

    redLedDisable.setXY(388, 21);
    redLedDisable.setBitmap(touchgfx::Bitmap(BITMAP_RED_LED_CIRCLE_02_ID));

    add(__background);
    add(bgView);
    add(labelTitle);
    add(bgSignal);
    add(labelSignal);
    add(labelDivTime);
    add(chartBG);
    add(chart);
    add(btnPlus);
    add(btnMinus);
    add(btnTrigger);
    add(labelTrigger);
    add(labelPlus);
    add(labelMinus);
    add(redLedEnable);
    add(redLedDisable);
}

void MainViewViewBase::setupScreen()
{

}

void MainViewViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
    if (&src == &btnPlus)
    {
        //onPlusPush
        //When btnPlus clicked call virtual function
        //Call onBtnPlusPressed
        onBtnPlusPressed();
    }
    else if (&src == &btnMinus)
    {
        //onMinusPush
        //When btnMinus clicked call virtual function
        //Call onBtnMinusPressed
        onBtnMinusPressed();
    }
    else if (&src == &btnTrigger)
    {
        //onTriggerPush
        //When btnTrigger clicked execute C++ code
        //Execute C++ code
        //When btnTrigger clicked toggle redLedDisable
        if(redLedDisable.isVisible()){
        	redLedDisable.setVisible(false);
        	redLedDisable.invalidate();
        }
        else{
        	redLedDisable.setVisible(true);
        	redLedDisable.invalidate();
        }

        //onTriggerCheckState
        //When onTriggerPush completed call virtual function
        //Call onCheckBoxTriggerPressed
        onCheckBoxTriggerPressed();
    }
}
