feat(color): New label based Model Selector (#1374)

* Model Labels Selector

* Portrait Layout

* Receiver ID Check

* Fix Labels .yml format

* Companion Initial Commit

commit 967ddf3979b4954402fe62c858faba4b7a416bba
Author: dlktdr <cblackburn320@gmail.com>
Date:   Mon Aug 29 01:49:15 2022 -0700

    Fix Labels .yml format

commit 534221cad9e01146c47a9ac1080a655e04f1f6c8
Author: dlktdr <cblackburn320@gmail.com>
Date:   Mon Aug 29 01:20:57 2022 -0700

    Receiver ID Check

commit f32c0939d44e9ae60bc0705a9176354c23fec198
Author: dlktdr <cblackburn320@gmail.com>
Date:   Sun Aug 28 23:13:25 2022 -0700

    Portrait Layout

commit 961181217c7841ff3f21299ac6aa419b810f80e9
Author: dlktdr <cblackburn320@gmail.com>
Date:   Sat Dec 11 16:56:13 2021 -0800

    Model Labels Selector

commit dc99dd40d2
Author: David PHAM-VAN <1387855+DavBfr@users.noreply.github.com>
Date:   Fri Aug 26 03:04:34 2022 -0300

    feat: Allow Lua widget to override built-in widget with same name (#2208)

    * Allow CPP Widgets Override with LUA

    * Reset a widget option it the type differs

commit 4b747caff9
Author: eshifri <46511024+eshifri@users.noreply.github.com>
Date:   Thu Aug 25 19:47:53 2022 -0700

    fix: Write model name into models.yml when duplicating model (#2224)

    * Update model name in the models.yml file (#2214)

    * Fix the length of the name.

commit e97f23a305
Author: eshifri <46511024+eshifri@users.noreply.github.com>
Date:   Wed Aug 24 21:19:52 2022 -0700

    fix(cpn): Fix full path to model notes for Simulator (#2223)

* Correct Highlighted Column

* labels .yml indentation

* Update da.h

New defines translated to Danish

* Update dataconstants.h

Omit warnings due to difference of LEN_MODEL_FILENAME and LEN_MODEL_NAME in modellist.cpp

* Update modelslist.cpp

Wonder if this are the right file in PR #1374 (?), seems a lot are changed to the better in #1374

* Update dataconstants.h

Restore #define for LEN_MODEL_FILENAME to 16

* Rebase, Correct Issues

Delete now deletes instead of select
New model stores correct information
Duplicate save all information in cell
Rework items to use cell over button
Reword function variables

* CMPN: Add context menu

Fix output not functional. Removed Yaml::null at some point :)
Fix some compiler warnings

* CMPN: Compiler warning, replace ,->_ in list

* FW: Various Changes

Change view to a grid
Don't allow comma in label name
Add scroll indicators
Save sort order

Co-authored-by: HThuren <99370924+HThuren@users.noreply.github.com>
This commit is contained in:
Cliff
2022-09-03 09:01:19 +10:00
committed by GitHub
co-authored by HThuren
parent 20dc9c4d26
commit c8693569b0
85 changed files with 4006 additions and 2067 deletions
+15 -11
View File
@@ -331,6 +331,7 @@
#define TR_COPYINGMODEL "复制模型..."
#define TR_MOVINGMODEL "移动模型..."
#define TR_LOADINGMODEL "载入模型..."
#define TR_UNLABELEDMODEL "Unlabeled"
#define TR_NAME "名称"
#define TR_MODELNAME "模型名称"
#define TR_PHASENAME "模式名称"
@@ -626,13 +627,20 @@
#define TR_VOLTAGE TR(INDENT "电压源", INDENT "电压来源")
#define TR_CURRENT TR(INDENT "电流源", INDENT "电流来源")
#define TR_SELECT_MODEL "选择模型"
#define TR_MODEL_CATEGORIES "模型分类"
#define TR_MODELS "个模型"
#define TR_SELECT_MODE "选择模式"
#define TR_CREATE_CATEGORY "创建分类"
#define TR_RENAME_CATEGORY "分类改名"
#define TR_DELETE_CATEGORY "删除分类"
#define TR_CREATE_MODEL "创建模型"
#define TR_FAVORITE_LABEL "Favorites"
#define TR_NEW_MODEL "New Model"
#define TR_EDIT_LABELS "Edit Labels"
#define TR_ENTER_LABEL "Enter Label"
#define TR_LABEL "Label"
#define TR_LABELS "Labels"
#define TR_CURRENT_MODEL "Current"
#define TR_NEW "New"
#define TR_NEW_LABEL "New Label"
#define TR_RENAME_LABEL "Rename Label"
#define TR_DELETE_LABEL "Delete Label"
#define TR_DUPLICATE_MODEL "复制模型"
#define TR_COPY_MODEL "复制模型"
#define TR_MOVE_MODEL "移动模型"
@@ -640,7 +648,6 @@
#define TR_DELETE_MODEL "删除模型"
#define TR_RESTORE_MODEL "恢复模型"
#define TR_DELETE_ERROR "删除失败"
#define TR_CAT_NOT_EMPTY "分类未清空"
#define TR_SDCARD_ERROR TR("存储卡错误", "存储卡错误")
#define TR_SDCARD "存储卡"
#define TR_NO_FILES_ON_SD "存储卡中没有文件!"
@@ -911,11 +918,8 @@
#define TR_TRAINER "教练"
#define TR_CHANS "通道"
#define TR_ANTENNAPROBLEM CENTER "发射机天线故障!"
#if defined(COLORLCD)
#define TR_MODELIDUSED "ID已使用:"
#else
#define TR_MODELIDUSED TR("ID已使用:","ID已使用:")
#endif
#define TR_MODELIDUSED "ID已使用:"
#define TR_MODELIDUNIQUE "ID is unique"
#define TR_MODULE "模块"
#define TR_RX_NAME "接收机名称"
#define TR_TELEMETRY_TYPE TR("类型", "回传类型")
@@ -1334,4 +1338,4 @@
#define TR_PROTOCOL "协议"
#define TR_YEAR "年"
#define TR_MONTH "月"
#define TR_DAY "日"
#define TR_DAY "日"