Commit Graph

916 Commits

Author SHA1 Message Date
Aaron Seigo
2bca3c88d9 calling next() is good 2011-04-29 11:17:29 +02:00
Aaron Seigo
636f351d3c typical zero parent support 2011-04-29 11:17:29 +02:00
Aaron Seigo
0fff74cec0 more careful with the client name 2011-04-29 11:17:28 +02:00
Aaron Seigo
549f988fee use a QVariantHash as well as a transaction for saving 2011-04-29 11:17:28 +02:00
Marco Martin
67dbcb59b8 create a single timer for storage event compression 2011-04-29 11:17:28 +02:00
Aaron Seigo
fbb50df067 ensure that the containment configChanged() routine always happens 2011-04-25 16:43:48 +02:00
Aaron Seigo
3e3bfe89b0 protect with a weak pointer
BUG:268752
2011-03-17 16:48:14 +01:00
Aaron Seigo
5a3c398e5a delay url setting until initialized 2011-03-03 07:52:13 +01:00
Aaron Seigo
3924d218a4 cache the values for size and resize method
the main advantage to this is that only when the object signals a change
will the values be re-checked, which means that the wallpaper pointer
can be deleted behind our backs and we won't care
2011-02-16 11:42:38 -08:00
Marco Martin
beb1f9b6cf use pointers instead of string comparison
use pointers instead of string comparison to figure out what button was pressed
2011-02-09 20:35:15 +01:00
Marco Martin
11d3b789a4 emit cancel signal
both when clicking cancel and pressing esc
CCBUG:265738
2011-02-09 00:11:25 +01:00
Aaron Seigo
2b2f482ecd save/track/restore ItemStatus properly 2011-02-04 17:52:03 -08:00
Aaron J. Seigo
2a916cb089 avoid (non-critical) warnings
BUG:264069

svn path=/trunk/KDE/kdelibs/; revision=1217570
2011-01-27 22:18:32 +00:00
Marco Martin
dcd645696b immediately hide the focusindicator if the theme follows native style
svn path=/trunk/KDE/kdelibs/; revision=1216376
2011-01-22 22:02:23 +00:00
Marco Martin
0ac2c5b81f if the theme wants to use the system style, disable completely any focusindicator
svn path=/trunk/KDE/kdelibs/; revision=1216322
2011-01-22 17:49:46 +00:00
Marco Martin
7a1835cf01 check if the efect is active in the effectwatcher ctor, this avoids an useless themechanged signal, that among other things clears framesvg cache, forgetting the size of the other prefixes, that's why the pager was looking corrupted
This problem asn't in branch since effectwatcher is only in trunk

svn path=/trunk/KDE/kdelibs/; revision=1215920
2011-01-20 09:41:10 +00:00
Marco Martin
fc8f66f498 with a new singleshot don't adjust the extender size due to a sub widget resize until the next turn of the eventloop: avoids container that resizes the ontent that resizes the container loops
svn path=/trunk/KDE/kdelibs/; revision=1215443
2011-01-18 19:03:33 +00:00
Marco Martin
091d781dc5 * don't reset the watched properties: it breks kwin
* check for the blur property only on PropertyNotify and if is on the property we actually want

svn path=/trunk/KDE/kdelibs/; revision=1214853
2011-01-16 17:25:28 +00:00
Christian Ehrlicher
543168555b Compile on non-X11 systems...
svn path=/trunk/KDE/kdelibs/; revision=1214795
2011-01-16 12:20:20 +00:00
Marco Martin
7df2e103c5 a new private class EffectWatcher, used to be signaled when a particular KWin effect is enabled/disabled.
in future could become public but only after has been proved is really correct

svn path=/trunk/KDE/kdelibs/; revision=1214633
2011-01-15 17:51:55 +00:00
Patrick Spendrin
c16bfacb7b forward port r1214358
svn path=/trunk/KDE/kdelibs/; revision=1214362
2011-01-14 11:23:22 +00:00
Aaron J. Seigo
e3ab2c5924 * test the prefix equiv at the right place
* prevent unecessary calls on setCustomGeometry by comparing the new and existing geom

