2016-05-24 Fred Gleason <fredg@paravelsystems.com>

* Removed all CVS tags.
	* Removed 'const char *name' parameter from all QObject contructors.
This commit is contained in:
Fred Gleason
2016-05-24 13:13:26 -04:00
parent db9da6dc62
commit 698b475933
1059 changed files with 4795 additions and 7935 deletions

View File

@@ -2,9 +2,7 @@
##
## Automake.am for rivendell/rdcastmanager
##
## (C) Copyright 2002-2006 Fred Gleason <fredg@paravelsystems.com>
##
## $Id: Makefile.am,v 1.8.8.2 2013/01/01 21:36:30 cvs Exp $
## (C) Copyright 2002-2006,2016 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

View File

@@ -2,9 +2,7 @@
//
// Edit a Rivendell Cast
//
// (C) Copyright 2002-2004 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: edit_cast.cpp,v 1.11 2011/09/09 20:23:28 cvs Exp $
// (C) Copyright 2002-2004,2016 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
@@ -39,9 +37,8 @@
#include <globals.h>
#include <edit_cast.h>
EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
: QDialog(parent,name,true)
EditCast::EditCast(unsigned cast_id,QWidget *parent)
: QDialog(parent,"",true)
{
QString sql;
RDSqlQuery *q;
@@ -64,12 +61,11 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Item Media Link
//
cast_item_medialink_edit=new QLineEdit(this,"cast_item_medialink_edit");
cast_item_medialink_edit=new QLineEdit(this);
cast_item_medialink_edit->setGeometry(115,10,sizeHint().width()-125,20);
cast_item_medialink_edit->setReadOnly(true);
QLabel *cast_item_medialink_label=
new QLabel(cast_item_medialink_edit,tr("Media Link:"),this,
"cast_item_medialink_label");
new QLabel(cast_item_medialink_edit,tr("Media Link:"),this);
cast_item_medialink_label->setGeometry(20,10,90,20);
cast_item_medialink_label->setFont(font);
cast_item_medialink_label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
@@ -85,12 +81,11 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Item Title
//
cast_item_title_edit=new QLineEdit(this,"cast_item_title_edit");
cast_item_title_edit=new QLineEdit(this);
cast_item_title_edit->setGeometry(115,ypos,sizeHint().width()-125,20);
cast_item_title_edit->setMaxLength(255);
QLabel *cast_item_title_label=
new QLabel(cast_item_title_edit,tr("Title:"),this,
"cast_item_title_label");
new QLabel(cast_item_title_edit,tr("Title:"),this);
cast_item_title_label->setGeometry(20,ypos,90,20);
cast_item_title_label->setFont(font);
cast_item_title_label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
@@ -98,12 +93,11 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Item Author
//
cast_item_author_edit=new QLineEdit(this,"cast_item_author_edit");
cast_item_author_edit=new QLineEdit(this);
cast_item_author_edit->setGeometry(115,ypos+22,sizeHint().width()-125,20);
cast_item_author_edit->setMaxLength(255);
QLabel *cast_item_author_label=
new QLabel(cast_item_author_edit,tr("Author E-Mail:"),this,
"cast_item_author_label");
new QLabel(cast_item_author_edit,tr("Author E-Mail:"),this);
cast_item_author_label->setGeometry(20,ypos+22,90,20);
cast_item_author_label->setFont(font);
cast_item_author_label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
@@ -111,12 +105,11 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Item Category
//
cast_item_category_edit=new QLineEdit(this,"cast_item_category_edit");
cast_item_category_edit=new QLineEdit(this);
cast_item_category_edit->setGeometry(115,ypos+44,sizeHint().width()-125,20);
cast_item_category_edit->setMaxLength(64);
QLabel *cast_item_category_label=
new QLabel(cast_item_category_edit,tr("Category:"),this,
"cast_item_category_label");
new QLabel(cast_item_category_edit,tr("Category:"),this);
cast_item_category_label->setGeometry(20,ypos+44,90,20);
cast_item_category_label->setFont(font);
cast_item_category_label->
@@ -125,12 +118,11 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Item Link
//
cast_item_link_edit=new QLineEdit(this,"cast_item_link_edit");
cast_item_link_edit=new QLineEdit(this);
cast_item_link_edit->setGeometry(115,ypos+66,sizeHint().width()-125,20);
cast_item_link_edit->setMaxLength(255);
QLabel *cast_item_link_label=
new QLabel(cast_item_link_edit,tr("Link URL:"),this,
"cast_item_link_label");
new QLabel(cast_item_link_edit,tr("Link URL:"),this);
cast_item_link_label->setGeometry(20,ypos+66,90,20);
cast_item_link_label->setFont(font);
cast_item_link_label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
@@ -138,13 +130,11 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Item Description
//
cast_item_description_edit=
new QTextEdit(this,"cast_item_description_edit");
cast_item_description_edit=new QTextEdit(this);
cast_item_description_edit->
setGeometry(115,ypos+88,sizeHint().width()-125,76);
QLabel *cast_item_description_label=
new QLabel(cast_item_description_edit,tr("Description:"),this,
"cast_item_description_label");
new QLabel(cast_item_description_edit,tr("Description:"),this);
cast_item_description_label->setGeometry(20,ypos+88,90,20);
cast_item_description_label->setFont(font);
cast_item_description_label->
@@ -153,12 +143,11 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Item Source Text
//
cast_item_sourcetext_edit=new QLineEdit(this,"cast_item_sourcetext_edit");
cast_item_sourcetext_edit=new QLineEdit(this);
cast_item_sourcetext_edit->setGeometry(115,ypos+169,sizeHint().width()-125,20);
cast_item_sourcetext_edit->setMaxLength(64);
QLabel *cast_item_sourcetext_label=
new QLabel(cast_item_sourcetext_edit,tr("Source Text:"),this,
"cast_item_sourcetext_label");
new QLabel(cast_item_sourcetext_edit,tr("Source Text:"),this);
cast_item_sourcetext_label->setGeometry(20,ypos+169,90,20);
cast_item_sourcetext_label->setFont(font);
cast_item_sourcetext_label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
@@ -166,12 +155,11 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Item Source URL
//
cast_item_sourceurl_edit=new QLineEdit(this,"cast_item_sourceurl_edit");
cast_item_sourceurl_edit=new QLineEdit(this);
cast_item_sourceurl_edit->setGeometry(115,ypos+191,sizeHint().width()-125,20);
cast_item_sourceurl_edit->setMaxLength(64);
QLabel *cast_item_sourceurl_label=
new QLabel(cast_item_sourceurl_edit,tr("Source URL:"),this,
"cast_item_sourceurl_label");
new QLabel(cast_item_sourceurl_edit,tr("Source URL:"),this);
cast_item_sourceurl_label->setGeometry(20,ypos+191,90,20);
cast_item_sourceurl_label->setFont(font);
cast_item_sourceurl_label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
@@ -179,12 +167,11 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Item Comments
//
cast_item_comments_edit=new QLineEdit(this,"cast_item_comments_edit");
cast_item_comments_edit=new QLineEdit(this);
cast_item_comments_edit->setGeometry(115,ypos+213,sizeHint().width()-125,20);
cast_item_comments_edit->setMaxLength(64);
QLabel *cast_item_comments_label=
new QLabel(cast_item_comments_edit,tr("Comments URL:"),this,
"cast_item_comments_label");
new QLabel(cast_item_comments_edit,tr("Comments URL:"),this);
cast_item_comments_label->setGeometry(10,ypos+213,100,20);
cast_item_comments_label->setFont(font);
cast_item_comments_label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
@@ -230,12 +217,11 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
cast_item_effective_edit=new QDateTimeEdit(this);
cast_item_effective_edit->
setGeometry(115,cast_ypos,165,20);
label=new QLabel(cast_item_effective_edit,tr("Air Date/Time:"),this,
"cast_item_effective_label");
label=new QLabel(cast_item_effective_edit,tr("Air Date/Time:"),this);
label->setGeometry(20,cast_ypos,90,20);
label->setFont(font);
label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
QPushButton *button=new QPushButton(this,"cast_item_effective_button");
QPushButton *button=new QPushButton(this);
button->setGeometry(290,cast_ypos-3,50,25);
button->setFont(select_font);
button->setText(tr("&Select"));
@@ -245,13 +231,12 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Item Origin
//
cast_item_origin_edit=new QLineEdit(this,"cast_item_origin_edit");
cast_item_origin_edit=new QLineEdit(this);
cast_item_origin_edit->setReadOnly(true);
cast_item_origin_edit->setGeometry(115,cast_ypos,165,20);
cast_item_origin_edit->setMaxLength(64);
QLabel *cast_item_origin_label=
new QLabel(cast_item_origin_edit,tr("Posted At:"),this,
"cast_item_origin_label");
new QLabel(cast_item_origin_edit,tr("Posted At:"),this);
cast_item_origin_label->setGeometry(20,cast_ypos,90,20);
cast_item_origin_label->setFont(font);
cast_item_origin_label->
@@ -261,13 +246,13 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Item Expiration
//
cast_item_expiration_box=new QComboBox(this,"cast_item_expiration_box");
cast_item_expiration_box=new QComboBox(this);
cast_item_expiration_box->setGeometry(115,cast_ypos,50,20);
cast_item_expiration_box->insertItem(tr("No"));
cast_item_expiration_box->insertItem(tr("Yes"));
connect(cast_item_expiration_box,SIGNAL(activated(int)),
this,SLOT(expirationSelectedData(int)));
label=new QLabel(cast_item_expiration_box,tr("Cast Expires:"),this,"label");
label=new QLabel(cast_item_expiration_box,tr("Cast Expires:"),this);
label->setGeometry(20,cast_ypos,90,20);
label->setFont(font);
label->
@@ -279,14 +264,12 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
cast_item_expiration_edit=new QDateEdit(this);
cast_item_expiration_edit->setGeometry(115,cast_ypos,95,20);
cast_item_expiration_label=
new QLabel(cast_item_expiration_edit,tr("Expires On:"),this,
"cast_item_expiration_label");
new QLabel(cast_item_expiration_edit,tr("Expires On:"),this);
cast_item_expiration_label->setGeometry(20,cast_ypos,90,20);
cast_item_expiration_label->setFont(font);
cast_item_expiration_label->
setAlignment(AlignRight|AlignVCenter|ShowPrefix);
cast_item_expiration_button=
new QPushButton(this,"cast_item_expiration_button");
cast_item_expiration_button=new QPushButton(this);
cast_item_expiration_button->setGeometry(220,cast_ypos-3,50,25);
cast_item_expiration_button->setFont(select_font);
cast_item_expiration_button->setText(tr("&Select"));
@@ -302,14 +285,14 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Cast Status
//
cast_item_status_group=new QButtonGroup(this,"cast_item_status_group");
cast_item_status_group=new QButtonGroup(this);
cast_item_status_group->setExclusive(true);
cast_item_status_group->hide();
QRadioButton *rbutton=new QRadioButton(this,"hold_button");
QRadioButton *rbutton=new QRadioButton(this);
rbutton->setGeometry(120,cast_ypos,15,15);
cast_item_status_group->insert(rbutton);
label=new QLabel(rbutton,tr("Hold"),this,"hold_label");
label=new QLabel(rbutton,tr("Hold"),this);
label->setFont(select_font);
label->setGeometry(140,cast_ypos,30,15);
label->setAlignment(AlignVCenter|AlignLeft);
@@ -317,16 +300,15 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
label->setEnabled(cast_status!=RDPodcast::StatusExpired);
rbutton->setEnabled(cast_status!=RDPodcast::StatusExpired);
rbutton=new QRadioButton(this,"active_button");
rbutton=new QRadioButton(this);
rbutton->setGeometry(190,cast_ypos,15,15);
cast_item_status_group->insert(rbutton);
label=new QLabel(rbutton,tr("Active"),this,"hold_label");
label=new QLabel(rbutton,tr("Active"),this);
label->setFont(select_font);
label->setGeometry(210,cast_ypos,80,15);
label->setAlignment(AlignVCenter|AlignLeft);
label->setEnabled(cast_status!=RDPodcast::StatusExpired);
label=new QLabel(cast_item_status_group,tr("Posting Status:"),this,
"cast_item_status_label");
label=new QLabel(cast_item_status_group,tr("Posting Status:"),this);
label->setGeometry(20,cast_ypos-1,90,20);
label->setFont(font);
label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
@@ -336,7 +318,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Report Button
//
button=new QPushButton(this,"button");
button=new QPushButton(this);
button->setGeometry(10,sizeHint().height()-60,80,50);
button->setFont(font);
button->setText(tr("Episode\n&Report"));
@@ -345,7 +327,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Ok Button
//
button=new QPushButton(this,"button");
button=new QPushButton(this);
button->setGeometry(sizeHint().width()-180,sizeHint().height()-60,80,50);
button->setDefault(true);
button->setFont(font);
@@ -355,7 +337,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent,const char *name)
//
// Cancel Button
//
button=new QPushButton(this,"button");
button=new QPushButton(this);
button->setGeometry(sizeHint().width()-90,sizeHint().height()-60,
80,50);
button->setFont(font);

