Skip to content

Commit

Permalink
read and write profile as text file
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Feb 6, 2020
1 parent 10dd518 commit bed94f7
Show file tree
Hide file tree
Showing 23 changed files with 131,222 additions and 130,291 deletions.
41 changes: 39 additions & 2 deletions modular-psu-firmware.eez-project
Original file line number Diff line number Diff line change
Expand Up @@ -2807,6 +2807,12 @@
},
{
"name": "file_manager_new_file"
},
{
"name": "profile_import"
},
{
"name": "profile_export"
}
],
"extensionDefinitions": [
Expand Down Expand Up @@ -29064,7 +29070,7 @@
},
"action": "profile_save",
"left": 395,
"top": 114,
"top": 30,
"width": 80,
"height": 36,
"text": "Save",
Expand All @@ -29077,7 +29083,7 @@
},
"action": "profile_recall",
"left": 395,
"top": 156,
"top": 72,
"width": 80,
"height": 36,
"text": "Recall",
Expand All @@ -29088,6 +29094,37 @@
"padding": 0
}
},
{
"type": "Text",
"style": {
"inheritFrom": "edit_value_active_S_center"
},
"action": "profile_import",
"left": 395,
"top": 114,
"width": 80,
"height": 36,
"text": "Import",
"focusStyle": {}
},
{
"type": "Button",
"style": {
"inheritFrom": "edit_value_active_S_center"
},
"action": "profile_export",
"left": 395,
"top": 156,
"width": 80,
"height": 36,
"text": "Export",
"enabled": "profile_status",
"disabledStyle": {
"inheritFrom": "bottom_button_textual_S_disabled",
"font": "Oswald14",
"padding": 0
}
},
{
"type": "Button",
"style": {
Expand Down
8 changes: 8 additions & 0 deletions src/eez/gui/action_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,14 @@ void action_profile_save() {
((UserProfilesPage *)getActivePage())->save();
}

void action_profile_import() {
((UserProfilesPage *)getActivePage())->importProfile();
}

void action_profile_export() {
((UserProfilesPage *)getActivePage())->exportProfile();
}

void action_profile_delete() {
((UserProfilesPage *)getActivePage())->deleteProfile();
}
Expand Down
150,102 changes: 75,060 additions & 75,042 deletions src/eez/gui/document_simulator.cpp

Large diffs are not rendered by default.

Loading

0 comments on commit bed94f7

Please sign in to comment.