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.

56 lines
1.8KB

  1. /* MousePlugin
  2. * Copyleft (C) 2002 Dan Bethell <dan@pawfal.org>
  3. * Dave Griffiths <dave@pawfal.org>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. */
  19. #ifndef MouseGUI_H
  20. #define MouseGUI_H
  21. #include <FL/Fl.H>
  22. #include "MousePlugin.h"
  23. #include "../SpiralPluginGUI.h"
  24. class ScratchWidget : public Fl_Widget {
  25. public:
  26. ScratchWidget (int x, int y, int w, int h, const char *l, int BUFSIZE);
  27. void draw();
  28. void SetNumChannels (int s) { m_Channels = s; }
  29. float m_Data;
  30. int m_Channels;
  31. private:
  32. int m_GUIColour;
  33. int m_GUIBGColour;
  34. int m_Bufsize;
  35. };
  36. class MousePluginGUI : public SpiralPluginGUI {
  37. public:
  38. MousePluginGUI (int w, int h, MousePlugin *o, ChannelHandler *ch, const HostInfo *Info);
  39. virtual void UpdateValues (SpiralPlugin *o);
  40. virtual void Update ();
  41. protected:
  42. const string GetHelpText (const string &loc);
  43. private:
  44. // virtual void draw();
  45. // void Display(float data);
  46. // virtual SpiralPlugin* GetPlugin() { return m_Plugin; }
  47. // MousePlugin *m_Plugin;
  48. ScratchWidget *m_Scope;
  49. };
  50. #endif