Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
timecodeeffect.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 TIMECODEEFFECT_H
22 #define TIMECODEEFFECT_H
23 
24 #include "effects/effect.h"
25 
26 #include <QFont>
27 #include <QImage>
28 
29 class TimecodeEffect : public Effect {
30  Q_OBJECT
31 public:
32  TimecodeEffect(Clip* c, const EffectMeta *em);
33  void redraw(double timecode);
42 
43 protected:
44  virtual bool AlwaysUpdate() override;
45 
46 private:
47  QFont font;
49 };
50 
51 #endif // TIMECODEEFFECT_H
ComboField * tc_select
Definition: timecodeeffect.h:41
virtual bool AlwaysUpdate() override
Definition: timecodeeffect.cpp:141
The DoubleField class.
Definition: doublefield.h:13
DoubleField * offset_x_val
Definition: timecodeeffect.h:38
The StringField class.
Definition: stringfield.h:12
Definition: timecodeeffect.h:29
TimecodeEffect(Clip *c, const EffectMeta *em)
Definition: timecodeeffect.cpp:46
Definition: clip.h:56
DoubleField * scale_val
Definition: timecodeeffect.h:34
QFont font
Definition: timecodeeffect.h:47
StringField * prepend_text
Definition: timecodeeffect.h:40
The ColorField class.
Definition: colorfield.h:11
Definition: effect.h:52
void redraw(double timecode)
Definition: timecodeeffect.cpp:91
ColorField * color_bg_val
Definition: timecodeeffect.h:36
ColorField * color_val
Definition: timecodeeffect.h:35
DoubleField * offset_y_val
Definition: timecodeeffect.h:39
The ComboField class.
Definition: combofield.h:24
QString display_timecode
Definition: timecodeeffect.h:48
Definition: effect.h:136
DoubleField * bg_alpha
Definition: timecodeeffect.h:37