Audio plugin host https://kx.studio/carla
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.

77 lines
2.1KB

  1. // ----------------------------------------------------------------------
  2. //
  3. // Copyright (C) 2011 Fons Adriaensen <fons@linuxaudio.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., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. //
  19. // ----------------------------------------------------------------------
  20. #ifndef __MAINWIN_H
  21. #define __MAINWIN_H
  22. #include <clxclient.h>
  23. #include "guiclass.h"
  24. #include "jclient.h"
  25. #include "global.h"
  26. class Mainwin : public A_thread, public X_window, public X_callback
  27. {
  28. public:
  29. enum { XSIZE = 640, YSIZE = 75 };
  30. Mainwin (X_rootwin *parent, X_resman *xres, int xp, int yp, Jclient *jclient);
  31. ~Mainwin (void);
  32. Mainwin (const Mainwin&);
  33. Mainwin& operator=(const Mainwin&);
  34. void stop (void) { _stop = true; }
  35. int process (void);
  36. private:
  37. enum { INPBAL, HPFILT, SHGAIN, SHFREQ, LFFREQ, LFGAIN, NROTARY };
  38. virtual void thr_main (void) {}
  39. void handle_time (void);
  40. void handle_stop (void);
  41. void handle_event (XEvent *);
  42. void handle_callb (int type, X_window *W, XEvent *E);
  43. void expose (XExposeEvent *E);
  44. void clmesg (XClientMessageEvent *E);
  45. void redraw (void);
  46. void numdisp (int ind);
  47. void fmtfreq (int ind);
  48. Atom _atom;
  49. bool _stop;
  50. X_resman *_xres;
  51. Jclient *_jclient;
  52. RotaryCtl *_rotary [NROTARY];
  53. X_textip *_numtext;
  54. int _parmind;
  55. int _timeout;
  56. int _touch;
  57. friend class BLS1Plugin;
  58. };
  59. #endif