svn path=/trunk/KDE/kdelibs/; revision=1214252
2011-01-13 19:49:27 +00:00
Aaron J. Seigo
fd0ad0eda2 don't do a bunch of updates if the prefix remains the same
BUG:263049

svn path=/trunk/KDE/kdelibs/; revision=1214249
2011-01-13 19:35:01 +00:00
Aaron J. Seigo
cd4e26f59f FEATURE: configurable default containment plugin name
svn path=/trunk/KDE/kdelibs/; revision=1213879
2011-01-12 00:05:13 +00:00
Aaron J. Seigo
3af6a91dd7 * give Corona a proper private header in private/
* don't create the shortcuts dialog until it is actually needed
* unify the handling of the action collections with a list of smart pointers

svn path=/trunk/KDE/kdelibs/; revision=1213847
2011-01-11 20:45:24 +00:00
Aaron J. Seigo
425b474390 the dptr will be deleted before ~QObject is run, so first disconnect
the QAction (if any) in the dptr dtor so that when the QAction is deleted,
we don't end up calling into a deleted object
BUG:262813

svn path=/trunk/KDE/kdelibs/; revision=1213630
2011-01-11 02:55:55 +00:00
Marco Martin
393d207aca use an ulong to cast this, should be at the same size as pointer on both 32 and 64 bit systems
svn path=/trunk/KDE/kdelibs/; revision=1212577
2011-01-07 13:53:43 +00:00
Marco Martin
b43fc29221 use a single database connection per thread, anchieve that with a static QThreadStorage
each thread data will have a refcounted database instance

svn path=/trunk/KDE/kdelibs/; revision=1212521
2011-01-07 10:51:29 +00:00
Marco Martin
0c09d4b058 use a pointer since to remove a connection is necesary that the qsqldatabase is deleted, ouch
svn path=/trunk/KDE/kdelibs/; revision=1212424
2011-01-06 23:26:14 +00:00
Marco Martin
6d042ac25a close the strage db when the job is over.
there were dangling file pointers before that could crash plasma when they go beyond the maximum allowed limit
BUG:259833
CCBUG:247798
BUG:235051


svn path=/trunk/KDE/kdelibs/; revision=1212407
2011-01-06 21:43:51 +00:00
Marco Martin
79bbb39468 initialize
svn path=/trunk/KDE/kdelibs/; revision=1212108
2011-01-05 18:54:37 +00:00
Diego Casella
a894b07bce * Prevent plasma tooltips to draw halos on empty lines.
Closes review request #6233

svn path=/trunk/KDE/kdelibs/; revision=1210143
2010-12-29 19:36:24 +00:00
Manuel Mommertz
e928c0baaf allow SharedSvgRenderer to put interesting elements in the rect cache on load
fixes the detection of svgs that use a style for system colors

svn path=/trunk/KDE/kdelibs/; revision=1207463
2010-12-18 08:54:17 +00:00
Marco Martin
698b513868 the dialog private is in its seprarate file ecause it gets accessed by popupapplet to set an applet pointer
in this way we can use the corona to actually find out the real desktop geometry, that doesn't fail for extended monitors like QDesktopWidget does.

BUG:257955

svn path=/trunk/KDE/kdelibs/; revision=1207416
2010-12-17 22:37:09 +00:00
Jeremy Paul Whiting
83124b7029 Remove previous "preferred" file definition when path changes with single image paths.
BUG:259373

