Download Source/Plugin/PluginBridgeEditor.h from RAM2118/pluginbridge: direct link, hf CLI and curl.
- Browser
- Download file 1.6 kB
-
https://huggingface.co/RAM2118/pluginbridge/resolve/df8bc971e77659c7e16f78ff60ee97af205093e2/Source/Plugin/PluginBridgeEditor.h
- Command line
-
hf download hf://RAM2118/pluginbridge@df8bc971e77659c7e16f78ff60ee97af205093e2/Source/Plugin/PluginBridgeEditor.h
-
curl -L -o PluginBridgeEditor.h https://huggingface.co/RAM2118/pluginbridge/resolve/df8bc971e77659c7e16f78ff60ee97af205093e2/Source/Plugin/PluginBridgeEditor.h
1.6 kB
| class PluginBridgeEditor : public juce::AudioProcessorEditor, private juce::Timer | |
| { | |
| public: | |
| PluginBridgeEditor(PluginBridgeProcessor& p); | |
| ~PluginBridgeEditor() override; | |
| void paint(juce::Graphics& g) override; | |
| void resized() override; | |
| // Mouse forwarding to helper | |
| void mouseDown(const juce::MouseEvent& e) override; | |
| void mouseUp(const juce::MouseEvent& e) override; | |
| void mouseMove(const juce::MouseEvent& e) override; | |
| void mouseDrag(const juce::MouseEvent& e) override; | |
| void mouseWheelMove(const juce::MouseEvent& e, const juce::MouseWheelDetails& w) override; | |
| private: | |
| void timerCallback() override; | |
| void showPluginMenu(); | |
| void connectRemoteLayer(); | |
| void disconnectRemoteLayer(); | |
| void sendMouseEvent(const juce::String& type, float x, float y, int button = 0); | |
| PluginBridgeProcessor& processorRef; | |
| // Top bar controls | |
| juce::Label titleLabel; | |
| juce::Label mcpStatusLabel; | |
| juce::Label pluginStatusLabel; | |
| juce::TextButton selectButton{"Select Plugin"}; | |
| // Remote layer state (ObjC pointers stored as void*) | |
| void* remoteLayerClient = nullptr; // CARemoteLayerClient* | |
| bool layerConnected = false; | |
| // State | |
| bool showingError = false; | |
| static constexpr int kTopBarHeight = 32; | |
| static constexpr int kDefaultWidth = 400; | |
| static constexpr int kDefaultHeight = 50; | |
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeEditor) | |
| }; | |