- added load of fxb through GUI
- added load of fxp through GUI
This commit is contained in:
@@ -4931,7 +4931,8 @@ void JaySynthAudioProcessorEditor::buttonClicked (Button* buttonThatWasClicked)
|
||||
|
||||
if (buttonThatWasClicked == m_button_bank_load)
|
||||
{
|
||||
FileChooser fc("Load bank");
|
||||
String filePatterns("*.fxb;*.xml");
|
||||
FileChooser fc("Load bank", File::nonexistent, filePatterns, false);
|
||||
if (fc.browseForFileToOpen())
|
||||
{
|
||||
File const &file = fc.getResult();
|
||||
@@ -4940,7 +4941,8 @@ void JaySynthAudioProcessorEditor::buttonClicked (Button* buttonThatWasClicked)
|
||||
}
|
||||
else if (buttonThatWasClicked == m_button_bank_save)
|
||||
{
|
||||
FileChooser fc("Save bank");
|
||||
String filePatterns("*.fxb;*.xml");
|
||||
FileChooser fc("Save bank", File::nonexistent, filePatterns, false);
|
||||
if (fc.browseForFileToSave(true))
|
||||
{
|
||||
File const &file = fc.getResult();
|
||||
@@ -4949,7 +4951,8 @@ void JaySynthAudioProcessorEditor::buttonClicked (Button* buttonThatWasClicked)
|
||||
}
|
||||
else if (buttonThatWasClicked == m_button_patch_load)
|
||||
{
|
||||
FileChooser fc("Load patch");
|
||||
String filePatterns("*.fxp;*.xml");
|
||||
FileChooser fc("Load patch", File::nonexistent, filePatterns, false);
|
||||
if (fc.browseForFileToOpen())
|
||||
{
|
||||
File const &file = fc.getResult();
|
||||
@@ -4958,7 +4961,8 @@ void JaySynthAudioProcessorEditor::buttonClicked (Button* buttonThatWasClicked)
|
||||
}
|
||||
else if (buttonThatWasClicked == m_button_patch_save)
|
||||
{
|
||||
FileChooser fc("Save patch");
|
||||
String filePatterns("*.fxp;*.xml");
|
||||
FileChooser fc("Save patch", File::nonexistent, filePatterns, false);
|
||||
if (fc.browseForFileToSave(true))
|
||||
{
|
||||
File const &file = fc.getResult();
|
||||
|
||||
Reference in New Issue
Block a user