Olive
texteffect.h
1 /***
2 
3  Olive - Non-Linear Video Editor
4  Copyright (C) 2019 Olive Team
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 ***/
20 
21 #ifndef TEXTEFFECT_H
22 #define TEXTEFFECT_H
23 
24 #include "project/effect.h"
25 
26 #include <QFont>
27 #include <QImage>
28 class QOpenGLTexture;
29 
30 class TextEffect : public Effect {
31  Q_OBJECT
32 public:
33  TextEffect(Clip* c, const EffectMeta *em);
34  void redraw(double timecode);
35 
36  EffectField* text_val;
37  EffectField* size_val;
38  EffectField* set_color_button;
39  EffectField* set_font_combobox;
40  EffectField* halign_field;
41  EffectField* valign_field;
42  EffectField* word_wrap_field;
43 
44  EffectField* outline_bool;
45  EffectField* outline_width;
46  EffectField* outline_color;
47 
48  EffectField* shadow_bool;
49  EffectField* shadow_distance;
50  EffectField* shadow_color;
51  EffectField* shadow_softness;
52  EffectField* shadow_opacity;
53 private slots:
54  void outline_enable(bool);
55  void shadow_enable(bool);
56  void text_edit_menu();
57  void open_text_edit();
58 private:
59  QFont font;
60 };
61 
62 #endif // TEXTEFFECT_H
Definition: effect.h:166
Definition: effect.h:47
Definition: texteffect.h:30
Definition: clip.h:53
Definition: effectfield.h:43