Commit Graph

4618 Commits

Author SHA1 Message Date
Marco Martin
e2e97757ca check the parentlayoutitem too
svn path=/trunk/KDE/kdelibs/; revision=1013416
2009-08-19 20:06:47 +00:00
Thomas McGuire
cc3a2992fc Backport r1013072 by tmcguire from trunk to the 4.3 branch:
Remove the hack that fixed some bugs in Qt, since those bugs are now fixed, and
now this hack introduces its own bugs...

Add unit test to verify that it works.

CCBUG: 180612


svn path=/branches/KDE/4.3/kdelibs/; revision=1013326
2009-08-19 15:21:59 +00:00
Script Kiddy
d940a82878 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/containmentactions/test/; revision=1013206
2009-08-19 09:54:59 +00:00
Script Kiddy
b64d6afa0d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdelibs/; revision=1013204
2009-08-19 09:54:21 +00:00
Script Kiddy
960d290025 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/containmentactions/test/; revision=1012865
2009-08-18 09:41:05 +00:00
Laurent Montel
785a03899a Fix ui files
svn path=/trunk/KDE/kdebase/workspace/plasma/containmentactions/test/; revision=1012826
2009-08-18 07:16:19 +00:00
Aaron J. Seigo
1e7c17ae24 cleanups and another remove-before-deletion
svn path=/trunk/KDE/kdelibs/; revision=1012704
2009-08-18 01:05:37 +00:00
Aaron J. Seigo
0300c7e7af prevent full screen repaints when applet handles are removed
svn path=/branches/KDE/4.3/kdelibs/; revision=1012693
2009-08-17 23:41:59 +00:00
Chani Armitage
b6cd1d8582 rename folder
svn path=/trunk/KDE/kdebase/workspace/plasma/containmentactions/test/; revision=1012692
2009-08-17 23:40:25 +00:00
Aaron J. Seigo
de4e6d5bf1 remove the handle from the scene before deleting it; this prevents full screen repaints whenever a widget has the mouse passed over it. will backport.
svn path=/trunk/KDE/kdelibs/; revision=1012691
2009-08-17 23:40:07 +00:00
Chani Armitage
0ecafe8131 use trigger for config group
svn path=/trunk/KDE/kdelibs/; revision=1012648
2009-08-17 22:31:37 +00:00
Chani Armitage
2ab601f945 various bits of cleanup:
load requires a containment
    fix @since (I could've sworn I did this already..)
    rename ContextAction->ContainmentActions
    misc. improvements from aaron
    no more warnings
    qDeleteAll
    don't iterate with keys()

svn path=/trunk/KDE/kdelibs/; revision=1012647
2009-08-17 22:31:32 +00:00
Chani Armitage
7674aacb5d Revert "remove dataengine stuff"
This reverts commit 0b57f5164da376afbb86b9ac915960ee7dc5693a.

svn path=/trunk/KDE/kdelibs/; revision=1012646
2009-08-17 22:31:23 +00:00
Chani Armitage
ae2378a8da some code cleanup
fix copyright
    always init a contextaction before trying to use it
    no more unexpected click-throughs
    contextAction() returns the plugin name instead of a pointer

svn path=/trunk/KDE/kdelibs/; revision=1012645
2009-08-17 22:31:18 +00:00
Chani Armitage
5070e300f5 API changes needed for configurable contextmenu.
-setContainment, so that we don't have to try and use the parent any
more.
-hasConfigurationInterface; this should've already been there.
-default values for a couple of functions that I think make sense

svn path=/trunk/KDE/kdelibs/; revision=1012644
2009-08-17 22:31:08 +00:00
Chani Armitage
69365ddada paste is triggered by a plugin now.
also, clean up the drop/paste handling a bit

svn path=/trunk/KDE/kdelibs/; revision=1012643
2009-08-17 22:31:03 +00:00
Chani Armitage
464df207d1 API review stuff
-have one virtual QEvent function
-move eventToString to ContextAction
-remove needsConfig reason
-remove configurationAction
-remove dataengine stuff

svn path=/trunk/KDE/kdelibs/; revision=1012642
2009-08-17 22:30:58 +00:00
Chani Armitage
d82fe71821 stuff needed for configuration of plugins
svn path=/trunk/KDE/kdelibs/; revision=1012641
2009-08-17 22:30:54 +00:00
Chani Armitage
9d2a2e40ba api review part 1
removed some dead signals and an unnecessary const

svn path=/trunk/KDE/kdelibs/; revision=1012640
2009-08-17 22:30:50 +00:00
Chani Armitage
f0a68d537c make rightclick plugins possible
this makes rightclicks use the plugin configured for rightclick
and adds a new method to the plugin for when an applet is rightclicked
(we need a list of actions then that we can insert into the menu)
this also adds a signal for immutability and improves handling of
needs-configuring plugins

svn path=/trunk/KDE/kdelibs/; revision=1012639
2009-08-17 22:30:46 +00:00
Chani Armitage
a848e4fdcf make config restore work.
svn path=/trunk/KDE/kdelibs/; revision=1012638
2009-08-17 22:30:42 +00:00
Chani Armitage
7da00b4c7c API needed for the config dialog
I factored out eventToString into a static function
and also added @since tags to all my functions

svn path=/trunk/KDE/kdelibs/; revision=1012637
2009-08-17 22:30:38 +00:00
Chani Armitage
493196dff3 use contextaction plugins.
there are a few defaults, only one real plugin exists so far
rightclicks are still overridden by the contextmenu event.
the user is warned about plugins that need configuring.

svn path=/trunk/KDE/kdelibs/; revision=1012636
2009-08-17 22:30:34 +00:00
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