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