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.

52 lines
2.0KB

  1. /*
  2. ==============================================================================
  3. This file contains the basic startup code for a JUCE application.
  4. ==============================================================================
  5. */
  6. %%app_headers%%
  7. //==============================================================================
  8. class %%app_class_name%% : public juce::JUCEApplication
  9. {
  10. public:
  11. //==============================================================================
  12. %%app_class_name%%() {}
  13. const juce::String getApplicationName() override { return ProjectInfo::projectName; }
  14. const juce::String getApplicationVersion() override { return ProjectInfo::versionString; }
  15. bool moreThanOneInstanceAllowed() override { return true; }
  16. //==============================================================================
  17. void initialise (const juce::String& commandLine) override
  18. {
  19. // Add your application's initialisation code here..
  20. }
  21. void shutdown() override
  22. {
  23. // Add your application's shutdown code here..
  24. }
  25. //==============================================================================
  26. void systemRequestedQuit() override
  27. {
  28. // This is called when the app is being asked to quit: you can ignore this
  29. // request and let the app carry on running, or call quit() to allow the app to close.
  30. quit();
  31. }
  32. void anotherInstanceStarted (const juce::String& commandLine) override
  33. {
  34. // When another instance of the app is launched while this one is running,
  35. // this method is invoked, and the commandLine parameter tells you what
  36. // the other instance's command-line arguments were.
  37. }
  38. };
  39. //==============================================================================
  40. // This macro generates the main() routine that launches the app.
  41. START_JUCE_APPLICATION (%%app_class_name%%)