gif rework, C41 booby fix, add ext+s for list seq, features5
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / signalstatus.h
1 #ifndef _SIGNALSTATUS_H_
2 #define _SIGNALSTATUS_H_
3 #ifdef HAVE_DVB
4
5 #include "bcwindowbase.h"
6 #include "bcsubwindow.h"
7 #include "bctitle.inc"
8 #include "channel.inc"
9 #include "devicedvbinput.inc"
10
11
12 class SignalStatus : public BC_SubWindow
13 {
14         friend class DeviceDVBInput;
15         enum {  pad0 = 3, pad1 = 8,
16                 lck_w = 5,  lck_h = 5,
17                 crr_w = 5,  crr_h = 5,
18                 pwr_w = 32, pwr_h = 4,
19                 snr_w = 32, snr_h = 4,
20                 ber_w = 32, ber_h = 4,
21                 unc_w = 32, unc_h = 4,
22         };
23
24         DeviceDVBInput *dvb_input;
25         BC_Title *channel_title;
26         int lck_x, lck_y;
27         int crr_x, crr_y;
28         int pwr_x, pwr_y;
29         int snr_x, snr_y;
30         int ber_x, ber_y;
31         int unc_x, unc_y;
32
33         void update_lck(int v);
34         void update_crr(int v);
35         void update_pwr(int v);
36         void update_snr(int v);
37         void update_ber(int v);
38         void update_unc(int v);
39 public:
40         BC_WindowBase *wdw;
41
42         void create_objects();
43         static int calculate_w(BC_WindowBase *wdw);
44         static int calculate_h(BC_WindowBase *wdw);
45         void disconnect() { dvb_input = 0; }
46         void update();
47
48         SignalStatus(BC_WindowBase *wdw, int x, int y);
49         ~SignalStatus();
50 };
51
52 #endif
53 #endif