1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Add PIPGenerator class

This commit is contained in:
ed 2018-03-15 11:11:07 +00:00
parent 1644ee4ace
commit fa02112614
17 changed files with 966 additions and 12 deletions

View file

@ -7051,8 +7051,85 @@ static const unsigned char temp_binary_data_51[] =
const char* jucer_OpenGLComponentTemplate_h = (const char*) temp_binary_data_51;
//================== colourscheme_dark.xml ==================
//================== jucer_PIPMain.cpp ==================
static const unsigned char temp_binary_data_52[] =
"/*\r\n"
" ==============================================================================\r\n"
"\r\n"
" This file was auto-generated and contains the startup code for a PIP.\r\n"
"\r\n"
" ==============================================================================\r\n"
"*/\r\n"
"\r\n"
"#include \"../JuceLibraryCode/JuceHeader.h\"\r\n"
"#include \"%%filename%%\"\r\n"
"\r\n"
"%%component_begin%%\r\n"
"class Application : public JUCEApplication\r\n"
"{\r\n"
"public:\r\n"
" //==============================================================================\r\n"
" Application() {}\r\n"
"\r\n"
" const String getApplicationName() override { return \"%%project_name%%\"; }\r\n"
" const String getApplicationVersion() override { return \"%%project_version%%\"; }\r\n"
"\r\n"
" void initialise (const String&) override { %%startup%% }\r\n"
" void shutdown() override { %%shutdown%% }\r\n"
"\r\n"
"private:\r\n"
" class MainWindow : public DocumentWindow\r\n"
" {\r\n"
" public:\r\n"
" MainWindow (const String& name, Component* c) : DocumentWindow (name,\r\n"
" Desktop::getInstance().getDefaultLookAndFeel()\r\n"
" .findColour (ResizableWindow::backgroundColourId),\r\n"
" DocumentWindow::allButtons)\r\n"
" {\r\n"
" setUsingNativeTitleBar (true);\r\n"
" setContentOwned (c, true);\r\n"
"\r\n"
" #if JUCE_ANDROID || JUCE_IOS\r\n"
" setFullScreen (true);\r\n"
" #else\r\n"
" setResizable (true, false);\r\n"
" setResizeLimits (300, 250, 10000, 10000);\r\n"
" centreWithSize (getWidth(), getHeight());\r\n"
" #endif\r\n"
"\r\n"
" setVisible (true);\r\n"
" }\r\n"
"\r\n"
" void closeButtonPressed() override\r\n"
" {\r\n"
" JUCEApplication::getInstance()->systemRequestedQuit();\r\n"
" }\r\n"
"\r\n"
" private:\r\n"
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainWindow)\r\n"
" };\r\n"
" ScopedPointer<MainWindow> mainWindow;\r\n"
"};\r\n"
"\r\n"
"//==============================================================================\r\n"
"START_JUCE_APPLICATION (Application)\r\n"
"%%component_end%%\r\n"
"\r\n"
"%%audioprocessor_begin%%\r\n"
"//==============================================================================\r\n"
"AudioProcessor* JUCE_CALLTYPE createPluginFilter()\r\n"
"{\r\n"
" return new %%class_name%%();\r\n"
"}\r\n"
"%%audioprocessor_end%%\r\n"
"\r\n"
"%%console_begin%%\r\n"
"%%console_end%%\r\n";
const char* jucer_PIPMain_cpp = (const char*) temp_binary_data_52;
//================== colourscheme_dark.xml ==================
static const unsigned char temp_binary_data_53[] =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
"\r\n"
"<COLOUR_SCHEME font=\"&lt;Monospaced&gt;; 13.0\">\r\n"
@ -7077,10 +7154,10 @@ static const unsigned char temp_binary_data_52[] =
" <COLOUR name=\"Error\" colour=\"FFE60000\"/>\r\n"
"</COLOUR_SCHEME>\r\n";
const char* colourscheme_dark_xml = (const char*) temp_binary_data_52;
const char* colourscheme_dark_xml = (const char*) temp_binary_data_53;
//================== colourscheme_light.xml ==================
static const unsigned char temp_binary_data_53[] =
static const unsigned char temp_binary_data_54[] =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
"\r\n"
"<COLOUR_SCHEME font=\"&lt;Monospaced&gt;; 13.0\">\r\n"
@ -7105,10 +7182,10 @@ static const unsigned char temp_binary_data_53[] =
" <COLOUR name=\"Error\" colour=\"ffcc0000\"/>\r\n"
"</COLOUR_SCHEME>\r\n";
const char* colourscheme_light_xml = (const char*) temp_binary_data_53;
const char* colourscheme_light_xml = (const char*) temp_binary_data_54;
//================== offlinepage.html ==================
static const unsigned char temp_binary_data_54[] =
static const unsigned char temp_binary_data_55[] =
"<html>\n"
" <head>\n"
" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=11\">\n"
@ -7152,10 +7229,10 @@ static const unsigned char temp_binary_data_54[] =
" </body>\n"
"</html>";
const char* offlinepage_html = (const char*) temp_binary_data_54;
const char* offlinepage_html = (const char*) temp_binary_data_55;
//================== projucer_EULA.txt ==================
static const unsigned char temp_binary_data_55[] =
static const unsigned char temp_binary_data_56[] =
"\r\n"
"IMPORTANT NOTICE: PLEASE READ CAREFULLY BEFORE INSTALLING THE SOFTWARE:\r\n"
"\r\n"
@ -7319,10 +7396,10 @@ static const unsigned char temp_binary_data_55[] =
"\r\n"
"10.6. Please note that this License, its subject matter and its formation, are governed by English law. You and we both agree to that the courts of England and Wales will have exclusive jurisdiction.\r\n";
const char* projucer_EULA_txt = (const char*) temp_binary_data_55;
const char* projucer_EULA_txt = (const char*) temp_binary_data_56;
//================== RecentFilesMenuTemplate.nib ==================
static const unsigned char temp_binary_data_56[] =
static const unsigned char temp_binary_data_57[] =
{ 98,112,108,105,115,116,48,48,212,0,1,0,2,0,3,0,4,0,5,0,6,1,53,1,54,88,36,118,101,114,115,105,111,110,88,36,111,98,106,101,99,116,115,89,36,97,114,99,104,105,118,101,114,84,36,116,111,112,18,0,1,134,160,175,16,74,0,7,0,8,0,31,0,35,0,36,0,42,0,46,0,50,
0,53,0,57,0,74,0,77,0,78,0,86,0,87,0,97,0,112,0,113,0,114,0,119,0,120,0,121,0,124,0,128,0,129,0,132,0,143,0,144,0,145,0,149,0,153,0,162,0,163,0,164,0,169,0,173,0,180,0,181,0,182,0,185,0,192,0,193,0,200,0,201,0,208,0,209,0,216,0,217,0,224,0,225,0,226,
0,229,0,230,0,232,0,249,1,11,1,29,1,30,1,31,1,32,1,33,1,34,1,35,1,36,1,37,1,38,1,39,1,40,1,41,1,42,1,43,1,44,1,47,1,50,85,36,110,117,108,108,219,0,9,0,10,0,11,0,12,0,13,0,14,0,15,0,16,0,17,0,18,0,19,0,20,0,21,0,22,0,23,0,24,0,25,0,26,0,27,0,28,0,29,0,
@ -7359,7 +7436,7 @@ static const unsigned char temp_binary_data_56[] =
7,157,7,159,7,161,7,163,7,165,7,167,7,169,7,171,7,173,7,175,7,177,7,179,7,181,7,190,7,192,7,225,7,227,7,229,7,231,7,233,7,235,7,237,7,239,7,241,7,243,7,245,7,247,7,249,7,251,7,253,7,255,8,2,8,5,8,8,8,11,8,14,8,17,8,20,8,23,8,26,8,29,8,32,8,35,8,38,8,
41,8,44,8,53,8,55,8,56,8,65,8,67,8,68,8,77,8,92,8,97,8,115,8,120,8,134,0,0,0,0,0,0,2,2,0,0,0,0,0,0,1,57,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,136,0,0 };
const char* RecentFilesMenuTemplate_nib = (const char*) temp_binary_data_56;
const char* RecentFilesMenuTemplate_nib = (const char*) temp_binary_data_57;
const char* getNamedResource (const char*, int&) throw();
@ -7424,6 +7501,7 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
case 0x6bdeb129: numBytes = 2174; return jucer_OpenGLComponentSimpleTemplate_h;
case 0x7fbac252: numBytes = 1665; return jucer_OpenGLComponentTemplate_cpp;
case 0x491fa0d7: numBytes = 1263; return jucer_OpenGLComponentTemplate_h;
case 0xf4ca9e9a: numBytes = 2446; return jucer_PIPMain_cpp;
case 0x763d39dc: numBytes = 1050; return colourscheme_dark_xml;
case 0xe8b08520: numBytes = 1050; return colourscheme_light_xml;
case 0xf11580d8: numBytes = 1155; return offlinepage_html;
@ -7490,6 +7568,7 @@ const char* namedResourceList[] =
"jucer_OpenGLComponentSimpleTemplate_h",
"jucer_OpenGLComponentTemplate_cpp",
"jucer_OpenGLComponentTemplate_h",
"jucer_PIPMain_cpp",
"colourscheme_dark_xml",
"colourscheme_light_xml",
"offlinepage_html",

View file

@ -164,6 +164,9 @@ namespace BinaryData
extern const char* jucer_OpenGLComponentTemplate_h;
const int jucer_OpenGLComponentTemplate_hSize = 1263;
extern const char* jucer_PIPMain_cpp;
const int jucer_PIPMain_cppSize = 2446;
extern const char* colourscheme_dark_xml;
const int colourscheme_dark_xmlSize = 1050;
@ -183,7 +186,7 @@ namespace BinaryData
extern const char* namedResourceList[];
// Number of elements in the namedResourceList array.
const int namedResourceListSize = 57;
const int namedResourceListSize = 58;
// If you provide the name of one of the binary resource variables above, this function will
// return the corresponding data and its size (or a null pointer if the name isn't found).