mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-08-16 08:34:12 +02:00
2021-01-22 Fred Gleason <fredg@paravelsystems.com>
* Modified the 'Configure RDAirPlay' dialog in rdadmin(1) to use 'RDServiceListModel'. * Modified the 'Configure RDPanel' dialog in rdadmin(1) to use 'RDServiceListModel'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
957e0516b9
commit
4be8879a0e
@ -20877,3 +20877,8 @@
|
|||||||
2021-01-22 Fred Gleason <fredg@paravelsystems.com>
|
2021-01-22 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Modified the 'Edit Deck' dialog in rdadmin(1) to use
|
* Modified the 'Edit Deck' dialog in rdadmin(1) to use
|
||||||
'RDStationListModel'.
|
'RDStationListModel'.
|
||||||
|
2021-01-22 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Modified the 'Configure RDAirPlay' dialog in rdadmin(1) to use
|
||||||
|
'RDServiceListModel'.
|
||||||
|
* Modified the 'Configure RDPanel' dialog in rdadmin(1) to use
|
||||||
|
'RDServiceListModel'.
|
||||||
|
@ -3479,6 +3479,10 @@ Zkuste to, prosím, znovu!</translation>
|
|||||||
<source>Import Markers</source>
|
<source>Import Markers</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>[none]</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDSoundPanel</name>
|
<name>RDSoundPanel</name>
|
||||||
|
@ -3460,6 +3460,10 @@ bitte erneut versuchen!</translation>
|
|||||||
<source>Import Markers</source>
|
<source>Import Markers</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>[none]</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDSoundPanel</name>
|
<name>RDSoundPanel</name>
|
||||||
|
@ -3439,6 +3439,10 @@ please try again!</source>
|
|||||||
<source>Import Markers</source>
|
<source>Import Markers</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>[none]</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDSoundPanel</name>
|
<name>RDSoundPanel</name>
|
||||||
|
@ -2740,6 +2740,10 @@ please try again!</source>
|
|||||||
<source>Import Markers</source>
|
<source>Import Markers</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>[none]</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDSoundPanel</name>
|
<name>RDSoundPanel</name>
|
||||||
|
@ -3342,6 +3342,10 @@ prøv ein gong til!</translation>
|
|||||||
<source>Import Markers</source>
|
<source>Import Markers</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>[none]</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDSoundPanel</name>
|
<name>RDSoundPanel</name>
|
||||||
|
@ -3342,6 +3342,10 @@ prøv ein gong til!</translation>
|
|||||||
<source>Import Markers</source>
|
<source>Import Markers</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>[none]</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDSoundPanel</name>
|
<name>RDSoundPanel</name>
|
||||||
|
@ -3393,6 +3393,10 @@ por favor, tente novamente!</translation>
|
|||||||
<source>Import Markers</source>
|
<source>Import Markers</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>[none]</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDSoundPanel</name>
|
<name>RDSoundPanel</name>
|
||||||
|
@ -22,9 +22,11 @@
|
|||||||
#include "rdescape_string.h"
|
#include "rdescape_string.h"
|
||||||
#include "rdservicelistmodel.h"
|
#include "rdservicelistmodel.h"
|
||||||
|
|
||||||
RDServiceListModel::RDServiceListModel(QObject *parent)
|
RDServiceListModel::RDServiceListModel(bool incl_none,QObject *parent)
|
||||||
: QAbstractTableModel(parent)
|
: QAbstractTableModel(parent)
|
||||||
{
|
{
|
||||||
|
d_include_none=incl_none;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Column Attributes
|
// Column Attributes
|
||||||
//
|
//
|
||||||
@ -236,13 +238,19 @@ void RDServiceListModel::refresh(const QString &grpname)
|
|||||||
void RDServiceListModel::updateModel()
|
void RDServiceListModel::updateModel()
|
||||||
{
|
{
|
||||||
QList<QVariant> texts;
|
QList<QVariant> texts;
|
||||||
QList<QVariant> icons;
|
|
||||||
|
|
||||||
RDSqlQuery *q=NULL;
|
RDSqlQuery *q=NULL;
|
||||||
QString sql=sqlFields();
|
QString sql=sqlFields();
|
||||||
sql+="order by NAME ";
|
sql+="order by NAME ";
|
||||||
beginResetModel();
|
beginResetModel();
|
||||||
d_texts.clear();
|
d_texts.clear();
|
||||||
|
if(d_include_none) {
|
||||||
|
d_texts.push_back(texts);
|
||||||
|
d_texts.back().push_back(tr("[none]"));
|
||||||
|
for(int i=1;i<columnCount();i++) {
|
||||||
|
d_texts.back().push_back(QVariant());
|
||||||
|
}
|
||||||
|
}
|
||||||
q=new RDSqlQuery(sql);
|
q=new RDSqlQuery(sql);
|
||||||
while(q->next()) {
|
while(q->next()) {
|
||||||
d_texts.push_back(texts);
|
d_texts.push_back(texts);
|
||||||
|
@ -41,7 +41,7 @@ class RDServiceListModel : public QAbstractTableModel
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
RDServiceListModel(QObject *parent=0);
|
RDServiceListModel(bool incl_none,QObject *parent=0);
|
||||||
~RDServiceListModel();
|
~RDServiceListModel();
|
||||||
QPalette palette();
|
QPalette palette();
|
||||||
void setPalette(const QPalette &pal);
|
void setPalette(const QPalette &pal);
|
||||||
@ -68,7 +68,7 @@ class RDServiceListModel : public QAbstractTableModel
|
|||||||
QPalette d_palette;
|
QPalette d_palette;
|
||||||
QFont d_font;
|
QFont d_font;
|
||||||
QFont d_bold_font;
|
QFont d_bold_font;
|
||||||
QStringList d_service_names;
|
bool d_include_none;
|
||||||
QList<QVariant> d_headers;
|
QList<QVariant> d_headers;
|
||||||
QList<QVariant> d_alignments;
|
QList<QVariant> d_alignments;
|
||||||
QList<QList<QVariant> > d_texts;
|
QList<QList<QVariant> > d_texts;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Edit an RDAirPlay Configuration
|
// Edit an RDAirPlay Configuration
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// 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
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -18,19 +18,10 @@
|
|||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <q3buttongroup.h>
|
#include <QFileDialog>
|
||||||
#include <q3listbox.h>
|
#include <QMessageBox>
|
||||||
#include <q3textedit.h>
|
#include <QPainter>
|
||||||
|
#include <QRadioButton>
|
||||||
#include <qcheckbox.h>
|
|
||||||
#include <qdialog.h>
|
|
||||||
#include <qevent.h>
|
|
||||||
#include <qfiledialog.h>
|
|
||||||
#include <qmessagebox.h>
|
|
||||||
#include <qpainter.h>
|
|
||||||
#include <qpushbutton.h>
|
|
||||||
#include <qradiobutton.h>
|
|
||||||
#include <qstring.h>
|
|
||||||
|
|
||||||
#include <rd.h>
|
#include <rd.h>
|
||||||
#include <rddb.h>
|
#include <rddb.h>
|
||||||
@ -47,11 +38,6 @@ EditRDAirPlay::EditRDAirPlay(RDStation *station,RDStation *cae_station,
|
|||||||
QWidget *parent)
|
QWidget *parent)
|
||||||
: RDDialog(parent)
|
: RDDialog(parent)
|
||||||
{
|
{
|
||||||
setModal(true);
|
|
||||||
|
|
||||||
QString sql;
|
|
||||||
RDSqlQuery *q;
|
|
||||||
|
|
||||||
air_exitpasswd_changed=false;
|
air_exitpasswd_changed=false;
|
||||||
air_logmachine=0;
|
air_logmachine=0;
|
||||||
air_virtual_logmachine=0;
|
air_virtual_logmachine=0;
|
||||||
@ -60,10 +46,8 @@ EditRDAirPlay::EditRDAirPlay(RDStation *station,RDStation *cae_station,
|
|||||||
//
|
//
|
||||||
// Fix the Window Size
|
// Fix the Window Size
|
||||||
//
|
//
|
||||||
setMinimumWidth(sizeHint().width());
|
setMinimumSize(sizeHint());
|
||||||
setMaximumWidth(sizeHint().width());
|
setMaximumSize(sizeHint());
|
||||||
setMinimumHeight(sizeHint().height());
|
|
||||||
setMaximumHeight(sizeHint().height());
|
|
||||||
|
|
||||||
air_conf=new RDAirPlayConf(station->name(),"RDAIRPLAY");
|
air_conf=new RDAirPlayConf(station->name(),"RDAIRPLAY");
|
||||||
|
|
||||||
@ -77,6 +61,11 @@ EditRDAirPlay::EditRDAirPlay(RDStation *station,RDStation *cae_station,
|
|||||||
//
|
//
|
||||||
setWindowTitle("RDAdmin - "+tr("Configure RDAirPlay"));
|
setWindowTitle("RDAdmin - "+tr("Configure RDAirPlay"));
|
||||||
|
|
||||||
|
//
|
||||||
|
// Models
|
||||||
|
//
|
||||||
|
air_service_model=new RDServiceListModel(true,this);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Channel Assignments Section
|
// Channel Assignments Section
|
||||||
//
|
//
|
||||||
@ -541,6 +530,7 @@ EditRDAirPlay::EditRDAirPlay(RDStation *station,RDStation *cae_station,
|
|||||||
//
|
//
|
||||||
air_defaultsvc_box=new QComboBox(this);
|
air_defaultsvc_box=new QComboBox(this);
|
||||||
air_defaultsvc_box->setGeometry(895,142,100,20);
|
air_defaultsvc_box->setGeometry(895,142,100,20);
|
||||||
|
air_defaultsvc_box->setModel(air_service_model);
|
||||||
label=new QLabel(air_defaultsvc_box,tr("Default Service:"),this);
|
label=new QLabel(air_defaultsvc_box,tr("Default Service:"),this);
|
||||||
label->setFont(subLabelFont());
|
label->setFont(subLabelFont());
|
||||||
label->setGeometry(760,142,130,20);
|
label->setGeometry(760,142,130,20);
|
||||||
@ -961,18 +951,7 @@ EditRDAirPlay::EditRDAirPlay(RDStation *station,RDStation *cae_station,
|
|||||||
air_piecount_box->setValue(air_conf->pieCountLength()/1000);
|
air_piecount_box->setValue(air_conf->pieCountLength()/1000);
|
||||||
air_countto_box->setCurrentItem(air_conf->pieEndPoint());
|
air_countto_box->setCurrentItem(air_conf->pieEndPoint());
|
||||||
air_default_transtype_box->setCurrentItem(air_conf->defaultTransType());
|
air_default_transtype_box->setCurrentItem(air_conf->defaultTransType());
|
||||||
air_defaultsvc_box->insertItem(tr("[none]"));
|
air_defaultsvc_box->setCurrentText(air_conf->defaultSvc());
|
||||||
QString defaultsvc=air_conf->defaultSvc();
|
|
||||||
sql=QString("select SERVICE_NAME from SERVICE_PERMS where ")+
|
|
||||||
"STATION_NAME=\""+RDEscapeString(air_conf->station())+"\"";
|
|
||||||
q=new RDSqlQuery(sql);
|
|
||||||
while(q->next()) {
|
|
||||||
air_defaultsvc_box->insertItem(q->value(0).toString());
|
|
||||||
if(defaultsvc==q->value(0).toString()) {
|
|
||||||
air_defaultsvc_box->setCurrentItem(air_defaultsvc_box->count()-1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
delete q;
|
|
||||||
air_station_box->setValue(air_conf->panels(RDAirPlayConf::StationPanel));
|
air_station_box->setValue(air_conf->panels(RDAirPlayConf::StationPanel));
|
||||||
air_user_box->setValue(air_conf->panels(RDAirPlayConf::UserPanel));
|
air_user_box->setValue(air_conf->panels(RDAirPlayConf::UserPanel));
|
||||||
air_timesync_box->setChecked(air_conf->checkTimesync());
|
air_timesync_box->setChecked(air_conf->checkTimesync());
|
||||||
@ -1040,6 +1019,7 @@ EditRDAirPlay::EditRDAirPlay(RDStation *station,RDStation *cae_station,
|
|||||||
|
|
||||||
EditRDAirPlay::~EditRDAirPlay()
|
EditRDAirPlay::~EditRDAirPlay()
|
||||||
{
|
{
|
||||||
|
delete air_service_model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Edit an RDAirPlay Configuration
|
// Edit an RDAirPlay Configuration
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// 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
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -21,18 +21,19 @@
|
|||||||
#ifndef EDIT_RDAIRPLAY_H
|
#ifndef EDIT_RDAIRPLAY_H
|
||||||
#define EDIT_RDAIRPLAY_H
|
#define EDIT_RDAIRPLAY_H
|
||||||
|
|
||||||
#include <qlineedit.h>
|
|
||||||
#include <qcombobox.h>
|
|
||||||
#include <qspinbox.h>
|
|
||||||
#include <q3datetimeedit.h>
|
|
||||||
#include <qlabel.h>
|
|
||||||
#include <qcheckbox.h>
|
|
||||||
#include <q3buttongroup.h>
|
#include <q3buttongroup.h>
|
||||||
|
|
||||||
|
#include <QCheckBox>
|
||||||
|
#include <QComboBox>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QLineEdit>
|
||||||
|
#include <QSpinBox>
|
||||||
|
|
||||||
#include <rd.h>
|
#include <rd.h>
|
||||||
#include <rdairplay_conf.h>
|
#include <rdairplay_conf.h>
|
||||||
#include <rdcardselector.h>
|
#include <rdcardselector.h>
|
||||||
#include <rddialog.h>
|
#include <rddialog.h>
|
||||||
|
#include <rdservicelistmodel.h>
|
||||||
#include <rdstation.h>
|
#include <rdstation.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -148,6 +149,7 @@ class EditRDAirPlay : public RDDialog
|
|||||||
QComboBox *air_virtual_logstartmode_box;
|
QComboBox *air_virtual_logstartmode_box;
|
||||||
int air_virtual_logstartmachine;
|
int air_virtual_logstartmachine;
|
||||||
RDAirPlayConf::OpMode air_virtual_opmodes[RD_RDVAIRPLAY_LOG_QUAN];
|
RDAirPlayConf::OpMode air_virtual_opmodes[RD_RDVAIRPLAY_LOG_QUAN];
|
||||||
|
RDServiceListModel *air_service_model;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Edit an RDLibrry Configuration
|
// Edit an RDLibrry Configuration
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// 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
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -21,11 +21,12 @@
|
|||||||
#ifndef EDIT_RDLIBRARY_H
|
#ifndef EDIT_RDLIBRARY_H
|
||||||
#define EDIT_RDLIBRARY_H
|
#define EDIT_RDLIBRARY_H
|
||||||
|
|
||||||
#include <qlineedit.h>
|
|
||||||
#include <qcombobox.h>
|
|
||||||
#include <qspinbox.h>
|
|
||||||
#include <q3datetimeedit.h>
|
#include <q3datetimeedit.h>
|
||||||
|
|
||||||
|
#include <QComboBox>
|
||||||
|
#include <QLineEdit>
|
||||||
|
#include <QSpinBox>
|
||||||
|
|
||||||
#include <rdcardselector.h>
|
#include <rdcardselector.h>
|
||||||
#include <rddialog.h>
|
#include <rddialog.h>
|
||||||
#include <rdlibrary_conf.h>
|
#include <rdlibrary_conf.h>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Edit an RDPanel Configuration
|
// Edit an RDPanel Configuration
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// 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
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -18,9 +18,8 @@
|
|||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <qfiledialog.h>
|
#include <QFileDialog>
|
||||||
#include <qmessagebox.h>
|
#include <QMessageBox>
|
||||||
#include <qpushbutton.h>
|
|
||||||
|
|
||||||
#include <rd.h>
|
#include <rd.h>
|
||||||
#include <rddb.h>
|
#include <rddb.h>
|
||||||
@ -34,11 +33,6 @@ EditRDPanel::EditRDPanel(RDStation *station,RDStation *cae_station,
|
|||||||
QWidget *parent)
|
QWidget *parent)
|
||||||
: RDDialog(parent)
|
: RDDialog(parent)
|
||||||
{
|
{
|
||||||
setModal(true);
|
|
||||||
|
|
||||||
QString sql;
|
|
||||||
RDSqlQuery *q;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Fix the Window Size
|
// Fix the Window Size
|
||||||
//
|
//
|
||||||
@ -57,6 +51,11 @@ EditRDPanel::EditRDPanel(RDStation *station,RDStation *cae_station,
|
|||||||
//
|
//
|
||||||
setWindowTitle("RDAdmin - "+tr("Configure RDPanel"));
|
setWindowTitle("RDAdmin - "+tr("Configure RDPanel"));
|
||||||
|
|
||||||
|
//
|
||||||
|
// Models
|
||||||
|
//
|
||||||
|
air_service_model=new RDServiceListModel(true,this);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Channel Assignments Section
|
// Channel Assignments Section
|
||||||
//
|
//
|
||||||
@ -288,6 +287,7 @@ EditRDPanel::EditRDPanel(RDStation *station,RDStation *cae_station,
|
|||||||
//
|
//
|
||||||
air_defaultsvc_box=new QComboBox(this);
|
air_defaultsvc_box=new QComboBox(this);
|
||||||
air_defaultsvc_box->setGeometry(520,151,100,20);
|
air_defaultsvc_box->setGeometry(520,151,100,20);
|
||||||
|
air_defaultsvc_box->setModel(air_service_model);
|
||||||
label=new QLabel(air_defaultsvc_box,tr("Default Service:"),this);
|
label=new QLabel(air_defaultsvc_box,tr("Default Service:"),this);
|
||||||
label->setFont(subLabelFont());
|
label->setFont(subLabelFont());
|
||||||
label->setGeometry(385,151,130,20);
|
label->setGeometry(385,151,130,20);
|
||||||
@ -358,18 +358,7 @@ EditRDPanel::EditRDPanel(RDStation *station,RDStation *cae_station,
|
|||||||
air_card_sel[5]->setCard(air_conf->card(RDAirPlayConf::CueChannel));
|
air_card_sel[5]->setCard(air_conf->card(RDAirPlayConf::CueChannel));
|
||||||
air_card_sel[5]->setPort(air_conf->port(RDAirPlayConf::CueChannel));
|
air_card_sel[5]->setPort(air_conf->port(RDAirPlayConf::CueChannel));
|
||||||
|
|
||||||
air_defaultsvc_box->insertItem(tr("[none]"));
|
air_defaultsvc_box->setCurrentText(air_conf->defaultSvc());
|
||||||
QString defaultsvc=air_conf->defaultSvc();
|
|
||||||
sql=QString("select SERVICE_NAME from SERVICE_PERMS where ")+
|
|
||||||
"STATION_NAME=\""+RDEscapeString(air_conf->station())+"\"";
|
|
||||||
q=new RDSqlQuery(sql);
|
|
||||||
while(q->next()) {
|
|
||||||
air_defaultsvc_box->insertItem(q->value(0).toString());
|
|
||||||
if(defaultsvc==q->value(0).toString()) {
|
|
||||||
air_defaultsvc_box->setCurrentItem(air_defaultsvc_box->count()-1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
delete q;
|
|
||||||
air_skin_edit->setText(air_conf->skinPath());
|
air_skin_edit->setText(air_conf->skinPath());
|
||||||
air_station_box->setValue(air_conf->panels(RDAirPlayConf::StationPanel));
|
air_station_box->setValue(air_conf->panels(RDAirPlayConf::StationPanel));
|
||||||
air_user_box->setValue(air_conf->panels(RDAirPlayConf::UserPanel));
|
air_user_box->setValue(air_conf->panels(RDAirPlayConf::UserPanel));
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Edit an RDPanel Configuration
|
// Edit an RDPanel Configuration
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// 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
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -21,16 +21,17 @@
|
|||||||
#ifndef EDIT_RDPANEL_H
|
#ifndef EDIT_RDPANEL_H
|
||||||
#define EDIT_RDPANEL_H
|
#define EDIT_RDPANEL_H
|
||||||
|
|
||||||
#include <qcheckbox.h>
|
#include <QCheckBox>
|
||||||
#include <qcombobox.h>
|
#include <QComboBox>
|
||||||
#include <qlineedit.h>
|
#include <QLabel>
|
||||||
#include <qlabel.h>
|
#include <QLineEdit>
|
||||||
#include <qspinbox.h>
|
#include <QSpinBox>
|
||||||
|
|
||||||
#include <rd.h>
|
#include <rd.h>
|
||||||
#include <rdairplay_conf.h>
|
#include <rdairplay_conf.h>
|
||||||
#include <rdcardselector.h>
|
#include <rdcardselector.h>
|
||||||
#include <rddialog.h>
|
#include <rddialog.h>
|
||||||
|
#include <rdservicelistmodel.h>
|
||||||
#include <rdstation.h>
|
#include <rdstation.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -68,6 +69,7 @@ class EditRDPanel : public RDDialog
|
|||||||
QLineEdit *air_label_template_edit;
|
QLineEdit *air_label_template_edit;
|
||||||
QComboBox *air_defaultsvc_box;
|
QComboBox *air_defaultsvc_box;
|
||||||
QLineEdit *air_skin_edit;
|
QLineEdit *air_skin_edit;
|
||||||
|
RDServiceListModel *air_service_model;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ ListSvcs::ListSvcs(QWidget *parent)
|
|||||||
list_services_view->setShowGrid(false);
|
list_services_view->setShowGrid(false);
|
||||||
list_services_view->setSortingEnabled(false);
|
list_services_view->setSortingEnabled(false);
|
||||||
list_services_view->setWordWrap(false);
|
list_services_view->setWordWrap(false);
|
||||||
list_services_model=new RDServiceListModel(this);
|
list_services_model=new RDServiceListModel(false,this);
|
||||||
list_services_model->setFont(defaultFont());
|
list_services_model->setFont(defaultFont());
|
||||||
list_services_model->setPalette(palette());
|
list_services_model->setPalette(palette());
|
||||||
list_services_view->setModel(list_services_model);
|
list_services_view->setModel(list_services_model);
|
||||||
|
@ -2777,7 +2777,7 @@ Daemons auf diesem Host neu, indem sie als 'root'-Benutzer den Befehl
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation>[žádný]</translation>
|
<translation type="obsolete">[žádný]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Data Error</source>
|
<source>Data Error</source>
|
||||||
@ -3479,7 +3479,7 @@ pro naplnění databáze zdroji zvuku.</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation>[žádný]</translation>
|
<translation type="obsolete">[žádný]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Select Image File</source>
|
<source>Select Image File</source>
|
||||||
|
@ -2623,7 +2623,7 @@ Daemons auf diesem Host neu, indem sie als 'root'-Benutzer den Befehl
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation>[keine]</translation>
|
<translation type="obsolete">[keine]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Data Error</source>
|
<source>Data Error</source>
|
||||||
@ -3301,7 +3301,7 @@ configured to run the CAE service in order to populate the audio resources datab
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation type="unfinished">[keine]</translation>
|
<translation type="obsolete">[keine]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Select Image File</source>
|
<source>Select Image File</source>
|
||||||
|
@ -2767,7 +2767,7 @@ Parameters</source>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation>[ninguno]</translation>
|
<translation type="obsolete">[ninguno]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>No Audio Configuration Data</source>
|
<source>No Audio Configuration Data</source>
|
||||||
@ -3463,7 +3463,7 @@ para generar la base de datos con los recursos de audio disponibles.</translatio
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation>[ninguno]</translation>
|
<translation type="obsolete">[ninguno]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Select Image File</source>
|
<source>Select Image File</source>
|
||||||
|
@ -2085,10 +2085,6 @@ GPIOs</source>
|
|||||||
<source>No Audio Configuration Data</source>
|
<source>No Audio Configuration Data</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>[none]</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Data Error</source>
|
<source>Data Error</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
@ -2713,10 +2709,6 @@ configured to run the CAE service in order to populate the audio resources datab
|
|||||||
<source>No Audio Configuration Data</source>
|
<source>No Audio Configuration Data</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>[none]</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Select Image File</source>
|
<source>Select Image File</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -2555,7 +2555,7 @@ for lydressursar.</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation>[ingen]</translation>
|
<translation type="obsolete">[ingen]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Data Error</source>
|
<source>Data Error</source>
|
||||||
@ -3243,7 +3243,7 @@ for lydressursar.</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation type="unfinished">[ingen]</translation>
|
<translation type="obsolete">[ingen]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Select Image File</source>
|
<source>Select Image File</source>
|
||||||
|
@ -2555,7 +2555,7 @@ for lydressursar.</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation>[ingen]</translation>
|
<translation type="obsolete">[ingen]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Data Error</source>
|
<source>Data Error</source>
|
||||||
@ -3243,7 +3243,7 @@ for lydressursar.</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation type="unfinished">[ingen]</translation>
|
<translation type="obsolete">[ingen]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Select Image File</source>
|
<source>Select Image File</source>
|
||||||
|
@ -2615,7 +2615,7 @@ Isto para popular os recursos de áudio na Base de Dados.</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation>[Nenhum]</translation>
|
<translation type="obsolete">[Nenhum]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Select Image File</source>
|
<source>Select Image File</source>
|
||||||
@ -3291,7 +3291,7 @@ Isto para popular os recursos de áudio na Base de Dados.</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>[none]</source>
|
<source>[none]</source>
|
||||||
<translation type="unfinished">[Nenhum]</translation>
|
<translation type="obsolete">[Nenhum]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Select Image File</source>
|
<source>Select Image File</source>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user