mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 15:16:07 +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:
@@ -25,16 +25,20 @@
|
||||
#include <qwindowsstyle.h>
|
||||
#include <qwidget.h>
|
||||
#include <qpainter.h>
|
||||
#include <qsqlpropertymap.h>
|
||||
#include <q3sqlpropertymap.h>
|
||||
#include <qmessagebox.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qlabel.h>
|
||||
#include <qlabel.h>
|
||||
#include <qlistview.h>
|
||||
#include <q3listview.h>
|
||||
#include <qsignalmapper.h>
|
||||
#include <qtextcodec.h>
|
||||
#include <qtranslator.h>
|
||||
#include <qlayout.h>
|
||||
//Added by qt3to4:
|
||||
#include <QResizeEvent>
|
||||
#include <QPixmap>
|
||||
#include <QCloseEvent>
|
||||
|
||||
#include <rdprofile.h>
|
||||
#include <rd.h>
|
||||
@@ -203,8 +207,8 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
str=QString("RDCatch")+" v"+VERSION+" - "+tr("Host")+":";
|
||||
setCaption(str+" "+rda->config()->stationName());
|
||||
|
||||
connect(RDDbStatus(),SIGNAL(logText(RDConfig::LogPriority,const QString &)),
|
||||
this,SLOT(log(RDConfig::LogPriority,const QString &)));
|
||||
// connect(RDDbStatus(),SIGNAL(logText(RDConfig::LogPriority,const QString &)),
|
||||
// this,SLOT(log(RDConfig::LogPriority,const QString &)));
|
||||
|
||||
//
|
||||
// Allocate Global Resources
|
||||
@@ -247,7 +251,7 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
//
|
||||
// Deck Monitors
|
||||
//
|
||||
catch_monitor_view=new QScrollView(this,"",Qt::WNoAutoErase);
|
||||
catch_monitor_view=new Q3ScrollView(this,"",Qt::WNoAutoErase);
|
||||
catch_monitor_vbox=new VBox(catch_monitor_view);
|
||||
catch_monitor_vbox->setSpacing(2);
|
||||
catch_monitor_view->addChild(catch_monitor_vbox);
|
||||
@@ -341,21 +345,21 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
tr("Show Only Active Events"),
|
||||
this,"catch_show_active_label");
|
||||
catch_show_active_label->setFont(label_font);
|
||||
catch_show_active_label->setAlignment(AlignLeft|AlignVCenter);
|
||||
catch_show_active_label->setAlignment(Qt::AlignLeft|Qt::AlignVCenter);
|
||||
connect(catch_show_active_box,SIGNAL(toggled(bool)),
|
||||
this,SLOT(filterChangedData(bool)));
|
||||
catch_show_today_box=new QCheckBox(this);
|
||||
catch_show_today_label=
|
||||
new QLabel(catch_show_active_box,tr("Show Only Today's Events"),this);
|
||||
catch_show_today_label->setFont(label_font);
|
||||
catch_show_today_label->setAlignment(AlignLeft|AlignVCenter);
|
||||
catch_show_today_label->setAlignment(Qt::AlignLeft|Qt::AlignVCenter);
|
||||
connect(catch_show_today_box,SIGNAL(toggled(bool)),
|
||||
this,SLOT(filterChangedData(bool)));
|
||||
|
||||
catch_dow_box=new QComboBox(this);
|
||||
catch_dow_label=new QLabel(catch_dow_box,tr("Show DayOfWeek:"),this);
|
||||
catch_dow_label->setFont(label_font);
|
||||
catch_dow_label->setAlignment(AlignRight|AlignVCenter);
|
||||
catch_dow_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
catch_dow_box->insertItem(tr("All"));
|
||||
catch_dow_box->insertItem(tr("Weekdays"));
|
||||
catch_dow_box->insertItem(tr("Sunday"));
|
||||
@@ -371,7 +375,7 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
connect(catch_type_box,SIGNAL(activated(int)),this,SLOT(filterActivatedData(int)));
|
||||
catch_type_label=new QLabel(catch_type_box,tr("Show Event Type")+":",this);
|
||||
catch_type_label->setFont(label_font);
|
||||
catch_type_label->setAlignment(AlignRight|AlignVCenter);
|
||||
catch_type_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
for(int i=0;i<RDRecording::LastType;i++) {
|
||||
catch_type_box->insertItem(*(catch_type_maps[i]),
|
||||
RDRecording::typeString((RDRecording::Type)i));
|
||||
@@ -392,12 +396,12 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
catch_recordings_list->setAllColumnsShowFocus(true);
|
||||
catch_recordings_list->setItemMargin(5);
|
||||
catch_recordings_list->setFont(list_font);
|
||||
connect(catch_recordings_list,SIGNAL(selectionChanged(QListViewItem *)),
|
||||
this,SLOT(selectionChangedData(QListViewItem *)));
|
||||
connect(catch_recordings_list,SIGNAL(selectionChanged(Q3ListViewItem *)),
|
||||
this,SLOT(selectionChangedData(Q3ListViewItem *)));
|
||||
connect(catch_recordings_list,
|
||||
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)));
|
||||
|
||||
catch_recordings_list->addColumn("");
|
||||
catch_recordings_list->setColumnAlignment(0,Qt::AlignHCenter);
|
||||
@@ -512,7 +516,7 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
//
|
||||
catch_clock_label=new QLabel("00:00:00",this);
|
||||
catch_clock_label->setFont(clock_font);
|
||||
catch_clock_label->setAlignment(AlignCenter);
|
||||
catch_clock_label->setAlignment(Qt::AlignCenter);
|
||||
catch_clock_timer=new QTimer(this);
|
||||
connect(catch_clock_timer,SIGNAL(timeout()),this,SLOT(clockData()));
|
||||
clockData();
|
||||
@@ -536,7 +540,7 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
//
|
||||
catch_stop_button=new RDTransportButton(RDTransportButton::Stop,this);
|
||||
catch_stop_button->setDisabled(true);
|
||||
catch_stop_button->setOnColor(red);
|
||||
catch_stop_button->setOnColor(Qt::red);
|
||||
connect(catch_stop_button,SIGNAL(clicked()),this,SLOT(stopButtonData()));
|
||||
catch_stop_button->on();
|
||||
|
||||
@@ -1188,7 +1192,7 @@ void MainWidget::monitorData(int id)
|
||||
}
|
||||
|
||||
|
||||
void MainWidget::selectionChangedData(QListViewItem *item)
|
||||
void MainWidget::selectionChangedData(Q3ListViewItem *item)
|
||||
{
|
||||
if(item==NULL) {
|
||||
catch_head_button->setDisabled(true);
|
||||
@@ -1215,7 +1219,7 @@ void MainWidget::selectionChangedData(QListViewItem *item)
|
||||
}
|
||||
|
||||
|
||||
void MainWidget::doubleClickedData(QListViewItem *,const QPoint &,int)
|
||||
void MainWidget::doubleClickedData(Q3ListViewItem *,const QPoint &,int)
|
||||
{
|
||||
editData();
|
||||
}
|
||||
@@ -2201,7 +2205,7 @@ int main(int argc,char *argv[])
|
||||
// Load Translations
|
||||
//
|
||||
QTranslator qt(0);
|
||||
qt.load(QString(QTDIR)+QString("/translations/qt_")+QTextCodec::locale(),
|
||||
qt.load(QString("/usr/share/qt4/translations/qt_")+QTextCodec::locale(),
|
||||
".");
|
||||
a.installTranslator(&qt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user