File indexing completed on 2024-12-22 04:40:07

0001 /*
0002     SPDX-FileCopyrightText: 2007-2009 Sergio Pistone <sergio_pistone@yahoo.com.ar>
0003     SPDX-FileCopyrightText: 2010-2022 Mladen Milinkovic <max@smoothware.net>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef SPLITSUBTITLEDIALOG_H
0009 #define SPLITSUBTITLEDIALOG_H
0010 
0011 #include "actiondialog.h"
0012 #include "core/time.h"
0013 
0014 QT_FORWARD_DECLARE_CLASS(QCheckBox)
0015 QT_FORWARD_DECLARE_CLASS(QPushButton)
0016 class TimeEdit;
0017 
0018 namespace SubtitleComposer {
0019 class SplitSubtitleDialog : public ActionDialog
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     SplitSubtitleDialog(QWidget *parent = 0);
0025 
0026     Time splitTime() const;
0027     bool shiftNewSubtitle() const;
0028 
0029     void show() override;
0030 
0031 private slots:
0032     void setSplitTimeFromVideo();
0033 
0034 private:
0035     TimeEdit *m_splitTimeEdit;
0036     QPushButton *m_splitTimeFromVideoButton;
0037     QCheckBox *m_shiftNewSubtitleCheckBox;
0038 };
0039 }
0040 #endif