summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-07-13 07:04:38 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-07-13 07:04:38 +0300
commitf4f34c24f76584ac4aea0c5f79138a4bcee8dc08 (patch)
tree1fd8aaeea53bcdc540d3b6030642654c7994c7c8
parent6dd47135d4fe5dd9819fcda2674322bad688c3aa (diff)
thinking about proto
-rw-r--r--protocol/udm.proto14
1 files changed, 8 insertions, 6 deletions
diff --git a/protocol/udm.proto b/protocol/udm.proto
index 1a821b8..c928882 100644
--- a/protocol/udm.proto
+++ b/protocol/udm.proto
@@ -19,16 +19,18 @@
*/
+
enum MODULE_UI_ELEMENT_TYPE {
- UI_STRING = 0;
- UI_INTEGER = 1;
- UI_PROGRESS_BAR = 2;
- UI_WINDOW = 3;
- UI_GROUP = 4;
+ UI_EMPTY = 0; //helper type to set empty element
+ UI_STRING = 1; //ui elements containing strings
+ UI_INTEGER = 2; //numeric only ui elements (use strings instead ?)
+ UI_PROGRESS_BAR = 3; //generic progress bar
+ UI_WINDOW = 4; //ui window ...
+ UI_GROUP = 5; //empty ui element to group children together in ui
}
message module_ui_element_info {
- optional MODULE_UI_ELEMENT_TYPE type = 1 [default = UI_STRING];
+ optional MODULE_UI_ELEMENT_TYPE type = 1 [default = UI_EMPTY];
repeated module_ui_element_info children = 2;
required string id = 3; //internal element id used to get element value
optional string name = 4 [default = "not set"];