Load.h 798 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <Fortschritt.h>
  3. #include <TextFeld.h>
  4. #include "Menu.h"
  5. #undef LoadMenu
  6. class ServerStatus;
  7. class FactoryClient;
  8. class LoadMenu : public Menu
  9. {
  10. private:
  11. FBalken* step;
  12. TextFeld* stepTitle;
  13. FBalken* stage;
  14. TextFeld* stageTitle;
  15. FBalken* all;
  16. public:
  17. LoadMenu(Bildschirm* zScreen);
  18. void load(FactoryClient* client,
  19. Text name,
  20. Text secret,
  21. unsigned short port,
  22. std::function<void(int, Text)> onFinish);
  23. void stepProgress(int stepSize);
  24. void beginNextStep(const char* title, int nextStepSize);
  25. void stageProgress(int stepSize);
  26. void beginNextStage(const char* title, int nextStageSize);
  27. void allProgress(int stepSize);
  28. };
  29. Bild* loadImage(Framework::Text path);