void StandaloneFilterWindow::deleteEditorComp() { if (AudioProcessorEditor* ed = dynamic_cast<AudioProcessorEditor*> (getContentComponent())) { pluginHolder->processor->editorBeingDeleted (ed); clearContentComponent(); } }
void MainWindow::createProjectContentCompIfNeeded() { if (getProjectContentComponent() == nullptr) { clearContentComponent(); setContentOwned (new ProjectContentComponent(), false); jassert (getProjectContentComponent() != nullptr); } }
void hide() { setVisible(false); if (isOnDesktop()) removeFromDesktop(); clearContentComponent(); }
void CtrlrStandaloneWindow::deleteFilter() { if (filter != 0 && getContentComponent() != 0) { filter->editorBeingDeleted (dynamic_cast <AudioProcessorEditor*> (getContentComponent())); clearContentComponent (); } deleteAndZero (filter); }
MainAppWindow::~MainAppWindow() { contentComponent->clearCurrentDemo(); clearContentComponent(); contentComponent = nullptr; applicationCommandManager = nullptr; sharedAudioDeviceManager = nullptr; #if JUCE_OPENGL openGLContext.detach(); #endif }
MainWindow::~MainWindow() { #if ! JUCE_MAC setMenuBar (nullptr); #endif removeKeyListener (ProjucerApplication::getCommandManager().getKeyMappings()); // save the current size and position to our settings file.. getGlobalProperties().setValue ("lastMainWindowPos", getWindowStateAsString()); clearContentComponent(); currentProject = nullptr; }
MainHostWindow::~MainHostWindow() { pluginListWindow = nullptr; #if JUCE_MAC setMacMainMenu (nullptr); #else setMenuBar (nullptr); #endif knownPluginList.removeChangeListener (this); appProperties->getUserSettings()->setValue ("mainWindowPos", getWindowStateAsString()); clearContentComponent(); }
MainWindow::~MainWindow() { #if ! JUCE_MAC setMenuBar (nullptr); #endif removeKeyListener (commandManager->getKeyMappings()); // save the current size and position to our settings file.. StoredSettings::getInstance()->getProps() .setValue ("lastMainWindowPos", getWindowStateAsString()); clearContentComponent(); currentProject = nullptr; }
ResizableWindow::~ResizableWindow() { // Don't delete or remove the resizer components yourself! They're managed by the // ResizableWindow, and you should leave them alone! You may have deleted them // accidentally by careless use of deleteAllChildren()..? jassert (resizableCorner == nullptr || getIndexOfChildComponent (resizableCorner) >= 0); jassert (resizableBorder == nullptr || getIndexOfChildComponent (resizableBorder) >= 0); resizableCorner = nullptr; resizableBorder = nullptr; clearContentComponent(); // have you been adding your own components directly to this window..? tut tut tut. // Read the instructions for using a ResizableWindow! jassert (getNumChildComponents() == 0); }
MainWindow::~MainWindow(void) { AudioPlayer::getInstance()->removeActionListener(this); #if JUCE_WIN32 || JUCE_LINUX deleteAndZero (_trayIcon); #endif unhookMediaKeys(); // This will ensure that the current content component and all its children // are deleted before we destroy the command manager which is used by it clearContentComponent(); g_commandManager = NULL; deleteAndZero(_appCommandManager); }
MainWindow::~MainWindow() { #if JUCE_MAC setMacMainMenu (0); #else setMenuBar (0); #endif removeKeyListener (commandManager->getKeyMappings()); // save the current size and position to our settings file.. StoredSettings::getInstance()->getProps() .setValue ("lastMainWindowPos", getWindowStateAsString()); clearContentComponent(); deleteAndZero (oldLook); }
void ResizableWindow::setContent (Component* newContentComponent, const bool takeOwnership, const bool resizeToFitWhenContentChangesSize) { if (newContentComponent != contentComponent) { clearContentComponent(); contentComponent = newContentComponent; Component::addAndMakeVisible (contentComponent); } ownsContentComponent = takeOwnership; resizeToFitContent = resizeToFitWhenContentChangesSize; if (resizeToFitWhenContentChangesSize) childBoundsChanged (contentComponent); resized(); // must always be called to position the new content comp }
~PluginListWindow() { getAppProperties().getUserSettings()->setValue ("listWindowPos", getWindowStateAsString()); clearContentComponent(); }
MainAppWindow::~MainAppWindow() { clearContentComponent(); delete mAudio; }
PluginWindow::~PluginWindow() { activePluginWindows.removeValue (this); clearContentComponent(); }
PluginWindow::~PluginWindow() { dynamic_cast<AudioPluginInstance*> (owner->getProcessor())->editorBeingDeleted( dynamic_cast<AudioProcessorEditor*>(getContentComponent()) ); activePluginWindows.removeFirstMatchingValue (this); clearContentComponent(); }