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.

74 lines
2.2KB

  1. /* SpiralPlugin
  2. * Copyleft (C) 2000 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. #include <FL/Fl.H>
  19. #include <FL/Fl_Window.H>
  20. #include <FL/Fl_Group.H>
  21. #include <FL/Fl_Scroll.H>
  22. #include <FL/Fl_Slider.H>
  23. #include <FL/Fl_Counter.H>
  24. #include <FL/Fl_Output.H>
  25. #include "SeqPlugin.h"
  26. #include "../SpiralPluginGUI.h"
  27. #include "../Widgets/Fl_Knob.H"
  28. #include "../Widgets/Fl_EventMap.h"
  29. #ifndef MixerGUI
  30. #define MixerGUI
  31. class SeqPluginGUI : public SpiralPluginGUI
  32. {
  33. public:
  34. SeqPluginGUI(int w, int h, SeqPlugin *o,const HostInfo *Info);
  35. virtual void UpdateValues();
  36. virtual SpiralPlugin* GetPlugin() { return m_Plugin; }
  37. SeqPlugin *m_Plugin;
  38. private:
  39. Fl_Scroll* m_Scroll;
  40. Fl_Button* m_Update;
  41. Fl_Button* m_NoteCut;
  42. Fl_Knob* m_Zoom;
  43. Fl_Counter* m_Pattern;
  44. Fl_Knob* m_Length;
  45. Fl_Knob* m_Speed;
  46. Fl_Button* m_Clear;
  47. //// Callbacks ////
  48. inline void cb_Update_i(Fl_Button* o, void* v);
  49. static void cb_Update(Fl_Button* o, void* v);
  50. inline void cb_Zoom_i(Fl_Knob* o, void* v);
  51. static void cb_Zoom(Fl_Knob* o, void* v);
  52. inline void cb_NoteCut_i(Fl_Button* o, void* v);
  53. static void cb_NoteCut(Fl_Button* o, void* v);
  54. inline void cb_Pattern_i(Fl_Counter* o, void* v);
  55. static void cb_Pattern(Fl_Counter* o, void* v);
  56. inline void cb_Length_i(Fl_Knob* o, void* v);
  57. static void cb_Length(Fl_Knob* o, void* v);
  58. inline void cb_Speed_i(Fl_Knob* o, void* v);
  59. static void cb_Speed(Fl_Knob* o, void* v);
  60. inline void cb_Clear_i(Fl_Button* o, void* v);
  61. static void cb_Clear(Fl_Button* o, void* v);
  62. };
  63. #endif