zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit bbf0e0041117996f43c7a74199e9a2947449458a
parent e7a7b758e0b4adae82035cb48dcef207e7abdcc3
Author: paulnasca <paulnasca>
Date:   Sun, 13 Jun 2004 17:20:40 +0000

*** empty log message ***

Diffstat:
Msrc/UI/BankUI.fl | 22++++------------------
1 file changed, 4 insertions(+), 18 deletions(-)

diff --git a/src/UI/BankUI.fl b/src/UI/BankUI.fl @@ -86,7 +86,7 @@ class BankUI {open : {public BankProcess_} Function {make_window()} {open } { Fl_Window bankuiwindow { - label Bank + label Bank selected xywh {57 89 770 485} type Double code0 {o->label(bank->bankfiletitle);} code1 {if (bank->bankfiletitle==NULL) o->label ("Choose a bank to use by pressing the 'Load/Use Bank from file...' button or choose 'New Bank...' to make a new bank.");} visible @@ -144,23 +144,9 @@ class BankUI {open : {public BankProcess_} } } Fl_Button {} { - label {Use Bank...} - callback {const char *dirname; -dirname=fl_dir_chooser("Load and use Bank from dir.:",NULL,0); -if (dirname==NULL) return; -if (bank->loadbank(dirname)==2) - fl_alert("Error: Could not load the bank from the directory."); -for (int i=0;i<128;i++) bs[i]->refresh(); -refreshmainwindow();} - xywh {329 438 95 20} box PLASTIC_UP_BOX labelfont 1 labelsize 12 align 128 - } - Fl_Button {} { label {New Bank...} callback {const char *dirname; -/* -dirname=fl_dir_chooser("New empty Bank:",NULL,0); -if (dirname==NULL) return; -*/ + dirname=fl_input("New empty Bank:"); if (dirname==NULL) return; @@ -170,7 +156,7 @@ int result=bank->newbank(dirname); if (result!=0) fl_alert("Error: Could not make a new bank (directory).."); for (int i=0;i<128;i++) bs[i]->refresh(); refreshmainwindow();} - xywh {329 460 93 20} box PLASTIC_UP_BOX labelfont 1 labelsize 12 align 128 + xywh {335 445 93 25} box PLASTIC_UP_BOX labelfont 1 labelsize 12 align 128 } Fl_Check_Button {} { label {auto close} @@ -187,7 +173,7 @@ if (filename==NULL) return; master->exportbankasxmldirectory(filename); for (int i=0;i<128;i++) bs[i]->refresh(); -refreshmainwindow();} selected +refreshmainwindow();} xywh {439 438 105 40} box PLASTIC_UP_BOX color 175 labelfont 1 labelsize 15 labelcolor 0 align 128 } Fl_Choice banklist {