Commit Graph

6795 Commits

Author SHA1 Message Date
Chani Armitage
9d452dc2ea a basic plugin skeleton
this is based off the wallpaper plugin. lots of copy&paste happened. the
dataengine code is still in there, just in case some plugin wants it
someday...

svn path=/trunk/KDE/kdelibs/; revision=1012635
2009-08-17 22:30:29 +00:00
Marco Martin
c67decb4d9 fade out the end of the text when there is not enough room (and wordwrap
is off)

svn path=/trunk/KDE/kdelibs/; revision=1012310
2009-08-17 12:24:33 +00:00
Marco Martin
8e3cd5be72 backport setorientation fix
svn path=/branches/KDE/4.3/kdelibs/; revision=1012111
2009-08-16 20:16:28 +00:00
Marco Martin
bd352af269 resize at the hint when the orientation is set. useful when it's not in
a layout
BUG:203908

svn path=/trunk/KDE/kdelibs/; revision=1012110
2009-08-16 20:15:25 +00:00
Script Kiddy
fb79ff6b93 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1011877
2009-08-16 09:28:19 +00:00
Marco Martin
afad9ce8a2 take the proper elements
svn path=/trunk/KDE/kdelibs/; revision=1011453
2009-08-14 17:26:15 +00:00
Script Kiddy
171aafd667 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1011289
2009-08-14 09:27:34 +00:00
Script Kiddy
7c1aca184c SVN_SILENT made messages (.desktop file)
svn path=/branches/KDE/4.3/kdelibs/; revision=1011221
2009-08-14 03:18:42 +00:00
Script Kiddy
6f55526efd SVN_SILENT made messages (.desktop file)
svn path=/branches/KDE/4.3/kdelibs/; revision=1010637
2009-08-13 03:15:41 +00:00
Script Kiddy
1b065ce809 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1009964
2009-08-11 10:30:20 +00:00
Script Kiddy
edce038ff3 SVN_SILENT made messages (.desktop file)
svn path=/branches/KDE/4.3/kdelibs/; revision=1009871
2009-08-11 03:16:01 +00:00
Script Kiddy
ce457470e8 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1009533
2009-08-10 09:17:50 +00:00
David Jarvie
c2482beebe Minor apidox corrections
svn path=/branches/KDE/4.3/kdelibs/; revision=1009444
2009-08-10 01:03:53 +00:00
Sebastian Kügler
5ea600487a Make dropping remote content onto Plasma work
The idea is that you drop a file from a webpage, or basically a URL onto Plasma and Plasma creates a suitable applet to display this URL. For example an image frame for picture, or a previewer for pdf files. Downloading the data itself (and possibly saving it) is left to the applets. The mimetype needs to be retrieved as it cannot be determined from the URL.

The code pathes I've changed or added are, roughly:
- "something" is dropped onto Plasma
- if it's a remote URL, we don't know the mimetype of the object behind the URL yet
- a KIO::TransferJob is used to retrieve the mimetype asynchronously, and will call back
- we open a QMenu that says "Fetching file type..."
- If the user closes the menu while the mimetype is being retrieved, we will open a new one
- When the TransferJob calls back, and we have our mimetype, we offer a list of applets suitable for this kind of content
- If the user chooses to create an applet, we put the transfer job on hold to make it available for recycling by the applet
- If the user dismisses the offering, we kill the job

Thanks to marco for reviewing and everybody else for the input :)

Next steps are making some more applets work with this.

CCMAIL:plasma-devel@kde.org


svn path=/trunk/KDE/kdelibs/; revision=1009004
2009-08-08 22:01:16 +00:00
Marco Martin
57494bd355 backport: don't draw the rectangle if there is no room for text
svn path=/branches/KDE/4.3/kdelibs/; revision=1008831
2009-08-08 13:12:29 +00:00
Marco Martin
1fe4e538f0 don't bother to draw the rect if the text bounding rect is empty
svn path=/trunk/KDE/kdelibs/; revision=1008830
2009-08-08 13:10:37 +00:00
Marco Martin
32ac2f11fb when an applet is in another applet return a constrained formfactor if
the parent applet is too little
popupapplet uses the parent size insted of the containment to decide the
switch between full and popup, in all normal cases parent is the
containment, except for the ugly applet in applet cases

