mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
CSignalBox: add missing member to set frontend
Remove double init of sig items; Will be done already by paintScale(). Ensure reset of last sig value on fe change. Prevent possible segfault if fe is not defined.
This commit is contained in:
@@ -116,7 +116,7 @@ class CSignalBar : public CComponentsForm, public CCTextScreen
|
||||
CSignalBar(const int& xpos, const int& ypos, const int& w, const int& h, CFrontend *frontend_ref, const std::string& sb_name = "SIG", CComponentsForm *parent = NULL);
|
||||
|
||||
///assigns the current used frontend, simplified a tuner object, see frontend_c.h
|
||||
virtual void setFrontEnd(CFrontend *frontend_ref){sb_frontend = frontend_ref;};
|
||||
virtual void setFrontEnd(CFrontend *frontend_ref){if (sb_frontend != frontend_ref) {sb_lastsig = 0; sb_frontend = frontend_ref;}}
|
||||
///assigns font for caption
|
||||
virtual void setTextFont(Font* font_text){sb_font = font_text;};
|
||||
///sets the caption color, see also property 'sb_caption_color'
|
||||
@@ -298,6 +298,9 @@ class CSignalBox : public CComponentsForm, public CCTextScreen
|
||||
///returns the signal noise ratio object, type = CSignalNoiseRatioBar*
|
||||
CSignalNoiseRatioBar* getLabelObject(){return snrbar;};
|
||||
|
||||
///assigns the current used frontend, simplified a tuner object, see frontend_c.h
|
||||
void setFrontEnd(CFrontend *frontend_ref){sbx_frontend = frontend_ref;}
|
||||
|
||||
///sets the caption color of signalbars, see also property 'sbx_caption_color'
|
||||
void setTextColor(const fb_pixel_t& caption_color){ sbx_caption_color = caption_color;};
|
||||
///get caption color of signalbars, see also property 'sbx_caption_color'
|
||||
|
Reference in New Issue
Block a user