Commit Graph

33 Commits

Author SHA1 Message Date
Aaron J. Seigo
c4d63ac944 don't access an invalid group
BUG:176595

svn path=/trunk/KDE/kdelibs/; revision=891029
2008-12-01 00:28:50 +00:00
Aaron J. Seigo
c6f32b32f9 small hack to allow saving of defaults in ConfigLoader; used by Service, so put into the private impl for ConfigLoader and used that way.
based on a patch by Alain Boyer

CCMAIL:aainboyer@gmail.com

svn path=/trunk/KDE/kdelibs/; revision=887072
2008-11-21 01:26:43 +00:00
Aaron J. Seigo
df73771a1b ++compile
svn path=/trunk/KDE/kdelibs/; revision=879801
2008-11-04 02:55:37 +00:00
Aaron J. Seigo
4b08c03726 change KDE includes to use the .h style now that we're in libs
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +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
f66b4d819b API changes as announced:
* ConfigXml becomes ConfigLoader
  * Containment::(add|remove)ToolBoxTool(QAction *action) becomes
    Containment::(add|remove)ToolBoxAction(QAction *action)
  * Flash becomes FlashingLabel
  * Icon becomes IconWidget
  * PanelSvg becomes FrameSvg

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=877504
2008-10-29 17:46:33 +00:00
Aaron J. Seigo
fbd8bc850e change when we call setName when loaded as a plugin
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870187
2008-10-12 00:05:39 +00:00
Aaron J. Seigo
f0b3371d1a in the plugin case, setName will trigger the ops registration
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870178
2008-10-11 23:54:51 +00:00
Aaron J. Seigo
c9937807b4 * always check the config object before accessing it
* don't bother trying to register the ops in the default ctor as it will always fail

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870177
2008-10-11 23:53:52 +00:00
Allen Winter
a7aebfa60a a bunch more coding style fixes. still some lines longer than 100 chars.
this is definitely helping me find false positives in the Krazy style checker.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870161
2008-10-11 22:48:38 +00:00
Aaron J. Seigo
162fc57e8a don't bother the service plugin if the operation doesn't exist; no different in practice, but moves error handling more central
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867109
2008-10-02 20:12:32 +00:00
Aaron J. Seigo
266765dd9b take an optional parent parameter, always be sure the job has a parent
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866341
2008-09-30 16:03:11 +00:00
Aaron J. Seigo
c7bbfea29e actually open the temp file so we don't write into the app's rc file
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862102
2008-09-18 04:40:28 +00:00
Aaron J. Seigo
b3b8ac7ee3 ignore the event if we don't care
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857154
2008-09-04 20:13:23 +00:00
Aaron J. Seigo
be440d788a * always set up a job to run when an operation call is made, even if it fails
* call emitResult() from setResult

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856872
2008-09-03 23:55:06 +00:00
Aaron J. Seigo
124dd4bd63 various fixes i've come across while working on services stuff today
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856868
2008-09-03 23:33:57 +00:00
Aaron J. Seigo
d89e799c96 don't rely on KConfigSkeleton actually creating groups in the config or even being useful in telling us what groups it knows about. KConfigSkeleton is far too tightly coupled with the idea of KConfigDialog to be useful for half the things it should be useful for. =(
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856847
2008-09-03 22:28:10 +00:00
Aaron J. Seigo
6774525044 preserve the target information with NullService
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=856771
2008-09-03 18:51:41 +00:00
Alex Merry
9ce3660816 * rename operationIsEnabled to isOperationEnabled
* add disassociateWidget() methods
* don't allow a widget to associated with more than one operation
* set the enabled status properly when we associate a widget


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852983
2008-08-26 23:04:53 +00:00
Dirk Mueller
05a1658faa better return something
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852090
2008-08-25 10:27:53 +00:00
Aaron J. Seigo
3461b97edc support enabling and disabling operations in services
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845852
2008-08-12 13:58:58 +00:00
Aaron J. Seigo
0d175ab165 * signal when operations change
* allow associating widgets with specific operations

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841832
2008-08-04 08:00:47 +00:00
Alex Merry
d109b09bf3 Delay the execution of start(), so ServiceJob implementors don't have to worry about it.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841266
2008-08-02 22:29:19 +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
Aaron J. Seigo
e4a154743f * always re-reg when we set the name
* automatically set the name in the plugin case

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838869
2008-07-28 22:51:19 +00:00
Alex Merry
1cb7e7e771 Actually load the operations scheme when we have the information necessary to do so.
CCMAIL: plasma-devel@kde.org
Can someone backport this for 4.1.1, please?


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=838833
2008-07-28 20:59:03 +00:00
Alex Merry
0d42d36814 Help bug-hunting devs
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834455
2008-07-19 00:03:08 +00:00
Dirk Mueller
754b000b42 also implement the plugin version checks for the other plugin types
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833940
2008-07-17 16:26:29 +00:00
Alex Merry
56968db224 Actually call registerOperationScheme(). Also document a macro.
CCMAIL:panel-devel@kde.org
Can someone backport this to the 4.1 branch, please?  Otherwise no-one can write services in 4.1.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833339
2008-07-16 17:04:40 +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
Kevin Ottens
dd95e5a8e6 Renaming methods around operation calls to get better discoverability of
the API. KConfigGroup instances are the whole operation description, not
simply the parameters.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=814507
2008-05-30 14:26:07 +00:00
Aaron J. Seigo
5f3493654f first draft of Service; still evaluating the use of KConfigSkeleton
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809020
2008-05-18 04:27:54 +00:00