| 1 | /*****************************************************************************/ |
| 2 | |
| 3 | /* |
| 4 | * xfsmdiag_main.h -- kernel soundcard radio modem driver diagnostics utility. |
| 5 | * |
| 6 | * Copyright (C) 1996,1997,2000 Thomas Sailer ([email protected]) |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
| 21 | * 02110-1301, USA. |
| 22 | * |
| 23 | * Please note that the GPL allows you to use the driver, NOT the radio. |
| 24 | * In order to use the radio, you need a license from the communications |
| 25 | * authority of your country. |
| 26 | * |
| 27 | * |
| 28 | * History: |
| 29 | * 0.1 14.12.1996 Started |
| 30 | * 0.2 11.05.1997 introduced hdrvcomm.h |
| 31 | * 0.3 05.01.2000 upgraded to fltk 1.0.7 |
| 32 | */ |
| 33 | |
| 34 | /*****************************************************************************/ |
| 35 | |
| 36 | #ifndef _XFSMDIAG_MAIN_H |
| 37 | #define _XFSMDIAG_MAIN_H |
| 38 | |
| 39 | /* ---------------------------------------------------------------------- */ |
| 40 | |
| 41 | #include <FL/Fl.H> |
| 42 | #include <FL/Fl_Box.H> |
| 43 | #include <FL/x.H> |
| 44 | |
| 45 | /* ---------------------------------------------------------------------- */ |
| 46 | |
| 47 | class scope : public Fl_Box { |
| 48 | Pixmap pixmap; |
| 49 | bool pixmalloc; |
| 50 | int X, Y, W, H; |
| 51 | unsigned long col_zeroline; |
| 52 | unsigned long col_background; |
| 53 | unsigned long col_trace; |
| 54 | int drawmode; |
| 55 | |
| 56 | protected: |
| 57 | void draw(); |
| 58 | void resize(int, int, int, int); |
| 59 | |
| 60 | public: |
| 61 | scope(int, int, int, int, const char * = 0); |
| 62 | ~scope(); |
| 63 | |
| 64 | void drawdata(short data[], int len, int xm); |
| 65 | void mode(int dmode); |
| 66 | int mode(void); |
| 67 | void clear(void); |
| 68 | }; |
| 69 | |
| 70 | /* ---------------------------------------------------------------------- */ |
| 71 | #endif /* _XFSMDIAG_MAIN_H */ |