Fix: Add hidePluginGui() method to Processor
Browse files
Source/Plugin/PluginBridgeProcessor.h
CHANGED
|
@@ -33,26 +33,21 @@ public:
|
|
| 33 |
void getStateInformation(juce::MemoryBlock& destData) override;
|
| 34 |
void setStateInformation(const void* data, int sizeInBytes) override;
|
| 35 |
|
| 36 |
-
// Public access for Editor and McpServer
|
| 37 |
bool isMcpServerRunning() const;
|
| 38 |
int getMcpServerPort() const;
|
| 39 |
HelperConnection& getHelperConnection() { return helper; }
|
| 40 |
|
| 41 |
-
// Load/unload plugin (routes through helper process)
|
| 42 |
void loadPlugin(const juce::String& pluginPath);
|
| 43 |
void unloadPlugin();
|
| 44 |
void showPluginGui();
|
|
|
|
| 45 |
|
| 46 |
-
// Plugin state
|
| 47 |
bool isPluginLoaded() const { return pluginLoaded; }
|
| 48 |
juce::String getLoadedPluginName() const { return pluginName; }
|
| 49 |
int getLoadedPluginParamCount() const { return pluginParamCount; }
|
| 50 |
HelperConnection::State getConnectionState() const { return helper.getState(); }
|
| 51 |
-
|
| 52 |
-
// Retained even after crash — for reload button
|
| 53 |
juce::String getLastPluginPath() const { return pluginPath; }
|
| 54 |
|
| 55 |
-
// Plugin file listing (safe — no binary loading)
|
| 56 |
juce::Array<juce::File> getInstalledPluginFiles() const;
|
| 57 |
|
| 58 |
private:
|
|
@@ -61,7 +56,7 @@ private:
|
|
| 61 |
|
| 62 |
bool pluginLoaded = false;
|
| 63 |
juce::String pluginName;
|
| 64 |
-
juce::String pluginPath;
|
| 65 |
int pluginParamCount = 0;
|
| 66 |
|
| 67 |
double currentSampleRate = 44100.0;
|
|
|
|
| 33 |
void getStateInformation(juce::MemoryBlock& destData) override;
|
| 34 |
void setStateInformation(const void* data, int sizeInBytes) override;
|
| 35 |
|
|
|
|
| 36 |
bool isMcpServerRunning() const;
|
| 37 |
int getMcpServerPort() const;
|
| 38 |
HelperConnection& getHelperConnection() { return helper; }
|
| 39 |
|
|
|
|
| 40 |
void loadPlugin(const juce::String& pluginPath);
|
| 41 |
void unloadPlugin();
|
| 42 |
void showPluginGui();
|
| 43 |
+
void hidePluginGui();
|
| 44 |
|
|
|
|
| 45 |
bool isPluginLoaded() const { return pluginLoaded; }
|
| 46 |
juce::String getLoadedPluginName() const { return pluginName; }
|
| 47 |
int getLoadedPluginParamCount() const { return pluginParamCount; }
|
| 48 |
HelperConnection::State getConnectionState() const { return helper.getState(); }
|
|
|
|
|
|
|
| 49 |
juce::String getLastPluginPath() const { return pluginPath; }
|
| 50 |
|
|
|
|
| 51 |
juce::Array<juce::File> getInstalledPluginFiles() const;
|
| 52 |
|
| 53 |
private:
|
|
|
|
| 56 |
|
| 57 |
bool pluginLoaded = false;
|
| 58 |
juce::String pluginName;
|
| 59 |
+
juce::String pluginPath;
|
| 60 |
int pluginParamCount = 0;
|
| 61 |
|
| 62 |
double currentSampleRate = 44100.0;
|