The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
3.5KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  19. #include "../Application/jucer_Headers.h"
  20. #include "jucer_NewProjectWizardClasses.h"
  21. #include "../ProjectSaving/jucer_ProjectExporter.h"
  22. #include "../Utility/UI/jucer_SlidingPanelComponent.h"
  23. struct NewProjectWizardClasses
  24. {
  25. class WizardComp;
  26. #include "jucer_NewProjectWizard.h"
  27. #include "jucer_ProjectWizard_GUIApp.h"
  28. #include "jucer_ProjectWizard_Console.h"
  29. #include "jucer_ProjectWizard_AudioPlugin.h"
  30. #include "jucer_ProjectWizard_StaticLibrary.h"
  31. #include "jucer_ProjectWizard_DLL.h"
  32. #include "jucer_ProjectWizard_openGL.h"
  33. #include "jucer_ProjectWizard_Animated.h"
  34. #include "jucer_ProjectWizard_AudioApp.h"
  35. #include "jucer_ProjectWizard_Blank.h"
  36. #include "jucer_NewProjectWizardComponent.h"
  37. #include "jucer_TemplateThumbnailsComponent.h"
  38. #include "jucer_StartPageComponent.h"
  39. //==============================================================================
  40. static int getNumWizards() noexcept
  41. {
  42. return 9;
  43. }
  44. static std::unique_ptr<NewProjectWizard> createWizardType (int index)
  45. {
  46. switch (index)
  47. {
  48. case 0: return std::unique_ptr<NewProjectWizard> (new NewProjectWizardClasses::GUIAppWizard());
  49. case 1: return std::unique_ptr<NewProjectWizard> (new NewProjectWizardClasses::AnimatedAppWizard());
  50. case 2: return std::unique_ptr<NewProjectWizard> (new NewProjectWizardClasses::OpenGLAppWizard());
  51. case 3: return std::unique_ptr<NewProjectWizard> (new NewProjectWizardClasses::ConsoleAppWizard());
  52. case 4: return std::unique_ptr<NewProjectWizard> (new NewProjectWizardClasses::AudioAppWizard());
  53. case 5: return std::unique_ptr<NewProjectWizard> (new NewProjectWizardClasses::AudioPluginAppWizard());
  54. case 6: return std::unique_ptr<NewProjectWizard> (new NewProjectWizardClasses::StaticLibraryWizard());
  55. case 7: return std::unique_ptr<NewProjectWizard> (new NewProjectWizardClasses::DynamicLibraryWizard());
  56. case 8: return std::unique_ptr<NewProjectWizard> (new NewProjectWizardClasses::BlankAppWizard());
  57. default: jassertfalse; break;
  58. }
  59. return {};
  60. }
  61. static StringArray getWizardNames()
  62. {
  63. StringArray s;
  64. for (int i = 0; i < getNumWizards(); ++i)
  65. s.add (createWizardType (i)->getName());
  66. return s;
  67. }
  68. };
  69. Component* createNewProjectWizardComponent()
  70. {
  71. return new NewProjectWizardClasses::StartPageComponent();
  72. }