NewProjectWindow.h 763 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #pragma once
  2. #include "PolycodeGlobals.h"
  3. #include "PolycodeUI.h"
  4. #include "Polycode.h"
  5. using namespace Polycode;
  6. class TemplateUserData {
  7. public:
  8. String templateFolder;
  9. int type;
  10. };
  11. class NewProjectWindow : public UIWindow {
  12. public:
  13. NewProjectWindow();
  14. ~NewProjectWindow();
  15. void parseTemplatesIntoTree(UITree *tree, OSFileEntry folder);
  16. String getTemplateFolder();
  17. String getProjectName();
  18. String getProjectLocation();
  19. void handleEvent(Event *event);
  20. void ResetForm();
  21. protected:
  22. UITree *defaultTemplateTree;
  23. UITextInput *projectLocationInput;
  24. UITextInput *projectNameInput;
  25. UIButton *cancelButton;
  26. UIButton *okButton;
  27. UIButton *locationSelectButton;
  28. UITreeContainer *templateContainer;
  29. String templateFolder;
  30. };