View File

@@ -2,9 +2,7 @@
//
// Edit a Rivendell Cast
//
// (C) Copyright 2002-2004 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: edit_cast.h,v 1.8 2011/09/09 20:23:28 cvs Exp $
// (C) Copyright 2002-2004,2016 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
@@ -39,12 +37,11 @@
#include <rdfeed.h>
#include <rdpodcast.h>
class EditCast : public QDialog
{
Q_OBJECT
public:
EditCast(unsigned cast_id,QWidget *parent=0,const char *name=0);
EditCast(unsigned cast_id,QWidget *parent=0);
~EditCast();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;

View File

@@ -2,9 +2,7 @@
//
// Global Variable Declarations for RDCastManager
//
// (C) Copyright 2007 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: globals.h,v 1.5 2011/08/30 23:35:44 cvs Exp $
// (C) Copyright 2007,2016 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

View File

@@ -2,9 +2,7 @@
//
// List Rivendell Casts
//
// (C) Copyright 2002-2007 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: list_casts.cpp,v 1.18.4.1 2013/11/13 23:36:35 cvs Exp $
// (C) Copyright 2002-2007,2016 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
@@ -64,9 +62,8 @@
#include "../icons/greenball.xpm"
#include "../icons/whiteball.xpm"
ListCasts::ListCasts(unsigned feed_id,QWidget *parent,const char *name)
: QDialog(parent,name,true)
ListCasts::ListCasts(unsigned feed_id,QWidget *parent)
: QDialog(parent,"",true)
{
list_feed_id=feed_id;
@@ -114,9 +111,9 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent,const char *name)
//
// Filter
//
list_filter_edit=new QLineEdit(this,"list_filter_edit");
list_filter_edit=new QLineEdit(this);
list_filter_label=
new QLabel(list_filter_edit,tr("Filter:"),this,"list_filter_label");
new QLabel(list_filter_edit,tr("Filter:"),this);
list_filter_label->setFont(font);
list_filter_label->setAlignment(AlignRight|AlignVCenter);
connect(list_filter_edit,SIGNAL(textChanged(const QString &)),
@@ -125,10 +122,9 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent,const char *name)
//
// Unexpired Check Box
//
list_unexpired_check=new QCheckBox(this,"list_unexpired_check");
list_unexpired_check=new QCheckBox(this);
list_unexpired_label=
new QLabel(list_unexpired_check,tr("Only Show Unexpired Casts"),this,
"list_unexpired_label");
new QLabel(list_unexpired_check,tr("Only Show Unexpired Casts"),this);
list_unexpired_label->setFont(font);
list_unexpired_label->setAlignment(AlignLeft|AlignVCenter);
connect(list_unexpired_check,SIGNAL(toggled(bool)),
@@ -137,10 +133,9 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent,const char *name)
//
// Active Check Box
//
list_active_check=new QCheckBox(this,"list_active_check");
list_active_check=new QCheckBox(this);
list_active_label=
new QLabel(list_active_check,tr("Only Show Active Casts"),this,
"list_active_label");
new QLabel(list_active_check,tr("Only Show Active Casts"),this);
list_active_label->setFont(font);
list_active_label->setAlignment(AlignLeft|AlignVCenter);
connect(list_active_check,SIGNAL(toggled(bool)),
@@ -149,7 +144,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent,const char *name)
//
// Group List
//
list_casts_view=new RDListView(this,"list_casts_view");
list_casts_view=new RDListView(this);
list_casts_view->setAllColumnsShowFocus(true);
list_casts_view->setItemMargin(5);
list_casts_view->addColumn(tr(" "));
@@ -176,7 +171,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent,const char *name)
//
// Post Cart Button
//
list_cart_button=new QPushButton(this,"list_cart_button");
list_cart_button=new QPushButton(this);
list_cart_button->setFont(font);
list_cart_button->setText(tr("Post From\nCar&t/Cut"));
connect(list_cart_button,SIGNAL(clicked()),this,SLOT(addCartData()));
@@ -184,7 +179,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent,const char *name)
//
// Post File Button
//
list_file_button=new QPushButton(this,"list_file_button");
list_file_button=new QPushButton(this);
list_file_button->setFont(font);
list_file_button->setText(tr("Post From\n&File"));
connect(list_file_button,SIGNAL(clicked()),this,SLOT(addFileData()));
@@ -192,7 +187,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent,const char *name)
//
// Edit Button
//
list_edit_button=new QPushButton(this,"list_edit_button");
list_edit_button=new QPushButton(this);
list_edit_button->setFont(font);
list_edit_button->setText(tr("&Edit"));
connect(list_edit_button,SIGNAL(clicked()),this,SLOT(editData()));
@@ -200,7 +195,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent,const char *name)
//
// Delete Button
//
list_delete_button=new QPushButton(this,"list_delete_button");
list_delete_button=new QPushButton(this);
list_delete_button->setFont(font);
list_delete_button->setText(tr("&Delete"));
connect(list_delete_button,SIGNAL(clicked()),this,SLOT(deleteData()));
@@ -208,7 +203,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent,const char *name)
//
// Report Button
//
list_report_button=new QPushButton(this,"list_report_button");
list_report_button=new QPushButton(this);
list_report_button->setFont(font);
list_report_button->setText(tr("Subscription\n&Report"));
connect(list_report_button,SIGNAL(clicked()),this,SLOT(reportData()));
@@ -216,7 +211,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent,const char *name)
//
// Close Button
//
list_close_button=new QPushButton(this,"list_close_button");
list_close_button=new QPushButton(this);
list_close_button->setDefault(true);
list_close_button->setFont(font);
list_close_button->setText(tr("&Close"));

