Commit Graph

671 Commits

Author SHA1 Message Date
Marco Martin
abf446a3f8 refuse to downgrade immutability from systemimmutable here as well, just in case somewhere in applet a check will be done against d->immutability instead of immutability()
svn path=/trunk/KDE/kdelibs/; revision=1120663
2010-04-29 16:00:46 +00:00
Kevin Ottens
6a3240b051 libplasma becomes our first lib with profiles support.
svn path=/trunk/KDE/kdelibs/; revision=1120434
2010-04-29 05:57:34 +00:00
Aaron J. Seigo
876345d389 extend parent app checks to all applet lists
svn path=/trunk/KDE/kdelibs/; revision=1120366
2010-04-28 23:34:30 +00:00
Aaron J. Seigo
dbd43adad7 use appear/disappear anims, not hardcoded stuff
svn path=/trunk/KDE/kdelibs/; revision=1120243
2010-04-28 17:42:12 +00:00
Aaron J. Seigo
15852ba68a add the app's main component name to the listing as a valid option
svn path=/trunk/KDE/kdelibs/; revision=1119854
2010-04-27 20:31:29 +00:00
Marco Martin
7517afa198 when overriding the size policy, save the old one, should unbork a little contaiment switching
svn path=/trunk/KDE/kdelibs/; revision=1117160
2010-04-21 12:16:06 +00:00
Marco Martin
8dcae8f83c heuristic for formfactor becoming quite complex.
since a containment can put applet in a child widget, we must compare sizes only of parents that are indeed applets (only way it works both the systray plasmoid and the newspaper applets)

svn path=/trunk/KDE/kdelibs/; revision=1114750
2010-04-14 12:05:15 +00:00
Marco Martin
b4b822e1dd chack for view, crash--
svn path=/trunk/KDE/kdelibs/; revision=1114503
2010-04-13 19:16:20 +00:00
Aaron J. Seigo
7aad31a3a9 when setting an applet to be a containment, check the furniture
svn path=/trunk/KDE/kdelibs/; revision=1114489
2010-04-13 18:36:54 +00:00
Marco Martin
6215a71fe7 ssign the view to the qstyleoption only if it's the proper view
svn path=/trunk/KDE/kdelibs/; revision=1114459
2010-04-13 16:21:12 +00:00
Marco Martin
956b5a8cc2 more heuristics in finding out the formfactor when an applet is inside another:
a popupapplet is alwais constrained if not directly in containment, an applet depends from the layout minimum size hint (and yes, is just to not break systemmonitor)

svn path=/trunk/KDE/kdelibs/; revision=1113811
2010-04-11 21:05:55 +00:00
Aaron J. Seigo
fb00fcf42c use the package path provided by the package structure; fewer hardcoded paths
svn path=/trunk/KDE/kdelibs/; revision=1112725
2010-04-08 23:47:05 +00:00
Aaron J. Seigo
556c51d2a5 * dump support for QGraphicsItems in Extenders. looks like it was already broken anyways (hooray for untested paths). supporting QGraphicsItems just doesn't make much sense anyways. this gets rid of a number of bugs and simplifies the code a lot
* use more QGraphicsWidget API and simplify the code even more
* put the title bar drawing into a class of its own, simplifying the code yet more
* use a Plasma::Label in the title bar so we don't have to draw our own text and ... well, you know what goes here by now ;)

one downside to this is that margins in title bar svg are *actually* honored, which means the titles take a bit more room. the svg can be tweaked, however.

svn path=/trunk/KDE/kdelibs/; revision=1111918
2010-04-07 02:04:52 +00:00
Marco Martin
46c6e72e4b showdialog becomes a slot
svn path=/trunk/KDE/kdelibs/; revision=1110635
2010-04-03 21:58:35 +00:00
Marco Martin
2466bbd960 AbstractDialogManager: will needed for shells to radically change the applets config dialogs (and possibly other dialogs) look and feel
svn path=/trunk/KDE/kdelibs/; revision=1110584
2010-04-03 19:10:32 +00:00
Jonathan Riddell
9ea9f63a7e Check for actual metadata file, else it will try to load the plasmoid from ~/.kde if only the directory exists even though the plasmoid might be in /usr
BUG:231761
"Python plasmoids can no longer run from system directory"


