コード例 #1
0
void StandaloneFilterWindow::deleteEditorComp()
{
    if (AudioProcessorEditor* ed = dynamic_cast<AudioProcessorEditor*> (getContentComponent()))
    {
        pluginHolder->processor->editorBeingDeleted (ed);
        clearContentComponent();
    }
}
コード例 #2
0
ファイル: jucer_MainWindow.cpp プロジェクト: azeteg/HISE
void MainWindow::createProjectContentCompIfNeeded()
{
    if (getProjectContentComponent() == nullptr)
    {
        clearContentComponent();
        setContentOwned (new ProjectContentComponent(), false);
        jassert (getProjectContentComponent() != nullptr);
    }
}
コード例 #3
0
ファイル: JucePluginWindow.hpp プロジェクト: ViktorNova/Carla
    void hide()
    {
        setVisible(false);

        if (isOnDesktop())
            removeFromDesktop();

        clearContentComponent();
    }
コード例 #4
0
void CtrlrStandaloneWindow::deleteFilter()
{
    if (filter != 0 && getContentComponent() != 0)
    {
        filter->editorBeingDeleted (dynamic_cast <AudioProcessorEditor*> (getContentComponent()));
		clearContentComponent ();
    }

    deleteAndZero (filter);
}
コード例 #5
0
ファイル: MainWindow.cpp プロジェクト: topilski/JUCE
MainAppWindow::~MainAppWindow()
{
    contentComponent->clearCurrentDemo();
    clearContentComponent();
    contentComponent = nullptr;
    applicationCommandManager = nullptr;
    sharedAudioDeviceManager = nullptr;

   #if JUCE_OPENGL
    openGLContext.detach();
   #endif
}
コード例 #6
0
ファイル: jucer_MainWindow.cpp プロジェクト: azeteg/HISE
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;
}
コード例 #7
0
MainHostWindow::~MainHostWindow()
{
    pluginListWindow = nullptr;

   #if JUCE_MAC
    setMacMainMenu (nullptr);
   #else
    setMenuBar (nullptr);
   #endif

    knownPluginList.removeChangeListener (this);

    appProperties->getUserSettings()->setValue ("mainWindowPos", getWindowStateAsString());
    clearContentComponent();
}
コード例 #8
0
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;
}
コード例 #9
0
ファイル: juce_ResizableWindow.cpp プロジェクト: AGenews/GUI
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);
}
コード例 #10
0
ファイル: MainWindow.cpp プロジェクト: pontusm/Audius
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);
}
コード例 #11
0
ファイル: jucer_MainWindow.cpp プロジェクト: Frongo/JUCE
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);
}
コード例 #12
0
ファイル: juce_ResizableWindow.cpp プロジェクト: AGenews/GUI
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
}
コード例 #13
0
ファイル: MainHostWindow.cpp プロジェクト: AmirooR/JUCE
    ~PluginListWindow()
    {
        getAppProperties().getUserSettings()->setValue ("listWindowPos", getWindowStateAsString());

        clearContentComponent();
    }
コード例 #14
0
ファイル: MainWindow.cpp プロジェクト: ThePlain/digdigrpg
MainAppWindow::~MainAppWindow()
{
    clearContentComponent();
    delete mAudio;
}
コード例 #15
0
ファイル: GraphEditorPanel.cpp プロジェクト: furio/pyplasm
PluginWindow::~PluginWindow()
{
    activePluginWindows.removeValue (this);
    clearContentComponent();
}
コード例 #16
0
ファイル: pMixPluginWindow.cpp プロジェクト: eriser/pMix2
PluginWindow::~PluginWindow()
{
  dynamic_cast<AudioPluginInstance*> (owner->getProcessor())->editorBeingDeleted( dynamic_cast<AudioProcessorEditor*>(getContentComponent()) );
  activePluginWindows.removeFirstMatchingValue (this);
  clearContentComponent();
}