UIMessageWindow.h 741 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include <TurboBadger/tb_message_window.h>
  3. #include "UIWindow.h"
  4. namespace Atomic
  5. {
  6. enum UI_MESSAGEWINDOW_SETTINGS
  7. {
  8. UI_MESSAGEWINDOW_SETTINGS_OK = tb::TB_MSG_OK,
  9. UI_MESSAGEWINDOW_SETTINGS_OK_CANCEL = tb::TB_MSG_OK_CANCEL,
  10. UI_MESSAGEWINDOW_SETTINGS_YES_NO = tb::TB_MSG_YES_NO
  11. };
  12. class UIMessageWindow : public UIWindow
  13. {
  14. OBJECT(UIMessageWindow)
  15. public:
  16. UIMessageWindow(Context* context, UIWidget* target, const String& id, bool createWidget = true);
  17. virtual ~UIMessageWindow();
  18. void Show(const String& title, const String& message, UI_MESSAGEWINDOW_SETTINGS settings, bool dimmer, int width, int height);
  19. protected:
  20. virtual bool OnEvent(const tb::TBWidgetEvent &ev);
  21. private:
  22. };
  23. }