Fred Gleason d80e72152d 2020-08-11 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDRssSchemas::itemLinksSupported()' and
	'RDRssSchemas::itemCommentsSupported()' methods.
	* Modified the 'Editing Item' dialog in rdcastmanager(1) to
	conditionally display the 'Link' and 'Comments' controls.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
2020-08-11 16:25:48 -04:00

98 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 <qcheckbox.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 <rdimagepickerbox.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 effectiveSelectData();
void expirationSelectedData(int state);
void expirationSelectData();
void okData();
void cancelData();
protected:
void resizeEvent(QResizeEvent *e);
private:
RDFeed *cast_feed;
RDPodcast *cast_cast;
RDRssSchemas::RssSchema cast_schema;
QLabel *cast_item_origin_label;
QLineEdit *cast_item_origin_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;
QCheckBox *cast_item_explicit_check;
QLabel *cast_item_explicit_label;
QLabel *cast_item_image_label;
RDImagePickerBox *cast_item_image_box;
QLabel *cast_item_comments_label;
QLineEdit *cast_item_comments_edit;
QLabel *cast_item_expiration_box_label;
QComboBox *cast_item_expiration_box;
QLabel *cast_item_expiration_label;
QCheckBox *cast_active_check;
QLabel *cast_active_label;
QPushButton *cast_item_expiration_button;
QDateTimeEdit *cast_item_expiration_edit;
QLabel *cast_item_effective_label;
QDateTimeEdit *cast_item_effective_edit;
QPushButton *cast_item_effective_button;
QPushButton *cast_ok_button;
QPushButton *cast_cancel_button;
RDPodcast::Status cast_status;
};
#endif // EDIT_CAST_H