View File

@@ -2,9 +2,7 @@
//
// List Rivendell Casts
//
// (C) Copyright 2002-2007 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: list_casts.h,v 1.9 2010/07/29 19:32:36 cvs Exp $
// (C) Copyright 2002-2007,2016 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
@@ -36,12 +34,11 @@
#include <rdfeed.h>
#include <rdlistviewitem.h>
class ListCasts : public QDialog
{
Q_OBJECT
public:
ListCasts(unsigned feed_id,QWidget *parent=0,const char *name=0);
ListCasts(unsigned feed_id,QWidget *parent=0);
~ListCasts();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;

View File

@@ -2,9 +2,7 @@
//
// Select a Set of Dates for a Rivendell Report
//
// (C) Copyright 2002-2006 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: pick_report_dates.cpp,v 1.5 2011/09/07 13:44:59 cvs Exp $
// (C) Copyright 2002-2006,2016 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
@@ -36,10 +34,9 @@
#include <globals.h>
#include <pick_report_dates.h>
PickReportDates::PickReportDates(unsigned feed_id,unsigned cast_id,
QWidget *parent,const char *name)
: QDialog(parent,name,true)
QWidget *parent)
: QDialog(parent,"",true)
{
QString sql;
RDSqlQuery *q;
@@ -75,15 +72,14 @@ PickReportDates::PickReportDates(unsigned feed_id,unsigned cast_id,
//
// Start Date
//
edit_startdate_edit=new QDateEdit(this,"edit_startdate_edit");
edit_startdate_edit=new QDateEdit(this);
edit_startdate_edit->setGeometry(150,10,100,20);
edit_startdate_edit->setDate(yesterday_date.addMonths(-1));
QLabel *label=new QLabel(edit_startdate_edit,tr("&Start Date:"),
this,"edit_startdate_label");
QLabel *label=new QLabel(edit_startdate_edit,tr("&Start Date:"),this);
label->setGeometry(75,10,70,20);
label->setFont(bold_font);
label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
QPushButton *button=new QPushButton(this,"startdate_button");
QPushButton *button=new QPushButton(this);
button->setGeometry(260,7,50,27);
button->setFont(font);
button->setText(tr("&Select"));
@@ -92,15 +88,14 @@ PickReportDates::PickReportDates(unsigned feed_id,unsigned cast_id,
//
// End Date
//
edit_enddate_edit=new QDateEdit(this,"edit_enddate_edit");
edit_enddate_edit=new QDateEdit(this);
edit_enddate_edit->setGeometry(150,40,100,20);
edit_enddate_edit->setDate(yesterday_date);
label=new QLabel(edit_enddate_edit,tr("&End Date:"),
this,"edit_enddate_label");
label=new QLabel(edit_enddate_edit,tr("&End Date:"),this);
label->setGeometry(75,40,70,20);
label->setFont(bold_font);
label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
button=new QPushButton(this,"enddate_button");
button=new QPushButton(this);
button->setGeometry(260,37,50,27);
button->setFont(font);
button->setText(tr("&Select"));
@@ -109,7 +104,7 @@ PickReportDates::PickReportDates(unsigned feed_id,unsigned cast_id,
//
// Generate Button
//
button=new QPushButton(this,"list_purge_button");
button=new QPushButton(this);
button->setGeometry(10,sizeHint().height()-60,80,50);
button->setFont(bold_font);
button->setText(tr("&Generate\nReport"));
@@ -118,7 +113,7 @@ PickReportDates::PickReportDates(unsigned feed_id,unsigned cast_id,
//
// Close Button
//
button=new QPushButton(this,"close_button");
button=new QPushButton(this);
button->setGeometry(sizeHint().width()-90,sizeHint().height()-60,80,50);
button->setDefault(true);
button->setFont(bold_font);

View File

@@ -2,9 +2,7 @@
//
// Select a Set of Dates for a Rivendell Podcast Report
//
// (C) Copyright 2002-2007 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: pick_report_dates.h,v 1.3 2010/07/29 19:32:36 cvs Exp $
// (C) Copyright 2002-2007,2016 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
@@ -28,13 +26,11 @@
#include <qcombobox.h>
#include <qdatetimeedit.h>
class PickReportDates : public QDialog
{
Q_OBJECT
public:
PickReportDates(unsigned feed_id,unsigned cast_id,
QWidget *parent=0,const char *name=0);
PickReportDates(unsigned feed_id,unsigned cast_id,QWidget *parent=0);
~PickReportDates();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;

View File

@@ -2,9 +2,7 @@
//
// A PodCast Management Utility for Rivendell.
//
// (C) Copyright 2002-2005 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: rdcastmanager.cpp,v 1.15.4.3 2014/01/21 21:59:31 cvs Exp $
// (C) Copyright 2002-2005,2016 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
@@ -69,8 +67,8 @@ RDStation *rdstation_conf;
RDConfig *config;
RDSystem *cast_system=NULL;
MainWidget::MainWidget(QWidget *parent,const char *name,WFlags f)
:QMainWindow(parent,name,f)
MainWidget::MainWidget(QWidget *parent)
:QMainWindow(parent)
{
QString str1;
QString str2;
@@ -168,7 +166,7 @@ MainWidget::MainWidget(QWidget *parent,const char *name,WFlags f)
//
// Feed List
//
cast_feed_list=new RDListView(this,"cast_feed_list");
cast_feed_list=new RDListView(this);
cast_feed_list->setFont(default_font);
cast_feed_list->setAllColumnsShowFocus(true);
cast_feed_list->setItemMargin(5);
@@ -190,7 +188,7 @@ MainWidget::MainWidget(QWidget *parent,const char *name,WFlags f)
//
// Open Button
//
cast_open_button=new QPushButton(this,"cast_open_button");
cast_open_button=new QPushButton(this);
cast_open_button->setFont(button_font);
cast_open_button->setText(tr("&View\nFeed"));
connect(cast_open_button,SIGNAL(clicked()),this,SLOT(openData()));
@@ -198,7 +196,7 @@ MainWidget::MainWidget(QWidget *parent,const char *name,WFlags f)
//
// Close Button
//
cast_close_button=new QPushButton(this,"cast_close_button");
cast_close_button=new QPushButton(this);
cast_close_button->setFont(button_font);
cast_close_button->setText(tr("&Close"));
connect(cast_close_button,SIGNAL(clicked()),this,SLOT(quitMainWidget()));
@@ -395,7 +393,7 @@ int main(int argc,char *argv[])
//
// Start Event Loop
//
MainWidget *w=new MainWidget(NULL,"main",0);
MainWidget *w=new MainWidget();
a.setMainWidget(w);
w->setGeometry(w->geometry().x(),w->geometry().y(),w->sizeHint().width(),w->sizeHint().height());
w->show();

View File

@@ -2,9 +2,7 @@
//
// A RSS Feed Management Utility for Rivendell.
//
// (C) Copyright 2002-2007 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: rdcastmanager.h,v 1.6 2010/07/29 19:32:36 cvs Exp $
// (C) Copyright 2002-2007,2016 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
@@ -20,7 +18,6 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#ifndef RDCASTMANAGER_H
#define RDCASTMANAGER_H
@@ -40,12 +37,11 @@
#include <rdlog_line.h>
#include <rdconfig.h>
class MainWidget : public QMainWindow
{
Q_OBJECT
public:
MainWidget(QWidget *parent=0,const char *name=0,WFlags f=0);
MainWidget(QWidget *parent=0);
QSize sizeHint() const;
QSizePolicy sizePolicy() const;

View File

@@ -2,9 +2,7 @@
#
# The rdcastmanager/ QMake project file for Rivendell
#
# (C) Copyright 2003-2004 Fred Gleason <fredg@paravelsystems.com>
#
# $Id: rdcastmanager.pro,v 1.5.2.1 2013/01/01 21:36:30 cvs Exp $
# (C) Copyright 2003-2004,2016 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