svn path=/trunk/KDE/kdelibs/; revision=1008775
2009-08-08 11:34:49 +00:00
Aaron J. Seigo
3421342f5e correct @since
svn path=/trunk/KDE/kdelibs/; revision=1008124
2009-08-06 22:50:29 +00:00
Aaron J. Seigo
7e39818ee2 QDebug is not marked as re-entrant or thread safe and seems to cause crashses for some when used from the wallpaper rendering threads, so let's just remove t
hose lines :)
CCBUG:202538

svn path=/branches/KDE/4.3/kdelibs/; revision=1007068
2009-08-05 04:49:56 +00:00
Aaron J. Seigo
959e54961e QDebug is not marked as re-entrant or thread safe and seems to cause crashses for some when used from the wallpaper rendering threads, so let's just remove those lines :)
BUG:202538

svn path=/trunk/KDE/kdelibs/; revision=1007067
2009-08-05 04:48:33 +00:00
Marco Martin
52dc55f769 backport the overlay caching fix
svn path=/branches/KDE/4.3/kdelibs/; revision=1007006
2009-08-04 21:21:54 +00:00
Marco Martin
90d2021f8c actually do something with the cached overlays, instead of using them
just to waste cycles

svn path=/trunk/KDE/kdelibs/; revision=1007004
2009-08-04 21:19:20 +00:00
Marco Martin
4a5315e3d3 backport the proper behaviour for this function
svn path=/branches/KDE/4.3/kdelibs/; revision=1006976
2009-08-04 20:01:28 +00:00
Marco Martin
3d96f8eb2c just say you didn't found the item, don't nuke the whole cache
svn path=/trunk/KDE/kdelibs/; revision=1006969
2009-08-04 19:54:58 +00:00
Aaron J. Seigo
90b120b01c use value instead of [] to avoid empty or uninteresting elements in the collection
svn path=/branches/KDE/4.3/kdelibs/; revision=1006950
2009-08-04 19:14:59 +00:00
Aaron J. Seigo
2c8ad98fdb use value instead of [] to avoid empty or uninteresting elements in the collection
svn path=/trunk/KDE/kdelibs/; revision=1006949
2009-08-04 19:13:58 +00:00
Marco Martin
fd28c2f7db was custom for the netbook thinghie, but realized that cutted away
contents are quite ugly everywhere, so generalizing: when a scrollbar is
on, enable borders that gives a sunken feel on it, making a
justification for the text brutally clipped

svn path=/trunk/KDE/kdelibs/; revision=1006503
2009-08-03 20:41:42 +00:00
Aaron J. Seigo
71640d2866 kill the timer first, just in case on of the sources updates, causing a visualization to do something that then triggers another source update in the same engine
svn path=/trunk/KDE/kdelibs/; revision=1006047
2009-08-02 21:56:51 +00:00
Aaron J. Seigo
009f60dcd1 document what happens when a null icon is passed in
svn path=/trunk/KDE/kdelibs/; revision=1006000
2009-08-02 19:28:05 +00:00
Aaron J. Seigo
54ef35a107 limit to 4 windows for now; need to improve the layout so it doesn't suck
svn path=/trunk/KDE/kdelibs/; revision=1005998
2009-08-02 19:12:20 +00:00
Aaron J. Seigo
9a7c26958f return a dummy group when we have no description set up; prevents crashes when the operations file is not available
CCBUG:200475

svn path=/branches/KDE/4.3/kdelibs/; revision=1005967
2009-08-02 18:27:44 +00:00
Aaron J. Seigo
b684273624 return a dummy group when we have no description set up; prevents crashes when the operations file is not available
BUG:200475

