Commit Graph

2891 Commits

Author SHA1 Message Date
Maurycy Liebner
2960a940e2 Implement validator for BoxTargetProperty. Use the validator for
BlendEffect for clip path (allow only paths).
2020-02-17 14:17:35 +01:00
Maurycy Liebner
f74f44bf5c Remove unused Animator::anim_updateAfterShifted. 2020-02-17 13:09:52 +01:00
Maurycy Liebner
e4d74a17e7 Set inherited frame shift for objects added to the ContainerBox. 2020-02-17 13:08:31 +01:00
Maurycy Liebner
6b7690af88 Fix frame shift for expressions. 2020-02-17 13:01:30 +01:00
Maurycy Liebner
862eee11d6 Use ContainerBox::mContained instead of ContainerBox::mContainedBoxes
where relevant.
2020-02-17 12:29:07 +01:00
Maurycy Liebner
26430f0241 Fix MoveBlendEffect negative z-index. (-1 behaved like -2) 2020-02-17 11:46:56 +01:00
Maurycy Liebner
68a4ad9fdb Clean up BoxSingleWidget promote to layer target group. 2020-02-17 11:46:26 +01:00
Maurycy Liebner
f22c600bde Disable wheelEvents for combo boxes in the objects list, enable only
when ctrl pressed.
2020-02-17 11:30:04 +01:00
Maurycy Liebner
46829865d3 Allow ComboBoxProperty as GUI property for ComplexAnimators. 2020-02-17 11:03:30 +01:00
Maurycy Liebner
920cdf2566 Add MoveBlendEffect z-index slider to the base ui. 2020-02-17 11:03:06 +01:00
Maurycy Liebner
1040a6ad83 Use esc to cancel QDoubleSlider transform. Fix disappearing cursor. 2020-02-16 21:49:24 +01:00
Maurycy Liebner
dca4a2cb49 Fix value change for BlendEffect z-index. 2020-02-16 21:04:49 +01:00
Maurycy Liebner
85cb20a23f Use mono font in ExpressionEditor. 2020-02-16 20:36:46 +01:00
Maurycy Liebner
9247e5247f Small VideoFrameLoader cleanup. 2020-02-16 19:57:04 +01:00
Maurycy Liebner
69917e1313 Fix video decoding for frames that were optimized out (usePrevious ==
true).
2020-02-16 18:54:00 +01:00
Maurycy Liebner
8db3e9a67b Split SingleSound into eIndependentSound and eVideoSound. 2020-02-16 16:53:13 +01:00
Maurycy Liebner
19f9c78b54 Move SWT_isLinkBox to eBoxOrSound. Move SWT_isLayerBox/SWT_isGroupBox to
BoundingBox.
2020-02-16 12:50:11 +01:00
Maurycy Liebner
8c7bd3e3cc Remove most of SWT_isX functions. 2020-02-15 22:30:33 +01:00
Maurycy Liebner
940297834b Use enve_cast<X*> instead of SWT_isX. 2020-02-15 21:02:52 +01:00
Maurycy Liebner
f7624d3be1 Improve and use enve::cast. 2020-02-15 18:03:08 +01:00
Maurycy Liebner
8bf0f84d27 Implement simplified virtual-function-based casting method for objects
of SingleWidgetTarget derived classes.

