NewFileWindow.h 460 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "PolycodeGlobals.h"
  3. #include "PolycodeUI.h"
  4. #include "Polycode.h"
  5. using namespace Polycode;
  6. class FileTemplateUserData {
  7. public:
  8. String templateFolder;
  9. int type;
  10. };
  11. class NewFileWindow : public UIWindow {
  12. public:
  13. NewFileWindow();
  14. ~NewFileWindow();
  15. void resetForm();
  16. void parseTemplatesIntoTree(UITree *tree, OSFileEntry folder);
  17. protected:
  18. UITreeContainer *templateContainer;
  19. UITree *defaultTemplateTree;
  20. };