- added load of fxb through GUI

- added load of fxp through GUI
This commit is contained in:
2023-04-28 14:08:59 +02:00
parent b4add9e530
commit ea4397907f
3 changed files with 45 additions and 44 deletions
+8 -4
View File
@@ -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();