1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

Introjucer: added TRANS macro to GUI designed generated code.

This commit is contained in:
jules 2013-12-17 21:25:24 +00:00
parent dc182eef2c
commit a2ffe5e6eb
23 changed files with 84 additions and 88 deletions

View file

@ -24,7 +24,7 @@
#include "../jucer_Headers.h"
#include "jucer_GeneratedCode.h"
#include "jucer_JucerDocument.h"
//==============================================================================
GeneratedCode::GeneratedCode (const JucerDocument* const doc)
@ -229,6 +229,11 @@ static String getIncludeFileCode (StringArray files)
return s;
}
bool GeneratedCode::shouldUseTransMacro() const noexcept
{
return document->shouldUseTransMacro();
}
//==============================================================================
static void replaceTemplate (String& text, const String& itemName, const String& value)
{
@ -297,11 +302,10 @@ static void copyAcrossUserSections (String& dest, const String& src)
if (getUserSection (srcLines, tag, sourceLines))
{
int j;
for (j = endLine - i; --j > 0;)
for (int j = endLine - i; --j > 0;)
dstLines.remove (i + 1);
for (j = 0; j < sourceLines.size(); ++j)
for (int j = 0; j < sourceLines.size(); ++j)
dstLines.insert (++i, sourceLines [j].trimEnd());
++i;