Fred Gleason 9161d9014e 2022-11-03 Fred Gleason <fredg@paravelsystems.com>
* Removed vestigal code for RDCatch control via TCP connection.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
2022-11-03 12:44:29 -04:00

79 lines
2.0 KiB
C++

// deckmon.h
//
// Monitor a Rivendell Netcatcher Deck
//
// (C) Copyright 2002-2022 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#ifndef DECKMON_H
#define DECKMON_H
#include <QLabel>
#include <QPushButton>
#include <rddeck.h>
#include <rdframe.h>
#include <rdplaymeter.h>
#include <rdrecording.h>
#include "eventlight.h"
class DeckMon : public RDFrame
{
Q_OBJECT
public:
DeckMon(QString station,unsigned channel,QWidget *parent=0);
~DeckMon();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
void enableMonitorButton(bool state);
public slots:
void processCatchEvent(RDCatchEvent *evt);
protected:
void resizeEvent(QResizeEvent *e);
private slots:
void monitorButtonData();
void abortButtonData();
private:
void SetStatus(RDDeck::Status status,int id,const QString &cutname);
void SetCutInfo(int id,const QString &cutname);
QLabel *mon_station_label;
QLabel *mon_cut_label;
EventLight *mon_event_light;
QLabel *mon_status_label;
QPushButton *mon_abort_button;
QPushButton *mon_monitor_button;
bool mon_monitor_state;
QPalette *mon_monitor_palette;
RDPlayMeter *mon_left_meter;
RDPlayMeter *mon_right_meter;
QString mon_station;
unsigned mon_channel;
QTimer *mon_event_timer;
QPalette mon_red_palette;
QString mon_red_stylesheet;
QPalette mon_dark_palette;
QString mon_dark_stylesheet;
};
#endif // DECKMON_H