feat: add Data Model
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include "lvgl/examples/lv_examples.h"
|
||||
#include "lvgl/demos/lv_demos.h"
|
||||
#include "lv_drivers/win32drv/win32drv.h"
|
||||
#include "lvgl_mydemo/demo_init.h"
|
||||
#include "lvgl_mydemo/lvgl_app.h"
|
||||
|
||||
#if _MSC_VER >= 1200
|
||||
// Restore compilation warnings.
|
||||
@@ -34,8 +34,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int main() {
|
||||
lv_init();
|
||||
|
||||
if (!lv_win32_init(
|
||||
@@ -43,8 +42,7 @@ int main()
|
||||
SW_SHOW,
|
||||
800,
|
||||
480,
|
||||
LoadIconW(GetModuleHandleW(NULL), MAKEINTRESOURCE(IDI_LVGL))))
|
||||
{
|
||||
LoadIconW(GetModuleHandleW(NULL), MAKEINTRESOURCE(IDI_LVGL)))) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -105,8 +103,8 @@ int main()
|
||||
// Demos from lv_examples
|
||||
// ----------------------------------
|
||||
|
||||
//demo_init();
|
||||
lv_demo_widgets(); // ok
|
||||
lvgl_app_init();
|
||||
// lv_demo_widgets(); // ok
|
||||
// lv_demo_benchmark();
|
||||
// lv_demo_keypad_encoder(); // ok
|
||||
// lv_demo_music(); // removed from repository
|
||||
@@ -259,8 +257,7 @@ int main()
|
||||
// Task handler loop
|
||||
// ----------------------------------
|
||||
|
||||
while (!lv_win32_quit_signal)
|
||||
{
|
||||
while (!lv_win32_quit_signal) {
|
||||
lv_task_handler();
|
||||
Sleep(1);
|
||||
}
|
||||
|
||||
@@ -25,12 +25,17 @@
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)'=='Release'">MinSpace</Optimization>
|
||||
<LanguageStandard Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">stdcpplatest</LanguageStandard>
|
||||
<LanguageStandard_C Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">stdc17</LanguageStandard_C>
|
||||
<LanguageStandard_C Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">stdc11</LanguageStandard_C>
|
||||
<LanguageStandard Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">stdcpplatest</LanguageStandard>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="LVGL.Portable.vcxitems" />
|
||||
<Import Project="LVGL.Drivers.vcxitems" />
|
||||
<ItemGroup>
|
||||
<ClInclude Include="lvgl_mydemo\demo_init.h" />
|
||||
<ClInclude Include="lvgl_mydemo\data\dataModel.h" />
|
||||
<ClInclude Include="lvgl_mydemo\data\scr_mgr.h" />
|
||||
<ClInclude Include="lv_conf.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -45,7 +50,9 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="LVGL.Simulator.cpp" />
|
||||
<ClCompile Include="lvgl_mydemo\demo_init.c" />
|
||||
<ClCompile Include="lvgl_mydemo\data\dataModel.c" />
|
||||
<ClCompile Include="lvgl_mydemo\data\scr_mgr.c" />
|
||||
<ClCompile Include="lvgl_mydemo\lvgl_app.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="LVGL.Simulator.rc" />
|
||||
|
||||
@@ -5,8 +5,11 @@
|
||||
<ItemGroup>
|
||||
<ClInclude Include="lv_conf.h" />
|
||||
<ClInclude Include="lv_drv_conf.h" />
|
||||
<ClInclude Include="lvgl_mydemo\demo_init.h">
|
||||
<Filter>lvgl_mydemo</Filter>
|
||||
<ClInclude Include="lvgl_mydemo\data\dataModel.h">
|
||||
<Filter>lvgl_mydemo\data</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="lvgl_mydemo\data\scr_mgr.h">
|
||||
<Filter>lvgl_mydemo\data</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -18,9 +21,15 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="LVGL.Simulator.cpp" />
|
||||
<ClCompile Include="lvgl_mydemo\demo_init.c">
|
||||
<ClCompile Include="lvgl_mydemo\lvgl_app.c">
|
||||
<Filter>lvgl_mydemo</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="lvgl_mydemo\data\dataModel.c">
|
||||
<Filter>lvgl_mydemo\data</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="lvgl_mydemo\data\scr_mgr.c">
|
||||
<Filter>lvgl_mydemo\data</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="LVGL.Simulator.rc" />
|
||||
@@ -35,5 +44,23 @@
|
||||
<Filter Include="lvgl_mydemo">
|
||||
<UniqueIdentifier>{8c2243de-0fed-467c-aebe-9ceb4d4cae3e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="lvgl_mydemo\assert">
|
||||
<UniqueIdentifier>{253c6444-7e69-4837-a228-93424f9d3129}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="lvgl_mydemo\data">
|
||||
<UniqueIdentifier>{ff621371-a878-40b4-91ab-cd7be0dc2d4b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="lvgl_mydemo\srceen">
|
||||
<UniqueIdentifier>{c5934b62-3853-4f42-9324-6ffd65bd3527}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="lvgl_mydemo\widgets">
|
||||
<UniqueIdentifier>{f2c004d7-0d9c-41e8-abc9-72caf2c7be27}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="lvgl_mydemo\assert\font">
|
||||
<UniqueIdentifier>{7097f629-8b0d-4ec3-93c8-d8860a89b3e1}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="lvgl_mydemo\assert\image">
|
||||
<UniqueIdentifier>{5aec906d-b671-4778-9999-6dcadc840600}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Submodule LVGL.Simulator/lvgl_mydemo updated: f6e00345b9...6b1cacea04
Reference in New Issue
Block a user