Skip to content

Commit 62b523d

Browse files
committed
default slot settings page
1 parent 096ff6f commit 62b523d

14 files changed

+55626
-55657
lines changed

modular-psu-firmware.eez-project

+10-89
Original file line numberDiff line numberDiff line change
@@ -1837,11 +1837,6 @@
18371837
"type": "boolean",
18381838
"defaultValue": "1"
18391839
},
1840-
{
1841-
"name": "channel_settings_page",
1842-
"type": "string",
1843-
"defaultValue": "ch_settings_ok"
1844-
},
18451840
{
18461841
"name": "is_reset_by_iwdg",
18471842
"type": "boolean",
@@ -10129,28 +10124,6 @@
1012910124
"name": "ch_settings",
1013010125
"description": "Clear, disable and define channel's protection parameters",
1013110126
"style": "default",
10132-
"widgets": [
10133-
{
10134-
"type": "LayoutView",
10135-
"style": {
10136-
"inheritFrom": "default"
10137-
},
10138-
"data": "channel_settings_page",
10139-
"left": 0,
10140-
"top": 0,
10141-
"width": 480,
10142-
"height": 272
10143-
}
10144-
],
10145-
"left": 0,
10146-
"top": 0,
10147-
"width": 480,
10148-
"height": 272
10149-
},
10150-
{
10151-
"name": "ch_settings_ok",
10152-
"description": "Clear, disable and define channel's protection parameters",
10153-
"style": "default",
1015410127
"widgets": [
1015510128
{
1015610129
"type": "Container",
@@ -10907,68 +10880,6 @@
1090710880
"width": 480,
1090810881
"height": 272
1090910882
},
10910-
{
10911-
"name": "ch_settings_error",
10912-
"description": "Clear, disable and define channel's protection parameters",
10913-
"style": "default",
10914-
"widgets": [
10915-
{
10916-
"type": "Container",
10917-
"style": {
10918-
"inheritFrom": "default"
10919-
},
10920-
"left": 0,
10921-
"top": 240,
10922-
"width": 480,
10923-
"height": 32,
10924-
"name": "Status line",
10925-
"widgets": [
10926-
{
10927-
"type": "Text",
10928-
"style": {
10929-
"inheritFrom": "channel1",
10930-
"font": "Heydings14"
10931-
},
10932-
"action": "show_main_page",
10933-
"left": 0,
10934-
"top": 0,
10935-
"width": 41,
10936-
"height": 32,
10937-
"text": "H"
10938-
},
10939-
{
10940-
"type": "Text",
10941-
"style": {
10942-
"inheritFrom": "channel1",
10943-
"alignHorizontal": "left"
10944-
},
10945-
"data": "channel_short_label",
10946-
"left": 41,
10947-
"top": 0,
10948-
"width": 36,
10949-
"height": 32,
10950-
"text": ""
10951-
},
10952-
{
10953-
"type": "Text",
10954-
"style": {
10955-
"inheritFrom": "channel1",
10956-
"alignHorizontal": "left"
10957-
},
10958-
"left": 77,
10959-
"top": 0,
10960-
"width": 403,
10961-
"height": 32,
10962-
"text": "Settings (Error)"
10963-
}
10964-
]
10965-
}
10966-
],
10967-
"left": 0,
10968-
"top": 0,
10969-
"width": 480,
10970-
"height": 272
10971-
},
1097210883
{
1097310884
"name": "ch_settings_prot_clear",
1097410885
"description": "Clear and/or disable selected channel's protection(s)",
@@ -68922,6 +68833,16 @@
6892268833
]
6892368834
}
6892468835
},
68836+
{
68837+
"name": "DEBUg:DOWNload:FIRMware?",
68838+
"description": "Is firmware download in progress?",
68839+
"parameters": [],
68840+
"response": {
68841+
"type": [
68842+
{}
68843+
]
68844+
}
68845+
},
6892568846
{
6892668847
"name": "DEBUg:EVENt",
6892768848
"parameters": [

src/eez/action_impl.cpp

+2-7
Original file line numberDiff line numberDiff line change
@@ -304,17 +304,12 @@ void action_show_edit_mode_slider_help() {
304304

305305
void action_show_slot_settings() {
306306
hmi::selectSlot(getFoundWidgetAtDown().cursor);
307-
308-
showPage(
309-
g_slots[hmi::g_selectedSlotIndex]->getTestResult() == TEST_OK ?
310-
g_slots[hmi::g_selectedSlotIndex]->getSlotSettingsPageId() :
311-
PAGE_ID_SLOT_SETTINGS
312-
);
307+
showPage(g_slots[hmi::g_selectedSlotIndex]->getSlotSettingsPageId());
313308
}
314309

315310
void action_show_ch_settings() {
316311
selectChannelByCursor();
317-
showPage(g_slots[g_channel->slotIndex]->getChannelSettingsPageId());
312+
showPage(g_slots[g_channel->slotIndex]->getSlotSettingsPageId());
318313
}
319314

320315
void action_show_ch_settings_prot_clear() {

src/eez/gui/document_simulator.cpp

+33,618-33,624
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)