UISelectList.h 651 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #include "UIWidget.h"
  3. #include "UISelectItem.h"
  4. namespace tb
  5. {
  6. class TBSelectList;
  7. }
  8. namespace Atomic
  9. {
  10. class UISelectList : public UIWidget
  11. {
  12. OBJECT(UISelectList)
  13. public:
  14. UISelectList(Context* context, bool createWidget = true);
  15. virtual ~UISelectList();
  16. void SetFilter(const String& filter);
  17. void SetSource(UISelectItemSource* source);
  18. void InvalidateList();
  19. void SetValue(int value);
  20. int GetValue();
  21. String GetHoverItemID();
  22. String GetSelectedItemID();
  23. tb::TBSelectList* GetTBSelectList();
  24. protected:
  25. virtual bool OnEvent(const tb::TBWidgetEvent &ev);
  26. private:
  27. };
  28. }