Dialog.h 589 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <Fenster.h>
  3. #include <UIMLView.h>
  4. #include "NetworkAPIProcessor.h"
  5. class UIMLDialog : public Framework::Fenster,
  6. public NetworkAPIProcessor
  7. {
  8. private:
  9. Framework::UIMLView* view;
  10. Framework::Text name;
  11. std::function<void(UIMLDialog* self)> onClose;
  12. public:
  13. UIMLDialog(
  14. Framework::Text uiml, std::function<void(UIMLDialog* self)> onClose);
  15. ~UIMLDialog();
  16. void api(char* message) override;
  17. const Framework::Text& getName() const;
  18. void updateUIML(const char *uiml);
  19. void close();
  20. };