Fred Gleason 4aedc573ca 2020-03-10 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'Source URL' and 'Source Text' controls from the
	'Edit Cast' dialog in rdcastmanager(1).
2020-03-10 18:59:08 -04:00

100 lines
2.7 KiB
C++

// edit_cast.h
//
// Edit a Rivendell Cast
//
// (C) Copyright 2002-2020 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 EDIT_CAST_H
#define EDIT_CAST_H
#include <qbuttongroup.h>
#include <qcombobox.h>
#include <qdatetimeedit.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qtextedit.h>
#include <rddialog.h>
#include <rdfeed.h>
#include <rdpodcast.h>
class EditCast : public RDDialog
{
Q_OBJECT
public:
EditCast(unsigned cast_id,QWidget *parent=0);
~EditCast();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
private slots:
void expirationSelectedData(int state);
void effectiveSelectData();
void expirationSelectData();
void reportData();
void okData();
void cancelData();
protected:
void resizeEvent(QResizeEvent *e);
private:
RDFeed *cast_feed;
RDPodcast *cast_cast;
QLabel *cast_item_medialink_label;
QLineEdit *cast_item_medialink_edit;
QLabel *cast_item_title_label;
QLineEdit *cast_item_title_edit;
QLabel *cast_item_author_label;
QLineEdit *cast_item_author_edit;
QLabel *cast_item_category_label;
QLineEdit *cast_item_category_edit;
QLabel *cast_item_link_label;
QLineEdit *cast_item_link_edit;
QLabel *cast_item_description_label;
QTextEdit *cast_item_description_edit;
QLabel *cast_item_comments_label;
QLineEdit *cast_item_comments_edit;
QLabel *cast_item_origin_label;
QLineEdit *cast_item_origin_edit;
QLabel *cast_item_expiration_box_label;
QComboBox *cast_item_expiration_box;
QLabel *cast_item_expiration_label;
QRadioButton *cast_hold_rbutton;
QLabel *cast_hold_label;
QRadioButton *cast_active_rbutton;
QLabel *cast_active_label;
QLabel *cast_status_label;
QPushButton *cast_item_expiration_button;
QDateEdit *cast_item_expiration_edit;
QLabel *cast_item_effective_label;
QDateTimeEdit *cast_item_effective_edit;
QPushButton *cast_item_effective_button;
QButtonGroup *cast_item_status_group;
QPushButton *cast_report_button;
QPushButton *cast_ok_button;
QPushButton *cast_cancel_button;
RDPodcast::Status cast_status;
};
#endif // EDIT_CAST_H