svn path=/trunk/KDE/kdelibs/; revision=1108640
2010-03-29 13:55:07 +00:00
Aaron J. Seigo
f7cab7fcf2 move this into a more appropriate place
svn path=/trunk/KDE/kdelibs/; revision=1106778
2010-03-23 22:41:57 +00:00
Aaron J. Seigo
78201bdf2c scripted popup applets must also have Plasma/Applet in their ServiceTypes; remove code working around buggy plasmoids
svn path=/trunk/KDE/kdelibs/; revision=1101740
2010-03-10 19:47:34 +00:00
Aaron J. Seigo
041e15f953 don't crash when failing multiple times
svn path=/trunk/KDE/kdelibs/; revision=1101318
2010-03-09 21:52:22 +00:00
Aaron J. Seigo
01b3fd2286 connect even if the action is initially disabled
svn path=/trunk/KDE/kdelibs/; revision=1100978
2010-03-09 05:15:13 +00:00
Aaron J. Seigo
0aebf5936c guard against multiple connections due to errant StartupCompleted constraints
svn path=/trunk/KDE/kdelibs/; revision=1100976
2010-03-09 05:11:37 +00:00
Aaron J. Seigo
639b39a9cd if we show the message in a popup, ensure it can at least be dismissed
BUG:229832

svn path=/trunk/KDE/kdelibs/; revision=1100957
2010-03-09 03:07:29 +00:00
Aaron J. Seigo
28e876bc0c properly enable/disable the config action
BUG:229620

svn path=/trunk/KDE/kdelibs/; revision=1099718
2010-03-06 01:10:53 +00:00
Aaron J. Seigo
74ab090b72 in case a script engine does not add the standard pages (which is a bug in the script engine), at least don't crash
BUG:226823

svn path=/trunk/KDE/kdelibs/; revision=1090827
2010-02-16 06:46:39 +00:00
Aaron J. Seigo
342be4bd86 another use case, another way the code could fail; reorganize this code so that if a dialog isn't auto-generated (no matter why!) we fall back to the ScriptEngine's own implemenation
svn path=/trunk/KDE/kdelibs/; revision=1084746
2010-02-03 17:37:54 +00:00
Aaron J. Seigo
7d33f20f40 even better: if the UI file is bogus for whatever reason (not just "we can't open it") call the script's createConfigurationInterface to see if that works any better
svn path=/trunk/KDE/kdelibs/; revision=1084729
2010-02-03 16:18:37 +00:00
Aaron J. Seigo
9e9ccc663b the ui load can return a null pointer, so guard against that
svn path=/trunk/KDE/kdelibs/; revision=1084622
2010-02-03 10:48:53 +00:00
Aaron J. Seigo
dd53f9bd7f make it easy to track if the configuration dialog is around or not
svn path=/trunk/KDE/kdelibs/; revision=1082160
2010-01-29 21:21:16 +00:00
Chani Armitage
14c45f179f make "run associated application" obey security
svn path=/trunk/KDE/kdelibs/; revision=1081144
2010-01-27 20:34:55 +00:00
Aaron J. Seigo
5eb78f23ea zooming is gone; activity switching can be done for now using the activity switcher or the keyboard shortcuts. a new activity manager will be built up from here
svn path=/trunk/KDE/kdelibs/; revision=1080793
2010-01-26 23:35:32 +00:00
Chani Armitage
5f91181d59 changing names works better when you change all instances ;)
svn path=/trunk/KDE/kdelibs/; revision=1077904
2010-01-21 06:00:24 +00:00
Aaron J. Seigo
2ca0143367 don't double-connect the signals
svn path=/trunk/KDE/kdelibs/; revision=1076949
2010-01-19 06:57:28 +00:00
Aaron J. Seigo
5933c66adf unecessary
svn path=/trunk/KDE/kdelibs/; revision=1076898
2010-01-19 01:57:19 +00:00
Aaron J. Seigo
9685752853 debug no longer needed, problem solved.
svn path=/trunk/KDE/kdelibs/; revision=1071845
2010-01-08 22:12:35 +00:00
Aaron J. Seigo
e23b884920 some diagnostic debug for Jon
svn path=/trunk/KDE/kdelibs/; revision=1071451
2010-01-08 05:07:00 +00:00
Aaron J. Seigo
e52aebe20e don't both with checking if it's a new group unless we have a package
svn path=/trunk/KDE/kdelibs/; revision=1071441
2010-01-08 02:13:52 +00:00
Aaron J. Seigo
c856db301c only do the work if the file exists
svn path=/trunk/KDE/kdelibs/; revision=1071440
2010-01-08 02:11:58 +00:00
Aaron J. Seigo
30ec5b73bb if the Applet requests config() before being added to a containment, but is nested in another Applet, it should still use the nest-Applet's config. i doubt it is a fix for 218064, but this is at least accurate and may address comment #15.
CCBUG:218064

