mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-15 17:11:33 +01:00
2021-07-20 Fred Gleason <fredg@paravelsystems.com>
* Refactored the 'Edit Cart Event' dialog in rdcatch(1) to improve modularity. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
#define EDIT_CARTEVENT_H
|
||||
|
||||
#include <QCheckBox>
|
||||
#include <QDateTimeEdit>
|
||||
|
||||
#include <rdcombobox.h>
|
||||
#include <rddeck.h>
|
||||
@@ -31,6 +30,9 @@
|
||||
#include <rdrecording.h>
|
||||
#include <rdstationlistmodel.h>
|
||||
|
||||
#include "dowselector.h"
|
||||
#include "eventwidget.h"
|
||||
|
||||
class EditCartEvent : public RDDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -47,7 +49,8 @@ class EditCartEvent : public RDDialog
|
||||
void cancelData();
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent *);
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
void keyPressEvent(QKeyEvent *e);
|
||||
void closeEvent(QCloseEvent *e);
|
||||
|
||||
private:
|
||||
@@ -56,24 +59,21 @@ class EditCartEvent : public RDDialog
|
||||
RDDeck *edit_deck;
|
||||
RDCart *edit_cart;
|
||||
RDRecording *edit_recording;
|
||||
QCheckBox *edit_active_button;
|
||||
RDComboBox *edit_station_box;
|
||||
RDStationListModel *edit_station_model;
|
||||
QTimeEdit *edit_starttime_edit;
|
||||
QLabel *edit_description_label;
|
||||
QLineEdit *edit_description_edit;
|
||||
QString edit_cutname;
|
||||
QLabel *edit_destination_label;
|
||||
QLineEdit *edit_destination_edit;
|
||||
QCheckBox *edit_sun_button;
|
||||
QCheckBox *edit_mon_button;
|
||||
QCheckBox *edit_tue_button;
|
||||
QCheckBox *edit_wed_button;
|
||||
QCheckBox *edit_thu_button;
|
||||
QCheckBox *edit_fri_button;
|
||||
QCheckBox *edit_sat_button;
|
||||
QPushButton *edit_destination_button;
|
||||
QCheckBox *edit_oneshot_box;
|
||||
QLabel *edit_oneshot_label;
|
||||
QPushButton *edit_saveas_button;
|
||||
QPushButton *edit_ok_button;
|
||||
QPushButton *edit_cancel_button;
|
||||
DowSelector *edit_dow_selector;
|
||||
EventWidget *edit_event_widget;
|
||||
std::vector<int> *edit_added_events;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#endif // EDIT_CARTEVENT_H
|
||||
|
||||
Reference in New Issue
Block a user