| @@ -66,6 +66,9 @@ public: | |||||
| addChildComponent (rescanUserPathButton); | addChildComponent (rescanUserPathButton); | ||||
| rescanUserPathButton.onClick = [] { ProjucerApplication::getApp().rescanUserPathModules(); }; | rescanUserPathButton.onClick = [] { ProjucerApplication::getApp().rescanUserPathModules(); }; | ||||
| addAndMakeVisible (resetToDefaultsButton); | |||||
| resetToDefaultsButton.onClick = [this] { resetCurrentOSPathsToDefaults(); }; | |||||
| updateValues(); | updateValues(); | ||||
| updateFilePathPropertyComponents(); | updateFilePathPropertyComponents(); | ||||
| } | } | ||||
| @@ -127,6 +130,8 @@ public: | |||||
| isFirst = false; | isFirst = false; | ||||
| } | } | ||||
| resetToDefaultsButton.setBounds (b.removeFromBottom (35).reduced (150, 0)); | |||||
| } | } | ||||
| void highlightJUCEPath() | void highlightJUCEPath() | ||||
| @@ -149,8 +154,9 @@ private: | |||||
| OwnedArray<Label> pathPropertyLabels; | OwnedArray<Label> pathPropertyLabels; | ||||
| OwnedArray<PropertyComponent> pathPropertyComponents; | OwnedArray<PropertyComponent> pathPropertyComponents; | ||||
| TextButton rescanJUCEPathButton { "Re-scan" }, | |||||
| rescanUserPathButton { "Re-scan" }; | |||||
| TextButton rescanJUCEPathButton { "Re-scan" }, | |||||
| rescanUserPathButton { "Re-scan" }, | |||||
| resetToDefaultsButton { "Reset to Defaults" }; | |||||
| ComboBox osSelector; | ComboBox osSelector; | ||||
| InfoButton info; | InfoButton info; | ||||
| @@ -291,6 +297,22 @@ private: | |||||
| } | } | ||||
| } | } | ||||
| void resetCurrentOSPathsToDefaults() | |||||
| { | |||||
| jucePathValue .resetToDefault(); | |||||
| juceModulePathValue .resetToDefault(); | |||||
| userModulePathValue .resetToDefault(); | |||||
| vst3PathValue .resetToDefault(); | |||||
| rtasPathValue .resetToDefault(); | |||||
| aaxPathValue .resetToDefault(); | |||||
| androidSDKPathValue .resetToDefault(); | |||||
| androidNDKPathValue .resetToDefault(); | |||||
| clionExePathValue .resetToDefault(); | |||||
| androidStudioExePathValue.resetToDefault(); | |||||
| repaint(); | |||||
| } | |||||
| //============================================================================== | //============================================================================== | ||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (GlobalPathsWindowComponent) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (GlobalPathsWindowComponent) | ||||
| }; | }; | ||||