CuteLogger
Fast and simple logging solution for Qt based applications
lissajouswidget.h
1 /*
2  * Copyright (c) 2012-2018 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 LISSAJOUSWIDGET_H
19 #define LISSAJOUSWIDGET_H
20 
21 #include "abstractproducerwidget.h"
22 
23 #include <QWidget>
24 
25 namespace Mlt {
26 class Producer;
27 }
28 
29 namespace Ui {
30 class LissajousWidget;
31 }
32 
33 class LissajousWidget : public QWidget, public AbstractProducerWidget
34 {
35  Q_OBJECT
36 
37 public:
38  explicit LissajousWidget(QWidget *parent = 0);
39  ~LissajousWidget();
40 
41  // AbstractProducerWidget overrides
42  Mlt::Producer *newProducer(Mlt::Profile &);
43  Mlt::Properties getPreset() const;
44  void loadPreset(Mlt::Properties &);
45 
46 signals:
47  void producerChanged(Mlt::Producer *);
48 
49 private slots:
50  void on_xratioDial_valueChanged(int value);
51  void on_xratioSpinner_valueChanged(double arg1);
52  void on_yratioDial_valueChanged(int value);
53  void on_yratioSpinner_valueChanged(double arg1);
54  void on_preset_selected(void *p);
55  void on_preset_saveClicked();
56 
57 private:
58  Ui::LissajousWidget *ui;
59 };
60 
61 #endif // LISSAJOUSWIDGET_H