You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.7KB

  1. /* SpiralSynthModular
  2. * Copyleft (C) 2002 David Griffiths <dave@pawfal.org>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. */
  18. #ifndef SETTINGSWINDOW
  19. #define SETTINGSWINDOW
  20. #include <FL/Fl.H>
  21. #include <FL/Fl_Double_Window.H>
  22. #include <FL/Fl_Button.H>
  23. #include <FL/Fl_Pack.H>
  24. #include <FL/Fl_Int_Input.H>
  25. #include <FL/Fl_Input.H>
  26. #include "SpiralSynthModular.h"
  27. class SynthModular;
  28. class SettingsWindow : public Fl_Double_Window
  29. {
  30. public:
  31. SettingsWindow();
  32. ~SettingsWindow();
  33. void RegisterApp(SynthModular *s) { m_App=s; }
  34. private:
  35. SynthModular *m_App;
  36. Fl_Pack *m_Options;
  37. Fl_Int_Input *m_BufferSize;
  38. Fl_Int_Input *m_FragmentSize;
  39. Fl_Int_Input *m_FragmentCount;
  40. Fl_Int_Input *m_Samplerate;
  41. Fl_Input *m_OutputDevice;
  42. Fl_Input *m_MidiDevice;
  43. Fl_Button *m_Save;
  44. Fl_Button *m_Apply;
  45. inline void cb_Apply_i(Fl_Button* o, void* v);
  46. static void cb_Apply(Fl_Button* o, void* v);
  47. inline void cb_Save_i(Fl_Button* o, void* v);
  48. static void cb_Save(Fl_Button* o, void* v);
  49. };
  50. #endif