// deckmon.h // // Monitor a Rivendell Netcatcher Deck // // (C) Copyright 2002-2022 Fred Gleason // // 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 #include #include #include #include #include #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