Commit Graph

240 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
d69885df4d MovementDirection and Reference enumerators are now QFlags (using Q_DECLARE_FLAGS), as suggested by aseigo
svn path=/trunk/KDE/kdelibs/; revision=1084090
2010-02-02 13:36:23 +00:00
Bruno de Oliveira Abinader
38bf1d8725 Removed implicit enumerated animation movement direction combinations (i.e. MoveUpRight) and added support for combinations (i.e. MoveUp|MoveLeft). Currently used by RotationStacked and Slide animations, which were previously adapted to this clean design
svn path=/trunk/KDE/kdelibs/; revision=1083641
2010-02-01 18:06:01 +00:00
Bruno de Oliveira Abinader
ed5c03e6b2 Added support for animation movement direction combinations (i.e. MoveUp|MoveLeft) to Slide
svn path=/trunk/KDE/kdelibs/; revision=1083640
2010-02-01 18:02:53 +00:00
Bruno de Oliveira Abinader
cb7f6a2f2b Added support for animation movement direction combinations (i.e. MoveUp|MoveLeft) to RotationStacked
svn path=/trunk/KDE/kdelibs/; revision=1083639
2010-02-01 18:01:40 +00:00
Aaron J. Seigo
1e6e5e7469 --compileWarnings;
svn path=/trunk/KDE/kdelibs/; revision=1083237
2010-01-31 21:44:11 +00:00
Bruno de Oliveira Abinader
6086b03de5 Moved sideAngle to be a static const member
svn path=/trunk/KDE/kdelibs/; revision=1083081
2010-01-31 15:54:14 +00:00
Bruno de Oliveira Abinader
f820ea872d Fix segfault at plasma_applet_animation_example from kdeexamples
Patch-by: Andre L. V. Loureiro <loureiro.andrew@gmail.com>

svn path=/trunk/KDE/kdelibs/; revision=1082144
2010-01-29 20:36:32 +00:00
Marco Martin
54eeaa5f91 support for fade in/fade out to transparent
svn path=/trunk/KDE/kdelibs/; revision=1081537
2010-01-28 17:08:07 +00:00
Bruno de Oliveira Abinader
0c442d4834 Fixed Plasma::RotationStackedAnimation animation origin for the following cases:
- Front and back widgets have different sizes;
 - Front and back widgets changes their sizes after creating the animation;


svn path=/trunk/KDE/kdelibs/; revision=1081150
2010-01-27 20:43:56 +00:00
Igor Trindade Oliveira
586e18576b The layout now assigns to their childs the effectiveRect, which is more safe than the raw rectangle. Also fixed some minor typos.
Patch-by: Bruno Abinader <brunoabinader@gmail.com>


svn path=/trunk/KDE/kdelibs/; revision=1080692
2010-01-26 18:40:51 +00:00
Igor Trindade Oliveira
f074b75d7d updates, cleans up and finishes the remaining Plasma::RotationStackedAnimation transformations. Now every combination of animation origin ( Up, Up | Left, Up | Right, Down, Down | Left, Down | Right, Left, Right) works with the animation movement directions ( MoveUp, MoveUpLeft, MoveUpRight, MoveDown, MoveDownLeft, MoveDownRight, MoveLeft, MoveRight).
Patch by: Bruno Abinader <brunoabinader@gmail.com>

svn path=/trunk/KDE/kdelibs/; revision=1080054
2010-01-25 13:37:57 +00:00
Igor Trindade Oliveira
d42e7f8b7b SlideAnimation: add a new movement direction movement any, it is useful when the user just know where is the finish position of widget like tabbar slide animation
svn path=/trunk/KDE/kdelibs/; revision=1078733
2010-01-22 18:55:37 +00:00
Marco Martin
92c25ee0d1 behave nicely when pixmaps are changed while the animation is running
svn path=/trunk/KDE/kdelibs/; revision=1078298
2010-01-21 23:31:45 +00:00
Igor Trindade Oliveira
eb8c97dcae fixes a small bug on RotationStackedAnimation which uses a wrong delta for the back widget rotation animation angle. The back widget was rotating from 90 (0.25 * 360) degrees to 180 (0.5 * 360), but the correct rotation is from 270 (0.75 * 360) to 360 (1.00 * 360). This patch also fixes code indentation.
Patch by: Bruno Abinader <brunoabinader@gmail.com>

svn path=/trunk/KDE/kdelibs/; revision=1078228
2010-01-21 20:15:03 +00:00
Marco Martin
586df4c6ac a class to handle transitions betwen pixmap.
puhbutton port in the works too


svn path=/trunk/KDE/kdelibs/; revision=1077924
2010-01-21 07:23:18 +00:00
Adenilson Cavalcanti Da Silva
71dc3dea64 Fixing a segfault by -1 in plasma-netbook (special thanks to notmart).
svn path=/trunk/KDE/kdelibs/; revision=1075973
2010-01-17 06:05:54 +00:00
Aaron J. Seigo
5755627da7 this is now completely unecessary
svn path=/trunk/KDE/kdelibs/; revision=1073814
2010-01-12 22:31:12 +00:00
Aaron J. Seigo
18640f63e3 * kill some memory leaks
* mark appropriate ctors with explicit
* Direction -> MovementDirection so it doesn't conflict with QAbstractAnimation::Direction

svn path=/trunk/KDE/kdelibs/; revision=1073809
2010-01-12 22:24:58 +00:00
Aaron J. Seigo
1bdc28c19e AnimationDirection should be Animation::Direction ... glad i caught this before 4.4.0 was rolled!
svn path=/trunk/KDE/kdelibs/; revision=1073436
2010-01-12 09:54:42 +00:00
Aaron J. Seigo
bd94befc48 center is a more sensible default
svn path=/trunk/KDE/kdelibs/; revision=1073434
2010-01-12 09:42:07 +00:00
Aaron J. Seigo
6d71722209 declare the enumeration so scripts can get at it
svn path=/trunk/KDE/kdelibs/; revision=1073432
2010-01-12 09:40:51 +00:00
Igor Trindade Oliveira
e2cf011103 plasma animations: removing custom animation. the animations done by custom can be done adding a property and using qpropertyanimation
svn path=/trunk/KDE/kdelibs/; revision=1073191
2010-01-11 20:06:14 +00:00
Igor Trindade Oliveira
196172bc19 add custom animation in animator factory
svn path=/trunk/KDE/kdelibs/; revision=1073140
2010-01-11 17:53:35 +00:00
Igor Trindade Oliveira
a51ab88ce0 Add support to custom animations
svn path=/trunk/KDE/kdelibs/; revision=1073131
2010-01-11 17:26:36 +00:00
Marco Martin
1aac8cb293 set the proper values for the 3d vector
svn path=/trunk/KDE/kdelibs/; revision=1072233
2010-01-09 17:30:40 +00:00
Adenilson Cavalcanti Da Silva
8c356fa8c1 Making sure that recursion will not go beyond 20 levels.
svn path=/trunk/KDE/kdelibs/; revision=1070481
2010-01-05 18:55:45 +00:00
Adenilson Cavalcanti Da Silva
8fb2ea1980 Moving drawing children code to a private function and allowing it to follow
sub-children.
It will now work with uBlog plasmoid.


svn path=/trunk/KDE/kdelibs/; revision=1070458
2010-01-05 18:23:59 +00:00
Aaron J. Seigo
0337eb0ae3 missing property
svn path=/trunk/KDE/kdelibs/; revision=1070127
2010-01-04 23:06:50 +00:00
Adenilson Cavalcanti Da Silva
29365773e2 Hides the shadowfake if the animation is stopped.
svn path=/trunk/KDE/kdelibs/; revision=1070124
2010-01-04 22:56:41 +00:00
Adenilson Cavalcanti Da Silva
c2c451bbeb Checking for target widget children and painting them on the
shadow fake pixmap (pulse animation will now work on plasma FolderView
plasmoid).
To be 100% correct, it would also need to check for existance of grandchildren
(or sub-child items) but it sounds like overkill for an animation that should
run for 500ms.


svn path=/trunk/KDE/kdelibs/; revision=1070115
2010-01-04 22:27:01 +00:00
Adenilson Cavalcanti Da Silva
2d08b8a2b2 Fixing double deletion by using QWeakPointer (suggestion by Aaron Seigo).
svn path=/trunk/KDE/kdelibs/; revision=1070099
2010-01-04 21:11:02 +00:00
Adenilson Cavalcanti Da Silva
6d3b0437c6 A todo for later (fix the shadow when the widget has children).
svn path=/trunk/KDE/kdelibs/; revision=1070097
2010-01-04 21:09:59 +00:00
Andreas Hartmetz
4b305cbf84 fix include path and build
svn path=/trunk/KDE/kdelibs/; revision=1069885
2010-01-04 11:18:22 +00:00
Aaron J. Seigo
4a1849b4cd PulserShadow belongs in the animations directory
svn path=/trunk/KDE/kdelibs/; revision=1069848
2010-01-04 10:21:48 +00:00
Aaron J. Seigo
f3063c4fa9 make sure we have an m_under object before using it
svn path=/trunk/KDE/kdelibs/; revision=1069733
2010-01-04 09:23:55 +00:00
Aaron J. Seigo
8ccd1a0d9c * adapt to API
* coding style fixes

svn path=/trunk/KDE/kdelibs/; revision=1069730
2010-01-04 09:18:11 +00:00
Aaron J. Seigo
b931262030 * adapt to API changes
* don't leak the m_under object
* only paint what's necessary (the exposed rect)
* keep track of the target in PulserShadow

svn path=/trunk/KDE/kdelibs/; revision=1069729
2010-01-04 09:17:49 +00:00
Aaron J. Seigo
9f405a1425 API cleansing:
* missing const on widgetToAnimate()
* widgetToAnimation -> targetWidget to be consistent with naming in QVariantAnimation which uses targetObject
* targetWidget is not virtual; all set up can be done in the stateChange method

svn path=/trunk/KDE/kdelibs/; revision=1069728
2010-01-04 09:16:41 +00:00
John Layt
6e9943e36c krazy fixes, mostly include guards and copyright tags
svn path=/trunk/KDE/kdelibs/; revision=1066779
2009-12-27 22:16:11 +00:00
Adenilson Cavalcanti Da Silva
83c7bf0bd8 Coding style.
svn path=/trunk/KDE/kdelibs/; revision=1063258
2009-12-17 15:51:24 +00:00
Adenilson Cavalcanti Da Silva
92383665fc Fixing zoom in. I spotted this bug while using the animation in Plasma::Containment.
svn path=/trunk/KDE/kdelibs/; revision=1063085
2009-12-16 22:31:00 +00:00
Adenilson Cavalcanti Da Silva
3a550b3ef7 Reverting to use linear easing curve (it works better with newly ported
Plasma applet class).


svn path=/trunk/KDE/kdelibs/; revision=1061438
2009-12-11 18:03:15 +00:00
Igor Trindade Oliveira
feea24f09b change default zoom value
svn path=/trunk/KDE/kdelibs/; revision=1061428
2009-12-11 17:46:33 +00:00
Adenilson Cavalcanti Da Silva
6df20d182c Oops, we need to set the parent as the target animated widget
if no parent was set yet.


svn path=/trunk/KDE/kdelibs/; revision=1061402
2009-12-11 16:50:26 +00:00
Adenilson Cavalcanti Da Silva
485635f07b Experimenting with easing curves.
svn path=/trunk/KDE/kdelibs/; revision=1061361
2009-12-11 15:09:32 +00:00
Igor Trindade Oliveira
aa92a6c236 adding documentation in private attributes
svn path=/trunk/KDE/kdelibs/; revision=1060729
2009-12-09 19:28:35 +00:00
Igor Trindade Oliveira
c6eb2b7f7f adding doxygen comments in rotation stacked
svn path=/trunk/KDE/kdelibs/; revision=1060721
2009-12-09 18:48:38 +00:00
Adenilson Cavalcanti Da Silva
0a452da077 Adding doxygen comments in animation classes (part 3).
svn path=/trunk/KDE/kdelibs/; revision=1060718
2009-12-09 18:40:02 +00:00
Adenilson Cavalcanti Da Silva
411a711d2b Adding doxygen comments in animation classes (part 2).
svn path=/trunk/KDE/kdelibs/; revision=1060703
2009-12-09 18:05:34 +00:00
Adenilson Cavalcanti Da Silva
d7daecf191 Adding doxygen comments in animation classes (part 1).
svn path=/trunk/KDE/kdelibs/; revision=1060701
2009-12-09 17:56:40 +00:00
Adenilson Cavalcanti Da Silva
ca35755ac0 Following the same function convention call in the remaining classes.
TODO: check which classes it makes sense to actually allow the user
to set the easing curve.


svn path=/trunk/KDE/kdelibs/; revision=1060689
2009-12-09 16:34:43 +00:00
Adenilson Cavalcanti Da Silva
5a721b9bad Creating a QEasingCurve object in AnimationPrivate and allowing access to
it to all Animation derived classes.

The idea is that the user can select the easing curve (if the it makes sense
in the animation).


svn path=/trunk/KDE/kdelibs/; revision=1060687
2009-12-09 16:28:27 +00:00
Richard Dale
d960f3fcbb * Add 'PLASMA_' to the header guard macro name
* Replace '#' in the first character of a comment line with '/'

svn path=/trunk/KDE/kdelibs/; revision=1060666
2009-12-09 15:24:06 +00:00
Igor Trindade Oliveira
e5e667c001 clean up: remove unused declaration
svn path=/trunk/KDE/kdelibs/; revision=1060659
2009-12-09 14:36:19 +00:00
Igor Trindade Oliveira
dc184742b9 "remove private class: the include main already is private"
svn path=/trunk/KDE/kdelibs/; revision=1060658
2009-12-09 14:35:27 +00:00
Igor Trindade Oliveira
9e736804c9 add support for easing curves
svn path=/trunk/KDE/kdelibs/; revision=1060395
2009-12-08 19:29:03 +00:00
Aaron J. Seigo
bc7ac9cd23 geo -> geometry (let's not be lazy :)
svn path=/trunk/KDE/kdelibs/; revision=1060136
2009-12-08 09:22:51 +00:00
Adenilson Cavalcanti Da Silva
df6a9b7a36 Renaming stackedrotation header file.
svn path=/trunk/KDE/kdelibs/; revision=1060049
2009-12-07 23:26:24 +00:00
Adenilson Cavalcanti Da Silva
465fe34d77 Moved all variables from a pimple to data members in stackedrotation
(saves one new/delete operation).

svn path=/trunk/KDE/kdelibs/; revision=1060048
2009-12-07 23:22:47 +00:00
Adenilson Cavalcanti Da Silva
6afab7d906 Moved all variables from a pimple to data members in pulse
(saves one new/delete operation).


svn path=/trunk/KDE/kdelibs/; revision=1060043
2009-12-07 22:55:56 +00:00
Adenilson Cavalcanti Da Silva
78be5fd3fc Removing debugging message.
svn path=/trunk/KDE/kdelibs/; revision=1060032
2009-12-07 22:38:52 +00:00
Adenilson Cavalcanti Da Silva
c25f50edba Cleaning up the code.
svn path=/trunk/KDE/kdelibs/; revision=1060028
2009-12-07 22:36:30 +00:00
Adenilson Cavalcanti Da Silva
215712e662 Removing unused code.
svn path=/trunk/KDE/kdelibs/; revision=1059976
2009-12-07 20:24:20 +00:00
Adenilson Cavalcanti Da Silva
6ecaf4ed67 Finished porting pulse animation to new Animation design.
svn path=/trunk/KDE/kdelibs/; revision=1059975
2009-12-07 20:21:50 +00:00
Igor Trindade Oliveira
22c6f8e31b fix zoom animation: change transform origin point to widget center
svn path=/trunk/KDE/kdelibs/; revision=1059966
2009-12-07 19:55:22 +00:00
Adenilson Cavalcanti Da Silva
b6f4d1a518 Using stored scale factor.
svn path=/trunk/KDE/kdelibs/; revision=1059939
2009-12-07 18:21:33 +00:00
Adenilson Cavalcanti Da Silva
7a4193fa2a Reusing duration property from base class and storing target animation
scale factor.


svn path=/trunk/KDE/kdelibs/; revision=1059938
2009-12-07 18:16:33 +00:00
Adenilson Cavalcanti Da Silva
0e503cbc5f Some more cleanups.
svn path=/trunk/KDE/kdelibs/; revision=1059909
2009-12-07 16:41:40 +00:00
Adenilson Cavalcanti Da Silva
f4ff321b7a It is being quite some time that pulse doesn't use a geometry
animation.


svn path=/trunk/KDE/kdelibs/; revision=1059907
2009-12-07 16:38:34 +00:00
Adenilson Cavalcanti Da Silva
831bd97941 Making pulse animation work again with new design. It is still
using an internal animation group (got to try to fix this later).


svn path=/trunk/KDE/kdelibs/; revision=1059906
2009-12-07 16:37:23 +00:00
Aaron J. Seigo
9d8e2eec4d don't need our own anim group anymore
svn path=/trunk/KDE/kdelibs/; revision=1059422
2009-12-06 15:42:41 +00:00
Aaron J. Seigo
51bd953798 coding style, simplify a bit
svn path=/trunk/KDE/kdelibs/; revision=1059412
2009-12-06 15:24:09 +00:00
Igor Trindade Oliveira
6cc357bb94 add zoom animation to new animation api
svn path=/trunk/KDE/kdelibs/; revision=1059117
2009-12-05 20:23:13 +00:00
Igor Trindade Oliveira
5ef6a48563 remove unused reference
svn path=/trunk/KDE/kdelibs/; revision=1059094
2009-12-05 20:04:27 +00:00
Igor Trindade Oliveira
49e27b8396 add GeoAnimation to new animation api
svn path=/trunk/KDE/kdelibs/; revision=1059087
2009-12-05 19:54:27 +00:00
Marco Martin
ee20613e3d support rewind
svn path=/trunk/KDE/kdelibs/; revision=1059028
2009-12-05 15:25:44 +00:00
Igor Trindade Oliveira
4be6442625 remove unused method
svn path=/trunk/KDE/kdelibs/; revision=1059024
2009-12-05 15:06:41 +00:00
Igor Trindade Oliveira
2746410f5c make rotationstacked work as expected
svn path=/trunk/KDE/kdelibs/; revision=1059023
2009-12-05 14:54:06 +00:00
Marco Martin
5001706078 growanimation ported
svn path=/trunk/KDE/kdelibs/; revision=1058993
2009-12-05 13:53:25 +00:00
Marco Martin
6a91177566 setWidgetToanimate unneeded now
svn path=/trunk/KDE/kdelibs/; revision=1058992
2009-12-05 13:53:03 +00:00
Marco Martin
b5f3280566 remove the fixme, qt docs have been fixed now
svn path=/trunk/KDE/kdelibs/; revision=1058966
2009-12-05 12:50:41 +00:00
Marco Martin
6fbd8b8c63 remove the unused start
svn path=/trunk/KDE/kdelibs/; revision=1058952
2009-12-05 12:15:18 +00:00
Marco Martin
adacf85c0d update signature names
svn path=/trunk/KDE/kdelibs/; revision=1058950
2009-12-05 12:09:42 +00:00
Marco Martin
9b0eb0538d now slide works as expected, important issue to investigate:
updateState(QAbstractAnimation::State oldState, QAbstractAnimation::State newState)
appears to have oldState and NewState swapped

svn path=/trunk/KDE/kdelibs/; revision=1058948
2009-12-05 12:08:08 +00:00
Marco Martin
ce6aea63c8 migrated the slide animation.
still some problems tough with the test plasmoid

svn path=/trunk/KDE/kdelibs/; revision=1058686
2009-12-04 23:00:05 +00:00
Igor Trindade Oliveira
61adef1780 port rotationanimation to new animation design: remove render and qpropertyanimation
svn path=/trunk/KDE/kdelibs/; revision=1058636
2009-12-04 20:49:09 +00:00
Igor Trindade Oliveira
d6ce82052f fix bug in animationgroup(it would be removed?) make it works well with rotation
svn path=/trunk/KDE/kdelibs/; revision=1058634
2009-12-04 20:44:44 +00:00
Aaron J. Seigo
163a2d9908 remove unimplemeneted methods
svn path=/trunk/KDE/kdelibs/; revision=1058601
2009-12-04 19:29:38 +00:00
Aaron J. Seigo
358a456a9d no need for pause now that Plasma::Animator isn't a factory for QAbAnim but IsA QAbAnim (with Plasma::Animator being the only factory)
svn path=/trunk/KDE/kdelibs/; revision=1058597
2009-12-04 19:16:46 +00:00
Igor Trindade Oliveira
daad380026 revert fade animation to revision: 1058158 and fix it: Qt 4.6 changes updateState arguments newState and oldState
svn path=/trunk/KDE/kdelibs/; revision=1058592
2009-12-04 19:06:01 +00:00
Aaron J. Seigo
8f4880f66b well, that becomes rather simple, now doesn't it?
svn path=/trunk/KDE/kdelibs/; revision=1058582
2009-12-04 18:51:02 +00:00
Igor Trindade Oliveira
68e65235bc Oops .. fix logic inversion added in last commit
svn path=/trunk/KDE/kdelibs/; revision=1058575
2009-12-04 18:15:59 +00:00
Igor Trindade Oliveira
7a39167564 fix: change qpropertyanimation start and end value when start and target values in fade animation changes
svn path=/trunk/KDE/kdelibs/; revision=1058569
2009-12-04 17:46:45 +00:00
Marco Martin
bb94c31546 last bit of isVisible() removed
svn path=/trunk/KDE/kdelibs/; revision=1058565
2009-12-04 17:28:35 +00:00
Igor Trindade Oliveira
6d360fd501 ops reverting ... my fault
svn path=/trunk/KDE/kdelibs/; revision=1058528
2009-12-04 16:06:05 +00:00
Igor Trindade Oliveira
1e06025000 make fade animation works again using qpropertyanimation, when added in a group use the same group timer
svn path=/trunk/KDE/kdelibs/; revision=1058490
2009-12-04 14:56:19 +00:00
Igor Trindade Oliveira
f10d58bb53 leak--: disconnect signal
svn path=/trunk/KDE/kdelibs/; revision=1058175
2009-12-04 02:46:30 +00:00
Aaron J. Seigo
a1b48efa16 port fade to the new api; much simpler and doesn't use a QPropertyAnimation (the two are related ;)
svn path=/trunk/KDE/kdelibs/; revision=1058158
2009-12-04 01:14:23 +00:00
Aaron J. Seigo
edc7191176 * don't duplicate what QAbstractAnimation already does for us
* don't emit finished() multiple times
* start() is not virtual (which is why it wasn't getting called sometimes!), use updateState; also gets rid of the dirty flag hack

svn path=/trunk/KDE/kdelibs/; revision=1058157
2009-12-04 01:13:40 +00:00
Aaron J. Seigo
3efd2e6c85 * remove the obsoleted render() method (which was now empty anyways)
* don't crash if we don't have a widget when sync'ing the attributes

svn path=/trunk/KDE/kdelibs/; revision=1058155
2009-12-04 01:12:14 +00:00