1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Replaced Projucer-generated header guards with #pragma once and updated the examples

This commit is contained in:
tpoole 2017-02-17 15:34:10 +00:00
parent 31c80db5a2
commit e33abbc6fe
230 changed files with 322 additions and 1219 deletions

View file

@ -11,8 +11,7 @@
*/
#ifndef __JUCE_APPCONFIG_M70QFTRRK__
#define __JUCE_APPCONFIG_M70QFTRRK__
#pragma once
//==============================================================================
// [BEGIN_USER_CODE_SECTION]
@ -116,6 +115,3 @@
#ifndef JUCE_ENABLE_LIVE_CONSTANT_EDITOR
//#define JUCE_ENABLE_LIVE_CONSTANT_EDITOR
#endif
#endif // __JUCE_APPCONFIG_M70QFTRRK__

View file

@ -1239,8 +1239,7 @@ static const unsigned char temp_binary_data_4[] =
" ==============================================================================\r\n"
"*/\r\n"
"\r\n"
"#ifndef MAINCOMPONENT_H_INCLUDED\r\n"
"#define MAINCOMPONENT_H_INCLUDED\r\n"
"#pragma once\r\n"
"\r\n"
"INCLUDE_JUCE\r\n"
"\r\n"
@ -1298,10 +1297,7 @@ static const unsigned char temp_binary_data_4[] =
"\r\n"
"\r\n"
"// (This function is called by the app startup code to create our main component)\r\n"
"Component* createMainContentComponent() { return new MainContentComponent(); }\r\n"
"\r\n"
"\r\n"
"#endif // MAINCOMPONENT_H_INCLUDED\r\n";
"Component* createMainContentComponent() { return new MainContentComponent(); }\r\n";
const char* jucer_AnimatedComponentTemplate_cpp = (const char*) temp_binary_data_4;
@ -1315,8 +1311,7 @@ static const unsigned char temp_binary_data_5[] =
" ==============================================================================\r\n"
"*/\r\n"
"\r\n"
"#ifndef MAINCOMPONENT_H_INCLUDED\r\n"
"#define MAINCOMPONENT_H_INCLUDED\r\n"
"#pragma once\r\n"
"\r\n"
"INCLUDE_JUCE\r\n"
"\r\n"
@ -1402,10 +1397,7 @@ static const unsigned char temp_binary_data_5[] =
"\r\n"
"\r\n"
"// (This function is called by the app startup code to create our main component)\r\n"
"Component* createMainContentComponent() { return new MainContentComponent(); }\r\n"
"\r\n"
"\r\n"
"#endif // MAINCOMPONENT_H_INCLUDED\r\n";
"Component* createMainContentComponent() { return new MainContentComponent(); }\r\n";
const char* jucer_AudioComponentTemplate_cpp = (const char*) temp_binary_data_5;
@ -1467,8 +1459,7 @@ static const unsigned char temp_binary_data_7[] =
" ==============================================================================\r\n"
"*/\r\n"
"\r\n"
"#ifndef HEADERGUARD\r\n"
"#define HEADERGUARD\r\n"
"#pragma once\r\n"
"\r\n"
"EDITORHEADERS\r\n"
"\r\n"
@ -1492,10 +1483,7 @@ static const unsigned char temp_binary_data_7[] =
" FILTERCLASSNAME& processor;\r\n"
"\r\n"
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EDITORCLASSNAME)\r\n"
"};\r\n"
"\r\n"
"\r\n"
"#endif // HEADERGUARD\r\n";
"};\r\n";
const char* jucer_AudioPluginEditorTemplate_h = (const char*) temp_binary_data_7;
@ -1693,8 +1681,7 @@ static const unsigned char temp_binary_data_9[] =
" ==============================================================================\r\n"
"*/\r\n"
"\r\n"
"#ifndef HEADERGUARD\r\n"
"#define HEADERGUARD\r\n"
"#pragma once\r\n"
"\r\n"
"APPHEADERS\r\n"
"\r\n"
@ -1744,10 +1731,7 @@ static const unsigned char temp_binary_data_9[] =
"private:\r\n"
" //==============================================================================\r\n"
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FILTERCLASSNAME)\r\n"
"};\r\n"
"\r\n"
"\r\n"
"#endif // HEADERGUARD\r\n";
"};\r\n";
const char* jucer_AudioPluginFilterTemplate_h = (const char*) temp_binary_data_9;
@ -1851,8 +1835,7 @@ static const unsigned char temp_binary_data_11[] =
" ==============================================================================\r\n"
"*/\r\n"
"\r\n"
"#ifndef %%headerGuard%%\r\n"
"#define %%headerGuard%%\r\n"
"#pragma once\r\n"
"\r\n"
"//[Headers] -- You can add your own extra header files here --\r\n"
"%%includeJUCEHeader%%\r\n"
@ -1893,9 +1876,7 @@ static const unsigned char temp_binary_data_11[] =
"};\r\n"
"\r\n"
"//[EndFile] You can add extra defines here...\r\n"
"//[/EndFile]\r\n"
"\r\n"
"#endif // %%headerGuard%%\r\n";
"//[/EndFile]\r\n";
const char* jucer_ComponentTemplate_h = (const char*) temp_binary_data_11;
@ -1950,8 +1931,7 @@ static const unsigned char temp_binary_data_13[] =
" ==============================================================================\r\n"
"*/\r\n"
"\r\n"
"#ifndef HEADERGUARD\r\n"
"#define HEADERGUARD\r\n"
"#pragma once\r\n"
"\r\n"
"INCLUDE_JUCE\r\n"
"\r\n"
@ -1974,10 +1954,7 @@ static const unsigned char temp_binary_data_13[] =
"private:\r\n"
" //==============================================================================\r\n"
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CONTENTCOMPCLASS)\r\n"
"};\r\n"
"\r\n"
"\r\n"
"#endif // HEADERGUARD\r\n";
"};\r\n";
const char* jucer_ContentCompTemplate_h = (const char*) temp_binary_data_13;
@ -2392,8 +2369,7 @@ static const unsigned char temp_binary_data_20[] =
" ==============================================================================\r\n"
"*/\r\n"
"\r\n"
"#ifndef HEADERGUARD\r\n"
"#define HEADERGUARD\r\n"
"#pragma once\r\n"
"\r\n"
"INCLUDE_JUCE\r\n"
"\r\n"
@ -2411,10 +2387,7 @@ static const unsigned char temp_binary_data_20[] =
"\r\n"
"private:\r\n"
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (COMPONENTCLASS)\r\n"
"};\r\n"
"\r\n"
"\r\n"
"#endif // HEADERGUARD\r\n";
"};\r\n";
const char* jucer_NewComponentTemplate_h = (const char*) temp_binary_data_20;
@ -2446,14 +2419,7 @@ static const unsigned char temp_binary_data_22[] =
" ==============================================================================\r\n"
"*/\r\n"
"\r\n"
"#ifndef HEADERGUARD\r\n"
"#define HEADERGUARD\r\n"
"\r\n"
"\r\n"
"\r\n"
"\r\n"
"\r\n"
"#endif // HEADERGUARD\r\n";
"#pragma once\r\n";
const char* jucer_NewCppFileTemplate_h = (const char*) temp_binary_data_22;
@ -2469,8 +2435,7 @@ static const unsigned char temp_binary_data_23[] =
" ==============================================================================\r\n"
"*/\r\n"
"\r\n"
"#ifndef HEADERGUARD\r\n"
"#define HEADERGUARD\r\n"
"#pragma once\r\n"
"\r\n"
"INCLUDE_JUCE\r\n"
"\r\n"
@ -2520,10 +2485,7 @@ static const unsigned char temp_binary_data_23[] =
"\r\n"
"private:\r\n"
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (COMPONENTCLASS)\r\n"
"};\r\n"
"\r\n"
"\r\n"
"#endif // HEADERGUARD\r\n";
"};\r\n";
const char* jucer_NewInlineComponentTemplate_h = (const char*) temp_binary_data_23;
@ -2537,8 +2499,7 @@ static const unsigned char temp_binary_data_24[] =
" ==============================================================================\r\n"
"*/\r\n"
"\r\n"
"#ifndef MAINCOMPONENT_H_INCLUDED\r\n"
"#define MAINCOMPONENT_H_INCLUDED\r\n"
"#pragma once\r\n"
"\r\n"
"INCLUDE_JUCE\r\n"
"\r\n"
@ -2601,10 +2562,7 @@ static const unsigned char temp_binary_data_24[] =
"\r\n"
"\r\n"
"// (This function is called by the app startup code to create our main component)\r\n"
"Component* createMainContentComponent() { return new MainContentComponent(); }\r\n"
"\r\n"
"\r\n"
"#endif // MAINCOMPONENT_H_INCLUDED\r\n";
"Component* createMainContentComponent() { return new MainContentComponent(); }\r\n";
const char* jucer_OpenGLComponentTemplate_cpp = (const char*) temp_binary_data_24;
@ -5283,27 +5241,27 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
case 0x10b04d10: numBytes = 4971; return gradlew;
case 0x76cff066: numBytes = 2404; return gradlew_bat;
case 0x34bc1021: numBytes = 11325; return LICENSE;
case 0x6cf2645e: numBytes = 1949; return jucer_AnimatedComponentTemplate_cpp;
case 0xafccbd3f: numBytes = 3203; return jucer_AudioComponentTemplate_cpp;
case 0x6cf2645e: numBytes = 1854; return jucer_AnimatedComponentTemplate_cpp;
case 0xafccbd3f: numBytes = 3108; return jucer_AudioComponentTemplate_cpp;
case 0x27c5a93a: numBytes = 1162; return jucer_AudioPluginEditorTemplate_cpp;
case 0x4d0721bf: numBytes = 994; return jucer_AudioPluginEditorTemplate_h;
case 0x4d0721bf: numBytes = 938; return jucer_AudioPluginEditorTemplate_h;
case 0x51b49ac5: numBytes = 5475; return jucer_AudioPluginFilterTemplate_cpp;
case 0x488afa0a: numBytes = 2259; return jucer_AudioPluginFilterTemplate_h;
case 0x488afa0a: numBytes = 2203; return jucer_AudioPluginFilterTemplate_h;
case 0xabad7041: numBytes = 2151; return jucer_ComponentTemplate_cpp;
case 0xfc72fe86: numBytes = 2131; return jucer_ComponentTemplate_h;
case 0xfc72fe86: numBytes = 2064; return jucer_ComponentTemplate_h;
case 0x0b66646c: numBytes = 886; return jucer_ContentCompTemplate_cpp;
case 0x6fa10171: numBytes = 942; return jucer_ContentCompTemplate_h;
case 0x6fa10171: numBytes = 886; return jucer_ContentCompTemplate_h;
case 0x28d496ad: numBytes = 1161; return jucer_InlineComponentTemplate_h;
case 0x8905395b: numBytes = 470; return jucer_MainConsoleAppTemplate_cpp;
case 0x5e5ea047: numBytes = 1992; return jucer_MainTemplate_NoWindow_cpp;
case 0xda2391f8: numBytes = 4001; return jucer_MainTemplate_SimpleWindow_cpp;
case 0x400bc026: numBytes = 3913; return jucer_MainTemplate_Window_cpp;
case 0xf4842835: numBytes = 1389; return jucer_NewComponentTemplate_cpp;
case 0xe7bf237a: numBytes = 666; return jucer_NewComponentTemplate_h;
case 0xe7bf237a: numBytes = 610; return jucer_NewComponentTemplate_h;
case 0x02a2a077: numBytes = 262; return jucer_NewCppFileTemplate_cpp;
case 0x0842c43c: numBytes = 308; return jucer_NewCppFileTemplate_h;
case 0x36e634a1: numBytes = 1644; return jucer_NewInlineComponentTemplate_h;
case 0x7fbac252: numBytes = 1827; return jucer_OpenGLComponentTemplate_cpp;
case 0x0842c43c: numBytes = 246; return jucer_NewCppFileTemplate_h;
case 0x36e634a1: numBytes = 1588; return jucer_NewInlineComponentTemplate_h;
case 0x7fbac252: numBytes = 1732; return jucer_OpenGLComponentTemplate_cpp;
case 0x406db5c1: numBytes = 3117; return background_logo_svg;
case 0x4a0cfd09: numBytes = 151; return background_tile_png;
case 0x763d39dc: numBytes = 1050; return colourscheme_dark_xml;

