mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-10 22:56:01 +01:00
2018-08-07 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'pam_rd' plug-in. * Removed rdchunk(1). * Upgraded Qt3 to Qt4.
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
##
|
||||
## Use automake to process this into a Makefile.in
|
||||
|
||||
AM_CPPFLAGS = -Wall -DPREFIX=\"$(prefix)\" -DQTDIR=\"@QT_DIR@\" @QT_CXXFLAGS@ -I$(top_srcdir)/lib
|
||||
LIBS = @QT_LIBS@ -L$(top_srcdir)/lib
|
||||
AM_CPPFLAGS = -Wall -DPREFIX=\"$(prefix)\" -I$(top_srcdir)/lib @QT4_CFLAGS@ -DQT3_SUPPORT -I/usr/include/Qt3Support
|
||||
LIBS = -L$(top_srcdir)/lib
|
||||
MOC = @QT_MOC@
|
||||
|
||||
# The dependency for qt's Meta Object Compiler (moc)
|
||||
@@ -37,8 +37,8 @@ uninstall-local:
|
||||
rm -f $(DESTDIR)$(prefix)/share/rivendell/rdcastmanager_*.qm
|
||||
|
||||
all:
|
||||
@QT_BIN@/lupdate rdcastmanager.pro
|
||||
@QT_BIN@/lrelease rdcastmanager.pro
|
||||
lupdate-qt4 rdcastmanager.pro
|
||||
lrelease-qt4 rdcastmanager.pro
|
||||
|
||||
bin_PROGRAMS = rdcastmanager
|
||||
|
||||
@@ -53,7 +53,7 @@ nodist_rdcastmanager_SOURCES = moc_edit_cast.cpp\
|
||||
moc_pick_report_dates.cpp\
|
||||
moc_rdcastmanager.cpp
|
||||
|
||||
rdcastmanager_LDADD = @LIB_RDLIBS@ @LIBVORBIS@
|
||||
rdcastmanager_LDADD = @LIB_RDLIBS@ @LIBVORBIS@ @QT4_LIBS@ -lQt3Support
|
||||
|
||||
EXTRA_DIST = rdcastmanager.pro\
|
||||
rdcastmanager_cs.ts\
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include <qpainter.h>
|
||||
#include <qdatetime.h>
|
||||
#include <qradiobutton.h>
|
||||
//Added by qt3to4:
|
||||
#include <QLabel>
|
||||
|
||||
#include <rdapplication.h>
|
||||
#include <rddb.h>
|
||||
@@ -66,7 +68,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
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);
|
||||
cast_item_medialink_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
if(cast_feed->mediaLinkMode()==RDFeed::LinkNone) {
|
||||
cast_item_medialink_edit->hide();
|
||||
cast_item_medialink_label->hide();
|
||||
@@ -86,7 +88,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
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);
|
||||
cast_item_title_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
|
||||
//
|
||||
// Item Author
|
||||
@@ -98,7 +100,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
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);
|
||||
cast_item_author_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
|
||||
//
|
||||
// Item Category
|
||||
@@ -111,7 +113,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
cast_item_category_label->setGeometry(20,ypos+44,90,20);
|
||||
cast_item_category_label->setFont(font);
|
||||
cast_item_category_label->
|
||||
setAlignment(AlignRight|AlignVCenter|ShowPrefix);
|
||||
setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
|
||||
//
|
||||
// Item Link
|
||||
@@ -123,12 +125,12 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
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);
|
||||
cast_item_link_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
|
||||
//
|
||||
// Item Description
|
||||
//
|
||||
cast_item_description_edit=new QTextEdit(this);
|
||||
cast_item_description_edit=new Q3TextEdit(this);
|
||||
cast_item_description_edit->
|
||||
setGeometry(115,ypos+88,sizeHint().width()-125,76);
|
||||
QLabel *cast_item_description_label=
|
||||
@@ -136,7 +138,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
cast_item_description_label->setGeometry(20,ypos+88,90,20);
|
||||
cast_item_description_label->setFont(font);
|
||||
cast_item_description_label->
|
||||
setAlignment(AlignRight|AlignVCenter|ShowPrefix);
|
||||
setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
|
||||
//
|
||||
// Item Source Text
|
||||
@@ -148,7 +150,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
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);
|
||||
cast_item_sourcetext_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
|
||||
//
|
||||
// Item Source URL
|
||||
@@ -160,7 +162,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
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);
|
||||
cast_item_sourceurl_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
|
||||
//
|
||||
// Item Comments
|
||||
@@ -172,20 +174,20 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
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);
|
||||
cast_item_comments_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
|
||||
cast_ypos=233+ypos;
|
||||
|
||||
//
|
||||
// Effective DateTime
|
||||
//
|
||||
cast_item_effective_edit=new QDateTimeEdit(this);
|
||||
cast_item_effective_edit=new Q3DateTimeEdit(this);
|
||||
cast_item_effective_edit->
|
||||
setGeometry(115,cast_ypos,165,20);
|
||||
QLabel *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);
|
||||
label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
QPushButton *button=new QPushButton(this);
|
||||
button->setGeometry(290,cast_ypos-3,50,25);
|
||||
button->setFont(select_font);
|
||||
@@ -205,7 +207,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
cast_item_origin_label->setGeometry(20,cast_ypos,90,20);
|
||||
cast_item_origin_label->setFont(font);
|
||||
cast_item_origin_label->
|
||||
setAlignment(AlignRight|AlignVCenter|ShowPrefix);
|
||||
setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
cast_ypos+=22;
|
||||
|
||||
//
|
||||
@@ -221,19 +223,19 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
label->setGeometry(20,cast_ypos,90,20);
|
||||
label->setFont(font);
|
||||
label->
|
||||
setAlignment(AlignRight|AlignVCenter|ShowPrefix);
|
||||
setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
cast_ypos+=22;
|
||||
cast_item_expiration_box->setEnabled(cast_status!=RDPodcast::StatusExpired);
|
||||
label->setEnabled(cast_status!=RDPodcast::StatusExpired);
|
||||
|
||||
cast_item_expiration_edit=new QDateEdit(this);
|
||||
cast_item_expiration_edit=new Q3DateEdit(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->setGeometry(20,cast_ypos,90,20);
|
||||
cast_item_expiration_label->setFont(font);
|
||||
cast_item_expiration_label->
|
||||
setAlignment(AlignRight|AlignVCenter|ShowPrefix);
|
||||
setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
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);
|
||||
@@ -250,7 +252,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
//
|
||||
// Cast Status
|
||||
//
|
||||
cast_item_status_group=new QButtonGroup(this);
|
||||
cast_item_status_group=new Q3ButtonGroup(this);
|
||||
cast_item_status_group->setExclusive(true);
|
||||
cast_item_status_group->hide();
|
||||
|
||||
@@ -260,7 +262,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
label=new QLabel(rbutton,tr("Hold"),this);
|
||||
label->setFont(select_font);
|
||||
label->setGeometry(140,cast_ypos,30,15);
|
||||
label->setAlignment(AlignVCenter|AlignLeft);
|
||||
label->setAlignment(Qt::AlignVCenter|Qt::AlignLeft);
|
||||
rbutton->setChecked(true);
|
||||
label->setEnabled(cast_status!=RDPodcast::StatusExpired);
|
||||
rbutton->setEnabled(cast_status!=RDPodcast::StatusExpired);
|
||||
@@ -271,12 +273,12 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
label=new QLabel(rbutton,tr("Active"),this);
|
||||
label->setFont(select_font);
|
||||
label->setGeometry(210,cast_ypos,80,15);
|
||||
label->setAlignment(AlignVCenter|AlignLeft);
|
||||
label->setAlignment(Qt::AlignVCenter|Qt::AlignLeft);
|
||||
label->setEnabled(cast_status!=RDPodcast::StatusExpired);
|
||||
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);
|
||||
label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
label->setEnabled(cast_status!=RDPodcast::StatusExpired);
|
||||
rbutton->setEnabled(cast_status!=RDPodcast::StatusExpired);
|
||||
|
||||
|
||||
@@ -24,15 +24,15 @@
|
||||
#include <vector>
|
||||
|
||||
#include <qdialog.h>
|
||||
#include <qtextedit.h>
|
||||
#include <q3textedit.h>
|
||||
#include <qspinbox.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qsqldatabase.h>
|
||||
#include <qcombobox.h>
|
||||
#include <qdatetimeedit.h>
|
||||
#include <q3datetimeedit.h>
|
||||
#include <qlabel.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qbuttongroup.h>
|
||||
#include <q3buttongroup.h>
|
||||
|
||||
#include <rdfeed.h>
|
||||
#include <rdpodcast.h>
|
||||
@@ -61,7 +61,7 @@ class EditCast : public QDialog
|
||||
QLineEdit *cast_item_title_edit;
|
||||
QLineEdit *cast_item_author_edit;
|
||||
QLineEdit *cast_item_origin_edit;
|
||||
QTextEdit *cast_item_description_edit;
|
||||
Q3TextEdit *cast_item_description_edit;
|
||||
QLineEdit *cast_item_category_edit;
|
||||
QLineEdit *cast_item_comments_edit;
|
||||
QLineEdit *cast_item_sourcetext_edit;
|
||||
@@ -70,9 +70,9 @@ class EditCast : public QDialog
|
||||
QComboBox *cast_item_expiration_box;
|
||||
QLabel *cast_item_expiration_label;
|
||||
QPushButton *cast_item_expiration_button;
|
||||
QDateEdit *cast_item_expiration_edit;
|
||||
QDateTimeEdit *cast_item_effective_edit;
|
||||
QButtonGroup *cast_item_status_group;
|
||||
Q3DateEdit *cast_item_expiration_edit;
|
||||
Q3DateTimeEdit *cast_item_effective_edit;
|
||||
Q3ButtonGroup *cast_item_status_group;
|
||||
int cast_ypos;
|
||||
RDPodcast::Status cast_status;
|
||||
};
|
||||
|
||||
@@ -25,17 +25,20 @@
|
||||
#include <qdialog.h>
|
||||
#include <qstring.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qlistbox.h>
|
||||
#include <qtextedit.h>
|
||||
#include <q3listbox.h>
|
||||
#include <q3textedit.h>
|
||||
#include <qlabel.h>
|
||||
#include <qpainter.h>
|
||||
#include <qevent.h>
|
||||
#include <qmessagebox.h>
|
||||
#include <qbuttongroup.h>
|
||||
#include <q3buttongroup.h>
|
||||
#include <qdatetime.h>
|
||||
#include <qfile.h>
|
||||
#include <qapplication.h>
|
||||
#include <qfiledialog.h>
|
||||
#include <q3filedialog.h>
|
||||
//Added by qt3to4:
|
||||
#include <QResizeEvent>
|
||||
#include <QPixmap>
|
||||
|
||||
#include <rdapplication.h>
|
||||
#include <rdcastsearch.h>
|
||||
@@ -102,7 +105,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent)
|
||||
// Progress Dialog
|
||||
//
|
||||
list_progress_dialog=
|
||||
new QProgressDialog(tr("Uploading Audio..."),"Cancel",4,this);
|
||||
new Q3ProgressDialog(tr("Uploading Audio..."),"Cancel",4,this,NULL);
|
||||
list_progress_dialog->setCaption(tr("Progress"));
|
||||
list_progress_dialog->setMinimumDuration(0);
|
||||
list_progress_dialog->setTotalSteps(list_feed->totalPostSteps());
|
||||
@@ -116,7 +119,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent)
|
||||
list_filter_label=
|
||||
new QLabel(list_filter_edit,tr("Filter:"),this);
|
||||
list_filter_label->setFont(font);
|
||||
list_filter_label->setAlignment(AlignRight|AlignVCenter);
|
||||
list_filter_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
connect(list_filter_edit,SIGNAL(textChanged(const QString &)),
|
||||
this,SLOT(filterChangedData(const QString &)));
|
||||
|
||||
@@ -127,7 +130,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent)
|
||||
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);
|
||||
list_unexpired_label->setAlignment(Qt::AlignLeft|Qt::AlignVCenter);
|
||||
connect(list_unexpired_check,SIGNAL(toggled(bool)),
|
||||
this,SLOT(notexpiredToggledData(bool)));
|
||||
|
||||
@@ -138,7 +141,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent)
|
||||
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);
|
||||
list_active_label->setAlignment(Qt::AlignLeft|Qt::AlignVCenter);
|
||||
connect(list_active_check,SIGNAL(toggled(bool)),
|
||||
this,SLOT(activeToggledData(bool)));
|
||||
|
||||
@@ -149,25 +152,25 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent)
|
||||
list_casts_view->setAllColumnsShowFocus(true);
|
||||
list_casts_view->setItemMargin(5);
|
||||
list_casts_view->addColumn(tr(" "));
|
||||
list_casts_view->setColumnAlignment(0,AlignCenter);
|
||||
list_casts_view->setColumnAlignment(0,Qt::AlignCenter);
|
||||
list_casts_view->addColumn(tr("Title"));
|
||||
list_casts_view->setColumnAlignment(1,AlignLeft);
|
||||
list_casts_view->setColumnAlignment(1,Qt::AlignLeft);
|
||||
list_casts_view->addColumn(tr("Origin"));
|
||||
list_casts_view->setColumnAlignment(2,AlignLeft);
|
||||
list_casts_view->setColumnAlignment(2,Qt::AlignLeft);
|
||||
list_casts_view->addColumn(tr("Expires"));
|
||||
list_casts_view->setColumnAlignment(3,AlignCenter);
|
||||
list_casts_view->setColumnAlignment(3,Qt::AlignCenter);
|
||||
list_casts_view->addColumn(tr("Length"));
|
||||
list_casts_view->setColumnAlignment(4,AlignRight);
|
||||
list_casts_view->setColumnAlignment(4,Qt::AlignRight);
|
||||
list_casts_view->addColumn(tr("Description"));
|
||||
list_casts_view->setColumnAlignment(5,AlignLeft);
|
||||
list_casts_view->setColumnAlignment(5,Qt::AlignLeft);
|
||||
list_casts_view->addColumn(tr("Category"));
|
||||
list_casts_view->setColumnAlignment(6,AlignCenter);
|
||||
list_casts_view->setColumnAlignment(6,Qt::AlignCenter);
|
||||
list_casts_view->addColumn(tr("Link"));
|
||||
list_casts_view->setColumnAlignment(7,AlignCenter);
|
||||
list_casts_view->setColumnAlignment(7,Qt::AlignCenter);
|
||||
connect(list_casts_view,
|
||||
SIGNAL(doubleClicked(QListViewItem *,const QPoint &,int)),
|
||||
SIGNAL(doubleClicked(Q3ListViewItem *,const QPoint &,int)),
|
||||
this,
|
||||
SLOT(doubleClickedData(QListViewItem *,const QPoint &,int)));
|
||||
SLOT(doubleClickedData(Q3ListViewItem *,const QPoint &,int)));
|
||||
|
||||
//
|
||||
// Post Cart Button
|
||||
@@ -274,7 +277,7 @@ void ListCasts::addCartData()
|
||||
|
||||
void ListCasts::addFileData()
|
||||
{
|
||||
QString srcfile=QFileDialog::getOpenFileName("",RD_AUDIO_FILE_FILTER,this);
|
||||
QString srcfile=Q3FileDialog::getOpenFileName("",RD_AUDIO_FILE_FILTER,this);
|
||||
if(srcfile.isNull()) {
|
||||
return;
|
||||
}
|
||||
@@ -327,8 +330,8 @@ void ListCasts::deleteData()
|
||||
return;
|
||||
}
|
||||
|
||||
QProgressDialog *pd=
|
||||
new QProgressDialog(tr("Deleting Podcast..."),"Cancel",2,this);
|
||||
Q3ProgressDialog *pd=
|
||||
new Q3ProgressDialog(tr("Deleting Podcast..."),"Cancel",2,this,NULL);
|
||||
pd->setCaption(tr("Progress"));
|
||||
pd->setMinimumDuration(0);
|
||||
pd->setProgress(0);
|
||||
@@ -375,7 +378,7 @@ void ListCasts::reportData()
|
||||
}
|
||||
|
||||
|
||||
void ListCasts::doubleClickedData(QListViewItem *item,const QPoint &pt,
|
||||
void ListCasts::doubleClickedData(Q3ListViewItem *item,const QPoint &pt,
|
||||
int col)
|
||||
{
|
||||
editData();
|
||||
|
||||
@@ -29,7 +29,9 @@
|
||||
#include <qlineedit.h>
|
||||
#include <qcheckbox.h>
|
||||
#include <qlabel.h>
|
||||
#include <qprogressdialog.h>
|
||||
#include <q3progressdialog.h>
|
||||
//Added by qt3to4:
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include <rdfeed.h>
|
||||
#include <rdlistviewitem.h>
|
||||
@@ -49,7 +51,7 @@ class ListCasts : public QDialog
|
||||
void editData();
|
||||
void deleteData();
|
||||
void reportData();
|
||||
void doubleClickedData(QListViewItem *item,const QPoint &pt,int col);
|
||||
void doubleClickedData(Q3ListViewItem *item,const QPoint &pt,int col);
|
||||
void userChangedData();
|
||||
void filterChangedData(const QString &str);
|
||||
void notexpiredToggledData(bool state);
|
||||
@@ -82,7 +84,7 @@ class ListCasts : public QDialog
|
||||
QCheckBox *list_unexpired_check;
|
||||
QLabel *list_active_label;
|
||||
QCheckBox *list_active_check;
|
||||
QProgressDialog *list_progress_dialog;
|
||||
Q3ProgressDialog *list_progress_dialog;
|
||||
RDFeed *list_feed;
|
||||
};
|
||||
|
||||
|
||||
@@ -74,13 +74,13 @@ PickReportDates::PickReportDates(unsigned feed_id,unsigned cast_id,
|
||||
//
|
||||
// Start Date
|
||||
//
|
||||
edit_startdate_edit=new QDateEdit(this);
|
||||
edit_startdate_edit=new Q3DateEdit(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);
|
||||
label->setGeometry(75,10,70,20);
|
||||
label->setFont(bold_font);
|
||||
label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
|
||||
label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
QPushButton *button=new QPushButton(this);
|
||||
button->setGeometry(260,7,50,27);
|
||||
button->setFont(font);
|
||||
@@ -90,13 +90,13 @@ PickReportDates::PickReportDates(unsigned feed_id,unsigned cast_id,
|
||||
//
|
||||
// End Date
|
||||
//
|
||||
edit_enddate_edit=new QDateEdit(this);
|
||||
edit_enddate_edit=new Q3DateEdit(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);
|
||||
label->setGeometry(75,40,70,20);
|
||||
label->setFont(bold_font);
|
||||
label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
|
||||
label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
button=new QPushButton(this);
|
||||
button->setGeometry(260,37,50,27);
|
||||
button->setFont(font);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <qdialog.h>
|
||||
#include <qsqldatabase.h>
|
||||
#include <qcombobox.h>
|
||||
#include <qdatetimeedit.h>
|
||||
#include <q3datetimeedit.h>
|
||||
|
||||
class PickReportDates : public QDialog
|
||||
{
|
||||
@@ -45,8 +45,8 @@ class PickReportDates : public QDialog
|
||||
void GenerateSubscriptionReport(const QString &keyname,QString *rpt);
|
||||
void GenerateEpisodeReport(const QString &keyname,unsigned cast_id,
|
||||
QString *rpt);
|
||||
QDateEdit *edit_startdate_edit;
|
||||
QDateEdit *edit_enddate_edit;
|
||||
Q3DateEdit *edit_startdate_edit;
|
||||
Q3DateEdit *edit_enddate_edit;
|
||||
QString edit_keyname;
|
||||
unsigned edit_feed_id;
|
||||
unsigned edit_cast_id;
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
#include <qsettings.h>
|
||||
#include <qpainter.h>
|
||||
#include <qmessagebox.h>
|
||||
//Added by qt3to4:
|
||||
#include <QResizeEvent>
|
||||
#include <QPixmap>
|
||||
|
||||
#include <dbversion.h>
|
||||
#include <rd.h>
|
||||
@@ -62,7 +65,7 @@ QString cast_group;
|
||||
QString cast_schedcode;
|
||||
|
||||
MainWidget::MainWidget(QWidget *parent)
|
||||
:QMainWindow(parent)
|
||||
:Q3MainWindow(parent)
|
||||
{
|
||||
QString str1;
|
||||
QString str2;
|
||||
@@ -142,9 +145,9 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
cast_feed_list->setAllColumnsShowFocus(true);
|
||||
cast_feed_list->setItemMargin(5);
|
||||
connect(cast_feed_list,
|
||||
SIGNAL(doubleClicked(QListViewItem *,const QPoint &,int)),
|
||||
SIGNAL(doubleClicked(Q3ListViewItem *,const QPoint &,int)),
|
||||
this,
|
||||
SLOT(feedDoubleclickedData(QListViewItem *,const QPoint &,int)));
|
||||
SLOT(feedDoubleclickedData(Q3ListViewItem *,const QPoint &,int)));
|
||||
cast_feed_list->addColumn("");
|
||||
cast_feed_list->setColumnAlignment(0,Qt::AlignCenter);
|
||||
cast_feed_list->addColumn(tr("Key Name"));
|
||||
@@ -213,7 +216,7 @@ void MainWidget::openData()
|
||||
}
|
||||
|
||||
|
||||
void MainWidget::feedDoubleclickedData(QListViewItem *,const QPoint &,int)
|
||||
void MainWidget::feedDoubleclickedData(Q3ListViewItem *,const QPoint &,int)
|
||||
{
|
||||
openData();
|
||||
}
|
||||
@@ -339,7 +342,7 @@ int main(int argc,char *argv[])
|
||||
qt_path=tr_path;
|
||||
#else
|
||||
tr_path=QString(PREFIX)+QString("/share/rivendell/");
|
||||
qt_path=QString(QTDIR)+QString("/translation/");
|
||||
qt_path=QString("/usr/share/qt4/translation/");
|
||||
#endif // WIN32
|
||||
QTranslator qt(0);
|
||||
qt.load(qt_path+QString("qt_")+QTextCodec::locale(),".");
|
||||
|
||||
@@ -23,12 +23,14 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <qmainwindow.h>
|
||||
#include <q3mainwindow.h>
|
||||
#include <qsize.h>
|
||||
#include <qsizepolicy.h>
|
||||
#include <qsqldatabase.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qpixmap.h>
|
||||
//Added by qt3to4:
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include <rdlistview.h>
|
||||
#include <rduser.h>
|
||||
@@ -39,7 +41,7 @@
|
||||
|
||||
#define RDCASTMANAGER_USAGE "\n"
|
||||
|
||||
class MainWidget : public QMainWindow
|
||||
class MainWidget : public Q3MainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -50,7 +52,7 @@ class MainWidget : public QMainWindow
|
||||
private slots:
|
||||
void openData();
|
||||
void userChangedData();
|
||||
void feedDoubleclickedData(QListViewItem *item,const QPoint &pt,int col);
|
||||
void feedDoubleclickedData(Q3ListViewItem *item,const QPoint &pt,int col);
|
||||
void quitMainWidget();
|
||||
|
||||
protected:
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<context>
|
||||
<name>EditCast</name>
|
||||
<message>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<context>
|
||||
<name>EditCast</name>
|
||||
<message>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<context>
|
||||
<name>EditCast</name>
|
||||
<message>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<context>
|
||||
<name>EditCast</name>
|
||||
<message>
|
||||
@@ -130,7 +132,7 @@ Car&t/Cut</source>
|
||||
</message>
|
||||
<message>
|
||||
<source></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Title</source>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<context>
|
||||
<name>EditCast</name>
|
||||
<message>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<context>
|
||||
<name>EditCast</name>
|
||||
<message>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0">
|
||||
<context>
|
||||
<name>EditCast</name>
|
||||
<message>
|
||||
|
||||
Reference in New Issue
Block a user