MythTV  master
setupwizard_audio.h
Go to the documentation of this file.
1 #ifndef AUDIOSETUPWIZARD_H
2 #define AUDIOSETUPWIZARD_H
3 
4 // libmythui
5 #include <mythuibutton.h>
6 #include <mythuibuttonlist.h>
7 #include <mythscreentype.h>
8 #include <mythdialogbox.h>
9 #include <audiooutput.h>
10 
11 class AudioTestThread;
12 
14 {
15  Q_OBJECT
16 
17  public:
18 
20  const char *name = nullptr)
21  : MythScreenType(parent, name),
22  m_generalScreen(generalScreen) {}
24 
25  bool Create(void) override; // MythScreenType
26  bool keyPressEvent(QKeyEvent *) override; // MythScreenType
27 
28  void save(void);
29 
30  private:
31  void Load(void) override; // MythScreenType
32  void Init(void) override; // MythScreenType
33 
34  QVector<AudioOutput::AudioDeviceConfig> *m_outputlist {nullptr};
36 
38 
41 
47 
49 
52  int m_maxspeakers {2};
54 
55  private slots:
56  AudioOutputSettings UpdateCapabilities(bool restore = true,
57  bool AC3 = false);
60  void slotNext(void);
61  void slotPrevious(void);
62 
63  void toggleSpeakers(void);
64 };
65 
66 #endif
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
unsigned int slots[4]
Definition: element.c:38
AudioTestThread * m_testThread
QVector< AudioOutput::AudioDeviceConfig > * m_outputlist
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
MythScreenType * m_generalScreen
MythUICheckBox * m_eac3Check
MythUIButton * m_nextButton
MythUICheckBox * m_dtshdCheck
AudioOutputSettings UpdateCapabilitiesAC3(void)
MythUIButtonList * m_speakerNumberButtonList
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
const char * name
Definition: ParseText.cpp:328
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
AudioSetupWizard(MythScreenStack *parent, MythScreenType *generalScreen, const char *name=nullptr)
A single button widget.
Definition: mythuibutton.h:21
MythUIButton * m_testSpeakerButton
bool Create(void) override
MythUIButton * m_prevButton
bool keyPressEvent(QKeyEvent *) override
Key event handler.
MythUIButtonList * m_audioDeviceButtonList
MythUICheckBox * m_ac3Check
Screen in which all other widgets are contained and rendered.
MythUICheckBox * m_dtsCheck
Definition: element.h:83
AudioOutputSettings UpdateCapabilities(bool restore=true, bool AC3=false)
MythUICheckBox * m_truehdCheck