View file

@ -4,8 +4,7 @@
*/
#ifndef BINARYDATA_H_62491730_INCLUDED
#define BINARYDATA_H_62491730_INCLUDED
#pragma once
namespace BinaryData
{
@ -22,34 +21,34 @@ namespace BinaryData
const int LICENSESize = 11325;
extern const char* jucer_AnimatedComponentTemplate_cpp;
const int jucer_AnimatedComponentTemplate_cppSize = 1949;
const int jucer_AnimatedComponentTemplate_cppSize = 1854;
extern const char* jucer_AudioComponentTemplate_cpp;
const int jucer_AudioComponentTemplate_cppSize = 3203;
const int jucer_AudioComponentTemplate_cppSize = 3108;
extern const char* jucer_AudioPluginEditorTemplate_cpp;
const int jucer_AudioPluginEditorTemplate_cppSize = 1162;
extern const char* jucer_AudioPluginEditorTemplate_h;
const int jucer_AudioPluginEditorTemplate_hSize = 994;
const int jucer_AudioPluginEditorTemplate_hSize = 938;
extern const char* jucer_AudioPluginFilterTemplate_cpp;
const int jucer_AudioPluginFilterTemplate_cppSize = 5475;
extern const char* jucer_AudioPluginFilterTemplate_h;
const int jucer_AudioPluginFilterTemplate_hSize = 2259;
const int jucer_AudioPluginFilterTemplate_hSize = 2203;
extern const char* jucer_ComponentTemplate_cpp;
const int jucer_ComponentTemplate_cppSize = 2151;
extern const char* jucer_ComponentTemplate_h;
const int jucer_ComponentTemplate_hSize = 2131;
const int jucer_ComponentTemplate_hSize = 2064;
extern const char* jucer_ContentCompTemplate_cpp;
const int jucer_ContentCompTemplate_cppSize = 886;
extern const char* jucer_ContentCompTemplate_h;
const int jucer_ContentCompTemplate_hSize = 942;
const int jucer_ContentCompTemplate_hSize = 886;
extern const char* jucer_InlineComponentTemplate_h;
const int jucer_InlineComponentTemplate_hSize = 1161;
@ -70,19 +69,19 @@ namespace BinaryData
const int jucer_NewComponentTemplate_cppSize = 1389;
extern const char* jucer_NewComponentTemplate_h;
const int jucer_NewComponentTemplate_hSize = 666;
const int jucer_NewComponentTemplate_hSize = 610;
extern const char* jucer_NewCppFileTemplate_cpp;
const int jucer_NewCppFileTemplate_cppSize = 262;
extern const char* jucer_NewCppFileTemplate_h;
const int jucer_NewCppFileTemplate_hSize = 308;
const int jucer_NewCppFileTemplate_hSize = 246;
extern const char* jucer_NewInlineComponentTemplate_h;
const int jucer_NewInlineComponentTemplate_hSize = 1644;
const int jucer_NewInlineComponentTemplate_hSize = 1588;
extern const char* jucer_OpenGLComponentTemplate_cpp;
const int jucer_OpenGLComponentTemplate_cppSize = 1827;
const int jucer_OpenGLComponentTemplate_cppSize = 1732;
extern const char* background_logo_svg;
const int background_logo_svgSize = 3117;
@ -166,5 +165,3 @@ namespace BinaryData
// return the corresponding data and its size (or a null pointer if the name isn't found).
const char* getNamedResource (const char* resourceNameUTF8, int& dataSizeInBytes) throw();
}
#endif

View file

@ -10,8 +10,7 @@
*/
#ifndef __APPHEADERFILE_M70QFTRRK__
#define __APPHEADERFILE_M70QFTRRK__
#pragma once
#include "AppConfig.h"
@ -39,5 +38,3 @@ namespace ProjectInfo
const int versionNumber = 0x40301;
}
#endif
#endif // __APPHEADERFILE_M70QFTRRK__