MCPcopy Create free account
hub / github.com/StrangeLoopsAudio/gRainbow / resized

Method resized

Source/PluginEditor.cpp:316–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void GRainbowAudioProcessorEditor::resized() {
317 auto r = getLocalBounds();
318
319#ifndef GRAINBOW_PRODUCTION
320 mSettings.setBounds(r.removeFromBottom(mSettings.getHeight()));
321#endif
322
323 mTitlePresetPanel.setBounds(r.removeFromTop(Utils::PRESET_PANEL_HEIGHT));
324
325 // Left and right panels
326 auto leftPanel = r.removeFromLeft(Utils::PANEL_WIDTH).reduced(Utils::PADDING, Utils::PADDING);
327 mTabsGrains.setBounds(leftPanel.removeFromTop(Utils::PANEL_HEIGHT));
328 mTabsEnvs.setBounds(leftPanel.removeFromBottom(Utils::PANEL_HEIGHT));
329
330
331 auto rightPanel = r.removeFromRight(Utils::PANEL_WIDTH).reduced(Utils::PADDING, Utils::PADDING);
332 // TODO: add back in resource usage
333 mMasterPanel.setBounds(rightPanel.removeFromTop(Utils::PANEL_HEIGHT));
334 mTabsLFOs.setBounds(rightPanel.removeFromBottom(Utils::PANEL_HEIGHT));
335
336 // Center middle space
337 auto centerPanel = r.reduced(0, Utils::PADDING);
338 mPianoPanel.setBounds(centerPanel.removeFromBottom(Utils::PANEL_HEIGHT));
339 mArcSpec.setBounds(centerPanel.removeFromTop(Utils::PANEL_HEIGHT));
340 mTrimSelection.setBounds(mArcSpec.getBounds());
341 mProgressBar.setBounds(mArcSpec.getBounds().withSizeKeepingCentre(PROGRESS_SIZE, PROGRESS_SIZE));
342}
343
344bool GRainbowAudioProcessorEditor::isInterestedInFileDrag(const juce::StringArray& files) {
345 // Only accept 1 file of wav/mp3/gbow at a time

Callers

nothing calls this directly

Calls 1

getHeightMethod · 0.80

Tested by

no test coverage detected