mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-18 22:22:36 +02:00
* Updated various dialogs in rdcatch(1) to use new 'pretty text' styling for cart and cut objects. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
70 lines
1.9 KiB
C++
70 lines
1.9 KiB
C++
// add_recording.h
|
|
//
|
|
// Add a Rivendell RDCatch Event
|
|
//
|
|
// (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 ADD_RECORDING_H
|
|
#define ADD_RECORDING_H
|
|
|
|
#include <rddialog.h>
|
|
|
|
class AddRecording : public RDDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
AddRecording(QString *filter,QWidget *parent=0);
|
|
~AddRecording();
|
|
QSize sizeHint() const;
|
|
QSizePolicy sizePolicy() const;
|
|
|
|
public slots:
|
|
int exec(unsigned *rec_id,RDRecording::Type *type);
|
|
|
|
private slots:
|
|
void recordingData();
|
|
void playoutData();
|
|
void downloadData();
|
|
void uploadData();
|
|
void macroData();
|
|
void switchData();
|
|
void cancelData();
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent *e);
|
|
void keyPressEvent(QKeyEvent *e);
|
|
void closeEvent(QCloseEvent *e);
|
|
|
|
private:
|
|
unsigned AddRecord(RDRecording::Type type,unsigned chan) const;
|
|
void DeleteRecord();
|
|
unsigned *add_record_id;
|
|
RDRecording::Type *add_type;
|
|
QString *add_filter;
|
|
QLabel *add_title_label;
|
|
QPushButton *add_recording_button;
|
|
QPushButton *add_playout_button;
|
|
QPushButton *add_download_button;
|
|
QPushButton *add_upload_button;
|
|
QPushButton *add_macrocart_button;
|
|
QPushButton *add_switchevent_button;
|
|
QPushButton *add_cancel_button;
|
|
};
|
|
|
|
|
|
#endif // ADD_RECORDING_H
|