Added GUI buttons for bank/patch load and save
This commit is contained in:
@@ -1917,7 +1917,7 @@ JaySynthAudioProcessorEditor::JaySynthAudioProcessorEditor (JaySynthAudioProcess
|
||||
m_slider_lfo0_midisync_divisor->setColour (Slider::rotarySliderOutlineColourId, Colour (0x66ffffff));
|
||||
m_slider_lfo0_midisync_divisor->addListener (this);
|
||||
|
||||
addAndMakeVisible (m_comboBox_lfo0_midisync_mode = new ComboBox ("LFO 1 Midi Sync Mode"));
|
||||
addAndMakeVisible (m_comboBox_lfo0_midisync_mode = new juce::ComboBox ("LFO 1 Midi Sync Mode"));
|
||||
m_comboBox_lfo0_midisync_mode->setTooltip (TRANS("LFO 1 Midi Sync Mode"));
|
||||
m_comboBox_lfo0_midisync_mode->setEditableText (false);
|
||||
m_comboBox_lfo0_midisync_mode->setJustificationType (Justification::centred);
|
||||
@@ -1929,6 +1929,21 @@ JaySynthAudioProcessorEditor::JaySynthAudioProcessorEditor (JaySynthAudioProcess
|
||||
m_comboBox_lfo0_midisync_mode->addItem (TRANS("F + P"), 4);
|
||||
m_comboBox_lfo0_midisync_mode->addListener (this);
|
||||
|
||||
addAndMakeVisible (m_button_bank_load = new juce::TextButton (L"Bank Load"));
|
||||
m_button_bank_load->setTooltip (TRANS("Load a bank"));
|
||||
m_button_bank_load->addListener (this);
|
||||
|
||||
addAndMakeVisible (m_button_bank_save = new juce::TextButton (L"Bank Save"));
|
||||
m_button_bank_save->setTooltip (TRANS("Save a bank"));
|
||||
m_button_bank_save->addListener (this);
|
||||
|
||||
addAndMakeVisible (m_button_patch_load = new juce::TextButton (L"Patch Load"));
|
||||
m_button_patch_load->setTooltip (TRANS("Load a patch"));
|
||||
m_button_patch_load->addListener (this);
|
||||
|
||||
addAndMakeVisible (m_button_patch_save = new juce::TextButton (L"Patch Save"));
|
||||
m_button_patch_save->setTooltip (TRANS("Save a patch"));
|
||||
m_button_patch_save->addListener (this);
|
||||
|
||||
//[UserPreSize]
|
||||
//[/UserPreSize]
|
||||
@@ -2620,6 +2635,10 @@ JaySynthAudioProcessorEditor::~JaySynthAudioProcessorEditor()
|
||||
m_label_lfo0_midisync_factor = nullptr;
|
||||
m_slider_lfo0_midisync_divisor = nullptr;
|
||||
m_comboBox_lfo0_midisync_mode = nullptr;
|
||||
m_button_bank_load = nullptr;
|
||||
m_button_bank_save = nullptr;
|
||||
m_button_patch_load = nullptr;
|
||||
m_button_patch_save = nullptr;
|
||||
|
||||
|
||||
//[Destructor]. You can add your own custom destruction code here..
|
||||
@@ -3654,6 +3673,10 @@ void JaySynthAudioProcessorEditor::resized()
|
||||
m_label_lfo0_midisync_factor->setBounds (384, 70, 52, 20);
|
||||
m_slider_lfo0_midisync_divisor->setBounds (392, 88, 36, 36);
|
||||
m_comboBox_lfo0_midisync_mode->setBounds (393, 12, 47, 16);
|
||||
m_button_bank_load->setBounds (1000, 70, 80, 20);
|
||||
m_button_bank_save->setBounds (1000, 100, 80, 20);
|
||||
m_button_patch_load->setBounds (1000, 140, 80, 20);
|
||||
m_button_patch_save->setBounds (1000, 170, 80, 20);
|
||||
//[UserResized] Add your own custom resize handling here..
|
||||
//[/UserResized]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user