Commit Graph

488 Commits

Author SHA1 Message Date
André Wöbbeking
7aaec35dad constify url()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678187
2007-06-20 21:08:30 +00:00
Thomas Georgiou
32a450bb4d Fix coding style.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678168
2007-06-20 20:28:55 +00:00
Thomas Georgiou
c4ff3b9135 Add textChanged(QString&) signal.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678161
2007-06-20 20:12:38 +00:00
Thomas Georgiou
40c39333a1 Emit editingFinished() when enter/return is pressed.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678157
2007-06-20 19:49:31 +00:00
Thomas Georgiou
0ffa2dcc29 Emit the clicked() signal when clicked.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=678145
2007-06-20 19:13:30 +00:00
Aaron J. Seigo
fb8d5d353f * take an optional list of arguments to passs into applets
* create button applets not icon widgets on drop

honestly, not sure i like the qstringlist of argument approach, but that's what klibloader gives me

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677941
2007-06-20 08:11:59 +00:00
Aaron J. Seigo
2d0a8aa271 add a getter for the url property
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677940
2007-06-20 08:10:38 +00:00
Aaron J. Seigo
f29bc49788 comment out the debug we know is working so i can read debug from stuff that isn't
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677928
2007-06-20 07:39:04 +00:00
Aaron J. Seigo
65f98b0246 don't make the icon movable by default.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677927
2007-06-20 07:36:48 +00:00
Aaron J. Seigo
5e2b8cfd95 make applet a QGraphicsItem not a Group; as bibr explained to me on irc this evening a group is really, really a group ;) iow, the children lose all sense of identity. this causes all sorts of problems for building the sort of interfaces we are aiming for.
however, making them items makes it possible to drag children outside of their parents (c.f. the button applet) which causes another set of problems. i'll look into this tomorrow though. it's 01:00 and i was trying not to work on kde tonight.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677904
2007-06-20 06:45:08 +00:00
Aaron J. Seigo
ac1d10f987 so that people don't have to ask me how to turn on the anims =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677882
2007-06-20 06:06:47 +00:00
Aaron J. Seigo
a3b156c7d8 SVN_SILENT: some white space fixes i didn't want to mix in with the functional changes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677816
2007-06-19 23:32:04 +00:00
Aaron J. Seigo
b2da6b36ac always stop the anim, but only if we have one going on
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677807
2007-06-19 22:48:42 +00:00
Aaron J. Seigo
9fab210d65 whoops; this is the alpha channel not the pixmap itself =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677791
2007-06-19 22:06:05 +00:00
Aaron J. Seigo
059a64583d phased.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677783
2007-06-19 21:56:40 +00:00
Aaron J. Seigo
30f07bb62c add the concept of element animation. right now it only provides support for modifying a pixmap; positioning needs to be added, but this at least shows that it works(tm)
the idea is that you register an element animation and get back an id. you can associate a pixmap with that id and off you go. the item gets update() calls whenever the anim changes and you can fetch your precious little pixmap back with a call to animationResult.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677782
2007-06-19 21:56:03 +00:00
Aaron J. Seigo
f16c087846 * add element appear and disappear methods
* collapse all the frame rate methods into two (one for element anims and one for whole item anims) which take the Phase enumerations

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677781
2007-06-19 21:53:19 +00:00
Will Stephenson
4d6c186bac Warn that calling virtuals in a base constructor won't have the intended effect
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677452
2007-06-19 07:17:50 +00:00
Script Kiddy
9634f494c9 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676959
2007-06-18 05:27:57 +00:00
Aaron J. Seigo
229c60eae9 erm. yeah. that's what i *really* meant.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676882
2007-06-17 21:24:50 +00:00
Aaron J. Seigo
60a844195e * make mini buttons "click" on mouse release like a proper button
* don't click when moving (either the icon or the mini buttons)
* only show the buttons on hovered states, allowing for proper button/hover/pressed painting
* try and avoid unecessary if/else's and other codedamage
* get rid of some dead code

now it's about ready to be phased =)


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676842
2007-06-17 20:56:03 +00:00
Aaron J. Seigo
fab8953ccb * provide a Phase singleton
* use it in Corona

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676831
2007-06-17 20:05:43 +00:00
Aaron J. Seigo
1fa0feaa48 * use EaseIn for the icon button show
* show the button(s) in .2s rather than the very slow feeling .5s
* don't leak the timeline
* don't connect to the timeline signal more than once
* comment in code that is ifdef'd out anyways
* don't set the svg element for fg and bg unless it exists
* remove some dead code

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676786
2007-06-17 17:49:49 +00:00
Aaron J. Seigo
a452da7dd2 * removeData method added to DataEngine which allows one to, well, remove data from a source
* passing a null or invalid QVariant to DataSource::setData now results in the removal of the entry if it exists

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676783
2007-06-17 17:38:54 +00:00
Pino Toscano
f39618e727 include cleanup
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676613
2007-06-17 09:28:55 +00:00
Pino Toscano
251bdf9907 export, add include guard and missing includes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676612
2007-06-17 09:28:42 +00:00
Script Kiddy
025e519bbf SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676551
2007-06-17 05:52:33 +00:00
Aaron J. Seigo
0174be3330 * api docu fixes
* allow setting a default mimetype for a package

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676513
2007-06-17 01:04:59 +00:00
Aaron J. Seigo
7afda6a7f8 fix for 3rd party builds
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676510
2007-06-17 00:33:44 +00:00
Aaron J. Seigo
d6af3ab7b6 use plasma exports
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676506
2007-06-17 00:29:53 +00:00
Aaron J. Seigo
eb5522104a add the non-gui packaging files to libplasma
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676505
2007-06-17 00:25:16 +00:00
Pino Toscano
bbabb1fea4 headers cleanup
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676483
2007-06-16 23:38:56 +00:00
Riccardo Iaconelli
7a70eac7fe Much nicer icons.
Implemented the concept for icons from David Vignoni (screencast coming...).
Context menu now shows "Plasma".

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676455
2007-06-16 22:35:31 +00:00
Tim Beaulen
5a3e39e685 Make workspace build. The plasma headerfiles could not be found.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676197
2007-06-16 09:10:59 +00:00
Aaron J. Seigo
37869e0326 move the libraries that will be kept into libs/ ( was lib/)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676120
2007-06-16 04:16:17 +00:00
Aaron J. Seigo
bbea8b07a0 also check to see if kurl knows about this stuff
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=675295
2007-06-13 22:11:49 +00:00
Laurent Montel
3d126ae09b Fix include
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=675269
2007-06-13 21:26:08 +00:00
Script Kiddy
2ba6e382a0 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=675092
2007-06-13 17:57:01 +00:00
Aaron J. Seigo
029b2e8a54 API consistency fixes; all methods now use "Source" to mean "DataSource"
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=674784
2007-06-13 04:56:49 +00:00
Script Kiddy
d349f2bc5c SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=674497
2007-06-12 13:36:14 +00:00
Will Stephenson
f618eaf0b6 Correct api docs
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=674144
2007-06-11 21:11:22 +00:00
Aaron J. Seigo
5957c71110 naming consistency
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=674143
2007-06-11 21:10:44 +00:00
Aaron J. Seigo
13a83e87f8 * add a set of "completed" methods to the animations so the animator can clean up
* instead of passing in the frame, pass in the % completed in a qreal (0.0 - 1.0), allowing the Animator to remain innocent of animation time elapse
* call the Animator immediately with 0% to allow it to start immediately and do setup

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673398
2007-06-10 07:09:07 +00:00
Aaron J. Seigo
2360b4b210 * actually start the timeline (durr!)
* open up the possiblity to change the CurveShape depending on the effect

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673396
2007-06-10 06:25:26 +00:00
Aaron J. Seigo
3b8fc737e4 * add a Phase object to the corona; start using it.
TODO:
* use all the Phase transitions properly; this implies reworking the remove applet mechanism completely
* consider sharing Phase amongst all Coronas? should it be a singleton?

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673395
2007-06-10 06:24:42 +00:00
Aaron J. Seigo
eb330b2a79 * cleanup includes for external usage
* include KGenericFactory so subclasses don't have to
* move the plugin macro to Animator where it belongs

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673394
2007-06-10 06:02:38 +00:00
Aaron J. Seigo
6900270998 fix includes for external usage
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673393
2007-06-10 06:01:15 +00:00
Aaron J. Seigo
0fbe1e47c1 * count the number of objects connected to each datasource
* data sources now signal when the are unused
* listen to the unused signal for sources created on demand via dataSourceRequested

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673389
2007-06-10 05:39:27 +00:00
Script Kiddy
922aada9ab SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673377
2007-06-10 04:45:40 +00:00
Aaron J. Seigo
b86f3f6209 when a data source is requested but does not exist, allow the engine the opportunity to add it by reimplementing dataSourceRequested(const QString&). this makes it trivial to add timezones to the time engine, rss feeds to an rss engine, weather stations to a weather engine or hardware data to solid engines.
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673373
2007-06-10 04:03:50 +00:00