CuteLogger
Fast and simple logging solution for Qt based applications
imageproducerwidget.h
1 /*
2  * Copyright (c) 2012-2020 Meltytech, LLC
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef IMAGEPRODUCERWIDGET_H
19 #define IMAGEPRODUCERWIDGET_H
20 
21 #include <QWidget>
22 #include "abstractproducerwidget.h"
23 #include "mltcontroller.h"
24 
25 namespace Ui {
26  class ImageProducerWidget;
27 }
28 
29 class ImageProducerWidget : public QWidget, public AbstractProducerWidget
30 {
31  Q_OBJECT
32 
33 public:
34  explicit ImageProducerWidget(QWidget *parent = 0);
35  ~ImageProducerWidget();
36 
37  // AbstractProducerWidget overrides
38  Mlt::Producer* newProducer(Mlt::Profile&);
39  virtual void setProducer(Mlt::Producer*);
40 
41 signals:
42  void producerChanged(Mlt::Producer*);
43  void producerReopened();
44  void modified();
45 
46 public slots:
47  void updateDuration();
48 
49 private slots:
50  void on_resetButton_clicked();
51 
52  void on_aspectNumSpinBox_valueChanged(int );
53 
54  void on_aspectDenSpinBox_valueChanged(int );
55 
56  void on_durationSpinBox_editingFinished();
57 
58  void on_sequenceCheckBox_clicked(bool checked);
59 
60  void on_repeatSpinBox_editingFinished();
61 
62  void on_defaultDurationButton_clicked();
63 
64  void on_notesTextEdit_textChanged();
65 
66  void on_menuButton_clicked();
67 
68  void on_actionCopyFullFilePath_triggered();
69 
70  void on_actionOpenFolder_triggered();
71 
72  void on_actionSetFileDate_triggered();
73 
74  void on_filenameLabel_editingFinished();
75 
76 private:
77  Ui::ImageProducerWidget *ui;
78  int m_defaultDuration;
79 
80  void reopen(Mlt::Producer* p);
81  void recreateProducer();
82 };
83 
84 #endif // IMAGEPRODUCERWIDGET_H