Rivendellaudio/rdairplay/edit_event.h
Fred Gleason 22a2fd2f9c 2021-08-11 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'SYSTEM.TIME_FORMAT' field from the database.
	* Added a 'SYSTEM.SHOW_TWELVE_HOUR_TIME' field to the database.
	* Incremented the database version 352.
	* Added 'RDSystem::showTwelveHourTime()' and
	'RDSystem::setShowTwelveHourTime()' methods.
	* Refactored 'RDTimeEdit' to support 12 hour time format.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
2021-08-11 11:14:06 -04:00

87 lines
2.2 KiB
C++

// edit_event.h
//
// Event Editor for RDAirPlay
//
// (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_EVENT_H
#define EDIT_EVENT_H
#include <qbuttongroup.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qgroupbox.h>
#include <qradiobutton.h>
#include <qtextedit.h>
#include <rdcueedit.h>
#include <rddialog.h>
#include <rdlogplay.h>
class EditEvent : public RDDialog
{
Q_OBJECT
public:
EditEvent(RDLogPlay *log,QWidget *parent=0);
~EditEvent();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
public slots:
int exec(int line);
private slots:
void timeChangedData(const QTime &);
void timeToggledData(bool state);
void graceClickedData(int id);
void okData();
void cancelData();
protected:
void resizeEvent(QResizeEvent *e);
void closeEvent(QCloseEvent *e);
private:
RDLogPlay *edit_log;
RDLogLine *edit_logline;
int edit_line;
RDTimeEdit *edit_time_edit;
bool edit_time_changed;
QCheckBox *edit_timetype_box;
QLabel *edit_timetype_label;
QGroupBox *edit_grace_group;
QButtonGroup *edit_grace_bgroup;
RDTimeEdit *edit_grace_edit;
QLabel *edit_transtype_label;
QComboBox *edit_transtype_box;
QCheckBox *edit_overlap_box;
QLabel *edit_overlap_label;
RDCueEdit *edit_cue_edit;
bool edit_using_cue;
QFont normal_font;
QLabel *edit_cart_notes_label;
QTextEdit *edit_cart_notes_text;
QPushButton *edit_ok_button;
QPushButton *edit_cancel_button;
QLabel *edit_horizrule_label;
int edit_width;
int edit_height;
};
#endif // EDIT_EVENT_H