Olive
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 "project/effect.h"
25 
26 #include <QFont>
27 #include <QImage>
28 
29 class TextEffect : public Effect {
30  Q_OBJECT
31 public:
32  TextEffect(ClipPtr c, const EffectMeta *em);
33  void redraw(double timecode);
34 
42 
46 
52 private slots:
53  void outline_enable(bool);
54  void shadow_enable(bool);
55  void text_edit_menu();
56  void open_text_edit();
57 private:
58  QFont font;
59 };
60 
61 #endif // TEXTEFFECT_H
void text_edit_menu()
Definition: texteffect.cpp:324
EffectField * shadow_color
Definition: texteffect.h:49
TextEffect(ClipPtr c, const EffectMeta *em)
Definition: texteffect.cpp:47
EffectField * size_val
Definition: texteffect.h:36
EffectField * text_val
Definition: texteffect.h:35
Definition: effect.h:169
Definition: effect.h:50
EffectField * shadow_opacity
Definition: texteffect.h:51
void redraw(double timecode)
Definition: texteffect.cpp:180
QFont font
Definition: texteffect.h:58
std::shared_ptr< Clip > ClipPtr
Definition: cacher.h:28
void open_text_edit()
Definition: texteffect.cpp:332
EffectField * outline_bool
Definition: texteffect.h:43
EffectField * outline_color
Definition: texteffect.h:45
EffectField * shadow_distance
Definition: texteffect.h:48
Definition: texteffect.h:29
EffectField * shadow_bool
Definition: texteffect.h:47
EffectField * word_wrap_field
Definition: texteffect.h:41
EffectField * shadow_softness
Definition: texteffect.h:50
void shadow_enable(bool)
Definition: texteffect.cpp:315
void outline_enable(bool)
Definition: texteffect.cpp:342
EffectField * set_color_button
Definition: texteffect.h:37
EffectField * halign_field
Definition: texteffect.h:39
Definition: effectfield.h:43
EffectField * set_font_combobox
Definition: texteffect.h:38
EffectField * outline_width
Definition: texteffect.h:44
EffectField * valign_field
Definition: texteffect.h:40