File indexing completed on 2024-06-16 04:38:17

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 CHANGEFRAMERATEDIALOG_H
0009 #define CHANGEFRAMERATEDIALOG_H
0010 
0011 #include "actiondialog.h"
0012 
0013 class KComboBox;
0014 
0015 namespace SubtitleComposer {
0016 class ChangeFrameRateDialog : public ActionDialog
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     explicit ChangeFrameRateDialog(double fromFramesPerSecond, QWidget *parent = 0);
0022 
0023     double fromFramesPerSecond() const;
0024     void setFromFramesPerSecond(double framesPerSecond);
0025 
0026     double toFramesPerSecond() const;
0027     void setNewFramesPerSecond(double framesPerSecond);
0028 
0029 private slots:
0030     void onTextChanged();
0031 
0032 private:
0033     KComboBox *m_fromFramesPerSecondComboBox;
0034     KComboBox *m_toFramesPerSecondComboBox;
0035 };
0036 }
0037 #endif