Logo Search packages:      
Sourcecode: csound version File versions  Download package

CsoundGlobalSettingsPanel_FLTK.cpp

// generated by Fast Light User Interface Designer (fluid) version 1.0107

#include "CsoundGUI.hpp"

void CsoundGlobalSettingsPanel::cb_textEditorInput_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->textEditorProgram, o->value());
}
void CsoundGlobalSettingsPanel::cb_textEditorInput(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->user_data()))->cb_textEditorInput_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_textEditorButton_i(Fl_Button*, void*) {
  {
  CsoundGUIMain::browseFile(g_cfg->textEditorProgram, "Select external text editor", CSOUND5GUI_FILETYPE_ALL, false);
  textEditorInput->value(g_cfg->textEditorProgram.c_str());
};
}
void CsoundGlobalSettingsPanel::cb_textEditorButton(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->user_data()))->cb_textEditorButton_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_soundEditorInput_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->soundEditorProgram, o->value());
}
void CsoundGlobalSettingsPanel::cb_soundEditorInput(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->user_data()))->cb_soundEditorInput_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_soundEditorButton_i(Fl_Button*, void*) {
  {
  CsoundGUIMain::browseFile(g_cfg->soundEditorProgram, "Select external sound editor", CSOUND5GUI_FILETYPE_ALL, false);
  soundEditorInput->value(g_cfg->soundEditorProgram.c_str());
};
}
void CsoundGlobalSettingsPanel::cb_soundEditorButton(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->user_data()))->cb_soundEditorButton_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_helpBrowserInput_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->helpBrowserProgram, o->value());
}
void CsoundGlobalSettingsPanel::cb_helpBrowserInput(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->user_data()))->cb_helpBrowserInput_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_helpBrowserButton_i(Fl_Button*, void*) {
  {
  CsoundGUIMain::browseFile(g_cfg->helpBrowserProgram, "Select program for viewing the Csound manual", CSOUND5GUI_FILETYPE_ALL, false);
  helpBrowserInput->value(g_cfg->helpBrowserProgram.c_str());
};
}
void CsoundGlobalSettingsPanel::cb_helpBrowserButton(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->user_data()))->cb_helpBrowserButton_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Use_i(Fl_Check_Button* o, void*) {
  g_cfg->useBuiltInEditor = (o->value() == 0 ? false : true);
if (o->value() == false)
    textEditorInput->activate();
else
    textEditorInput->deactivate();
}
void CsoundGlobalSettingsPanel::cb_Use(Fl_Check_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->user_data()))->cb_Use_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Configure_i(Fl_Button*, void*) {
  p->openPerformanceSettingsWindow();
}
void CsoundGlobalSettingsPanel::cb_Configure(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->user_data()))->cb_Configure_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Force_i(Fl_Check_Button* o, void*) {
  g_cfg->forcePerformanceSettings = (o->value() == 0 ? false : true);
}
void CsoundGlobalSettingsPanel::cb_Force(Fl_Check_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->user_data()))->cb_Force_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Reset_i(Fl_Button*, void*) {
  {
  CsoundPerformanceSettings *tmp;
  tmp = new CsoundPerformanceSettings;
  p->currentPerformanceSettings = *tmp;
  delete tmp;
  p->updateGUIValues();
};
}
void CsoundGlobalSettingsPanel::cb_Reset(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->user_data()))->cb_Reset_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_1_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->performanceSettings1_Name, o->value());
}
void CsoundGlobalSettingsPanel::cb_1(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_1_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Load_i(Fl_Button*, void*) {
  readCsound5GUIConfigFile("p_cfg_1.dat", p->currentPerformanceSettings);
p->updateGUIValues();
}
void CsoundGlobalSettingsPanel::cb_Load(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Load_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Save_i(Fl_Button*, void*) {
  writeCsound5GUIConfigFile("p_cfg_1.dat", p->currentPerformanceSettings);
}
void CsoundGlobalSettingsPanel::cb_Save(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Save_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_2_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->performanceSettings2_Name, o->value());
}
void CsoundGlobalSettingsPanel::cb_2(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_2_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Load1_i(Fl_Button*, void*) {
  readCsound5GUIConfigFile("p_cfg_2.dat", p->currentPerformanceSettings);
p->updateGUIValues();
}
void CsoundGlobalSettingsPanel::cb_Load1(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Load1_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Save1_i(Fl_Button*, void*) {
  writeCsound5GUIConfigFile("p_cfg_2.dat", p->currentPerformanceSettings);
}
void CsoundGlobalSettingsPanel::cb_Save1(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Save1_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_3_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->performanceSettings3_Name, o->value());
}
void CsoundGlobalSettingsPanel::cb_3(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_3_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Load2_i(Fl_Button*, void*) {
  readCsound5GUIConfigFile("p_cfg_3.dat", p->currentPerformanceSettings);
p->updateGUIValues();
}
void CsoundGlobalSettingsPanel::cb_Load2(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Load2_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Save2_i(Fl_Button*, void*) {
  writeCsound5GUIConfigFile("p_cfg_3.dat", p->currentPerformanceSettings);
}
void CsoundGlobalSettingsPanel::cb_Save2(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Save2_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_4_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->performanceSettings4_Name, o->value());
}
void CsoundGlobalSettingsPanel::cb_4(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_4_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Load3_i(Fl_Button*, void*) {
  readCsound5GUIConfigFile("p_cfg_4.dat", p->currentPerformanceSettings);
p->updateGUIValues();
}
void CsoundGlobalSettingsPanel::cb_Load3(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Load3_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Save3_i(Fl_Button*, void*) {
  writeCsound5GUIConfigFile("p_cfg_4.dat", p->currentPerformanceSettings);
}
void CsoundGlobalSettingsPanel::cb_Save3(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Save3_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_5_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->performanceSettings5_Name, o->value());
}
void CsoundGlobalSettingsPanel::cb_5(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_5_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Load4_i(Fl_Button*, void*) {
  readCsound5GUIConfigFile("p_cfg_5.dat", p->currentPerformanceSettings);
p->updateGUIValues();
}
void CsoundGlobalSettingsPanel::cb_Load4(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Load4_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Save4_i(Fl_Button*, void*) {
  writeCsound5GUIConfigFile("p_cfg_5.dat", p->currentPerformanceSettings);
}
void CsoundGlobalSettingsPanel::cb_Save4(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Save4_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_6_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->performanceSettings6_Name, o->value());
}
void CsoundGlobalSettingsPanel::cb_6(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_6_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Load5_i(Fl_Button*, void*) {
  readCsound5GUIConfigFile("p_cfg_6.dat", p->currentPerformanceSettings);
p->updateGUIValues();
}
void CsoundGlobalSettingsPanel::cb_Load5(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Load5_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Save5_i(Fl_Button*, void*) {
  writeCsound5GUIConfigFile("p_cfg_6.dat", p->currentPerformanceSettings);
}
void CsoundGlobalSettingsPanel::cb_Save5(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Save5_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_7_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->performanceSettings7_Name, o->value());
}
void CsoundGlobalSettingsPanel::cb_7(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_7_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Load6_i(Fl_Button*, void*) {
  readCsound5GUIConfigFile("p_cfg_7.dat", p->currentPerformanceSettings);
p->updateGUIValues();
}
void CsoundGlobalSettingsPanel::cb_Load6(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Load6_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Save6_i(Fl_Button*, void*) {
  writeCsound5GUIConfigFile("p_cfg_7.dat", p->currentPerformanceSettings);
}
void CsoundGlobalSettingsPanel::cb_Save6(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Save6_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_8_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->performanceSettings8_Name, o->value());
}
void CsoundGlobalSettingsPanel::cb_8(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_8_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Load7_i(Fl_Button*, void*) {
  readCsound5GUIConfigFile("p_cfg_8.dat", p->currentPerformanceSettings);
p->updateGUIValues();
}
void CsoundGlobalSettingsPanel::cb_Load7(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Load7_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Save7_i(Fl_Button*, void*) {
  writeCsound5GUIConfigFile("p_cfg_8.dat", p->currentPerformanceSettings);
}
void CsoundGlobalSettingsPanel::cb_Save7(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Save7_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_9_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->performanceSettings9_Name, o->value());
}
void CsoundGlobalSettingsPanel::cb_9(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_9_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Load8_i(Fl_Button*, void*) {
  readCsound5GUIConfigFile("p_cfg_9.dat", p->currentPerformanceSettings);
p->updateGUIValues();
}
void CsoundGlobalSettingsPanel::cb_Load8(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Load8_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Save8_i(Fl_Button*, void*) {
  writeCsound5GUIConfigFile("p_cfg_9.dat", p->currentPerformanceSettings);
}
void CsoundGlobalSettingsPanel::cb_Save8(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Save8_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_10_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->performanceSettings10_Name, o->value());
}
void CsoundGlobalSettingsPanel::cb_10(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_10_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Load9_i(Fl_Button*, void*) {
  readCsound5GUIConfigFile("p_cfg_10.dat", p->currentPerformanceSettings);
p->updateGUIValues();
}
void CsoundGlobalSettingsPanel::cb_Load9(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Load9_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Save9_i(Fl_Button*, void*) {
  writeCsound5GUIConfigFile("p_cfg_10.dat", p->currentPerformanceSettings);
}
void CsoundGlobalSettingsPanel::cb_Save9(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->parent()->parent()->user_data()))->cb_Save9_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_soundPlayerInput_i(Fl_Input* o, void*) {
  CsoundGUIMain::stripString(g_cfg->soundPlayerProgram, o->value());
}
void CsoundGlobalSettingsPanel::cb_soundPlayerInput(Fl_Input* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->user_data()))->cb_soundPlayerInput_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_soundPlayerButton_i(Fl_Button*, void*) {
  {
  CsoundGUIMain::browseFile(g_cfg->soundPlayerProgram, "Select external sound player", CSOUND5GUI_FILETYPE_ALL, false);
  soundPlayerInput->value(g_cfg->soundPlayerProgram.c_str());
};
}
void CsoundGlobalSettingsPanel::cb_soundPlayerButton(Fl_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->user_data()))->cb_soundPlayerButton_i(o,v);
}

void CsoundGlobalSettingsPanel::cb_Edit_i(Fl_Check_Button* o, void*) {
  g_cfg->editSoundFileAfterPerformance = (o->value() == 0 ? false : true);
}
void CsoundGlobalSettingsPanel::cb_Edit(Fl_Check_Button* o, void* v) {
  ((CsoundGlobalSettingsPanel*)(o->parent()->user_data()))->cb_Edit_i(o,v);
}

CsoundGlobalSettingsPanel::CsoundGlobalSettingsPanel(CsoundGUIMain *p) {
  Fl_Double_Window* w;
  {
  this->p = p;
  g_cfg = &(p->currentGlobalSettings);
}
  { Fl_Double_Window* o = window = new Fl_Double_Window(390, 505, "Csound GUI options");
    w = o;
    o->box(FL_PLASTIC_UP_BOX);
    o->color((Fl_Color)139);
    o->user_data((void*)(this));
    { Fl_Input* o = textEditorInput = new Fl_Input(10, 15, 255, 20, "Text editor");
      o->box(FL_THIN_DOWN_BOX);
      o->labelsize(12);
      o->textsize(12);
      o->callback((Fl_Callback*)cb_textEditorInput);
      o->align(FL_ALIGN_RIGHT);
      o->value(g_cfg->textEditorProgram.c_str());
    }
    { Fl_Button* o = textEditorButton = new Fl_Button(360, 15, 20, 20, "...");
      o->tooltip("Browse external text editor program");
      o->box(FL_PLASTIC_UP_BOX);
      o->down_box(FL_PLASTIC_DOWN_BOX);
      o->callback((Fl_Callback*)cb_textEditorButton);
    }
    { Fl_Input* o = soundEditorInput = new Fl_Input(10, 65, 255, 20, "Sound editor");
      o->box(FL_THIN_DOWN_BOX);
      o->labelsize(12);
      o->textsize(12);
      o->callback((Fl_Callback*)cb_soundEditorInput);
      o->align(FL_ALIGN_RIGHT);
      o->value(g_cfg->soundEditorProgram.c_str());
    }
    { Fl_Button* o = soundEditorButton = new Fl_Button(360, 65, 20, 20, "...");
      o->tooltip("Browse external sound editor program");
      o->box(FL_PLASTIC_UP_BOX);
      o->down_box(FL_PLASTIC_DOWN_BOX);
      o->callback((Fl_Callback*)cb_soundEditorButton);
    }
    { Fl_Input* o = helpBrowserInput = new Fl_Input(10, 125, 255, 20, "Help browser");
      o->box(FL_THIN_DOWN_BOX);
      o->labelsize(12);
      o->textsize(12);
      o->callback((Fl_Callback*)cb_helpBrowserInput);
      o->align(FL_ALIGN_RIGHT);
      o->value(g_cfg->helpBrowserProgram.c_str());
    }
    { Fl_Button* o = helpBrowserButton = new Fl_Button(360, 125, 20, 20, "...");
      o->tooltip("Browse program for viewing the Csound manual");
      o->box(FL_PLASTIC_UP_BOX);
      o->down_box(FL_PLASTIC_DOWN_BOX);
      o->callback((Fl_Callback*)cb_helpBrowserButton);
    }
    { Fl_Check_Button* o = new Fl_Check_Button(15, 40, 20, 20, "Use built-in editor");
      o->tooltip("Automatically open output file with the external sound editor after the end o\
f performance");
      o->down_box(FL_PLASTIC_DOWN_BOX);
      o->labelsize(12);
      o->callback((Fl_Callback*)cb_Use);
      o->value(g_cfg->useBuiltInEditor ? 1 : 0);
    }
    { Fl_Group* o = new Fl_Group(10, 190, 370, 305, "Csound performance presets");
      o->box(FL_PLASTIC_DOWN_BOX);
      o->color((Fl_Color)139);
      o->labelsize(12);
      o->align(FL_ALIGN_TOP_LEFT);
      { Fl_Button* o = new Fl_Button(20, 200, 80, 20, "Configure");
        o->tooltip("Set Csound options");
        o->box(FL_PLASTIC_UP_BOX);
        o->down_box(FL_PLASTIC_DOWN_BOX);
        o->labelsize(12);
        o->callback((Fl_Callback*)cb_Configure);
      }
      { Fl_Check_Button* o = new Fl_Check_Button(150, 200, 110, 20, "Force settings");
        o->tooltip("Override <CsOptions> and .csoundrc when possible");
        o->down_box(FL_PLASTIC_DOWN_BOX);
        o->labelsize(12);
        o->callback((Fl_Callback*)cb_Force);
        o->value(g_cfg->forcePerformanceSettings ? 1 : 0);
      }
      { Fl_Button* o = new Fl_Button(300, 200, 70, 20, "Reset");
        o->tooltip("Reset Csound options to the defaults");
        o->box(FL_PLASTIC_UP_BOX);
        o->down_box(FL_PLASTIC_DOWN_BOX);
        o->labelsize(12);
        o->callback((Fl_Callback*)cb_Reset);
      }
      { Fl_Group* o = new Fl_Group(20, 230, 350, 255);
        o->box(FL_PLASTIC_UP_FRAME);
        { Fl_Input* o = new Fl_Input(45, 235, 200, 20, "1");
          o->box(FL_THIN_DOWN_BOX);
          o->labelsize(12);
          o->textsize(12);
          o->callback((Fl_Callback*)cb_1);
          o->value(g_cfg->performanceSettings1_Name.c_str());
        }
        { Fl_Button* o = new Fl_Button(255, 235, 50, 20, "Load");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Load);
        }
        { Fl_Button* o = new Fl_Button(310, 235, 50, 20, "Save");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Save);
        }
        { Fl_Input* o = new Fl_Input(45, 260, 200, 20, "2");
          o->box(FL_THIN_DOWN_BOX);
          o->labelsize(12);
          o->textsize(12);
          o->callback((Fl_Callback*)cb_2);
          o->value(g_cfg->performanceSettings2_Name.c_str());
        }
        { Fl_Button* o = new Fl_Button(255, 260, 50, 20, "Load");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Load1);
        }
        { Fl_Button* o = new Fl_Button(310, 260, 50, 20, "Save");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Save1);
        }
        { Fl_Input* o = new Fl_Input(45, 285, 200, 20, "3");
          o->box(FL_THIN_DOWN_BOX);
          o->labelsize(12);
          o->textsize(12);
          o->callback((Fl_Callback*)cb_3);
          o->value(g_cfg->performanceSettings3_Name.c_str());
        }
        { Fl_Button* o = new Fl_Button(255, 285, 50, 20, "Load");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Load2);
        }
        { Fl_Button* o = new Fl_Button(310, 285, 50, 20, "Save");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Save2);
        }
        { Fl_Input* o = new Fl_Input(45, 310, 200, 20, "4");
          o->box(FL_THIN_DOWN_BOX);
          o->labelsize(12);
          o->textsize(12);
          o->callback((Fl_Callback*)cb_4);
          o->value(g_cfg->performanceSettings4_Name.c_str());
        }
        { Fl_Button* o = new Fl_Button(255, 310, 50, 20, "Load");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Load3);
        }
        { Fl_Button* o = new Fl_Button(310, 310, 50, 20, "Save");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Save3);
        }
        { Fl_Input* o = new Fl_Input(45, 335, 200, 20, "5");
          o->box(FL_THIN_DOWN_BOX);
          o->labelsize(12);
          o->textsize(12);
          o->callback((Fl_Callback*)cb_5);
          o->value(g_cfg->performanceSettings5_Name.c_str());
        }
        { Fl_Button* o = new Fl_Button(255, 335, 50, 20, "Load");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Load4);
        }
        { Fl_Button* o = new Fl_Button(310, 335, 50, 20, "Save");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Save4);
        }
        { Fl_Input* o = new Fl_Input(45, 360, 200, 20, "6");
          o->box(FL_THIN_DOWN_BOX);
          o->labelsize(12);
          o->textsize(12);
          o->callback((Fl_Callback*)cb_6);
          o->value(g_cfg->performanceSettings6_Name.c_str());
        }
        { Fl_Button* o = new Fl_Button(255, 360, 50, 20, "Load");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Load5);
        }
        { Fl_Button* o = new Fl_Button(310, 360, 50, 20, "Save");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Save5);
        }
        { Fl_Input* o = new Fl_Input(45, 385, 200, 20, "7");
          o->box(FL_THIN_DOWN_BOX);
          o->labelsize(12);
          o->textsize(12);
          o->callback((Fl_Callback*)cb_7);
          o->value(g_cfg->performanceSettings7_Name.c_str());
        }
        { Fl_Button* o = new Fl_Button(255, 385, 50, 20, "Load");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Load6);
        }
        { Fl_Button* o = new Fl_Button(310, 385, 50, 20, "Save");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Save6);
        }
        { Fl_Input* o = new Fl_Input(45, 410, 200, 20, "8");
          o->box(FL_THIN_DOWN_BOX);
          o->labelsize(12);
          o->textsize(12);
          o->callback((Fl_Callback*)cb_8);
          o->value(g_cfg->performanceSettings8_Name.c_str());
        }
        { Fl_Button* o = new Fl_Button(255, 410, 50, 20, "Load");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Load7);
        }
        { Fl_Button* o = new Fl_Button(310, 410, 50, 20, "Save");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Save7);
        }
        { Fl_Input* o = new Fl_Input(45, 435, 200, 20, "9");
          o->box(FL_THIN_DOWN_BOX);
          o->labelsize(12);
          o->textsize(12);
          o->callback((Fl_Callback*)cb_9);
          o->value(g_cfg->performanceSettings9_Name.c_str());
        }
        { Fl_Button* o = new Fl_Button(255, 435, 50, 20, "Load");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Load8);
        }
        { Fl_Button* o = new Fl_Button(310, 435, 50, 20, "Save");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Save8);
        }
        { Fl_Input* o = new Fl_Input(45, 460, 200, 20, "10");
          o->box(FL_THIN_DOWN_BOX);
          o->labelsize(12);
          o->textsize(12);
          o->callback((Fl_Callback*)cb_10);
          o->value(g_cfg->performanceSettings10_Name.c_str());
        }
        { Fl_Button* o = new Fl_Button(255, 460, 50, 20, "Load");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Load9);
        }
        { Fl_Button* o = new Fl_Button(310, 460, 50, 20, "Save");
          o->box(FL_PLASTIC_UP_BOX);
          o->down_box(FL_PLASTIC_DOWN_BOX);
          o->labelsize(12);
          o->callback((Fl_Callback*)cb_Save9);
        }
        o->end();
      }
      o->end();
    }
    { Fl_Input* o = soundPlayerInput = new Fl_Input(10, 95, 255, 20, "Sound player");
      o->box(FL_THIN_DOWN_BOX);
      o->labelsize(12);
      o->textsize(12);
      o->callback((Fl_Callback*)cb_soundPlayerInput);
      o->align(FL_ALIGN_RIGHT);
      o->value(g_cfg->soundPlayerProgram.c_str());
    }
    { Fl_Button* o = soundPlayerButton = new Fl_Button(360, 95, 20, 20, "...");
      o->tooltip("Browse external sound editor program");
      o->box(FL_PLASTIC_UP_BOX);
      o->down_box(FL_PLASTIC_DOWN_BOX);
      o->callback((Fl_Callback*)cb_soundPlayerButton);
    }
    { Fl_Check_Button* o = new Fl_Check_Button(15, 150, 20, 20, "Edit output sound file after performance");
      o->tooltip("Automatically open output file with the external sound editor after the end o\
f performance");
      o->down_box(FL_PLASTIC_DOWN_BOX);
      o->labelsize(12);
      o->callback((Fl_Callback*)cb_Edit);
      o->value(g_cfg->editSoundFileAfterPerformance ? 1 : 0);
    }
    o->end();
  }
  {
if (g_cfg->useBuiltInEditor)
{
  textEditorInput->deactivate();
  textEditorButton->deactivate();
}
}
}

CsoundGlobalSettingsPanel::~CsoundGlobalSettingsPanel() {
  {
  if (window) {
    delete window;
    window = (Fl_Double_Window*) 0;
  }
}
}

Generated by  Doxygen 1.6.0   Back to index