Commit Graph

120 Commits

Author SHA1 Message Date
Laurent Montel
02b827a1fd Fix mem leak here too
svn path=/trunk/KDE/kdelibs/; revision=1013906
2009-08-21 07:31:20 +00:00
Laurent Montel
996fc634ce Fix mem leak
svn path=/trunk/KDE/kdelibs/; revision=1013905
2009-08-21 07:30:27 +00:00
Laurent Montel
c901e78ec9 Make it compile
svn path=/trunk/KDE/kdelibs/; revision=1013800
2009-08-20 19:18:25 +00:00
Richard Dale
eb51ca9165 * Add a Plasma::AppletScript::addStandardConfigurationPages() method that adds
standard pages to a configuration dialog such as the shortcuts one. In 
conjunction with standardConfigurationDialog() this will allow script engines
to use the same dialogs as C++ applets

svn path=/trunk/KDE/kdelibs/; revision=1013765
2009-08-20 18:19:44 +00:00
Aaron J. Seigo
0f8a89e2d4 add access to the extender
svn path=/trunk/KDE/kdelibs/; revision=976407
2009-06-01 15:53:32 +00:00
Chani Armitage
4bc017da76 lfranchi said to fix this :)
svn path=/trunk/KDE/kdelibs/; revision=968500
2009-05-15 20:58:09 +00:00
Richard Dale
3adfa46823 * The default package structure of a scripting data engine needs to be a
plasmoid, otherwise custom main script names won't work

svn path=/trunk/KDE/kdelibs/; revision=932329
2009-02-26 11:34:06 +00:00
Aaron J. Seigo
830a1d19dd give access to the standard config dialog to script engines that care to use it
svn path=/trunk/KDE/kdelibs/; revision=930708
2009-02-24 02:32:48 +00:00
Aaron J. Seigo
65268e77d4 by default, applet scripts get the generic config dialog
svn path=/trunk/KDE/kdelibs/; revision=913900
2009-01-20 02:11:01 +00:00
Alex Merry
9c1570f13e apidocs fixes.
Remember to document ALL parameters to methods.  They may seem obvious to you, but I had to look at the code for at least two of the methods in order to document their parameters correctly.

*waves stick of EBN-ness*


svn path=/trunk/KDE/kdelibs/; revision=908604
2009-01-10 00:08:31 +00:00
Aaron J. Seigo
a9cc2e29b6 provide access to config needs saving
svn path=/trunk/KDE/kdelibs/; revision=906373
2009-01-06 03:02:22 +00:00
Aaron J. Seigo
22bc5e8a42 no point in having a class with just one consumer (esp now that we require BC)
svn path=/trunk/KDE/kdelibs/; revision=905828
2009-01-05 08:28:23 +00:00
Aaron J. Seigo
0fc67ce435 no point in having a class in the main lib for just one consumer (esp now that we require BC)
svn path=/trunk/KDE/kdelibs/; revision=905827
2009-01-05 08:27:53 +00:00
Marco Martin
12fc12b692 add missing widgets
svn path=/trunk/KDE/kdelibs/; revision=903255
2008-12-30 10:43:20 +00:00
Chani Armitage
c1caaba626 these functions are important, they should be exposed
svn path=/trunk/KDE/kdelibs/; revision=902795
2008-12-29 08:22:28 +00:00
Chani Armitage
bd67989540 use the bool that's passed in :P
svn path=/trunk/KDE/kdelibs/; revision=902764
2008-12-29 04:45:05 +00:00
Aaron J. Seigo
1376b1dc9b consistent mocing
svn path=/trunk/KDE/kdelibs/; revision=884497
2008-11-15 06:11:17 +00:00
Aaron J. Seigo
ceb8332dae uninstallation command
svn path=/trunk/KDE/kdelibs/; revision=883052
2008-11-11 23:22:13 +00:00
Richard Dale
ecad3fb271 * Add package() and mainScript() methods to the scripting dataengine class
* Fix expected load path for a scripting dataengine and change from
  'plasma/engines' to 'plasma/dataengines' to be in line with the 
  'dataengine' type option of the plasmapkg tool

CCMAIL: kde-bindings@kde.org


svn path=/trunk/KDE/kdelibs/; revision=880550
2008-11-05 20:32:51 +00:00
Aaron J. Seigo
beaa49aeb2 ++compile
svn path=/trunk/KDE/kdelibs/; revision=879800
2008-11-04 02:39:56 +00:00
Aaron J. Seigo
1b523b9054 ok, this time JUST the plasma dir ;)
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9 bum-de-dum! plasma to kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Kevin Ottens
8a4bc36925 Revive UiLoader a bit as discussed on list.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879713
2008-11-03 21:27:59 +00:00
Aaron J. Seigo
5f04141dd2 add in two missing methods
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879693
2008-11-03 20:23:31 +00:00
Allen Winter
214ac5f91f clean up some kDebugs and kWarnings.
shorten some extra long lines.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870290
2008-10-12 10:20:02 +00:00
Allen Winter
e2c26f0a90 coding style fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870212
2008-10-12 01:39:10 +00:00
Petri Damstén
11317e0d7e add configChanged to Applet and AppletScript
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860299
2008-09-12 15:21:58 +00:00
Aaron J. Seigo
d14e6c63bb add setHasConfigurationInterface
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858745
2008-09-08 16:20:28 +00:00
Alex Merry
e293d7d785 Specify includes in apidocs, so we get
#include <Plasma/Foo>
at the top of the apidocs pages.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852289
2008-08-25 17:47:48 +00:00
Aaron J. Seigo
63bce9d1b4 move all the prive code into private/; makes it much clearer with the division lines are
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=839792
2008-07-30 20:35:42 +00:00
Marijn Kruisselbrink
21b148b963 change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00
Aaron J. Seigo
350bb8c48e AppletScript::shape()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=824153
2008-06-25 00:33:46 +00:00
Sebastian Sauer
1c59c73ae2 Don't assert since it's tmp and not temp ;)
But it doesn't work yet anyway cause we don't pass install/remove commands around.
BUG:164411


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=823774
2008-06-24 05:22:06 +00:00
Aaron J. Seigo
d5b4ede232 connect to the plasmoid feed
BUG:160494

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=821062
2008-06-16 09:04:14 +00:00
Richard Dale
691262431c * Add PLASMA_EXPORT macros to the five methods in the Plasma:: namespace so that they
can be used outside the plasma lib.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=807212
2008-05-13 09:39:19 +00:00
Aaron J. Seigo
6019dc7b27 huge patch, but it's needed to avoid crashes and i can't wait on other people's pending work forever. so...
QueryMatch by value! shared dptr == no copy of data either! so (nearly) all the speed love of pointers with none of the crash hate. woo!

RunnerContext also by value! die pointers die!

also get rid of tons of locking that just doesn't make sense anymore; get rid of data priority enum as well since it's completely meaningless.

