From 8ab5c13428affa74bdec853c068c59456402c2dd Mon Sep 17 00:00:00 2001 From: that Date: Sun, 13 Sep 2015 23:00:54 +0200 Subject: gui: support conditions for listbox items Change-Id: Iea189ac53ec3d7c1bea83da7b77684778b1c0f46 --- gui/objects.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gui/objects.hpp') diff --git a/gui/objects.hpp b/gui/objects.hpp index 99bf0dbfa..7028956ad 100644 --- a/gui/objects.hpp +++ b/gui/objects.hpp @@ -632,16 +632,18 @@ public: virtual void NotifySelect(size_t item_selected); protected: - struct ListData { + struct ListItem { std::string displayName; std::string variableName; std::string variableValue; unsigned int selected; GUIAction* action; + std::vector mConditions; }; protected: - std::vector mList; + std::vector mListItems; + std::vector mVisibleItems; // contains indexes in mListItems of visible items only std::string mVariable; std::string currentValue; ImageResource* mIconSelected; -- cgit v1.2.3