Rivendellaudio/rdadmin/edit_replicator.h
Fred Gleason 887d297a19 2024-02-05 Fred Gleason <fredg@paravelsystems.com>
* Added a 'REPLICATORS.PROGRAM_CODE' field to the database.
	* Incremented the database version to 372.
	* Added 'RDReplicator::programCode()' and
	'RDReplicator::setProgramCode()' methods.
	* Added a 'Program Code' control to the 'Rivendell Replicators'
	dialog in rdadmin(1).
	* Renamed the 'Citadel X-Digital Portal' replicator to
	'X-Digital National ISCI Model'.
	* Added a 'X-Digital Cue Model' replicator.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
2024-02-05 17:49:26 -05:00

84 lines
2.2 KiB
C++

// edit_replicator.h
//
// Edit a Rivendell Replicator
//
// (C) Copyright 2002-2024 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
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#ifndef EDIT_REPLICATOR_H
#define EDIT_REPLICATOR_H
#include <QCheckBox>
#include <QComboBox>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QSpinBox>
#include <rdlistselector.h>
#include <rddialog.h>
#include <rdreplicator.h>
#include <rdsettings.h>
#include <rdstation.h>
#include <rdstationlistmodel.h>
class EditReplicator : public RDDialog
{
Q_OBJECT
public:
EditReplicator(const QString &repl_name,QWidget *parent=0);
~EditReplicator();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
private slots:
void setFormatData();
void normalizeCheckData(bool state);
void okData();
void cancelData();
private:
RDReplicator *repl_replicator;
QLineEdit *repl_name_edit;
QLineEdit *repl_description_edit;
QLineEdit *repl_program_code_edit;
QComboBox *repl_type_box;
QComboBox *repl_station_box;
RDStationListModel *repl_station_model;
QLineEdit *repl_url_edit;
QLabel *repl_username_label;
QLineEdit *repl_username_edit;
QLabel *repl_password_label;
QLineEdit *repl_password_edit;
QLineEdit *repl_format_edit;
QCheckBox *repl_normalize_box;
QLabel *repl_normalize_label;
QSpinBox *repl_normalize_spin;
QPushButton *repl_format_button;
QPushButton *repl_metadata_button;
RDSettings *repl_settings;
QLabel *repl_url_label;
QLabel *repl_format_label;
QLabel *repl_normalize_check_label;
QLabel *repl_normalize_unit_label;
RDListSelector *repl_groups_sel;
};
#endif // EDIT_REPLICATOR_H