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 "日"