RAM2118 commited on
Commit
ec53c6b
·
verified ·
1 Parent(s): caf4644

Sprint 2.1: Redesign Editor — system plugin scan + dropdown menu (no file browser)

Browse files
Files changed (1) hide show
  1. Source/PluginBridgeEditor.h +12 -2
Source/PluginBridgeEditor.h CHANGED
@@ -1,6 +1,7 @@
1
  #pragma once
2
 
3
  #include <juce_gui_basics/juce_gui_basics.h>
 
4
  #include "PluginBridgeProcessor.h"
5
 
6
  class PluginBridgeEditor : public juce::AudioProcessorEditor,
@@ -15,15 +16,24 @@ public:
15
 
16
  private:
17
  void timerCallback() override;
18
- void loadPluginClicked();
 
 
19
 
20
  PluginBridgeProcessor& processorRef;
21
 
 
22
  juce::Label titleLabel;
23
  juce::Label statusLabel;
24
  juce::Label portLabel;
25
  juce::Label pluginLabel;
26
- juce::TextButton loadButton{"Load Plugin"};
 
 
 
 
 
 
27
 
28
  JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeEditor)
29
  };
 
1
  #pragma once
2
 
3
  #include <juce_gui_basics/juce_gui_basics.h>
4
+ #include <juce_audio_processors/juce_audio_processors.h>
5
  #include "PluginBridgeProcessor.h"
6
 
7
  class PluginBridgeEditor : public juce::AudioProcessorEditor,
 
16
 
17
  private:
18
  void timerCallback() override;
19
+ void scanPlugins();
20
+ void showPluginMenu();
21
+ void loadPluginByIndex(int index);
22
 
23
  PluginBridgeProcessor& processorRef;
24
 
25
+ // UI elements
26
  juce::Label titleLabel;
27
  juce::Label statusLabel;
28
  juce::Label portLabel;
29
  juce::Label pluginLabel;
30
+ juce::TextButton pluginButton{"Select Plugin..."};
31
+ juce::TextEditor searchBox;
32
+
33
+ // Scanned plugins
34
+ juce::KnownPluginList knownPlugins;
35
+ juce::AudioPluginFormatManager scanFormatManager;
36
+ bool hasScanned = false;
37
 
38
  JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeEditor)
39
  };