MythTV  master
channelscanner_gui_scan_pane.h
Go to the documentation of this file.
1 /* -*- Mode: c++ -*-
2  * vim: set expandtab tabstop=4 shiftwidth=4:
3  *
4  * Original Project
5  * MythTV http://www.mythtv.org
6  *
7  * Copyright (c) 2004, 2005 John Pullan <john@pullan.org>
8  * Copyright (c) 2005 - 2007 Daniel Kristjansson
9  *
10  * Description:
11  * Collection of classes to provide channel scanning functionallity
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
26  * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
27  *
28  */
29 
30 #ifndef CHANNEL_SCANNER_GUI_SCAN_PANE_H
31 #define CHANNEL_SCANNER_GUI_SCAN_PANE_H
32 
33 // MythTV headers
36 
37 class MythUIText;
38 class MythUIButtonList;
39 
41 {
42  Q_OBJECT
43 
44  friend class QObject; // quiet OSX gcc warning
45 
46  public:
47  ChannelScannerGUIScanPane(bool lock, bool strength, bool snr,
48  bool rotorpos, MythScreenStack *parent)
49  : MythScreenType(parent, "channelscanner"),
50  m_showSignalLock(lock), m_showSignalStrength(strength),
51  m_showSignalNoise(snr), m_showRotorPos(rotorpos) {}
52 
53  bool Create() override; // MythScreenType
54 
55  void SetStatusRotorPosition(int value);
56  void SetStatusSignalToNoise(int value);
57  void SetStatusSignalStrength(int value);
58  void SetStatusLock(int value);
59  void SetScanProgress(double value);
60 
61  void SetStatusText(const QString &value);
62  void SetStatusTitleText(const QString &value);
63 
64  void AppendLine(const QString &text);
65 
66  private:
71 
76 
84 
85  MythUIButtonList *m_log {nullptr};
86 };
87 
88 #endif // CHANNEL_SCANNER_GUI_SCAN_PANE_H
ChannelScannerGUIScanPane::m_showRotorPos
bool m_showRotorPos
Definition: channelscanner_gui_scan_pane.h:70
mythuiprogressbar.h
ChannelScannerGUIScanPane::m_statusText
MythUIText * m_statusText
Definition: channelscanner_gui_scan_pane.h:77
ChannelScannerGUIScanPane::m_progressBar
MythUIProgressBar * m_progressBar
Definition: channelscanner_gui_scan_pane.h:75
ChannelScannerGUIScanPane::m_rotatorPositionText
MythUIText * m_rotatorPositionText
Definition: channelscanner_gui_scan_pane.h:82
ChannelScannerGUIScanPane::m_showSignalNoise
bool m_showSignalNoise
Definition: channelscanner_gui_scan_pane.h:69
MythScreenStack
Definition: mythscreenstack.h:16
ChannelScannerGUIScanPane::m_progressText
MythUIText * m_progressText
Definition: channelscanner_gui_scan_pane.h:83
ChannelScannerGUIScanPane::m_scanProgressText
MythUIText * m_scanProgressText
Definition: channelscanner_gui_scan_pane.h:78
ChannelScannerGUIScanPane::AppendLine
void AppendLine(const QString &text)
Definition: channelscanner_gui_scan_pane.cpp:155
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
ChannelScannerGUIScanPane::m_signalLockedText
MythUIText * m_signalLockedText
Definition: channelscanner_gui_scan_pane.h:79
ChannelScannerGUIScanPane::m_rotatorPositionBar
MythUIProgressBar * m_rotatorPositionBar
Definition: channelscanner_gui_scan_pane.h:74
ChannelScannerGUIScanPane::SetStatusSignalStrength
void SetStatusSignalStrength(int value)
Definition: channelscanner_gui_scan_pane.cpp:128
ChannelScannerGUIScanPane::SetStatusText
void SetStatusText(const QString &value)
Definition: channelscanner_gui_scan_pane.cpp:143
ChannelScannerGUIScanPane::SetStatusSignalToNoise
void SetStatusSignalToNoise(int value)
Definition: channelscanner_gui_scan_pane.cpp:119
ChannelScannerGUIScanPane::SetScanProgress
void SetScanProgress(double value)
Definition: channelscanner_gui_scan_pane.cpp:164
ChannelScannerGUIScanPane::m_signalNoiseBar
MythUIProgressBar * m_signalNoiseBar
Definition: channelscanner_gui_scan_pane.h:73
MythUIProgressBar
Progress bar widget.
Definition: mythuiprogressbar.h:12
ChannelScannerGUIScanPane::ChannelScannerGUIScanPane
ChannelScannerGUIScanPane(bool lock, bool strength, bool snr, bool rotorpos, MythScreenStack *parent)
Definition: channelscanner_gui_scan_pane.h:47
ChannelScannerGUIScanPane::m_showSignalLock
bool m_showSignalLock
Definition: channelscanner_gui_scan_pane.h:67
ChannelScannerGUIScanPane::SetStatusRotorPosition
void SetStatusRotorPosition(int value)
Definition: channelscanner_gui_scan_pane.cpp:110
ChannelScannerGUIScanPane::m_signalStrengthBar
MythUIProgressBar * m_signalStrengthBar
Definition: channelscanner_gui_scan_pane.h:72
ChannelScannerGUIScanPane::m_showSignalStrength
bool m_showSignalStrength
Definition: channelscanner_gui_scan_pane.h:68
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
ChannelScannerGUIScanPane::SetStatusTitleText
void SetStatusTitleText(const QString &value)
Definition: channelscanner_gui_scan_pane.cpp:149
ChannelScannerGUIScanPane::Create
bool Create() override
Definition: channelscanner_gui_scan_pane.cpp:38
ChannelScannerGUIScanPane
Definition: channelscanner_gui_scan_pane.h:40
ChannelScannerGUIScanPane::m_signalStrengthText
MythUIText * m_signalStrengthText
Definition: channelscanner_gui_scan_pane.h:80
ChannelScannerGUIScanPane::m_log
MythUIButtonList * m_log
Definition: channelscanner_gui_scan_pane.h:85
ChannelScannerGUIScanPane::QObject
friend class QObject
Definition: channelscanner_gui_scan_pane.h:44
ChannelScannerGUIScanPane::SetStatusLock
void SetStatusLock(int value)
Definition: channelscanner_gui_scan_pane.cpp:137
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:191
mythscreentype.h
ChannelScannerGUIScanPane::m_signalNoiseText
MythUIText * m_signalNoiseText
Definition: channelscanner_gui_scan_pane.h:81