Execution time:
dynamic_cast : 1.00
qobject_cast : 0.33
virtual_cast : 0.19
2020-02-15 16:11:43 +01:00
Maurycy Liebner
a9997413ae Fix contained Objects write, skip BlendEffectBoxShadow. 2020-02-15 11:55:54 +01:00
Maurycy Liebner
573ee97a65 Fix path color indicator ellipse position. 2020-02-15 11:38:48 +01:00
Maurycy Liebner
e6987a1a8f Change BoxSingleWidget visibility after setting the target to avoid
flicker.
2020-02-15 11:12:37 +01:00
Maurycy Liebner
255dc6771a Use BlendEffectBoxShadow to change visibility for BlendEffects. 2020-02-15 10:58:10 +01:00
Maurycy Liebner
e5dc89a2af Don't use BlendEffects when they are marked as hidden. 2020-02-15 10:57:44 +01:00
Maurycy Liebner
6691330dd7 BlendEffectBoxShadow improvements. 2020-02-14 22:26:15 +01:00
Maurycy Liebner
6de73a64d5 Initial BlendEffectBoxShadow implementation. 2020-02-14 19:13:26 +01:00
Maurycy Liebner
05ccebf871 Use dummy function for DynamicComplexAnimator TWriteType and use
function references instead of pointers to fix the annoying 'the address
of TWriteType will never be null'.
2020-02-14 14:34:48 +01:00
Maurycy Liebner
241e41a854 Fix /home/ailuropoda/.enve/src/core/conncontextobjlist.h:117: warning:
comparison between signed and unsigned integer expressions [-Wsign-
compare].
2020-02-14 14:33:00 +01:00
Maurycy Liebner
d3b08d02c0 Use qobject_cast instead of SWT_isQrealAnimator. 2020-02-14 13:49:27 +01:00
Maurycy Liebner
28763bda22 Remove SWT_isPathEffect and SWT_isPathEffectCollection. 2020-02-14 13:40:36 +01:00
Maurycy Liebner
0260d6ae33 Use qobject_cast instead of SWT_isAnimator. 2020-02-14 13:38:28 +01:00
Maurycy Liebner
3a72c1e2ae Remove SWT_isTextEffect and SWT_isTextEffectCollection. 2020-02-14 13:10:42 +01:00
Maurycy Liebner
4ba2efd87d Use qobject_cast instead of SWT_isRasterEffect and
SWT_isRasterEffectCollection.
2020-02-14 13:09:35 +01:00
Maurycy Liebner
188b391365 Reimplement BlendEffect as a eEffect derived class. 2020-02-14 12:39:51 +01:00
Maurycy Liebner
edfddb80e3 Move SWT_isTextEffect from eEffect to TextEffect. 2020-02-14 12:26:54 +01:00
Maurycy Liebner
119678488a Allow undo/redo for InternalLinkingGroupBoxes group/layer switch. 2020-02-14 12:15:21 +01:00
Maurycy Liebner
3107c2ab49 Fix tracking of Boxes with Blend Efffects. 2020-02-14 12:03:12 +01:00
Maurycy Liebner
29e25505ee Fix switching between group/layer for InternalLinkGroupBox. 2020-02-14 11:56:51 +01:00
Maurycy Liebner
4fcd42afff Add Blend Effect support to Links. 2020-02-13 21:32:06 +01:00
Maurycy Liebner
2d443b9c8e Do not hold Linking Box reference in the target box. 2020-02-13 21:06:43 +01:00
Maurycy Liebner
66dd93858a Decide whether Linking Box is enclosed in another Linking Box at
construction time.
2020-02-13 20:09:12 +01:00
Maurycy Liebner
96328337db Reimplement InternalLinkBox and InternalLinkGroupBox as
InternalLinkBoxBase derived classes.
2020-02-13 18:06:46 +01:00
Maurycy Liebner
e4ee33fe8c Remove duplicate calls to getLinkTarget in InternalLinkBox. 2020-02-13 17:26:19 +01:00
Maurycy Liebner
e4e74db97e Do not call getLinkTarget multiple times in InternalLinkGroupBox. 2020-02-13 17:17:24 +01:00
Maurycy Liebner
a8f1135012 Add Promote to Layer button to inform users. 2020-02-12 20:25:34 +01:00
Maurycy Liebner
aa992eb410 Disable/enable Blend Effects when switching between Groups/Layers. 2020-02-12 18:56:17 +01:00
Maurycy Liebner
ec751f59d5 Update after enabling/disabling Blend Effects. 2020-02-12 13:23:58 +01:00
Maurycy Liebner
284de57a45 Do not use blend effects when disabled. 2020-02-11 15:52:26 +01:00