mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-31 03:00:05 +00:00
Added several new features: support for AudioUnit v3, new simplified JUCE module format, deleted the Introjucer and replaced it by the Projucer, various improvements for exporting of iOS and Android projects.
This commit is contained in:
parent
9eb54629f2
commit
70949aa0c6
1979 changed files with 130149 additions and 129257 deletions
12
examples/MidiTest/Source/MainComponent.cpp
Executable file → Normal file
12
examples/MidiTest/Source/MainComponent.cpp
Executable file → Normal file
|
|
@ -48,7 +48,7 @@ class MidiDeviceListBox : public ListBox,
|
|||
private ListBoxModel
|
||||
{
|
||||
public:
|
||||
//==========================================================================
|
||||
//==============================================================================
|
||||
MidiDeviceListBox (const String& name,
|
||||
MainContentComponent& contentComponent,
|
||||
bool isInputDeviceList)
|
||||
|
|
@ -61,14 +61,14 @@ public:
|
|||
setClickingTogglesRowSelection (true);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//==============================================================================
|
||||
int getNumRows() override
|
||||
{
|
||||
return isInput ? parent.getNumMidiInputs()
|
||||
: parent.getNumMidiOutputs();
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//==============================================================================
|
||||
void paintListBoxItem (int rowNumber, Graphics &g,
|
||||
int width, int height, bool rowIsSelected) override
|
||||
{
|
||||
|
|
@ -97,7 +97,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//==============================================================================
|
||||
void selectedRowsChanged (int) override
|
||||
{
|
||||
SparseSet<int> newSelectedItems = getSelectedRows();
|
||||
|
|
@ -119,7 +119,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//==============================================================================
|
||||
void syncSelectedItemsWithDeviceList (const ReferenceCountedArray<MidiDeviceListEntry>& midiDevices)
|
||||
{
|
||||
SparseSet<int> selectedRows;
|
||||
|
|
@ -133,7 +133,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
//==========================================================================
|
||||
//==============================================================================
|
||||
MainContentComponent& parent;
|
||||
bool isInput;
|
||||
SparseSet<int> lastSelectedItems;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue