mirror of
				https://github.com/ElvishArtisan/rivendell.git
				synced 2025-11-04 16:14:03 +01:00 
			
		
		
		
	* Remove the seconds field from the 'Air Date/Time' and 'Item Expires' values on the 'Editing Item' dialog in rdcastmanager(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
		
			
				
	
	
		
			97 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			97 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
// edit_cast.h
 | 
						|
//
 | 
						|
// Edit a Rivendell Cast
 | 
						|
//
 | 
						|
//   (C) Copyright 2002-2023 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 <QCheckBox>
 | 
						|
#include <QDateTimeEdit>
 | 
						|
#include <QLineEdit>
 | 
						|
#include <QPushButton>
 | 
						|
#include <QTextEdit>
 | 
						|
 | 
						|
//#include <rddatetimeedit.h>
 | 
						|
#include <rddialog.h>
 | 
						|
#include <rdfeed.h>
 | 
						|
#include <rdimagepickerbox.h>
 | 
						|
#include <rdpodcast.h>
 | 
						|
 | 
						|
class EditCast : public RDDialog
 | 
						|
{
 | 
						|
 Q_OBJECT
 | 
						|
 public:
 | 
						|
 EditCast(unsigned cast_id,bool new_post,QWidget *parent);
 | 
						|
  ~EditCast();
 | 
						|
  QSize sizeHint() const;
 | 
						|
  QSizePolicy sizePolicy() const;
 | 
						|
 | 
						|
 private slots:
 | 
						|
  void titleChangedData(const QString &str);
 | 
						|
  void descriptionChangedData();
 | 
						|
  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
 | 
						|
 |