2
Copyright (C) 2003 Fons Adriaensen <fons.adriaensen@skynet.be>
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"
25
#include "multislider.h"
26
#include "functionwin.h"
31
class H_scale : public X_window
35
H_scale (X_window *parent, X_callback *callb, int xp, int yp);
36
int get_ind (void) { return _i; }
40
void handle_event (XEvent *E);
49
class N_scale : public X_window
53
N_scale (X_window *parent, X_callback *callb, int xp, int yp);
54
int get_ind (void) { return _i; }
58
void handle_event (XEvent *E);
67
class Editwin : public X_window, public X_callback
71
Editwin (X_window *parent, X_callback *callb, int xp, int yp, X_resman *xresm);
74
void handle_mesg (ITC_mesg *);
75
void handle_time (void);
77
void init (Addsynth *);
79
void show (void) { x_mapraised (); }
80
void hide (void) { x_unmap (); }
81
void sdir (const char *sdir) { _sdir = sdir; }
82
void wdir (const char *wdir) { _wdir = wdir; }
87
TAB_GEN, TAB_LEV, TAB_ATT, TAB_RAN,
88
B_APPL, B_MOFF, B_SAVE, B_LOAD, B_LNEW, B_PEDAL, B_PFTB, N_PFTB = 11
91
virtual void handle_event (XEvent *xe);
92
virtual void handle_callb (int, X_window*, _XEvent*);
94
void handle_xmesg (XClientMessageEvent *E);
95
void set_func (N_func *D, Functionwin *F, int k);
96
void set_harm (HN_func *D, Multislider *M, Functionwin *F, int k, int h);
97
void set_note (HN_func *D, Multislider *M, Functionwin *F, int n);
98
void msl_update (HN_func *D, Multislider *M, Functionwin *F, int k, int d, int h, int n);
99
void fun_update (HN_func *D, Multislider *M, Functionwin *F, int d, int h, int n);
100
void fun_update (N_func *D, Functionwin *F, int d);
101
void add_text (X_window *win, int xp, int yp, int xs, int ys, const char *text, X_textln_style *style);
104
void load (const char *sdir);
105
void save (const char *sdir);
133
X_button *_pftb [N_PFTB];
136
Functionwin *_vol_fun;
138
Functionwin *_tun_fun;
140
Functionwin *_atu_fun;
142
Functionwin *_dtu_fun;
145
Multislider *_lev_msl;
147
Functionwin *_lev_fun;
152
Multislider *_att_msl;
154
Multislider *_atp_msl;
156
Functionwin *_att_fun;
161
Multislider *_ran_msl;
163
Functionwin *_ran_fun;
168
static const char *_pftb_text [N_PFTB];
169
static const char _fn [N_PFTB];
170
static const char _fd [N_PFTB];