gui: allow listbox to be used as menu and as read-only list
Also enable string insertion for list items.
Example how to make a menu item:
<listitem name="Lights on!">
<action>
<action function="setbrightness">255</action>
</action>
</listitem>
If no <data> element and no actions on any items exist, the list is
read only and no item selection is possible.
Change-Id: Ib2668a982df2514484d44faa0396dd17550f39f3
diff --git a/gui/objects.hpp b/gui/objects.hpp
index be1f973..f8569d6 100644
--- a/gui/objects.hpp
+++ b/gui/objects.hpp
@@ -634,6 +634,7 @@
std::string displayName;
std::string variableValue;
unsigned int selected;
+ GUIAction* action;
};
protected: