Commit Graph

2823 Commits

Author SHA1 Message Date
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
Maurycy Liebner
bed3ec4fc5 Blend Effects/Custom Properties disable/enable undo/redo. 2020-02-11 15:47:26 +01:00
Maurycy Liebner
82b8c70853 Fix BoxTargetProperty target clearing, after the target was deleted. 2020-02-11 15:38:46 +01:00
Maurycy Liebner
3cf017b4cb Blend effect render improvements. 2020-02-11 15:18:16 +01:00
Maurycy Liebner
be8b126174 Implement TargetedBlendEffect and move the default BlendEffect
implementation to the MoveBlendEffect.
2020-02-10 17:37:37 +01:00
Maurycy Liebner
b245a718a3 Initial BlendEffect implementation. 2020-02-10 13:03:22 +01:00
Maurycy Liebner
22e049090e MainWindow translation support. 2020-02-07 11:42:20 +01:00
Maurycy Liebner
3f5947efd9 Change sculpt mode cursor. Add antialiasing. 2020-02-06 17:35:37 +01:00
Maurycy Liebner
0a15b3f548 Pause audio when pausing preview. 2020-02-06 15:00:10 +01:00
Maurycy Liebner
8f7ef5f6a3 Add Right Mouse Button canvas translation. Closes #83. 2020-02-06 13:52:27 +01:00
Maurycy Liebner
c3bc43f0e6 Seek audio one second behind. Mp3 seems to give invalid samples after
seeking. Closes #84.
2020-02-06 13:12:28 +01:00
Maurycy Liebner
6d15319f09 Make sure audio data is not underfed to QAudioOutput. 2020-02-05 22:13:39 +01:00
Maurycy Liebner
eb10b8c4c9 Fix updating ExpressionSource after source removed. 2020-02-05 12:09:33 +01:00
Maurycy Liebner
ea64750846 Should SVG import for paths default to no paint? 2020-02-04 17:41:12 +01:00
Maurycy Liebner
2df1df8655 Fix expressions autocomplete after '.'. 2020-02-04 16:13:15 +01:00
Maurycy Liebner
972b25b05a Implement Custom Properties. 2020-02-04 15:56:53 +01:00
Maurycy Liebner
5d2ff1164b Remove ContainerBox::firstDescendantWithName and
ContainerBox::firstContainedWithName.
2020-02-04 13:31:06 +01:00
Maurycy Liebner
c70bca7d64 Fix centering canvas with numpad 0. 2020-02-04 13:01:37 +01:00
Maurycy Liebner
547b722d7d Highlight variables, variables completer. 2020-02-04 13:01:14 +01:00