svn path=/trunk/KDE/kdelibs/; revision=1071437
2010-01-08 02:02:43 +00:00
Aaron J. Seigo
321c298a96 standarize the authorization restrictions with other ones found in KDE; one of these is new in 4.4 and neither of the other two were ever documented anywhere
svn path=/trunk/KDE/kdelibs/; revision=1070582
2010-01-06 04:16:28 +00:00
Aaron J. Seigo
7a46df7066 adapt to Animation API cleanup
svn path=/trunk/KDE/kdelibs/; revision=1069731
2010-01-04 09:19:08 +00:00
Aaron J. Seigo
1181a53e3c tag the actions; now the desktop toolbox is sanely ordered
svn path=/trunk/KDE/kdelibs/; revision=1069705
2010-01-04 06:37:41 +00:00
Davide Bettio
5449cdbd82 Small string change: replaced Ok with OK.
It shouldn't hurt anyone.

svn path=/trunk/KDE/kdelibs/; revision=1068691
2010-01-01 20:44:56 +00:00
Davide Bettio
e6097845d9 Added icons to buttons.
svn path=/trunk/KDE/kdelibs/; revision=1068690
2010-01-01 20:43:49 +00:00
Marco Martin
a0162ccdef even tough extender is private in Applet, applet has too many friends, so to be sure it's properly guarded, use a weak pointer
BUG:220482

svn path=/trunk/KDE/kdelibs/; revision=1067549
2009-12-29 19:38:37 +00:00
Marco Martin
a75a8e101a this could be dangerous so we must pay attention in the next days for eventual regressions, but had to be done.
eliminate all the hardcoded minimum sizes and relay on size hints instead since now they work(ish)

svn path=/trunk/KDE/kdelibs/; revision=1066284
2009-12-26 16:48:45 +00:00
Adenilson Cavalcanti Da Silva
48af57c6ce Migrating Plasma Applet disappear animation to ZoomAnimation (it works
smoother and the code is simpler).


svn path=/trunk/KDE/kdelibs/; revision=1061465
2009-12-11 19:53:55 +00:00
Marco Martin
08ae083579 now the toolbox can be accessed by subclasses, so funny things can happen, bury it under a QWeakPointer so
svn path=/trunk/KDE/kdelibs/; revision=1054267
2009-11-25 19:46:33 +00:00
Aaron J. Seigo
65eda15e5d private headers
svn path=/trunk/KDE/kdelibs/; revision=1053920
2009-11-25 01:09:17 +00:00
Giulio Camuffo
79dfc044dd if it is an iconified PopupApplet in setAspectRatioMode store the new mode in the variable d->savedAspectRatio
svn path=/trunk/KDE/kdelibs/; revision=1051080
2009-11-18 20:18:32 +00:00
Giulio Camuffo
a35e7394c3 adds aspect ratio modes to Dialog; PopupApplet sets the right one for its dialog
svn path=/trunk/KDE/kdelibs/; revision=1051074
2009-11-18 20:11:03 +00:00