mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-08-09 09:12:27 -04:00
ATV Demod: refactoring: moved enum and structure inside class
This commit is contained in:
parent
72943911d9
commit
5b4290c3e6
@ -34,7 +34,17 @@
|
|||||||
#include "atvscreen.h"
|
#include "atvscreen.h"
|
||||||
|
|
||||||
|
|
||||||
enum ATVModulation { ATV_AM, ATV_FM1 , ATV_FM2 };
|
class ATVDemod : public BasebandSampleSink
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
enum ATVModulation {
|
||||||
|
ATV_AM,
|
||||||
|
ATV_FM1,
|
||||||
|
ATV_FM2
|
||||||
|
};
|
||||||
|
|
||||||
struct ATVConfig
|
struct ATVConfig
|
||||||
{
|
{
|
||||||
@ -64,12 +74,6 @@ struct ATVConfig
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class ATVDemod : public BasebandSampleSink
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
ATVDemod();
|
ATVDemod();
|
||||||
~ATVDemod();
|
~ATVDemod();
|
||||||
|
|
||||||
|
@ -265,7 +265,7 @@ void ATVDemodGUI::blockApplySettings(bool blnBlock)
|
|||||||
|
|
||||||
void ATVDemodGUI::applySettings()
|
void ATVDemodGUI::applySettings()
|
||||||
{
|
{
|
||||||
ATVModulation enmSelectedModulation;
|
ATVDemod::ATVModulation enmSelectedModulation;
|
||||||
|
|
||||||
if (m_blnDoApplySettings)
|
if (m_blnDoApplySettings)
|
||||||
{
|
{
|
||||||
@ -281,19 +281,19 @@ void ATVDemodGUI::applySettings()
|
|||||||
switch (ui->modulation->currentIndex())
|
switch (ui->modulation->currentIndex())
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
enmSelectedModulation = ATV_FM1;
|
enmSelectedModulation = ATVDemod::ATV_FM1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
enmSelectedModulation = ATV_FM2;
|
enmSelectedModulation = ATVDemod::ATV_FM2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
enmSelectedModulation = ATV_AM;
|
enmSelectedModulation = ATVDemod::ATV_AM;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
enmSelectedModulation = ATV_FM1;
|
enmSelectedModulation = ATVDemod::ATV_FM1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user