game-importer.hpp 551 B

123456789101112131415161718
  1. struct GameImporter : Panel {
  2. GameImporter(View*);
  3. auto import(string system, const vector<string>& files) -> void;
  4. auto eventChange() -> void;
  5. auto eventClose() -> void;
  6. Label messageLabel{this, Size{~0, 0}};
  7. ListView importList{this, Size{~0, ~0}};
  8. HorizontalLayout controlLayout{this, Size{~0, 0}};
  9. Widget controlSpacer{&controlLayout, Size{~0, 0}};
  10. Button abortButton{&controlLayout, Size{80_sx, 0}};
  11. Button closeButton{&controlLayout, Size{80_sx, 0}};
  12. bool processing = false;
  13. };
  14. extern GameImporter& gameImporter;