UIDialog.h 939 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "Window.h"
  3. namespace Framework
  4. {
  5. class UIDialog : public Fenster
  6. {
  7. protected:
  8. DLLEXPORT void adjustSize();
  9. public:
  10. DLLEXPORT UIDialog(Schrift* schrift);
  11. DLLEXPORT virtual ~UIDialog();
  12. //! Adds a drawing to the window
  13. //! \param obj The drawing
  14. DLLEXPORT virtual void addMember(Zeichnung* obj) override;
  15. //! Removes a drawing from the window
  16. //! \param zObj The drawing (without increased reference counter)
  17. DLLEXPORT virtual void removeMember(Zeichnung* zObj) override;
  18. //! Removes all drawings from the window
  19. DLLEXPORT virtual void removeAll() override;
  20. };
  21. class UIMessageDialog : public UIDialog
  22. {
  23. public:
  24. DLLEXPORT UIMessageDialog(
  25. const char* titel, const char* message, Schrift* schrift);
  26. DLLEXPORT virtual ~UIMessageDialog();
  27. };
  28. } // namespace Framework