mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-07 01:13:50 +02:00
* Added a 'DROPBOXES.SEND_EMAIL' field to the database. * Incremented the database version to 345. * Added 'RDDropbox::sendEmail()' and 'RDDropbox::setSendEmail()' methods. * Added a 'Send e-mail reports' checkbox to the 'Dropbox Configuration' dialog in rdadmin(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
117 lines
3.4 KiB
C++
117 lines
3.4 KiB
C++
// edit_dropbox.h
|
|
//
|
|
// Edit a Rivendell Dropbox Configuration
|
|
//
|
|
// (C) Copyright 2002-2020 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_DROPBOX_H
|
|
#define EDIT_DROPBOX_H
|
|
|
|
#include <q3listbox.h>
|
|
#include <q3textedit.h>
|
|
#include <qpixmap.h>
|
|
#include <qspinbox.h>
|
|
#include <qcheckbox.h>
|
|
#include <qsqldatabase.h>
|
|
#include <qlineedit.h>
|
|
#include <qcombobox.h>
|
|
#include <qlabel.h>
|
|
#include <qpushbutton.h>
|
|
#include <qlabel.h>
|
|
#include <qstringlist.h>
|
|
|
|
#include <rddialog.h>
|
|
#include <rddropbox.h>
|
|
#include <rdschedcodes_dialog.h>
|
|
|
|
class EditDropbox : public RDDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
EditDropbox(int id,bool duplicate=false,QWidget *parent=0);
|
|
QSize sizeHint() const;
|
|
QSizePolicy sizePolicy() const;
|
|
|
|
private slots:
|
|
void selectPathData();
|
|
void pathChangedData(QString text);
|
|
void selectCartData();
|
|
void selectLogPathData();
|
|
void schedcodesData();
|
|
void normalizationToggledData(bool state);
|
|
void autotrimToggledData(bool state);
|
|
void segueToggledData(bool state);
|
|
void createDatesToggledData(bool state);
|
|
void resetData();
|
|
void okData();
|
|
void cancelData();
|
|
|
|
private:
|
|
RDDropbox *box_dropbox;
|
|
QComboBox *box_group_name_box;
|
|
QLineEdit *box_path_edit;
|
|
QString box_path;
|
|
QLineEdit *box_to_cart_edit;
|
|
QPushButton *box_schedcodes_button;
|
|
QCheckBox *box_delete_cuts_box;
|
|
QLabel *box_delete_cuts_label;
|
|
QCheckBox *box_force_to_mono_box;
|
|
QLabel *box_force_to_mono_label;
|
|
QLineEdit *box_metadata_pattern_edit;
|
|
QLineEdit *box_user_defined_edit;
|
|
QCheckBox *box_log_to_syslog_check;
|
|
QLabel *box_log_path_label;
|
|
QLineEdit *box_log_path_edit;
|
|
QPushButton *box_log_path_button;
|
|
QCheckBox *box_delete_source_box;
|
|
QCheckBox *box_send_email_box;
|
|
QCheckBox *box_normalization_box;
|
|
QLabel *box_normalization_level_label;
|
|
QSpinBox *box_normalization_level_spin;
|
|
QLabel *box_normalization_level_unit;
|
|
QCheckBox *box_autotrim_box;
|
|
QLabel *box_autotrim_level_label;
|
|
QSpinBox *box_autotrim_level_spin;
|
|
QLabel *box_autotrim_level_unit;
|
|
QCheckBox *box_use_cartchunk_id_box;
|
|
QCheckBox *box_title_from_cartchunk_id_box;
|
|
QCheckBox *box_fix_broken_formats_box;
|
|
QPushButton *box_select_cart_button;
|
|
QPushButton *ok_button;
|
|
QSpinBox *box_startoffset_spin;
|
|
QSpinBox *box_endoffset_spin;
|
|
QCheckBox *box_create_dates_box;
|
|
QSpinBox *box_create_startdate_offset_spin;
|
|
QLabel *box_create_startdate_label;
|
|
QLabel *box_create_startdate_unit;
|
|
QSpinBox *box_create_enddate_offset_spin;
|
|
QLabel *box_create_enddate_label;
|
|
QLabel *box_create_enddate_unit;
|
|
QCheckBox *box_segue_box;
|
|
QSpinBox *box_segue_level_spin;
|
|
QLabel *box_segue_level_label;
|
|
QLabel *box_segue_level_unit;
|
|
QSpinBox *box_segue_length_spin;
|
|
QLabel *box_segue_length_label;
|
|
QLabel *box_segue_length_unit;
|
|
RDSchedCodesDialog *box_schedcodes_dialog;
|
|
QStringList box_schedcodes;
|
|
};
|
|
|
|
|
|
#endif // EDIT_DROPBOX_H
|