Commit Graph

1557 Commits

Author SHA1 Message Date
Dan Meltzer
7f624f85d9 Revert one large git mess
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780657
2008-02-29 17:50:57 +00:00
Dan Meltzer
64f0ce7739 Fix some problems aseigo pointed out in the code.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780655
2008-02-29 17:43:35 +00:00
Dan Meltzer
a081559257 Commit initial progress of work to port to qt4.4
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780654
2008-02-29 17:43:31 +00:00
Aaron J. Seigo
a3ed531670 * use PackageMetadata when installing a package
* provide a Package::registerPackage convenience method
* make the contentsPrefix optional / changeable; required for packages we don't control the structure of
* PackageMetadata -> file fixes
* provide a way to set the implementation languae in PackageMetadata (e.g. "dashboard" or "webkit")

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780464
2008-02-29 08:14:32 +00:00
Aaron J. Seigo
cbffa9ae29 allow mime types, which override simple globbing
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780463
2008-02-29 08:12:20 +00:00
Aaron J. Seigo
427c61de9b * check the write attribute in the service for the Package type
* set the path of the loaded PackageStructure
* more verbose failure messages

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780461
2008-02-29 08:11:45 +00:00
Aaron J. Seigo
331d163253 add the ability to install packages from files. needs a UI review by another pair of usability sensitive hands. there are still issues, such as lack of double click interactions and feeble feedback on error and success. but it works, now we can pollish.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780460
2008-02-29 08:10:14 +00:00
Adriaan de Groot
b3eae6af7b The @p structure parameter isn't treated as const by the implementation, which calls setPath() on it; don't pretend that it is in the headers.
CCMAIL: aseigo@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780230
2008-02-28 13:07:59 +00:00
Aaron J. Seigo
1a84d94eeb package structure appropriateness for dynamic packages
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780124
2008-02-28 03:53:26 +00:00
Script Kiddy
2e9488e2af SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780018
2008-02-27 20:45:01 +00:00
Aaron J. Seigo
577ea0bbe6 * let PackageStructures define their own install routine
* split install in Package into both installing the Package and registering it, allowing PackageStructures to implement their own installation routine without having to reimplement registration

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779805
2008-02-27 00:51:04 +00:00
Sebastian Kügler
ae0510db05 Icons now fade in the background animation. They also learnt to react on color theme
changes. Some codingstyle changes as the icing on the cake.

The fade-in effect can be switched off with Rafaels new feature, btw.

RB:195

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779804
2008-02-27 00:50:07 +00:00
Aaron J. Seigo
758f9ecb0b * don't crash when we don't have a containment
* don't duplicate the buttons in the appletbrowser: if you want buttons, you want the dialog
* start of get widgets options

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779727
2008-02-26 21:22:13 +00:00
Aaron J. Seigo
df25f5422e little test app so i can play with the applet browser a bit easier
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779725
2008-02-26 21:21:09 +00:00
Aaron J. Seigo
aad4f7e305 build and pass
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779707
2008-02-26 20:48:02 +00:00
Vincenzo Di Massa
a2a6ed7f04 Delete the property on the parent widget :-)
My first bugfix, yay!

BUG: 157816

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779541
2008-02-26 13:00:49 +00:00
Laurent Montel
513701457b It was removed
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779454
2008-02-26 07:52:21 +00:00
Aaron J. Seigo
450d289094 color scheme signalling, patch by Andrew Lake
CCMAIL:jamboarder@yahoo.com

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779435
2008-02-26 05:08:08 +00:00
Aaron J. Seigo
8379d47abb add useful includes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779433
2008-02-26 05:07:15 +00:00
Aaron J. Seigo
bed3c1d927 * share the package structures by using a single shared ptr
* use the script's contentSizeHint if we are a script

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779417
2008-02-26 04:08:51 +00:00
Aaron J. Seigo
12cea8acf1 add a contentSizeHint so that this can be easily forwarded in those cases where it needs to be something special (mac dashboard widgets being such an example)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779416
2008-02-26 04:08:01 +00:00
Aaron J. Seigo
9c94c63dfe make PackageStructure a loadable plugin, so that there are now three methods to get a PackageStructure:
0. builtin
1. c++ plugin
2. config file

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779415
2008-02-26 04:07:07 +00:00
Aaron J. Seigo
9b0fcfe714 add a service type for PackageStructure
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779414
2008-02-26 04:04:57 +00:00
Aaron J. Seigo
7cf7109266 load* -> load .. simpler, less verbose API
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779407
2008-02-26 01:58:55 +00:00
Aaron J. Seigo
fd705735ca register the package format key
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779406
2008-02-26 01:58:12 +00:00
Aaron J. Seigo
b4722d7052 some debug to help figure out the xinerama problems; will disable once it's all good.
Will: can you svn up and send the output this generates for you? thanks
CCBUG:158406

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779405
2008-02-26 01:55:50 +00:00
Aaron J. Seigo
2f78de3142 * make it possible for applets to define what package structure they use
* update to api tweakages

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779404
2008-02-26 01:48:52 +00:00
Aaron J. Seigo
b8662cb026 adjust the naming of these internal classes for some consistency
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779403
2008-02-26 01:47:26 +00:00
Aaron J. Seigo
ac195d0137 * make read non-static so you have to create a PackageStructure first; better symetry with write and prevents some unecessary object copies between methods (e.g. load -> read)
* provide a load method

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779402
2008-02-26 01:46:17 +00:00
Rafael Fernández López
954352ae1b Animations enable/disable system wide. TODO: Do a proper GUI for the style KCM and the animations feature.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779390
2008-02-26 00:53:54 +00:00
Aaron J. Seigo
9c6dd4846b assert on having a view before calling this ...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779305
2008-02-25 20:50:26 +00:00
Aaron J. Seigo
507a6f02a0 rearrange the initialization code of the engines a bit, moving more out of the manager class, and calling init immediately. applets shouldn't be connecting to them in their ctor, so this should have minimal (or even zero) effect on start up while ensuring that init gets called first no matter what
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779042
2008-02-25 11:24:37 +00:00
Zack Rusin
bc5accafd2 Fix a crash on loading of not existing engines.
r=aseigo (r/207/)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778956
2008-02-25 01:19:07 +00:00
Petri Damstén
0fb0b0f613 remove const to match AbstractRunner
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778873
2008-02-24 19:57:50 +00:00
Aaron J. Seigo
bfbea8235d this isn't an AbstractRunner subclass
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778836
2008-02-24 18:23:21 +00:00
Riccardo Iaconelli
8680797130 Make the desktop toolbox ignore zoom-ins and zoom-outs,
and therefore always remain visible and clickable.
Fix celeste's "bug". :-)

Shall it always remain on the top-right corner? I'll let
the panel-devel folks decide.

Signed-off-by: Riccardo Iaconelli <riccardo@kde.org>

CCMAIL: panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778736
2008-02-24 13:35:30 +00:00
Aaron J. Seigo
4b193edf0e don't make a submenu if there are no items in the top menu
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778473
2008-02-23 18:02:42 +00:00
Aaron J. Seigo
2b68bb49ee This lets the View have a desktop set to it and when drawing a Containment we pass in the effective desktop # being currently painted. The Containment is free to ignore this information, or it can try and cast the passed in options to a Containment::StyleOption to retrieve this information. This should be used for any per-desktop painting that happens (e.g. separate background per desktop) and opens the way to having View-per-Desktop for better composite manager support (think: desktop grid or cube where more than one desktop is simultaneously visible)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778239
2008-02-22 23:41:44 +00:00
Aaron J. Seigo
ee26284ec3 fix maximum size in lieu of the WoC porting
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778192
2008-02-22 19:40:46 +00:00
Aaron J. Seigo
ac2b7ba7a5 colourization support for svgs. patch by Andrew Lake.
CCMAIL:jamboarder@yahoo.com

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=777967
2008-02-22 01:05:11 +00:00
Marco Martin
b1a362b67f transplant of sceneEventFilter and mouseMoveEvent from the icon applet to the applet class, this will cause a lot less duplication.
if you want to make a widget draggable around just call the new function
  void watchForMouseMove(QGraphicsItem * watched, bool watch)

also, some style fixes.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=777705
2008-02-21 10:26:40 +00:00
Bill Egert
74e2ce31ff Make some better decisions.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=777237
2008-02-20 03:00:26 +00:00
Aaron J. Seigo
ee91508f3c * add subtext() so we can do some fancier painting of the results a bit easier
* remove some API that seemed well intentioned at the time, but has proven itself not useful

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=777009
2008-02-19 11:24:42 +00:00
Aaron J. Seigo
756041badd const ref fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776990
2008-02-19 09:19:02 +00:00
Aaron J. Seigo
b19eb3eaff handful more of krazy fixes and i'm done for the night
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776988
2008-02-19 09:12:34 +00:00
Aaron J. Seigo
f1b334f9a3 explicit
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776979
2008-02-19 08:32:32 +00:00
Aaron J. Seigo
2aa51ef338 well that was an easy fix: make scripts work in apps !plasma, e.g. plasmoidviewer
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776978
2008-02-19 08:31:49 +00:00
Aaron J. Seigo
b6767e1e39 we need a non-const object to lock, may as well make it a pointer as well since that's the common usage
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776952
2008-02-19 06:27:31 +00:00
Aaron J. Seigo
2e07ca5f64 remove all the cached pixmaps when the cache is cleared.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776939
2008-02-19 04:28:17 +00:00
Aaron J. Seigo
2954087e8d * eliminate the three search lists and have just one
* remove add*Match since they broke the pattern of usage (who owns the match? do you have to add it again? etc..)
* add addMatch to compliment addMatches for those runners that just ever have one match
* make the default SearchMatch type Possible rather than Exact (making Exact and Informational the exceptions, which matches usage patterns)
* const'ify the API a bit better

generally more performant, lower memory usage and clearer API having seen what is beign done in the runners. also makes it a bit easier to turn the Matches into a qt model

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776931
2008-02-19 03:59:21 +00:00