2
Copyright (C) 2003-2008 Fons Adriaensen <fons@kokkinizita.net>
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.
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.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
24
#include <clxclient.h>
36
class Instrwin : public X_window, public X_callback
40
Instrwin (X_window *parent, X_callback *callb, int xp, int yp, X_resman *xresm);
43
void setup (M_ifc_init *);
44
void set_dipar (M_ifc_dipar *M);
45
void set_tuning (M_ifc_retune *M);
47
int divis (void) const { return _divis; }
48
int parid (void) const { return _parid; }
49
float value (void) const { return _value; }
50
bool final (void) const { return _final; }
51
float freq (void) const { return _freq; }
52
int temp (void) const { return _temp; }
56
enum { XSIZE = 840, YSIZE = 130 };
60
TEMP_DEC, TEMP_INC, FREQ_DEC, FREQ_INC, TUNE_EXE, TUNE_CAN,
61
NDIVIS = 8, DIVIS_BIT0 = 8, DIVIS_STEP = (1 << DIVIS_BIT0), DIVIS_MASK = (DIVIS_STEP - 1),
66
virtual void handle_event (XEvent *);
67
virtual void handle_callb (int, X_window *, XEvent *);
69
void handle_xmesg (XClientMessageEvent *);
70
void show_tuning (int s);
71
void incdec_temp (int d);
72
void incdec_freq (int d);
73
void add_text (int xp, int yp, int xs, int ys, const char *text, X_textln_style *style, int align);
87
X_slider *_trem0_freq;
88
X_slider *_trem0_ampl;
89
X_slider *_trem1_freq;
90
X_slider *_trem1_ampl;
91
Divis _divisd [NDIVIS];
97
const char *_temped [NTEMPE];