Move [outputs] "Trim => Subtrims" button to top, change btn text (#1076)

* partial implementation of 354

* implemented screen refresh and test update

* chaged add to move...after much discussion

* change move to add

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
This commit is contained in:
Kevin Koenig
2021-11-20 22:39:13 +11:00
committed by GitHub
co-authored by kkoenig1@optonline.com <kkoenig1@optonline.com>
parent 3b0e1ab25e
commit 9a795c4126
4 changed files with 11 additions and 0 deletions
+8
View File
@@ -216,6 +216,14 @@ void ModelOutputsPage::build(FormWindow * window, int8_t focusChannel)
grid.spacer(PAGE_PADDING);
grid.setLabelWidth(66);
new TextButton(window, grid.getLineSlot(), STR_ADD_ALL_TRIMS_TO_SUBTRIMS,
[=] () {
moveTrimsToOffsets(); // if highlighted and menu pressed - move trims to offsets
rebuild(window, 0);
return 0;
}, 0, COLOR_THEME_PRIMARY1);
grid.nextLine();
for (uint8_t ch = 0; ch < MAX_OUTPUT_CHANNELS; ch++) {
LimitData * output = limitAddress(ch);
+1
View File
@@ -694,6 +694,7 @@ const char STR_CURVE_PRESET[] = TR_CURVE_PRESET;
const char STR_PRESET[] = TR_PRESET;
const char STR_CLEAR[] = TR_CLEAR;
const char STR_RESET[] = TR_RESET;
const char STR_ADD_ALL_TRIMS_TO_SUBTRIMS[] = TR_ADD_ALL_TRIMS_TO_SUBTRIMS;
const char STR_COUNT[] = TR_COUNT;
const char STR_PT[] = TR_PT;
const char STR_PTS[] = TR_PTS;
+1
View File
@@ -1031,6 +1031,7 @@ extern const char STR_CURVE_PRESET[];
extern const char STR_PRESET[];
extern const char STR_CLEAR[];
extern const char STR_RESET[];
extern const char STR_ADD_ALL_TRIMS_TO_SUBTRIMS[];
extern const char STR_COUNT[];
extern const char STR_PT[];
extern const char STR_PTS[];
+1
View File
@@ -330,6 +330,7 @@
#define TR_USE_THEME_COLOR "Use theme color"
#define TR_ADD_ALL_TRIMS_TO_SUBTRIMS "Add all Trims to Subtrims"
#define TR_DUPLICATE "Duplicate"
#define TR_ACTIVATE "Set Active"
#define TR_RED "Red"