Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
fontfield.h
Go to the documentation of this file.
1 #ifndef FONTFIELD_H
2 #define FONTFIELD_H
3 
4 #include "combofield.h"
5 
14 class FontField : public EffectField {
15  Q_OBJECT
16 public:
20  FontField(EffectRow* parent, const QString& id);
21 
35  QString GetFontAt(double timecode);
36 
42  virtual QWidget *CreateWidget(QWidget *existing = nullptr) override;
43 
47  virtual void UpdateWidgetValue(QWidget* widget, double timecode) override;
48 
49 private:
55  QStringList font_list;
56 private slots:
65  void UpdateFromWidget(const QString& index);
66 };
67 
68 #endif // FONTFIELD_H
The FontField class.
Definition: fontfield.h:14
QStringList font_list
Internal list of fonts to add to a QComboBox when creating one in CreateWidget(). ...
Definition: fontfield.h:55
QString GetFontAt(double timecode)
Get the font family name at the given timecode.
Definition: fontfield.cpp:18
The EffectField class.
Definition: effectfield.h:56
virtual QWidget * CreateWidget(QWidget *existing=nullptr) override
Reimplementation of EffectField::CreateWidget()
Definition: fontfield.cpp:23
virtual void UpdateWidgetValue(QWidget *widget, double timecode) override
Reimplementation of EffectField::UpdateWidgetValue()
Definition: fontfield.cpp:47
void UpdateFromWidget(const QString &index)
Internal function connected to any QWidget made from CreateWidget() to update the value based on user...
Definition: fontfield.cpp:65
The EffectRow class.
Definition: effectrow.h:51
FontField(EffectRow *parent, const QString &id)
Reimplementation of EffectField::EffectField().
Definition: fontfield.cpp:10