UIMenuWindow.h 474 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <TurboBadger/tb_select_item.h>
  3. #include "UIWidget.h"
  4. namespace Atomic
  5. {
  6. class UISelectItemSource;
  7. class UIMenuWindow : public UIWidget
  8. {
  9. OBJECT(UIMenuWindow)
  10. public:
  11. UIMenuWindow(Context* context, UIWidget* target, const String& id);
  12. virtual ~UIMenuWindow();
  13. void Show(UISelectItemSource* source);
  14. protected:
  15. virtual bool OnEvent(const tb::TBWidgetEvent &ev);
  16. private:
  17. tb::TBGenericStringItemSource* source_;
  18. };
  19. }