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.

70 lines
2.0KB

  1. /* SpiralSynth
  2. * Copyright (C) 2000 David Griffiths <dave@blueammonite.f9.co.uk>
  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. #include <FL/Fl.H>
  19. #include <FL/Fl_Window.H>
  20. #include <FL/Fl_Group.H>
  21. #include <FL/Fl_Check_Button.H>
  22. #include "Widgets/Fl_Knob.H"
  23. #include "GUIBase.h"
  24. #ifndef MIXGUI
  25. #define MIXGUI
  26. class MixerGUI : public GUIBase
  27. {
  28. public:
  29. MixerGUI(Mixer *o);
  30. virtual void CreateGUI(int xoff=0, int yoff=0, char *name="");
  31. virtual void UpdateValues();
  32. Mixer *m_mix;
  33. private:
  34. Fl_Group *GUIMixGroup;
  35. Fl_Check_Button *Add;
  36. Fl_Check_Button *XMod;
  37. Fl_Check_Button *Ring;
  38. Fl_Knob *Balance;
  39. //// Callbacks ////
  40. inline void cb_Balance_i(Fl_Knob* o, void* v);
  41. static void cb_Balance(Fl_Knob*, void*);
  42. inline void cb_XModAmount_i(Fl_Knob* o, void* v);
  43. static void cb_XModAmount(Fl_Knob* o, void* v);
  44. inline void cb_Add_i(Fl_Check_Button* o, void* v);
  45. static void cb_Add(Fl_Check_Button*, void*);
  46. inline void cb_Mult_i(Fl_Check_Button* o, void* v);
  47. static void cb_Mult(Fl_Check_Button*, void*);
  48. inline void cb_Sub_i(Fl_Check_Button* o, void* v);
  49. static void cb_Sub(Fl_Check_Button* o, void* v);
  50. inline void cb_XMod_i(Fl_Check_Button* o, void* v);
  51. static void cb_XMod(Fl_Check_Button* o, void* v);
  52. inline void cb_Ring_i(Fl_Check_Button* o, void* v);
  53. static void cb_Ring(Fl_Check_Button* o, void* v);
  54. };
  55. #endif