CuteLogger
Fast and simple logging solution for Qt based applications
imageproducerwidget.h
1 /*
2  * Copyright (c) 2012-2024 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 "abstractproducerwidget.h"
22 
23 #include <QWidget>
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(bool play);
44  void modified();
45  void showInFiles(QString);
46 
47 public slots:
48  void updateDuration();
49  void rename();
50 
51 private slots:
52  void on_resetButton_clicked();
53 
54  void on_aspectNumSpinBox_valueChanged(int);
55 
56  void on_aspectDenSpinBox_valueChanged(int);
57 
58  void on_durationSpinBox_editingFinished();
59 
60  void on_sequenceCheckBox_clicked(bool checked);
61 
62  void on_repeatSpinBox_editingFinished();
63 
64  void on_defaultDurationButton_clicked();
65 
66  void on_notesTextEdit_textChanged();
67 
68  void on_menuButton_clicked();
69 
70  void on_actionCopyFullFilePath_triggered();
71 
72  void on_actionOpenFolder_triggered();
73 
74  void on_actionSetFileDate_triggered();
75 
76  void on_filenameLabel_editingFinished();
77 
78  void on_actionDisableProxy_triggered(bool checked);
79 
80  void on_actionMakeProxy_triggered();
81 
82  void on_actionDeleteProxy_triggered();
83 
84  void on_actionCopyHashCode_triggered();
85 
86  void on_proxyButton_clicked();
87 
88  void on_actionShowInFiles_triggered();
89 
90 private:
91  Ui::ImageProducerWidget *ui;
92  int m_defaultDuration;
93 
94  void reopen(Mlt::Producer *p);
95  void recreateProducer();
96 };
97 
98 #endif // IMAGEPRODUCERWIDGET_H