File indexing completed on 2025-02-02 04:11:26

0001 /*
0002  * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best>
0003  *
0004  * SPDX-License-Identifier: GPL-3.0-or-later
0005  */
0006 
0007 #ifndef ANIMATIONPROPERTIESDIALOG_H
0008 #define ANIMATIONPROPERTIESDIALOG_H
0009 
0010 #include <memory>
0011 #include <QDialog>
0012 #include <QAbstractButton>
0013 
0014 namespace glaxnimate::model { class Composition; }
0015 
0016 namespace glaxnimate::gui {
0017 
0018 class TimingDialog : public QDialog
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     TimingDialog(model::Composition* comp, QWidget* parent = nullptr);
0024     ~TimingDialog();
0025 
0026 protected:
0027     void changeEvent ( QEvent* e ) override;
0028 
0029 private Q_SLOTS:
0030     void btn_clicked(QAbstractButton* button);
0031     void changed_seconds(double s);
0032     void changed_frames(int f);
0033     void changed_fps(double fps);
0034 
0035 private:
0036     class Private;
0037     std::unique_ptr<Private> d;
0038 };
0039 
0040 } // namespace glaxnimate::gui
0041 
0042 #endif // ANIMATIONPROPERTIESDIALOG_H