2021-07-12 Fred Gleason <fredg@paravelsystems.com>

* Modified the 'Edit Upload' dialog in rdcatch(1) to disable the
	'Url', 'Username', 'Password' and 'Export Format' controls when
	an RSS feed is selected.
	* Added the feed icon to the 'RSS Feed' column in the record list
	display in rdcatch(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-07-12 09:56:24 -04:00
parent cbdf0a4735
commit cd91364485
10 changed files with 304 additions and 198 deletions

View File

@@ -30,6 +30,7 @@
#include <rdcut_dialog.h>
#include <rddeck.h>
#include <rddialog.h>
#include <rdfeedlistmodel.h>
#include <rdrecording.h>
class EditUpload : public RDDialog
@@ -43,6 +44,7 @@ class EditUpload : public RDDialog
private slots:
void stationChangedData(const QString &str);
void feedChangedData(int index);
void urlChangedData(const QString &str);
void selectCartData();
void setFormatData();
@@ -52,6 +54,7 @@ class EditUpload : public RDDialog
void cancelData();
protected:
void resizeEvent(QResizeEvent *e);
void keyPressEvent(QKeyEvent *);
void closeEvent(QCloseEvent *e);
@@ -64,32 +67,58 @@ class EditUpload : public RDDialog
RDRecording *edit_recording;
RDSettings edit_settings;
QCheckBox *edit_active_button;
QLabel *edit_active_label;
QLabel *edit_station_label;
RDComboBox *edit_station_box;
QLabel *edit_starttime_label;
QTimeEdit *edit_starttime_edit;
QLabel *edit_feed_label;
QComboBox *edit_feed_box;
RDFeedListModel *edit_feed_model;
QLabel *edit_description_label;
QLineEdit *edit_description_edit;
QPushButton *edit_source_select_button;
QLabel *edit_url_label;
QLineEdit *edit_url_edit;
QLabel *edit_username_label;
QLineEdit *edit_username_edit;
QLabel *edit_password_label;
QLineEdit *edit_password_edit;
QString edit_cutname;
QLineEdit *edit_destination_edit;
QLabel *edit_source_label;
QLineEdit *edit_source_edit;
QLabel *edit_format_label;
QLineEdit *edit_format_edit;
QPushButton *edit_format_set_button;
QCheckBox *edit_normalize_box;
QLabel *edit_normalize_label;
QLabel *edit_normalize_level_label;
QSpinBox *edit_normalize_spin;
QLabel *edit_normalize_unit;
QCheckBox *edit_metadata_box;
QLabel *edit_metadata_label;
QCheckBox *edit_sun_button;
QLabel *edit_sun_label;
QCheckBox *edit_mon_button;
QLabel *edit_mon_label;
QCheckBox *edit_tue_button;
QLabel *edit_tue_label;
QCheckBox *edit_wed_button;
QLabel *edit_wed_label;
QCheckBox *edit_thu_button;
QLabel *edit_thu_label;
QCheckBox *edit_fri_button;
QLabel *edit_fri_label;
QCheckBox *edit_sat_button;
QLabel *edit_sat_label;
QLabel *edit_eventoffset_label;
QSpinBox *edit_eventoffset_spin;
QLabel *edit_eventoffset_unit_label;
QCheckBox *edit_oneshot_box;
QLabel *edit_oneshot_label;
QPushButton *event_saveas_button;
QPushButton *event_ok_button;
QPushButton *event_cancel_button;
std::vector<int> *edit_added_events;
QString *edit_filter;
QString edit_group;
@@ -97,4 +126,4 @@ class EditUpload : public RDDialog
};
#endif
#endif // EDIT_UPLOAD_H