1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-07-04 01:45:21 -04:00

Unify TV screen (5)

This commit is contained in:
f4exb 2018-03-11 19:43:40 +01:00
parent 6109be8eeb
commit 35138b0e93
5 changed files with 9 additions and 0 deletions

View File

@ -278,6 +278,7 @@ ATVDemodGUI::ATVDemodGUI(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, Base
m_inputSampleRate(48000) m_inputSampleRate(48000)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->screenTV->setColor(false);
setAttribute(Qt::WA_DeleteOnClose, true); setAttribute(Qt::WA_DeleteOnClose, true);
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool))); connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));

View File

@ -260,6 +260,7 @@ DATVDemodGUI::DATVDemodGUI(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, Ba
m_blnDoApplySettings(true) m_blnDoApplySettings(true)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->screenTV->setColor(true);
setAttribute(Qt::WA_DeleteOnClose, true); setAttribute(Qt::WA_DeleteOnClose, true);
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool))); connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));

View File

@ -42,6 +42,7 @@ public:
GLShaderTVArray(bool blnColor); GLShaderTVArray(bool blnColor);
~GLShaderTVArray(); ~GLShaderTVArray();
void setColor(bool blnColor) { m_blnColor = blnColor; }
void InitializeGL(int intCols, int intRows); void InitializeGL(int intCols, int intRows);
void ResizeContainer(int intCols, int intRows); void ResizeContainer(int intCols, int intRows);
void Cleanup(); void Cleanup();

View File

@ -50,6 +50,11 @@ TVScreen::~TVScreen()
cleanup(); cleanup();
} }
void TVScreen::setColor(bool blnColor)
{
m_objGLShaderArray.setColor(blnColor);
}
QRgb* TVScreen::getRowBuffer(int intRow) QRgb* TVScreen::getRowBuffer(int intRow)
{ {
if (!m_blnGLContextInitialized) if (!m_blnGLContextInitialized)

View File

@ -44,6 +44,7 @@ public:
TVScreen(bool blnColor, QWidget* parent = 0); TVScreen(bool blnColor, QWidget* parent = 0);
~TVScreen(); ~TVScreen();
void setColor(bool blnColor);
void resizeTVScreen(int intCols, int intRows); void resizeTVScreen(int intCols, int intRows);
void renderImage(unsigned char * objData); void renderImage(unsigned char * objData);
QRgb* getRowBuffer(int intRow); QRgb* getRowBuffer(int intRow);