svn path=/trunk/KDE/kdelibs/; revision=1207123
2010-12-17 03:02:20 +00:00
Marco Martin
07444819b7 move the size adjustment in a private member
svn path=/trunk/KDE/kdelibs/; revision=1206703
2010-12-15 14:35:11 +00:00
Aaron J. Seigo
c549c85181 --deprecatedApiUsage;
svn path=/trunk/KDE/kdelibs/; revision=1206617
2010-12-15 05:54:06 +00:00
Aaron J. Seigo
1217cd2c19 a better name, so that upon reading it is clear that there is a signal called renderCompleted as well as a slot (by changing the name of the (private) slot to something other than renderCompleted)
svn path=/trunk/KDE/kdelibs/; revision=1206548
2010-12-14 22:18:56 +00:00
Aaron J. Seigo
aac15c8e68 the fix for 242173 in r1140471 broke use cases where the applet is activated and then showPopup(someInterval) is called. the showPopup call would get made, and then it would be overridden at the next event loop with a timeout of 0 due to the QTimer::singleShot in appletActivated. this queues _all_ calls to showPopup using a QBasicTimer, which should address the focus issues a bit more comprehensively for 242173 and not break, e.g., the autohide on the device notifier.
BUG:242173

svn path=/trunk/KDE/kdelibs/; revision=1206270
2010-12-14 03:14:14 +00:00
Marco Martin
e04e91e9ad disable borders near to the edge of the screen for extenders too
svn path=/trunk/KDE/kdelibs/; revision=1206154
2010-12-13 16:15:49 +00:00
Albert Astals Cid
9f7b20829a Replace slow foreach constructs with faster ones
Acked by Marco

