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.

90 lines
3.4KB

  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 "../ProjectSaving/jucer_ProjectExporter.h"
  21. #include "../Utility/UI/jucer_SlidingPanelComponent.h"
  22. struct NewProjectWizardClasses
  23. {
  24. class WizardComp;
  25. #include "jucer_NewProjectWizard.h"
  26. #include "jucer_ProjectWizard_GUIApp.h"
  27. #include "jucer_ProjectWizard_Console.h"
  28. #include "jucer_ProjectWizard_AudioPlugin.h"
  29. #include "jucer_ProjectWizard_StaticLibrary.h"
  30. #include "jucer_ProjectWizard_DLL.h"
  31. #include "jucer_ProjectWizard_openGL.h"
  32. #include "jucer_ProjectWizard_Animated.h"
  33. #include "jucer_ProjectWizard_AudioApp.h"
  34. #include "jucer_ProjectWizard_Blank.h"
  35. #include "jucer_NewProjectWizardComponent.h"
  36. #include "jucer_TemplateThumbnailsComponent.h"
  37. #include "jucer_StartPageComponent.h"
  38. //==============================================================================
  39. static int getNumWizards() noexcept
  40. {
  41. return 9;
  42. }
  43. static ScopedPointer<NewProjectWizard> createWizardType (int index)
  44. {
  45. switch (index)
  46. {
  47. case 0: return ScopedPointer<NewProjectWizard> (new NewProjectWizardClasses::GUIAppWizard());
  48. case 1: return ScopedPointer<NewProjectWizard> (new NewProjectWizardClasses::AnimatedAppWizard());
  49. case 2: return ScopedPointer<NewProjectWizard> (new NewProjectWizardClasses::OpenGLAppWizard());
  50. case 3: return ScopedPointer<NewProjectWizard> (new NewProjectWizardClasses::ConsoleAppWizard());
  51. case 4: return ScopedPointer<NewProjectWizard> (new NewProjectWizardClasses::AudioAppWizard());
  52. case 5: return ScopedPointer<NewProjectWizard> (new NewProjectWizardClasses::AudioPluginAppWizard());
  53. case 6: return ScopedPointer<NewProjectWizard> (new NewProjectWizardClasses::StaticLibraryWizard());
  54. case 7: return ScopedPointer<NewProjectWizard> (new NewProjectWizardClasses::DynamicLibraryWizard());
  55. case 8: return ScopedPointer<NewProjectWizard> (new NewProjectWizardClasses::BlankAppWizard());
  56. default: jassertfalse; break;
  57. }
  58. return {};
  59. }
  60. static StringArray getWizardNames()
  61. {
  62. StringArray s;
  63. for (int i = 0; i < getNumWizards(); ++i)
  64. s.add (createWizardType (i)->getName());
  65. return s;
  66. }
  67. };
  68. Component* createNewProjectWizardComponent()
  69. {
  70. return new NewProjectWizardClasses::StartPageComponent();
  71. }