mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-07 01:13:50 +02:00
* Added an 'RDDialog' class. * Added an 'RDWidget' class. * Refactored rdadmin(1) to use 'RDDialog' and 'RDWidget' base classes.
81 lines
2.1 KiB
C++
81 lines
2.1 KiB
C++
// edit_replicator.h
|
|
//
|
|
// Edit a Rivendell Replicator
|
|
//
|
|
// (C) Copyright 2002-2019 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.h>
|
|
#include <qcombobox.h>
|
|
#include <qlabel.h>
|
|
#include <qlineedit.h>
|
|
#include <qpushbutton.h>
|
|
#include <qspinbox.h>
|
|
|
|
#include <rdlistselector.h>
|
|
#include <rddialog.h>
|
|
#include <rdreplicator.h>
|
|
#include <rdsettings.h>
|
|
#include <rdstation.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;
|
|
QComboBox *repl_type_box;
|
|
QComboBox *repl_station_box;
|
|
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
|
|
|