Skip to content

Commit

Permalink
mon values refresh rate
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Feb 15, 2020
1 parent 1207b7b commit 6537d1d
Show file tree
Hide file tree
Showing 16 changed files with 26,578 additions and 26,536 deletions.
127 changes: 53 additions & 74 deletions modular-psu-firmware.eez-project

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/eez/gui/data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,15 @@ Value set(const Cursor &cursor, uint16_t id, Value value) {
return value;
}

uint32_t getTextRefreshRate(const Cursor &cursor, uint16_t id) {
Value value;
g_dataOperationsFunctions[id](DATA_OPERATION_GET_TEXT_REFRESH_RATE, (Cursor &)cursor, value);
if (value.getType() == VALUE_TYPE_UINT32) {
return value.getUInt32();
}
return 0;
}

uint16_t getColor(const Cursor &cursor, uint16_t id, const Style *style) {
Value value((void *)style, VALUE_TYPE_POINTER);
g_dataOperationsFunctions[id](data::DATA_OPERATION_GET_COLOR, (Cursor &)cursor, value);
Expand Down
3 changes: 3 additions & 0 deletions src/eez/gui/data.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ enum DataOperationEnum {
DATA_OPERATION_GET_CONTEXT,
DATA_OPERATION_SET_CONTEXT,
DATA_OPERATION_RESTORE_CONTEXT,
DATA_OPERATION_GET_TEXT_REFRESH_RATE,
DATA_OPERATION_GET_COLOR,
DATA_OPERATION_GET_BACKGROUND_COLOR,
DATA_OPERATION_GET_ACTIVE_COLOR,
Expand Down Expand Up @@ -398,6 +399,8 @@ void getList(const Cursor &cursor, uint16_t id, const Value **labels, int &count
Value get(const Cursor &cursor, uint16_t id);
Value set(const Cursor &cursor, uint16_t id, Value value);

uint32_t getTextRefreshRate(const Cursor &cursor, uint16_t id);

uint16_t getColor(const Cursor &cursor, uint16_t id, const Style *style);
uint16_t getBackgroundColor(const Cursor &cursor, uint16_t id, const Style *style);
uint16_t getActiveColor(const Cursor &cursor, uint16_t id, const Style *style);
Expand Down
12,466 changes: 6,234 additions & 6,232 deletions src/eez/gui/document_simulator.cpp

Large diffs are not rendered by default.

Loading

0 comments on commit 6537d1d

Please sign in to comment.