Upload Source/Plugin/PluginBridgeEditor.h
Browse files
Source/Plugin/PluginBridgeEditor.h
CHANGED
|
@@ -13,29 +13,38 @@ public:
|
|
| 13 |
void paint(juce::Graphics& g) override;
|
| 14 |
void resized() override;
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
private:
|
| 17 |
void timerCallback() override;
|
| 18 |
void showPluginMenu();
|
| 19 |
-
void
|
| 20 |
-
void
|
|
|
|
| 21 |
|
| 22 |
PluginBridgeProcessor& processorRef;
|
| 23 |
|
| 24 |
-
// Top bar controls
|
| 25 |
juce::Label titleLabel;
|
| 26 |
juce::Label mcpStatusLabel;
|
| 27 |
juce::Label pluginStatusLabel;
|
| 28 |
juce::TextButton selectButton{"Select Plugin"};
|
| 29 |
|
| 30 |
-
//
|
| 31 |
-
|
|
|
|
| 32 |
|
| 33 |
// State
|
| 34 |
bool showingError = false;
|
| 35 |
|
| 36 |
-
static constexpr int kTopBarHeight =
|
| 37 |
static constexpr int kDefaultWidth = 400;
|
| 38 |
-
static constexpr int kDefaultHeight =
|
| 39 |
|
| 40 |
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeEditor)
|
| 41 |
};
|
|
|
|
| 13 |
void paint(juce::Graphics& g) override;
|
| 14 |
void resized() override;
|
| 15 |
|
| 16 |
+
// Mouse forwarding to helper
|
| 17 |
+
void mouseDown(const juce::MouseEvent& e) override;
|
| 18 |
+
void mouseUp(const juce::MouseEvent& e) override;
|
| 19 |
+
void mouseMove(const juce::MouseEvent& e) override;
|
| 20 |
+
void mouseDrag(const juce::MouseEvent& e) override;
|
| 21 |
+
void mouseWheelMove(const juce::MouseEvent& e, const juce::MouseWheelDetails& w) override;
|
| 22 |
+
|
| 23 |
private:
|
| 24 |
void timerCallback() override;
|
| 25 |
void showPluginMenu();
|
| 26 |
+
void connectRemoteLayer();
|
| 27 |
+
void disconnectRemoteLayer();
|
| 28 |
+
void sendMouseEvent(const juce::String& type, float x, float y, int button = 0);
|
| 29 |
|
| 30 |
PluginBridgeProcessor& processorRef;
|
| 31 |
|
| 32 |
+
// Top bar controls
|
| 33 |
juce::Label titleLabel;
|
| 34 |
juce::Label mcpStatusLabel;
|
| 35 |
juce::Label pluginStatusLabel;
|
| 36 |
juce::TextButton selectButton{"Select Plugin"};
|
| 37 |
|
| 38 |
+
// Remote layer state (ObjC pointers stored as void*)
|
| 39 |
+
void* remoteLayerClient = nullptr; // CARemoteLayerClient*
|
| 40 |
+
bool layerConnected = false;
|
| 41 |
|
| 42 |
// State
|
| 43 |
bool showingError = false;
|
| 44 |
|
| 45 |
+
static constexpr int kTopBarHeight = 32;
|
| 46 |
static constexpr int kDefaultWidth = 400;
|
| 47 |
+
static constexpr int kDefaultHeight = 50;
|
| 48 |
|
| 49 |
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeEditor)
|
| 50 |
};
|