Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
texteffect.h
Go to the documentation of this file.
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 "effects/effect.h"
25 
26 #include <QFont>
27 #include <QImage>
28 
29 class TextEffect : public Effect {
30  Q_OBJECT
31 public:
32  TextEffect(Clip* c, const EffectMeta *em);
33  void redraw(double timecode);
34 private slots:
35  void outline_enable(bool);
36  void shadow_enable(bool);
37 private:
38  QFont font;
39 
50 
54 
61 
62 };
63 
64 #endif // TEXTEFFECT_H
StringField * text_val
Definition: texteffect.h:40
ComboField * valign_field
Definition: texteffect.h:45
void redraw(double timecode)
Definition: texteffect.cpp:158
BoolField * shadow_bool
Definition: texteffect.h:55
DoubleField * outline_width
Definition: texteffect.h:52
The DoubleField class.
Definition: doublefield.h:13
The StringField class.
Definition: stringfield.h:12
FontField * set_font_combobox
Definition: texteffect.h:43
DoubleField * shadow_angle
Definition: texteffect.h:56
DoubleField * position_y
Definition: texteffect.h:49
The FontField class.
Definition: fontfield.h:14
DoubleField * position_x
Definition: texteffect.h:48
DoubleField * shadow_softness
Definition: texteffect.h:59
Definition: clip.h:56
ColorField * set_color_button
Definition: texteffect.h:42
ColorField * outline_color
Definition: texteffect.h:53
BoolField * word_wrap_field
Definition: texteffect.h:46
The ColorField class.
Definition: colorfield.h:11
void outline_enable(bool)
Definition: texteffect.cpp:313
BoolField * outline_bool
Definition: texteffect.h:51
Definition: effect.h:52
DoubleField * shadow_opacity
Definition: texteffect.h:60
TextEffect(Clip *c, const EffectMeta *em)
Definition: texteffect.cpp:46
DoubleField * size_val
Definition: texteffect.h:41
Definition: texteffect.h:29
void shadow_enable(bool)
Definition: texteffect.cpp:305
ColorField * shadow_color
Definition: texteffect.h:58
DoubleField * shadow_distance
Definition: texteffect.h:57
QFont font
Definition: texteffect.h:38
DoubleField * padding_field
Definition: texteffect.h:47
The BoolField class.
Definition: boolfield.h:11
ComboField * halign_field
Definition: texteffect.h:44
The ComboField class.
Definition: combofield.h:24
Definition: effect.h:136