Commit Graph

426 Commits

Author SHA1 Message Date
Rob Scheepmaker
b809967eb3 APIDOX and code style++, plus policykit integration.
svn path=/trunk/KDE/kdelibs/; revision=1019141
2009-09-02 23:49:46 +00:00
Aaron J. Seigo
6e221c92a4 this is private stuff
svn path=/trunk/KDE/kdelibs/; revision=1019046
2009-09-02 17:35:52 +00:00
Laurent Montel
f8949919b2 Fixuifiles
svn path=/trunk/KDE/kdelibs/; revision=1018956
2009-09-02 11:32:57 +00:00
Laurent Montel
083c419616 install as component devel
svn path=/branches/work/~ervin/qtjolie/; revision=1018785
2009-09-02 07:50:40 +00:00
Laurent Montel
677240d7b4 Backport:
fix mem leak

svn path=/branches/work/~ervin/qtjolie/; revision=1018784
2009-09-02 07:49:47 +00:00
Laurent Montel
a5f8b8b6b5 Fix mem leak
svn path=/trunk/KDE/kdelibs/; revision=1018782
2009-09-02 07:44:26 +00:00
Laurent Montel
117ed60de6 Remove it
svn path=/trunk/KDE/kdelibs/; revision=1018762
2009-09-02 06:33:34 +00:00
Laurent Montel
1ea1aef8b2 Fix pedantic
svn path=/trunk/KDE/kdelibs/; revision=1018761
2009-09-02 06:30:51 +00:00
Kevin Ottens
9e88e6122e Make it build from within kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=1018759
2009-09-02 06:28:32 +00:00
Laurent Montel
8bbcbb618e Fix include
svn path=/trunk/KDE/kdelibs/; revision=1018758
2009-09-02 06:27:04 +00:00
Laurent Montel
b2baaa2364 Fix include
svn path=/trunk/KDE/kdelibs/; revision=1018756
2009-09-02 06:22:26 +00:00
Laurent Montel
1423d3e38b Pedantic fix include
(someone tested compile ???)

svn path=/trunk/KDE/kdelibs/; revision=1018754
2009-09-02 06:17:35 +00:00
Laurent Montel
9e3debb423 Fix include
svn path=/trunk/KDE/kdelibs/; revision=1018748
2009-09-02 06:07:09 +00:00
Laurent Montel
9d3b20b0e5 Pedantic
svn path=/trunk/KDE/kdelibs/; revision=1018746
2009-09-02 06:04:55 +00:00
Dario Freddi
ecae08ad20 Fix the build
svn path=/trunk/KDE/kdelibs/; revision=1018657
2009-09-02 02:36:12 +00:00
Rob Scheepmaker
9cb9cfe65e Push in remote widgets
svn path=/trunk/KDE/kdelibs/; revision=1018655
2009-09-02 02:27:16 +00:00
Rob Scheepmaker
c5e2a61a65 non compiling skeleton code
svn path=/trunk/KDE/kdelibs/; revision=1018653
2009-09-02 02:21:41 +00:00
Aaron J. Seigo
88faa0813f only toggle on left click and let other click go through
svn path=/trunk/KDE/kdelibs/; revision=1017716
2009-08-31 09:30:13 +00:00
Chani Armitage
024d23a07f for contextmenu events triggered by the mouse on the containment, fall
through to the mouse events. it's easier to handle that way

svn path=/trunk/KDE/kdelibs/; revision=1017492
2009-08-30 18:52:10 +00:00
Chani Armitage
93aead97a1 allow click-throughs for the containment's graphicsitems
this makes folderview happier, yay

svn path=/trunk/KDE/kdelibs/; revision=1017491
2009-08-30 18:52:05 +00:00
Aaron J. Seigo
37f65858dc prevent duplicate actions in the toolbox
BUG:200981

svn path=/trunk/KDE/kdelibs/; revision=1016829
2009-08-29 00:33:27 +00:00
Marco Martin
f21674ae8b uuh, whi that code was commented out?
svn path=/trunk/KDE/kdelibs/; revision=1015529
2009-08-25 18:54:42 +00:00
Chani Armitage
d2cf2d781c replace hasConfig functions with a .desktop entry
svn path=/trunk/KDE/kdelibs/; revision=1015267
2009-08-25 03:22:15 +00:00
Reza Shah
9ad7c00c23 This fixed drawing problem for scollbar's slider at horizontal orientation.
For smallest size, the slider not will not drawn properly (cut on the right side).

svn path=/trunk/KDE/kdelibs/; revision=1015241
2009-08-25 00:39:53 +00:00
Aaron J. Seigo
7890d0c816 * unify the code that positions the message overlay
* always use contentsRect(), never geometry or boundingRect; this prevents how it sometimes overlaps the borders of applets
* always make sure that the zOrder is set, not just in the non-popup case

svn path=/trunk/KDE/kdelibs/; revision=1015154
2009-08-24 17:27:24 +00:00
Chani Armitage
f9317c11e6 no more d->containment
svn path=/trunk/KDE/kdelibs/; revision=1014483
2009-08-23 01:13:25 +00:00
Marco Martin
70f4e5aee6 oops, that 1|| was bogus of course
svn path=/trunk/KDE/kdelibs/; revision=1014445
2009-08-22 20:52:03 +00:00
Marco Martin
195e3a709d also check the size hint as minimum size
boundingrect-boundingrect=0, what we want is contentsrect

svn path=/trunk/KDE/kdelibs/; revision=1014443
2009-08-22 20:49:12 +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
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
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
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
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
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
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
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
Aaron J. Seigo
68d9558843 fix desktop toolbox dragging once and for all; i should have implemented dragging like this in the first place. also fixes misplacement of the toolbox on the bottom or right edge of the screen. there's some room for optimization here as cornerSize, fullHeight and fullWidth do a -lot- of manip on the background svg that really is only needed once per drag. in practice, it's not so bad and i'd like to keep the diff as small as possible (it's already huge) so i can backport it without feeling tooo guilty ;)
BUG:201672

svn path=/trunk/KDE/kdelibs/; revision=1003346
2009-07-28 03:19:33 +00:00
Marco Martin
85cb69d28f save the background hints in two vars when they are set, use the second
to restore the ones that were decided before the formfactor change. i.e.
no more need to set again and again the hints in formFactorConstraints

svn path=/trunk/KDE/kdelibs/; revision=1003180
2009-07-27 20:14:38 +00:00
David Jarvie
2b543937ab Minor APIDOX fixes (spelling etc.)
svn path=/trunk/KDE/kdelibs/; revision=1002622
2009-07-26 15:22:59 +00:00
Aaron J. Seigo
9fb9ee1b0e SVN_SILENT: fix style
svn path=/trunk/KDE/kdelibs/; revision=1002137
2009-07-25 05:47:12 +00:00
Richard Dale
695168a4bd Add getters and setters for PopupApplet::widget() and PopupApplet::graphicsWidget()
for use in scripting languages. Add a initScriptingExtenderItem() signal for script
engines to connect to and call their versions of Applet::initExtenderItem()


svn path=/trunk/KDE/kdelibs/; revision=998323
2009-07-17 12:31:08 +00:00
Alexis Ménard
d4ca38b20f This almost fix the performance issue when zooming out on plasma-desktop.
We don't need to call prepareGeometryChange if the geometry will not
change, this mistake end up with a new paint event that will paint for
nothing.

This should be backported into 4.3

svn path=/trunk/KDE/kdelibs/; revision=997763
2009-07-16 13:09:19 +00:00
Marco Martin
2a0e957d14 move the status stuff into Applet, constify and also put a bit of apidox
svn path=/trunk/KDE/kdelibs/; revision=993895
2009-07-09 16:35:11 +00:00
Marco Martin
1300eea396 api to show/hide plasmoids from the systray, like NotificationItems
this REALLY needs api review
CCMAIL:plasma-devel@kde.org

svn path=/trunk/KDE/kdelibs/; revision=993364
2009-07-08 14:55:59 +00:00
Peter Pan
c201a16450 make the positions of previews, icon and text on plasma tooltip consistent.
BUG:198890

svn path=/trunk/KDE/kdelibs/; revision=993317
2009-07-08 13:17:55 +00:00
Michael Leupold
7b8c380ea5 Unbreak the build by defining an empty method - avoids linkage error introduced by r990700.
CCMAIL: aseigo@kde.org

svn path=/trunk/KDE/kdelibs/; revision=990759
2009-07-03 08:54:29 +00:00
Aaron J. Seigo
baee782e6f prep this for fixing the memory leak; at least it doesn't crash anymore, along with my changes to KNS that are upcoming
svn path=/trunk/KDE/kdelibs/; revision=990700
2009-07-03 02:17:25 +00:00