summaryrefslogtreecommitdiffstats
path: root/hdlcutil/fl/xfsmdiag_main.h
blob: 38469c45b126286017b2ed012eeafb22da5043d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*****************************************************************************/

/*
 *	xfsmdiag_main.h  -- kernel soundcard radio modem driver diagnostics utility.
 *
 *	Copyright (C) 1996,1997,2000  Thomas Sailer (sailer@ife.ee.ethz.ch)
 *
 *	This program is free software; you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation; either version 2 of the License, or
 *	(at your option) any later version.
 *
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with this program; if not, write to the Free Software
 *	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *  Please note that the GPL allows you to use the driver, NOT the radio.
 *  In order to use the radio, you need a license from the communications
 *  authority of your country.
 *
 *
 * History:
 *   0.1  14.12.1996  Started
 *   0.2  11.05.1997  introduced hdrvcomm.h
 *   0.3  05.01.2000  upgraded to fltk 1.0.7
 */

/*****************************************************************************/

#ifndef _XFSMDIAG_MAIN_H
#define _XFSMDIAG_MAIN_H

/* ---------------------------------------------------------------------- */

#include <FL/Fl.H>
#include <FL/Fl_Box.H>
#include <FL/x.H>

/* ---------------------------------------------------------------------- */

class scope : public Fl_Box {
	Pixmap pixmap;
	bool pixmalloc;
	int X, Y, W, H;
	unsigned long col_zeroline;
	unsigned long col_background;
	unsigned long col_trace;
	int drawmode;

protected:
	void draw();
	void resize(int, int, int, int);

public:
	scope(int, int, int, int, const char * = 0);
	~scope();

	void drawdata(short data[], int len, int xm);
	void mode(int dmode);
	int mode(void);
	void clear(void);
};

/* ---------------------------------------------------------------------- */
#endif /* _XFSMDIAG_MAIN_H */