2018-05-21 Fred Gleason <fredg@paravelsystems.com>

* Added an 'AUDIO_CARDS' table to the database.
	* Dropped the 'STATIONS.CARD<n>_DRIVER', 'STATIONS.CARD<n>NAME',
	'STATIONS.CARD<n>_INPUTS' and 'STATIONS.CARD<n>OUTPUTS' fields
	from the database.
	* Incremented the database version to 282.
	* Added an 'AUDIO_CARDS.CLOCK_SOURCE' field to the database.
	* Added an 'AUDIO_INPUTS' table to the database.
	* Added an 'AUDIO_OUTPUTS' table to the database.
	* Dropped the 'AUDIO_PORTS' table from the database.
	* Incremented the database version to 283.
	* Changed the legend on the 'Audio Ports' button to 'ASI Audio Ports'
	on the 'Edit Host' dialog in rdadmin(1).
	* Changed the title of the 'Configure Audio Ports' dialog to
	'Configure AudioScience Audio Ports' on the 'Edit Host' dialog
	in rdadmin(1).
This commit is contained in:
Fred Gleason
2018-05-21 16:00:59 +00:00
parent b49399f091
commit 94119b27d7
24 changed files with 861 additions and 345 deletions

View File

@@ -2,7 +2,7 @@
//
// Edit a Rivendell Audio Port Configuration
//
// (C) Copyright 2002-2003,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2003,2016-2018 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
@@ -38,40 +38,43 @@
class EditAudioPorts : public QDialog
{
Q_OBJECT
public:
EditAudioPorts(QString station,QWidget *parent=0);
~EditAudioPorts();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
public:
EditAudioPorts(QString station,QWidget *parent=0);
~EditAudioPorts();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
private slots:
void cardSelectedData(int);
void inputMapData(int);
void helpData();
void closeData();
private slots:
void cardSelectedData(int);
void inputMapData(int);
void helpData();
void closeData();
private:
void ReadRecord(int card);
void WriteRecord();
void SetEnable(bool state);
int edit_card_num;
RDAudioPort *edit_card;
RDStation *rdstation;
QString edit_station;
QComboBox *edit_card_box;
QLineEdit *card_driver_edit;
QComboBox *edit_clock_box;
QLabel *edit_clock_label;
QComboBox *edit_type_box[RD_MAX_PORTS];
QLabel *edit_type_label[RD_MAX_PORTS];
QComboBox *edit_mode_box[RD_MAX_PORTS];
QLabel *edit_mode_label[RD_MAX_PORTS];
QSpinBox *edit_input_box[RD_MAX_PORTS];
QLabel *edit_input_label[RD_MAX_PORTS];
QSpinBox *edit_output_box[RD_MAX_PORTS];
QLabel *edit_output_label[RD_MAX_PORTS];
protected:
void resizeEvent(QResizeEvent *e);
private:
void ReadRecord(int card);
void WriteRecord();
void SetEnable(bool state);
int edit_card_num;
RDAudioPort *edit_card;
RDStation *rdstation;
QString edit_station;
QComboBox *edit_card_box;
QLineEdit *card_driver_edit;
QComboBox *edit_clock_box;
QLabel *edit_clock_label;
QComboBox *edit_type_box[RD_MAX_PORTS];
QLabel *edit_type_label[RD_MAX_PORTS];
QComboBox *edit_mode_box[RD_MAX_PORTS];
QLabel *edit_mode_label[RD_MAX_PORTS];
QSpinBox *edit_input_box[RD_MAX_PORTS];
QLabel *edit_input_label[RD_MAX_PORTS];
QSpinBox *edit_output_box[RD_MAX_PORTS];
QLabel *edit_output_label[RD_MAX_PORTS];
};
#endif
#endif // EDIT_AUDIO_H