CuteLogger
Fast and simple logging solution for Qt based applications
lumamixtransition.h
1 /*
2  * Copyright (c) 2014 Meltytech, LLC
3  * Author: Dan Dennedy <dan@dennedy.org>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef LUMAMIXTRANSITION_H
20 #define LUMAMIXTRANSITION_H
21 
22 #include <QWidget>
23 #include <MltProducer.h>
24 #include <MltTransition.h>
25 
26 namespace Ui {
27 class LumaMixTransition;
28 }
29 
30 class LumaMixTransition : public QWidget
31 {
32  Q_OBJECT
33 
34 public:
35  explicit LumaMixTransition(Mlt::Producer &transition, QWidget *parent = 0);
36  ~LumaMixTransition();
37 
38 private slots:
39  void on_invertCheckBox_clicked(bool checked);
40 
41  void on_softnessSlider_valueChanged(int value);
42 
43  void on_crossfadeRadioButton_clicked();
44 
45  void on_mixRadioButton_clicked();
46 
47  void on_mixSlider_valueChanged(int value);
48 
49  void on_lumaCombo_activated(int index);
50 
51 private:
52  Ui::LumaMixTransition *ui;
53  Mlt::Producer m_producer;
54 
55  Mlt::Transition* getTransition(const QString& name);
56  void updateCustomLumaLabel(Mlt::Transition &transition);
57 };
58 
59 #endif // LUMAMIXTRANSITION_H
Definition: addencodepresetdialog.h:24