#include <boolfield.h>
Signals | |
void | Toggled (bool) |
Emitted whenever the UI widget's boolean value has changed. More... | |
![]() | |
void | Changed () |
Changed signal. More... | |
void | Clicked () |
Clicked signal. More... | |
void | EnabledChanged (bool) |
Enable change state signal. More... | |
Public Member Functions | |
BoolField (EffectRow *parent, const QString &id) | |
Reimplementation of EffectField::EffectField(). More... | |
bool | GetBoolAt (double timecode) |
Get the boolean value at a given timecode. More... | |
virtual QWidget * | CreateWidget (QWidget *existing=nullptr) override |
Reimplementation of EffectField::CreateWidget() More... | |
virtual void | UpdateWidgetValue (QWidget *widget, double timecode) override |
Reimplementation of EffectField::UpdateWidgetValue() More... | |
virtual QVariant | ConvertStringToValue (const QString &s) override |
Reimplementation of EffectField::ConvertStringToValue() More... | |
virtual QString | ConvertValueToString (const QVariant &v) override |
Reimplementation of EffectField::ConvertValueToString() More... | |
![]() | |
EffectField (EffectRow *parent, const QString &i, EffectFieldType t) | |
EffectField Constructor. More... | |
EffectRow * | GetParentRow () |
Get the EffectRow that this field is a member of. More... | |
const EffectFieldType & | type () |
Get the type of data to expect from this field. More... | |
const QString & | id () |
Get the unique identifier of this field set in the constructor. More... | |
QVariant | GetValueAt (double timecode) |
Get the value of this field at a given timecode. More... | |
void | SetValueAt (double time, const QVariant &value) |
Set the value of this field at a given timecode. More... | |
double | Now () |
Get the current clip/media time. More... | |
void | PrepareDataForKeyframing (bool enabled, ComboAction *ca) |
Set up keyframing on this field. More... | |
int | GetColumnSpan () |
Get field's column span. More... | |
void | SetColumnSpan (int i) |
Set field's column span. More... | |
double | GetValidKeyframeHandlePosition (int key, bool post) |
Get the correct X position/time value of a bezier keyframe's handles. More... | |
bool | IsEnabled () |
Return whether this field is enabled or not. More... | |
void | SetEnabled (bool e) |
Set the enabled state of this field. More... | |
Private Slots | |
void | UpdateFromWidget (bool b) |
Internal function connected to any QWidget made from CreateWidget() to update the value based on user input. More... | |
Additional Inherited Members | |
![]() | |
enum | EffectFieldType { EFFECT_FIELD_DOUBLE, EFFECT_FIELD_COLOR, EFFECT_FIELD_STRING, EFFECT_FIELD_BOOL, EFFECT_FIELD_COMBO, EFFECT_FIELD_FONT, EFFECT_FIELD_FILE, EFFECT_FIELD_UI } |
The EffectFieldType enum. More... | |
![]() | |
QVariant | persistent_data_ |
Persistent data object. More... | |
QVector< EffectKeyframe > | keyframes |
Keyframe array. More... | |
The BoolField class.
An EffectField derivative the produces boolean values (true or false) and uses a checkbox as its visual representation.
BoolField::BoolField | ( | EffectRow * | parent, |
const QString & | id | ||
) |
Reimplementation of EffectField::EffectField().
|
overridevirtual |
Reimplementation of EffectField::ConvertStringToValue()
Reimplemented from EffectField.
|
overridevirtual |
Reimplementation of EffectField::ConvertValueToString()
Reimplemented from EffectField.
|
overridevirtual |
Reimplementation of EffectField::CreateWidget()
Creates and connects to a QCheckBox.
Implements EffectField.
bool BoolField::GetBoolAt | ( | double | timecode | ) |
Get the boolean value at a given timecode.
A convenience function, equivalent to GetValueAt(timecode).toBool()
timecode | The timecode to retrieve the value at |
The boolean value at this timecode
|
signal |
Emitted whenever the UI widget's boolean value has changed.
For any QCheckBox created through this field's CreateWidget() function, this signal is emitted any time the checkbox value changes (either through user intervention or keyframing). It is mostly useful for enabling/disabling/changing other UI elements based on the checked state of this field's value (e.g. enabling other fields if this field is checked).
It is NOT a reliable signal that the value has changed at all, as it is only emitted if a widget (created from CreateWidget() ) is currently active.
|
privateslot |
Internal function connected to any QWidget made from CreateWidget() to update the value based on user input.
b | The current checked state of the QWidget (QCheckBox in this case). Automatically set when this slot is connected to the QCheckBox::toggled() signal. |
|
overridevirtual |
Reimplementation of EffectField::UpdateWidgetValue()
Reimplemented from EffectField.