mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
Projucer: Added juce:: namespace to the auto-generated GUI editor code
This commit is contained in:
parent
98ab75157a
commit
0b35e9a841
26 changed files with 135 additions and 135 deletions
|
|
@ -84,10 +84,10 @@ void GeneratedCode::removeCallback (const String& returnType, const String& prot
|
|||
void GeneratedCode::addImageResourceLoader (const String& imageMemberName, const String& resourceName)
|
||||
{
|
||||
privateMemberDeclarations
|
||||
<< "Image " << imageMemberName << ";\n";
|
||||
<< "juce::Image " << imageMemberName << ";\n";
|
||||
|
||||
if (resourceName.isNotEmpty())
|
||||
constructorCode << imageMemberName << " = ImageCache::getFromMemory ("
|
||||
constructorCode << imageMemberName << " = juce::ImageCache::getFromMemory ("
|
||||
<< resourceName << ", " << resourceName << "Size);\n";
|
||||
}
|
||||
|
||||
|
|
@ -160,8 +160,8 @@ String GeneratedCode::getClassDeclaration() const
|
|||
|
||||
parentClassLines = getCleanedStringArray (parentClassLines);
|
||||
|
||||
if (parentClassLines.contains ("public Button", false))
|
||||
parentClassLines.removeString ("public Component", false);
|
||||
if (parentClassLines.contains ("public juce::Button", false))
|
||||
parentClassLines.removeString ("public juce::Component", false);
|
||||
|
||||
String r ("class ");
|
||||
r << className << " : ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue