Photosine 0.5
Loading...
Searching...
No Matches
PluginInterface::PluginMenuItemComponent Class Reference

#include <PluginMenuItemComponent.h>

Inheritance diagram for PluginInterface::PluginMenuItemComponent:

Public Member Functions

 PluginMenuItemComponent (juce::ValueTree valueTreeToAttachTo, PluginMenuCallback callback, juce::DragAndDropContainer *parentContainer)
 ~PluginMenuItemComponent () override
void showMenu ()
juce::Component virtual members
void paint (juce::Graphics &g) override
void paintOverChildren (juce::Graphics &g) override
void resized () override
juce::DragAndDropTarget virtual members
bool isInterestedInDragSource (const SourceDetails &dragSourceDetails) override
void itemDragEnter (const SourceDetails &dragSourceDetails) override
void itemDragMove (const SourceDetails &dragSourceDetails) override
void itemDragExit (const SourceDetails &dragSourceDetails) override
void itemDropped (const SourceDetails &dragSourceDetails) override
juce::MouseListener virtual members
void mouseDrag (const juce::MouseEvent &) override
void mouseDown (const juce::MouseEvent &event) override
void mouseUp (const juce::MouseEvent &event) override

Public Attributes

juce::ValueTree pluginValueTree

Private Member Functions

void toggleBypass ()
void setupButtons ()
juce::ValueTree::Listener virtual members
void valueTreePropertyChanged (juce::ValueTree &treeWhosePropertyHasChanged, const juce::Identifier &property) override
void valueTreeChildAdded (juce::ValueTree &parentTree, juce::ValueTree &childWhichHasBeenAdded) override
void valueTreeChildRemoved (juce::ValueTree &parentTree, juce::ValueTree &childWhichHasBeenRemoved, int indexFromWhichChildWasRemoved) override
void valueTreeChildOrderChanged (juce::ValueTree &parentTreeWhoseChildrenHaveMoved, int oldIndex, int newIndex) override

Private Attributes

bool drawLine = false
int buttonWidth = 35
PluginMenuCallback menuCallback
juce::TextButton showMenuButton
juce::TextButton bypassButton
juce::DragAndDropContainer * container

Detailed Description

User interface element for a plugin item. See PluginMenuComponent and PluginMenuContainer

Constructor & Destructor Documentation

◆ PluginMenuItemComponent()

PluginInterface::PluginMenuItemComponent::PluginMenuItemComponent ( juce::ValueTree valueTreeToAttachTo,
PluginMenuCallback callback,
juce::DragAndDropContainer * parentContainer )
Parameters
valueTreeToAttachTothis plugin's value tree.
callbackfunction to call to show context menu.
parentContainerjuce::DragAndDropContainer containing this component.

◆ ~PluginMenuItemComponent()

PluginInterface::PluginMenuItemComponent::~PluginMenuItemComponent ( )
override

Member Function Documentation

◆ isInterestedInDragSource()

bool PluginInterface::PluginMenuItemComponent::isInterestedInDragSource ( const SourceDetails & dragSourceDetails)
override

◆ itemDragEnter()

void PluginInterface::PluginMenuItemComponent::itemDragEnter ( const SourceDetails & dragSourceDetails)
override

◆ itemDragExit()

void PluginInterface::PluginMenuItemComponent::itemDragExit ( const SourceDetails & dragSourceDetails)
override

◆ itemDragMove()

void PluginInterface::PluginMenuItemComponent::itemDragMove ( const SourceDetails & dragSourceDetails)
override

◆ itemDropped()

void PluginInterface::PluginMenuItemComponent::itemDropped ( const SourceDetails & dragSourceDetails)
override

◆ mouseDown()

void PluginInterface::PluginMenuItemComponent::mouseDown ( const juce::MouseEvent & event)
override

◆ mouseDrag()

void PluginInterface::PluginMenuItemComponent::mouseDrag ( const juce::MouseEvent & )
override

◆ mouseUp()

void PluginInterface::PluginMenuItemComponent::mouseUp ( const juce::MouseEvent & event)
override

◆ paint()

void PluginInterface::PluginMenuItemComponent::paint ( juce::Graphics & g)
override

◆ paintOverChildren()

void PluginInterface::PluginMenuItemComponent::paintOverChildren ( juce::Graphics & g)
override

◆ resized()

void PluginInterface::PluginMenuItemComponent::resized ( )
override

◆ setupButtons()

void PluginInterface::PluginMenuItemComponent::setupButtons ( )
private

Adds child buttons.

◆ showMenu()

void PluginInterface::PluginMenuItemComponent::showMenu ( )

Calls callback passed on constructor.

◆ toggleBypass()

void PluginInterface::PluginMenuItemComponent::toggleBypass ( )
private

Toggles plugin bypass.

◆ valueTreeChildAdded()

void PluginInterface::PluginMenuItemComponent::valueTreeChildAdded ( juce::ValueTree & parentTree,
juce::ValueTree & childWhichHasBeenAdded )
inlineoverrideprivate

◆ valueTreeChildOrderChanged()

void PluginInterface::PluginMenuItemComponent::valueTreeChildOrderChanged ( juce::ValueTree & parentTreeWhoseChildrenHaveMoved,
int oldIndex,
int newIndex )
inlineoverrideprivate

◆ valueTreeChildRemoved()

void PluginInterface::PluginMenuItemComponent::valueTreeChildRemoved ( juce::ValueTree & parentTree,
juce::ValueTree & childWhichHasBeenRemoved,
int indexFromWhichChildWasRemoved )
inlineoverrideprivate

◆ valueTreePropertyChanged()

void PluginInterface::PluginMenuItemComponent::valueTreePropertyChanged ( juce::ValueTree & treeWhosePropertyHasChanged,
const juce::Identifier & property )
inlineoverrideprivate

Member Data Documentation

◆ buttonWidth

int PluginInterface::PluginMenuItemComponent::buttonWidth = 35
private

◆ bypassButton

juce::TextButton PluginInterface::PluginMenuItemComponent::bypassButton
private

◆ container

juce::DragAndDropContainer* PluginInterface::PluginMenuItemComponent::container
private

◆ drawLine

bool PluginInterface::PluginMenuItemComponent::drawLine = false
private

Flag for drawing the line that signals to the user that a plugin may be dropped here.

◆ menuCallback

PluginMenuCallback PluginInterface::PluginMenuItemComponent::menuCallback
private

◆ pluginValueTree

juce::ValueTree PluginInterface::PluginMenuItemComponent::pluginValueTree

◆ showMenuButton

juce::TextButton PluginInterface::PluginMenuItemComponent::showMenuButton
private

The documentation for this class was generated from the following files: