mirror of
https://codeberg.org/armin/trommelkiste.git
synced 2026-09-01 04:10:46 +02:00
Add drag-and-drop sample loading onto track slots
This commit is contained in:
parent
d63aa00922
commit
73a8193e5d
2 changed files with 89 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ struct KnobSlider : juce::Slider
|
|||
}
|
||||
};
|
||||
|
||||
class TrommelkisteEditor : public juce::AudioProcessorEditor, private juce::Timer
|
||||
class TrommelkisteEditor : public juce::AudioProcessorEditor, private juce::Timer,
|
||||
public juce::FileDragAndDropTarget
|
||||
{
|
||||
public:
|
||||
TrommelkisteEditor(TrommelkisteProcessor&);
|
||||
|
|
@ -97,6 +98,8 @@ private:
|
|||
void loadForTrack(int idx);
|
||||
void updateFileLabel(int idx);
|
||||
void refreshPresetCombo();
|
||||
int getSlotIndexForPosition(int x, int y) const;
|
||||
int dropHoverIndex = -1;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(TrommelkisteEditor)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue