mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-13 08:05:55 +01:00
Initial import of CVS-v2_8_branch
This commit is contained in:
84
rdcatch/deckmon.h
Normal file
84
rdcatch/deckmon.h
Normal file
@@ -0,0 +1,84 @@
|
||||
// deckmon.h
|
||||
//
|
||||
// Monitor a Rivendell Netcatcher Deck
|
||||
//
|
||||
// (C) Copyright 2002-2004 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: deckmon.h,v 1.15 2010/07/29 19:32:36 cvs Exp $
|
||||
//
|
||||
// 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 <qframe.h>
|
||||
#include <qlabel.h>
|
||||
#include <qpalette.h>
|
||||
#include <qpushbutton.h>
|
||||
|
||||
#include <rdplaymeter.h>
|
||||
#include <rdrecording.h>
|
||||
#include <rddeck.h>
|
||||
|
||||
|
||||
class DeckMon : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
DeckMon(QString station,unsigned channel,
|
||||
QWidget *parent=0,const char *name=0);
|
||||
~DeckMon();
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
void enableMonitorButton(bool state);
|
||||
|
||||
public slots:
|
||||
void setGeometry(int x,int y,int w,int h);
|
||||
void setGeometry(const QRect &r);
|
||||
|
||||
public slots:
|
||||
void setMonitor(bool state);
|
||||
void setStatus(RDDeck::Status status,int id,const QString &cutname);
|
||||
void setLeftMeter(int level);
|
||||
void setRightMeter(int level);
|
||||
|
||||
signals:
|
||||
void monitorClicked();
|
||||
void abortClicked();
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
|
||||
private slots:
|
||||
void monitorButtonData();
|
||||
void abortButtonData();
|
||||
|
||||
private:
|
||||
void SetCutInfo(int id,const QString &cutname);
|
||||
QLabel *mon_station_label;
|
||||
QLabel *mon_cut_label;
|
||||
QLabel *mon_status_label;
|
||||
QPushButton *mon_abort_button;
|
||||
QPushButton *mon_monitor_button;
|
||||
QPalette *mon_monitor_palette;
|
||||
RDPlayMeter *mon_left_meter;
|
||||
RDPlayMeter *mon_right_meter;
|
||||
QString mon_station;
|
||||
unsigned mon_channel;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user