svn path=/trunk/KDE/kdelibs/; revision=1005964
2009-08-02 18:24:20 +00:00
Marco Martin
bb659e280c set containsmultipleimages when an id is set
better size hint

svn path=/trunk/KDE/kdelibs/; revision=1005679
2009-08-01 18:48:09 +00:00
Marco Martin
c6bab8100d add a sensible size hint
svn path=/trunk/KDE/kdelibs/; revision=1005675
2009-08-01 18:36:01 +00:00
Marco Martin
9e6bdba592 backport disk cache sync in releaseRectsCache
svn path=/branches/KDE/4.3/kdelibs/; revision=1005305
2009-07-31 18:59:45 +00:00
Marco Martin
02e6870f4e when releasing an element from the rect cache, remove it from memory,
but write it to disk anyways

svn path=/trunk/KDE/kdelibs/; revision=1005300
2009-07-31 18:58:16 +00:00
Marco Martin
259db9bbd2 backport fixes to findInRectCache
svn path=/branches/KDE/4.3/kdelibs/; revision=1005297
2009-07-31 18:54:05 +00:00
Marco Martin
f37ed173ad pursuing zero svg renderers instantiated:
most elements have a single _, correct way should be names starting by _

svn path=/trunk/KDE/kdelibs/; revision=1005293
2009-07-31 18:47:20 +00:00
Allen Winter
9025893d99 Backport r1004456 by tilladam from trunk to the 4.3 branch:
Implementation of a timezone backend for Windows. It queries the registry for
all available and the current timezone and allows setting the system timezone
as well. Reviewed by David Jarvie.


svn path=/branches/KDE/4.3/kdelibs/; revision=1005236
2009-07-31 15:50:24 +00:00
Script Kiddy
2e03390962 SVN_SILENT made messages (.desktop file)
svn path=/branches/KDE/4.3/kdelibs/; revision=1004910
2009-07-31 03:15:44 +00:00
Marco Martin
48484719d3 backport findInCache fix
svn path=/branches/KDE/4.3/kdelibs/; revision=1004777
2009-07-30 20:41:16 +00:00
Marco Martin
d3f77afd1f this made findInCache always fail.
still a bit too many fails tough

svn path=/trunk/KDE/kdelibs/; revision=1004775
2009-07-30 20:39:52 +00:00
Aaron J. Seigo
131c0b39de don't actually do the tear down until we have no more jobs queued up; this way the setup/teardown do not need to be threadsafe and the runner can always assume that the data created in set up is really not needed anymore
svn path=/trunk/KDE/kdelibs/; revision=1004685
2009-07-30 18:14:40 +00:00
Aaron J. Seigo
a4b980b37b a little more paranoia around action access
svn path=/trunk/KDE/kdelibs/; revision=1004683
2009-07-30 18:13:01 +00:00
Pino Toscano
ae09154da3 move to the cpp the headers useful for the implementation only, and remove the unneeded ones
svn path=/trunk/KDE/kdelibs/; revision=1004500
2009-07-30 11:09:45 +00:00
Marco Martin
6257d4b7a8 takeTab(), removes a tab and returns the tab contents
svn path=/trunk/KDE/kdelibs/; revision=1004310
2009-07-29 20:30:07 +00:00
Arthur Renato Mello
f8580b442d Add support to load a single element from a svg as icon
svn path=/trunk/KDE/kdelibs/; revision=1003809
2009-07-28 21:07:19 +00:00
Sebastian Kügler
8c2bded373 lower-case includes, this is kdelibs
svn path=/trunk/KDE/kdelibs/; revision=1003677
2009-07-28 15:54:17 +00:00
Marco Martin
b95b9cfd6d add an overloaded member that uses a qwidget and animates always from ad
edge of the widget: saves tons of code

svn path=/trunk/KDE/kdelibs/; revision=1003631
2009-07-28 13:50:48 +00:00
Aaron J. Seigo
5556939639 set the prepped state
svn path=/trunk/KDE/kdelibs/; revision=1003540
2009-07-28 10:03:16 +00:00