svn path=/trunk/KDE/kdelibs/; revision=1206126
2010-12-13 13:36:08 +00:00
Aaron J. Seigo
8fda2f23c9 repaint when the svgs change
svn path=/trunk/KDE/kdelibs/; revision=1203978
2010-12-05 20:40:12 +00:00
Aaron J. Seigo
fdd473d31d * this introduces a Theme object used by Svg to cache the rendering of svg's asking to be colorized, but which are not part of the theme. this requires an independent cache and set of color files, therefore a second Theme object. SvgPrivate::actualTheme() is thus overridden by SvgPrivate::cacheAndColorsTheme() whenever caching or colors are used.
* consolidate the signal/slot connections in SvgPrivate::checkColorHints, and now the check is consistent on all paths (previously, it wasn't!)
* missing (and possible cause of cache key ambiguity) separator in CACHE_ID_WITH_SIZE

svn path=/trunk/KDE/kdelibs/; revision=1203346
2010-12-03 17:10:13 +00:00
Allen Winter
3edc7be1c5 add krazy excludes for the false positives not using qreal casting in qMin|qMax.
svn path=/trunk/KDE/kdelibs/; revision=1197830
2010-11-16 17:18:10 +00:00
Aaron J. Seigo
8607a13142 clarify, document and fix how immutability (particularly kiosk-based SystemImmutability) is handled
svn path=/trunk/KDE/kdelibs/; revision=1196286
2010-11-12 22:48:31 +00:00
Marijn Kruisselbrink
cf3951ad20 revert r1171729, as those changes broke compilation on platforms where qreal != double
svn path=/trunk/KDE/kdelibs/; revision=1196092
2010-11-12 15:23:22 +00:00
Chani Armitage
31e2c5a0d4 shared containmentactions
svn path=/trunk/KDE/kdelibs/; revision=1195744
2010-11-11 22:22:39 +00:00
Kevin Ottens
ee5df8d9e4 More kgenericfactory.h cleanups.
svn path=/trunk/KDE/kdelibs/; revision=1195206
2010-11-10 15:25:56 +00:00
Christoph Feck
30799cc1be Fix alpha value
svn path=/trunk/KDE/kdelibs/; revision=1194319
2010-11-08 17:25:12 +00:00
Marco Martin
3cc339a852 use PLASMA_CUSTOM_PREFIX_PATHS environmant variable as optional custom fallback chain for plasmoidpackage (should it be for -all- packages?)
svn path=/trunk/KDE/kdelibs/; revision=1193156
2010-11-04 21:16:12 +00:00
Aaron J. Seigo
92511efde0 * let the Corona know as soon as cleanUpAndDelete is called if we are a Containment
* simplify the path from an Applet being destroyed to cleanUpAndDelete being called

svn path=/trunk/KDE/kdelibs/; revision=1192720
2010-11-03 20:52:13 +00:00
Marco Martin
dd6b783e13 new operations for Storage:
* expire, with age and group as parameters
* delete, with group and key as parameters

new db structure: creation time (still unused, but would be hard to add in future releases)
and access time, used for expire

svn path=/trunk/KDE/kdelibs/; revision=1192402
2010-11-02 22:05:48 +00:00
Ingomar Wesp
e049ecb34d Do not require an exact match for size hinted elements, but search for the smallest size hinted element that is bigger than the display size. Thanks to mommertz, who outlined and mentored this patch, element ids are cached both locally and in the theme, so no additional calls to createRenderer are required.
This was discussed in <http://svn.reviewboard.kde.org/r/5689/>.

svn path=/trunk/KDE/kdelibs/; revision=1191192
2010-10-29 22:14:18 +00:00
Aaron J. Seigo
afe897be89 * restore the color alpha after altering it
* use button text color for button text (sounds more logically obvious than it was ;)
* optionally use button text color for regular text as well (used by spinbox, lineedit)

svn path=/trunk/KDE/kdelibs/; revision=1191135
2010-10-29 17:25:00 +00:00
Marco Martin
4e6eb9a316 uncomment this again, doesn't seem to crash anymore
svn path=/trunk/KDE/kdelibs/; revision=1189764
2010-10-25 20:02:13 +00:00
Kevin Ottens
526e700b09 Make sure it builds without KIO.
CCMAIL: notmart@gmail.com

svn path=/trunk/KDE/kdelibs/; revision=1189682
2010-10-25 15:03:54 +00:00
Marco Martin
535be3c4e2 correct the date storing
svn path=/trunk/KDE/kdelibs/; revision=1189354
2010-10-24 19:19:15 +00:00
Marco Martin
c2b3a225ab fix both retrieve queries
svn path=/trunk/KDE/kdelibs/; revision=1189333
2010-10-24 17:04:43 +00:00
Marco Martin
3333b71a3d . and - are not permitted as table names
svn path=/trunk/KDE/kdelibs/; revision=1189004
2010-10-23 17:28:08 +00:00
Marco Martin
fc454d4ab8 * "source" is "group"
* if no group is specified, "default" is assumed

svn path=/trunk/KDE/kdelibs/; revision=1188942
2010-10-23 12:14:33 +00:00
Marco Martin
aa08ed2808 delete already existing values before inserting new
svn path=/trunk/KDE/kdelibs/; revision=1188939
2010-10-23 12:06:21 +00:00
Marco Martin
72110136bc the table name depends from the plugin name of who is using storage
svn path=/trunk/KDE/kdelibs/; revision=1188938
2010-10-23 12:04:24 +00:00
Marco Martin
23cca9a318 source or key parameters in retrieve
expire action

svn path=/trunk/KDE/kdelibs/; revision=1188661
2010-10-22 21:22:15 +00:00
Aaron J. Seigo
ab99a3a048 moderately less ugly
svn path=/trunk/KDE/kdelibs/; revision=1188638
2010-10-22 19:52:05 +00:00
Aaron J. Seigo
681452d32d shouldn't have been commented out
svn path=/trunk/KDE/kdelibs/; revision=1188637
2010-10-22 19:43:58 +00:00
Marco Martin
4dd1c28b6d fix the wreckage caused by last commit
bad Aaron, no cookie :)
can you check if those changes make sense upon what your patch ws supposed to be?
CCMAIL:aseigo@kde.org

svn path=/trunk/KDE/kdelibs/; revision=1188445
2010-10-22 12:29:35 +00:00
David Faure
f241ee6ac7 themedwidgetinterface_p.h:86:43: error: incomplete type 'QApplication' used in nested name specifier
svn path=/trunk/KDE/kdelibs/; revision=1188421
2010-10-22 10:59:45 +00:00
Aaron J. Seigo
a793185b21 consolidate all the theming (palette, fonts) code for widgets into a private interface: ThemeWidgetInterface. have the relevant *Private classes inherit from it and all the tricky logic is now in one place and consistent.
svn path=/trunk/KDE/kdelibs/; revision=1188314
2010-10-22 00:25:17 +00:00
Marco Martin
22d9baccef use KIO to access the remote imports
svn path=/trunk/KDE/kdelibs/; revision=1188124
2010-10-21 13:18:50 +00:00
Marco Martin
6ad3371e9a scroll around while dragging items on the extender, to make possible drop the item on any point
svn path=/trunk/KDE/kdelibs/; revision=1186504
2010-10-16 17:41:59 +00:00
Marco Martin
32e10a77d2 resize to the proper size when an item is collapsed/restored
svn path=/trunk/KDE/kdelibs/; revision=1186431
2010-10-16 11:35:16 +00:00
Aaron J. Seigo
fc07638805 correct signature
svn path=/trunk/KDE/kdelibs/; revision=1185879
2010-10-14 13:04:53 +00:00
Kevin Ottens
c0f66faad7 Allow to build libplasma without KIO. Only issue is that the
copying/moving/removal of folders is defunct (so is the package
install/uninstall).

svn path=/trunk/KDE/kdelibs/; revision=1185865
2010-10-14 12:27:15 +00:00
Stephen Kelly
f57dd2eb1c Fix build.
svn path=/trunk/KDE/kdelibs/; revision=1185860
2010-10-14 12:16:56 +00:00
Aaron J. Seigo
6be91bbbd4 the slashes are superfluous
svn path=/trunk/KDE/kdelibs/; revision=1185857
2010-10-14 12:10:02 +00:00
Aaron J. Seigo
2f491094c0 * move SvgPrivate into a separate header
* introduce a hack around setImagePath not being virtual but reimplemented in FrameSvg. (oi vey!)

svn path=/trunk/KDE/kdelibs/; revision=1185843
2010-10-14 11:43:01 +00:00
Marco Martin
bdcf7578ee use a weak pointer
svn path=/trunk/KDE/kdelibs/; revision=1185272
2010-10-12 19:33:15 +00:00
Marco Martin
b3b18e5d7e make sure to not call the delayed itemaddedevent twice: the queue becomes an hash.
the counterindication is that the order now is kinda indeterministinc but *shouldn't* give problems

svn path=/trunk/KDE/kdelibs/; revision=1185200
2010-10-12 14:36:46 +00:00
Marco Martin
7306716038 IMPROVEMENT: the whole extender scrolls when there is not enough room anymore.
the extendergroup doen't have a scrollwidget anymore

still needs perfecting but is already less buggy and prettier

svn path=/trunk/KDE/kdelibs/; revision=1184907
2010-10-11 19:17:19 +00:00
David Faure
eb9af2fdf3 prefix the last unittests (that use a macro, at least)
svn path=/trunk/KDE/kdelibs/; revision=1182756
2010-10-05 14:47:38 +00:00
Aaron J. Seigo
4eafdd6b27 constify
svn path=/trunk/KDE/kdelibs/; revision=1182545
2010-10-04 21:48:06 +00:00
Marco Martin
876b399640 remove eventual existing row wit the key before inserting a new row
svn path=/trunk/KDE/kdelibs/; revision=1181670
2010-10-01 18:02:13 +00:00
Marco Martin
b0472dc212 port the kconfig based storage service to Sqlite
make save and restore methods of datasource private for now
pu this early so performance/disk usage etc can be tested

svn path=/trunk/KDE/kdelibs/; revision=1181650
2010-10-01 16:58:15 +00:00
Laurent Montel
4369d1df2b Make it compile
svn path=/trunk/KDE/kdelibs/; revision=1180337
2010-09-27 18:16:27 +00:00
Aaron J. Seigo
4160e73393 IMPROVEMENT: share FrameData between FrameSvg objects wherever possible; limits pixmap usage
svn path=/trunk/KDE/kdelibs/; revision=1180317
2010-09-27 17:19:06 +00:00
Aaron J. Seigo
b5b4ea581a allow setting a bogus desktop value on startup; prevents containments kept around due to desktops disappearing on us from becoming activity spawners
BUG:252264

svn path=/trunk/KDE/kdelibs/; revision=1179185
2010-09-24 19:03:45 +00:00
Aaron J. Seigo
9ecae806dd when hidden, don't bother to keep animating the move. the tooltip will be repositioned on show anyways.
svn path=/trunk/KDE/kdelibs/; revision=1179173
2010-09-24 18:19:58 +00:00
Aaron J. Seigo
4946385727 avoid some unecesary calls, write an if as a switch
svn path=/trunk/KDE/kdelibs/; revision=1178749
2010-09-23 20:24:17 +00:00
Aaron J. Seigo
f4bfd900a3 the header part of that commit
svn path=/trunk/KDE/kdelibs/; revision=1178169
2010-09-22 09:01:31 +00:00
Aaron J. Seigo
86794f694f * make custom prefixes work again
* make non-frame based indicators work (sliders now show focus again)
* shave ~8ms off of creation time (bringing it down to ~1ms)
* allow sharing of the FrameSvg object
* constify and sanitize the previously existing constructor
* use QStringBuilder

svn path=/trunk/KDE/kdelibs/; revision=1178168
2010-09-22 09:01:01 +00:00
Andreas Hartmetz
18a7527784 Compile again, remove the duplicates.
svn path=/trunk/KDE/kdelibs/; revision=1177261
2010-09-19 22:18:45 +00:00
Marco Martin
ec9a6ad1ba FEATURE: allow to add actions with only text in the extender titlebar, they will appear as push buttons
svn path=/trunk/KDE/kdelibs/; revision=1177247
2010-09-19 21:28:39 +00:00
Andreas Hartmetz
83a9fc7f21 compile
svn path=/trunk/KDE/kdelibs/; revision=1177240
2010-09-19 20:48:01 +00:00
Aaron J. Seigo
fd6d284ab7 install to the right location
svn path=/trunk/KDE/kdelibs/; revision=1175933
2010-09-16 07:35:35 +00:00
Aaron J. Seigo
2f9828b966 allow popup applets to define the alignment of their popup
svn path=/trunk/KDE/kdelibs/; revision=1174612
2010-09-12 23:54:30 +00:00
Aaron J. Seigo
23ebeb3bf6 * appletActions -> addAppletActions
* containmentActions -> addContainmentActions
* make both take an event for positioning purposes
* make prepareContainmentActions a more generic so that one code path for handling setting up a ContainmentActions plugin is used everywhere; this also shrinks addContainmentActions down to just being a permissions checker
* make PopupApplet use ContainmentPrive::addAppletActions directly; fewer code paths to track, as it allows removal of ContainmentPrivate::showApplContextMenu

svn path=/trunk/KDE/kdelibs/; revision=1173567
2010-09-09 18:37:28 +00:00
Aaron J. Seigo
d436911241 simplify/clarify the handling of context menu events; ensure it _always_ goes via the context menu event, and clean up the helper methods in the private class
svn path=/trunk/KDE/kdelibs/; revision=1173182
2010-09-08 21:51:22 +00:00
Allen Winter
91f76a12f3 turn floating point constants into qreal's when passing them to qMin or qMax.
found when testing the new Krazy plugin for checking this condition.


svn path=/trunk/KDE/kdelibs/; revision=1171729
2010-09-04 23:07:23 +00:00
Albert Astals Cid
a3344d8f51 const &
svn path=/trunk/KDE/kdelibs/; revision=1171434
2010-09-03 21:14:32 +00:00
Aaron J. Seigo
4d81dce65e make package copyable and assignable
svn path=/trunk/KDE/kdelibs/; revision=1171413
2010-09-03 19:44:28 +00:00