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

Projucer: Ensure that ValueWithDefault objects outlive the PropertyComponents which reference them

This commit is contained in:
ed 2018-10-24 11:45:51 +01:00
parent 87a89e71e8
commit 8667ffc059
3 changed files with 13 additions and 13 deletions

View file

@ -144,6 +144,9 @@ public:
}
private:
ValueWithDefault jucePathValue, juceModulePathValue, userModulePathValue, vst3PathValue, rtasPathValue, aaxPathValue,
androidSDKPathValue, androidNDKPathValue, clionExePathValue, androidStudioExePathValue;
OwnedArray<Label> pathPropertyLabels;
OwnedArray<PropertyComponent> pathPropertyComponents;
TextButton rescanJUCEPathButton { "Re-scan" },
@ -156,9 +159,6 @@ private:
float flashAlpha = 0.0f;
bool hasFlashed = false;
ValueWithDefault jucePathValue, juceModulePathValue, userModulePathValue, vst3PathValue, rtasPathValue, aaxPathValue,
androidSDKPathValue, androidNDKPathValue, clionExePathValue, androidStudioExePathValue;
//==============================================================================
void timerCallback() override
{

View file

@ -307,13 +307,6 @@ private:
}
//==============================================================================
std::unique_ptr<LookAndFeel> lf;
Viewport propertyViewport;
PropertyGroupComponent propertyGroup { "PIP Creator", { getIcons().juceLogo, Colours::transparentBlack } };
TextButton createButton { "Create PIP" };
ValueTree pipTree { "PIPSettings" };
ValueWithDefault nameValue { pipTree, Ids::name, nullptr, "MyComponentPIP" },
versionValue { pipTree, Ids::version, nullptr },
@ -329,6 +322,13 @@ private:
mainClassValue { pipTree, Ids::mainClass, nullptr, "MyComponent" },
useLocalCopyValue { pipTree, Ids::useLocalCopy, nullptr, false };
std::unique_ptr<LookAndFeel> lf;
Viewport propertyViewport;
PropertyGroupComponent propertyGroup { "PIP Creator", { getIcons().juceLogo, Colours::transparentBlack } };
TextButton createButton { "Create PIP" };
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PIPCreatorWindowComponent)
};

View file

@ -244,6 +244,9 @@ private:
void timerCallback() override { stopTimer(); refresh(); }
//==============================================================================
Array<ValueWithDefault> exporterModulePathValues;
Value globalPathValue;
PropertyGroupComponent group;
Project& project;
SafePointer<TreeView> modulesTree;
@ -251,9 +254,6 @@ private:
OwnedArray <Project::ConfigFlag> configFlags;
Array<ValueWithDefault> exporterModulePathValues;
Value globalPathValue;
//==============================================================================
class ModuleInfoComponent : public PropertyComponent,
private Value::Listener