Commit Graph

410 Commits

Author SHA1 Message Date
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
Kevin Ottens
775bbe63d9 Add a small control app for the Vision proof of concept provided with
JOLIE. Suitable for use on handhelds.

svn path=/branches/work/~ervin/qtjolie/; revision=990152
2009-07-01 20:36:01 +00:00
Kevin Ottens
32a979e7de Add missing meta type.
svn path=/branches/work/~ervin/qtjolie/; revision=990150
2009-07-01 20:35:19 +00:00
Kevin Ottens
f639993c8b Add a Yahoo! web service client example.
svn path=/branches/work/~ervin/qtjolie/; revision=989179
2009-06-29 17:00:33 +00:00
Kevin Ottens
379085039b Provide Jolie::Value::List typedef.
svn path=/branches/work/~ervin/qtjolie/; revision=989177
2009-06-29 16:57:58 +00:00
Kevin Ottens
09a0e07c39 addRedirection() now uses Values for the protocols parameters as advised
by fmontesi.

svn path=/branches/work/~ervin/qtjolie/; revision=989152
2009-06-29 15:31:25 +00:00
Kevin Ottens
c0228210c4 Forgot to adjust the unit tests.
svn path=/branches/work/~ervin/qtjolie/; revision=989150
2009-06-29 15:29:52 +00:00
Aaron J. Seigo
a179a16a9e only close the desktop toolbox if the action is non-repeatable, which implies it's a fire-and-forget type of action such as something that triggers a dialog
BUG:198229

svn path=/trunk/KDE/kdelibs/; revision=988884
2009-06-29 01:22:58 +00:00
Aaron J. Seigo
5bdb436709 allow kicking all visualizations immediately rather than wait for their timeouts in the case of changes that _must_ be reflected immediatley, e.g. time changes or network availability causing first fetch of data
svn path=/trunk/KDE/kdelibs/; revision=987939
2009-06-27 01:26:33 +00:00
Aaron J. Seigo
9aa367047c clickable tooltips; plasma-devel@ people: please review API one more time
CCMAIL:plasma-devel@kde.org

svn path=/trunk/KDE/kdelibs/; revision=987462
2009-06-26 06:40:15 +00:00
Marco Martin
a5f83c0e2b if a custom config file is specified for the layout restore of the
corona, try to restore correctly the cashews positions too

svn path=/trunk/KDE/kdelibs/; revision=980468
2009-06-11 20:04:10 +00:00
Marco Martin
41deec416d should be correctly positioned in case of top panels
svn path=/trunk/KDE/kdelibs/; revision=979968
2009-06-10 20:25:15 +00:00
Aaron J. Seigo
1e4a7ee457 sort these out so we can look at them later for possible streamlining
svn path=/trunk/KDE/kdelibs/; revision=979909
2009-06-10 18:28:17 +00:00
Aaron J. Seigo
5cbc9e157d build
svn path=/trunk/KDE/kdelibs/; revision=979903
2009-06-10 18:18:10 +00:00
Rob Scheepmaker
6cb4ade6d6 Add .prf for the win32 users out there.
svn path=/branches/work/~ervin/qtjolie/; revision=978898
2009-06-08 13:34:54 +00:00
Rob Scheepmaker
da489685b0 Add and install .pc file for QtJolie.
svn path=/branches/work/~ervin/qtjolie/; revision=978884
2009-06-08 12:49:17 +00:00
Kevin Ottens
d99e623ae9 Allow to export services thanks to the Server and AbstractAdaptor
classes. Also introduce a small calculatorservice example showing that,
with a quick client written using jolie.

svn path=/branches/work/~ervin/qtjolie/; revision=978075
2009-06-05 22:51:08 +00:00