|
5 | 5 | PluginEditor::PluginEditor(PluginProcessor& p) |
6 | 6 | : AudioProcessorEditor(&p) |
7 | 7 | , p(p) |
8 | | - , sizeFactor(p.scaleFactor) // reference to processor's scaleFactor |
9 | | - , oscilloscopePanel(p.oscilloscopeFifo, p.apvts) |
10 | | - , compositor("DisFlux", oscilloscopePanel, p.apvts, p.properties, sizeFactor) |
| 8 | + , sizeFactor(p.scaleFactor) |
| 9 | + , mainLayout({ 1.0 }, { 1.0 }) |
| 10 | + , compositor("Oscilloscope", mainLayout, p.apvts, p.properties, sizeFactor) |
11 | 11 | , compositorAttached(true) |
12 | 12 | { |
13 | 13 | if (OS_IS_WINDOWS) { |
14 | | - setResizable(false, true); |
| 14 | + setResizable(true, true); |
15 | 15 | } |
16 | 16 |
|
17 | 17 | if (OS_IS_DARWIN) { |
18 | | - setResizable(false, true); |
| 18 | + setResizable(true, true); |
19 | 19 | } |
20 | 20 |
|
21 | 21 | if (OS_IS_LINUX) { |
22 | 22 | openGLContext.setComponentPaintingEnabled(true); |
23 | 23 | openGLContext.setContinuousRepainting(false); |
24 | 24 | openGLContext.attachTo(*getTopLevelComponent()); |
| 25 | + setResizable(true, true); |
25 | 26 | } |
| 27 | + // Add Panel to Layout |
| 28 | + mainLayout.addPanel<dmt::gui::panel::OscilloscopePanel<float>>( |
| 29 | + 0, 0, 1, 1, p.oscilloscopeFifo, p.apvts); |
26 | 30 |
|
27 | 31 | setConstraints(baseWidth, baseHeight + headerHeight); |
28 | 32 | addAndMakeVisible(compositor); |
29 | | - setResizable(false, true); |
| 33 | + setResizable(true, true); |
30 | 34 |
|
31 | 35 | const auto startWidth = baseWidth * sizeFactor; |
32 | 36 | const auto startHeight = (baseHeight + headerHeight) * sizeFactor; |
|
0 commit comments