Rivendellaudio/rdcartslots/rdcartslots.h
Fred Gleason e81256bf43 2019-10-07 Fred Gleason <fredg@paravelsystems.com>
* Refactored rdcartslots(1) to use the 'RDDialog' and 'RDWidget'
	base classes.
2019-10-07 16:52:13 -04:00

69 lines
1.8 KiB
C++

// rdcartslots.h
//
// A Dedicated Cart Slot Utility for Rivendell.
//
// (C) Copyright 2012-2019 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 RDCARTSLOTS_H
#define RDCARTSLOTS_H
#include <rdcartslot.h>
#include <rdwidget.h>
//
// Settings
//
#define MASTER_TIMER_INTERVAL 100
#define METER_INTERVAL 50
#define RDCARTSLOTS_USAGE "\n"
class MainWidget : public RDWidget
{
Q_OBJECT
public:
MainWidget(RDConfig *c,QWidget *parent=0);
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
private slots:
void caeConnectedData(bool state);
void userData();
void rmlReceivedData(RDMacro *rml);
protected:
void paintEvent(QPaintEvent *e);
void closeEvent(QCloseEvent *e);
private:
void RunLocalMacros(RDMacro *rml);
void SetCaption();
RDEventPlayer *panel_player;
QPixmap *lib_rivendell_map;
QString panel_filter;
QString panel_group;
QString panel_schedcode;
std::vector<RDCartSlot *> panel_slots;
RDCartDialog *panel_cart_dialog;
RDSlotDialog *panel_slot_dialog;
RDCueEditDialog *panel_cue_dialog;
RDListSvcs *panel_svcs_dialog;
// RDAirPlayConf *panel_airplay_conf;
};
#endif // RDCARTSLOTS_H