speed, glory, stability! ftw!

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805661
2008-05-09 03:49:11 +00:00
Richard Dale
61d69ba939 * Oops, the scripting method 'showConfigurationInterface()' was correctly named after all, so
revert the commit to change it

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805532
2008-05-08 17:46:28 +00:00
Richard Dale
580df25f72 * Rename the applet scripting method showConfigurationInterface() as createConfigurationInterface()
to match the name of the equivalent C++ api method

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805387
2008-05-08 12:12:31 +00:00
Aaron J. Seigo
f3188fb672 SearchMatch -> QueryMatch
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803385
2008-05-02 18:46:05 +00:00
Aaron J. Seigo
f55bbb73f9 SearchContext -> RunnerContext
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803041
2008-05-01 18:40:10 +00:00
Laurent Montel
2621c6c07f Language->API
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802727
2008-04-30 11:41:07 +00:00
Davide Bettio
c32f8a4511 Replacing exec() with run(): this change wasn't discussed during the tokamak meeting.
run() method is more obvious than exec() (don't forget that a runner run :) ).
Anyway during the meeting we have decided to replace createMatchOptions() with createRunOptions()
and (set)hasMatchOptions() with (set)hasRunOptions(), now with this commit we have a more coherent naming.
CCMAIL: panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802143
2008-04-28 17:11:12 +00:00
Davide Bettio
4845197db5 API REVIEW: protected slots -> not slots
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801707
2008-04-27 13:52:59 +00:00
Davide Bettio
3210ad5beb API REVIEW: contructor -> protected
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801701
2008-04-27 13:50:49 +00:00
Davide Bettio
370d6b0b7e protected slots -> not slots
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801699
2008-04-27 13:47:59 +00:00
Davide Bettio
7672b1620c constraintsUpdated() -> constraintsEvent()
Probably it should be protected and we need also updateConstraints() like in applet.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801661
2008-04-27 11:23:09 +00:00
Albert Astals Cid
4068f45cf9 const & in foreach
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801430
2008-04-26 16:19:00 +00:00
Anne-Marie Mahfouf
0b12fc3a5e API review: sourceRequested() -> sourceRequestEvent()
updateSource() -> updateSourceEvent()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801373
2008-04-26 12:59:44 +00:00
Anne-Marie Mahfouf
a522992e06 API review: clearSources()-> removeAllSources()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801363
2008-04-26 12:30:42 +00:00
Anne-Marie Mahfouf
254077afa4 API review clearData() -> removeAllData()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801353
2008-04-26 12:12:37 +00:00
Alexis Ménard
13f4fae5f3 +contentSizeHint -> died
+contextActions -> contextualActions 

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801150
2008-04-25 19:55:24 +00:00
Aaron J. Seigo
fe9e21934d api changes in dataengine
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801075
2008-04-25 16:17:33 +00:00
Aaron J. Seigo
9250bd82b4 put sourceLimit back in, add an accessor as well. used by akonadi
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800769
2008-04-24 20:16:21 +00:00
Anne-Marie Mahfouf
fb85325fe6 API review: remove setSourceLimit()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800552
2008-04-24 11:46:06 +00:00
Anne-Marie Mahfouf
5492b75e95 API review: clearData() -> removeAllData()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800422
2008-04-24 08:10:30 +00:00
Anne-Marie Mahfouf
e435c15f14 API review clearSources() -> removeAllSources()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800387
2008-04-24 06:38:14 +00:00
Chani Armitage
e850a93871 dataengine api review: %s/UpdateInterval/PollingInterval/g
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800376
2008-04-24 02:21:22 +00:00
Aaron J. Seigo
3e7d6cc024 runners and engines need packages with mainscripts
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796412
2008-04-13 14:41:52 +00:00
Alexis Ménard
4467261c95 Merge woc branch to trunk, say good bye to old plasma, there is a lot of stuff to port
applets, 
please update to another revision to use the version that works

green flag from aaron


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796368
2008-04-13 13:23:39 +00:00
Aaron J. Seigo
99c036a212 make package and mainScript part of ScriptEngine
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796106
2008-04-12 15:23:15 +00:00
Aaron J. Seigo
e781f69687 make PackageStructure loading actually work and abstract that all away into a cute little method elsewhere
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=793416
2008-04-03 22:45:09 +00:00
Pino Toscano
c9dd0f1dd6 use the KDE/KFoo form for KDE CamelCase includes in public headers
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=785412
2008-03-13 23:35:06 +00:00
Sebastian Sauer
ae6880bc15 redirect also the constraintsUpdated(), contextActions() and showConfigurationInterface() methods to the scriptengine.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781447
2008-03-02 21:36:59 +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
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
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
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
Petri Damstén
8a15088888 Scripting update.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770587
2008-02-04 04:41:40 +00:00
Aaron J. Seigo
0e0d1122ca BINARY INCOMPATIBLE CHANGE
* create a subdir for our scripting classes
* break ScriptEngine into two: a base class and AppletScript
* add stub classes for RunnerScript and DataEngineScript
* provide generic loading methods for all three

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765971
2008-01-25 00:04:03 +00:00