1
// -------------------------------------------------------------------------
3
// Copyright (C) 2004-2010 Fons Adriaensen <fons@linuxaudio.org>
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.
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.
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.
19
// -------------------------------------------------------------------------
50
class GUI_select : public X_callback
54
void init (X_window *W, X_callback *C, int k, int x, int y,
55
const char *label, const char **texts);
56
int get_state (void) const { return _state; }
57
void set_state (int state) { _tstat->set_text (_texts [_state = state]); }
59
virtual ~GUI_select (void) {}
63
virtual void handle_callb (int k, X_window *W, _XEvent *E);
73
class GUI_bgroup : public X_callback
77
void init (X_window *W, X_callback *C, X_button_style *B, int k, int x, int y,
78
const char *label, const char **texts);
79
int get_state (void) const { return _state; }
80
void set_state (int state);
82
virtual ~GUI_bgroup (void) {}
86
virtual void handle_callb (int k, X_window *W, _XEvent *E);
95
class GUI_input : public X_callback
99
void init (X_window *W, X_callback *C, int k, int x0, int y0);
100
int get_input (void) const { return _input; }
101
float get_gain (void) const { return _gain; }
102
bool get_link (void) const { return _blink ? _blink->stat () : 0; }
103
void set_gain (float g);
105
virtual ~GUI_input (void) {}
109
enum { INP1, INP2, INP3, INP4, DEC, INC, AUTO, LINK };
111
virtual void handle_callb (int k, X_window *W, _XEvent *E);
127
void init (X_window *W, X_callback *C, int x, int y);
128
int get_resol (void) const { return _resol.get_state (); }
129
int get_wfact (void) const { return _wfact.get_state (); }
130
int get_speed (void) const { return _speed.get_state (); }
138
static const char *_resol_texts [];
139
static const char *_wfact_texts [];
140
static const char *_speed_texts [];
144
class GUI_memory : public X_callback
148
void init (X_window *W, X_callback *C, int k, int x, int y);
149
bool get_peak (void) const { return _peak; }
151
virtual ~GUI_memory (void) {}
155
virtual void handle_callb (int k, X_window *W, _XEvent *E);
167
void init (X_window *W, X_callback *C, int x, int y);
168
int get_traceA (void) const { return _traceA.get_state (); }
169
int get_traceB (void) const { return _traceB.get_state (); }
170
int get_traceM (void) const { return _traceM.get_state (); }
178
static const char *_traceA_texts [];
179
static const char *_traceB_texts [];
180
static const char *_traceM_texts [];
188
void init (X_window *W, X_callback *C, int x, int y);
189
int get_ascale (void) const { return _ascale.get_state (); }
190
int get_fscale (void) const { return _fscale.get_state (); }
191
int get_arespf (void) const { return _arespf.get_state (); }
199
static const char *_ascale_texts [];
200
static const char *_fscale_texts [];
201
static const char *_arespf_texts [];