(→Plasma::Applet) |
(→Plasma::Applet) |
||
| Line 64: | Line 64: | ||
=== Plasma::Applet === | === Plasma::Applet === | ||
| − | + | * configXml() -> configScheme() | |
| + | * remainSquare()+setAspectRatioMode()->merge using our own aspect ratio mode enun (notmart) | ||
| + | * category()+name()+pluginName() dies->replaced by pluginInfo() | ||
| + | <!> pluginInfo() should return a hand-made KPluginInfo if id->appletDescription isValid() | ||
| + | * (set)configNeeded()->(is|set)ConfigurationRequired()+set protected | ||
| + | * shape() dies | ||
| + | * resetConfigurationObject()->pimpl | ||
| + | * *Opacity() dies | ||
| + | * launchActivated()->protected, releaseVisualFocus() | ||
| + | * watchForMouseMove()-> ??? (the suggested registerDragHandles is a very bad name) | ||
| + | * <s>contextActions()->const+contextualActions()</s> | ||
* <s>inherits QGraphicsWidget</s> | * <s>inherits QGraphicsWidget</s> | ||
* <s>init()->protecgted+Corona::loadLayout() is friend</s> | * <s>init()->protecgted+Corona::loadLayout() is friend</s> | ||
| Line 70: | Line 80: | ||
* (NOTE: globalConfig will remain public) <s>globalConfig()->protected</s> | * (NOTE: globalConfig will remain public) <s>globalConfig()->protected</s> | ||
Note: It has been decided the above two functions will remain public because if an applet uses an external QWidget it will have to access the configuration of the applet | Note: It has been decided the above two functions will remain public because if an applet uses an external QWidget it will have to access the configuration of the applet | ||
| − | |||
* <s>constraintUpdated()->constraintEvent()+protected</s> | * <s>constraintUpdated()->constraintEvent()+protected</s> | ||
Note: check again corona for events like methods | Note: check again corona for events like methods | ||
| Line 76: | Line 85: | ||
==>Plasma::Containment::Private inherits Plasma::Applet::Private</s> | ==>Plasma::Containment::Private inherits Plasma::Applet::Private</s> | ||
* <s>location-> Plasma::Containment::Private</s> | * <s>location-> Plasma::Containment::Private</s> | ||
| − | |||
* <s>knownApplets()->listAppletInfo()</s> | * <s>knownApplets()->listAppletInfo()</s> | ||
* <s>knownAppletsForMimetype()->listAppletInfoForMimeType()</s> | * <s>knownAppletsForMimetype()->listAppletInfoForMimeType()</s> | ||
| Line 87: | Line 95: | ||
but even if it's friend of applet it does that in the dptr, | but even if it's friend of applet it does that in the dptr, | ||
and this somewhere compiles somewhere not, generally not good. | and this somewhere compiles somewhere not, generally not good. | ||
| − | |||
| − | |||
* <s>color() die! die! die!</s> | * <s>color() die! die! die!</s> | ||
* <s>isKioskmmutable()->pimpl</s> isImmutable() setIsImmutable() and isKioskImmutable() became immutability() and setImmutability() | * <s>isKioskmmutable()->pimpl</s> isImmutable() setIsImmutable() and isKioskImmutable() became immutability() and setImmutability() | ||
| Line 94: | Line 100: | ||
* <s>failedtoLaunch()->hasfailedToLaunch()</s> | * <s>failedtoLaunch()->hasfailedToLaunch()</s> | ||
* <s>setFailedToLaunch()->protected</s> | * <s>setFailedToLaunch()->protected</s> | ||
| − | |||
* <s>hasCofigurationInterface()-> const</s> | * <s>hasCofigurationInterface()-> const</s> | ||
* <s>setHasConfigurationInterface()->protected</s> | * <s>setHasConfigurationInterface()->protected</s> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
* <s>kill *StandardBackground()+*ShadowShown()</s> | * <s>kill *StandardBackground()+*ShadowShown()</s> | ||
->enum BackgroundHint {NoBackground=0, StandardBackground, ShadowedBackground} | ->enum BackgroundHint {NoBackground=0, StandardBackground, ShadowedBackground} | ||
| Line 110: | Line 109: | ||
* <s>set(is)containment()->set(ActsAs)Containment()+setter is protected</s> | * <s>set(is)containment()->set(ActsAs)Containment()+setter is protected</s> | ||
* <s>raise()->slot+addlower()</s> | * <s>raise()->slot+addlower()</s> | ||
| − | |||
| − | |||
| − | |||
* <s>requestFocus() dies</s> | * <s>requestFocus() dies</s> | ||
* <s>showConfigurationInterface()->nonvirtual</s> | * <s>showConfigurationInterface()->nonvirtual</s> | ||
* <s>createconfigurationInterface()->virtual protected, not slot</s> | * <s>createconfigurationInterface()->virtual protected, not slot</s> | ||
* <s>Flush UpdatedConstraints()->Flush PendingCostraintEvents()</s> | * <s>Flush UpdatedConstraints()->Flush PendingCostraintEvents()</s> | ||
| − | |||
| − | |||
| − | |||
* <s>ThemeChanged()->Q_PRIVATE_SLOT</s> | * <s>ThemeChanged()->Q_PRIVATE_SLOT</s> | ||
* <s>globalName(), instanceName()->pimpl</s> | * <s>globalName(), instanceName()->pimpl</s> | ||
* <s>watchForFocus()->dies</s> | * <s>watchForFocus()->dies</s> | ||
| − | |||
* <s>needFocus()->dies</s> | * <s>needFocus()->dies</s> | ||
* <s>topLeft()->dies</s> | * <s>topLeft()->dies</s> | ||
Note: remaining public for now applet needs it for Applet::globalConfig()
Note: it's not really desktop specific, so will stay here
Terminology : layouts = Applets + containments organization
<!> pluginInfo() should return a hand-made KPluginInfo if id->appletDescription isValid()
Note: It has been decided the above two functions will remain public because if an applet uses an external QWidget it will have to access the configuration of the applet
Note: check again corona for events like methods
==>Plasma::Containment::Private inherits Plasma::Applet::Private
Note: known*()->list*()
Note: containment wants to construct an Applet directly when creates the one with the failed to launch error message, but even if it's friend of applet it does that in the dptr, and this somewhere compiles somewhere not, generally not good.
->enum BackgroundHint {NoBackground=0, StandardBackground, ShadowedBackground}
+QFlag
protected setBackgroundHints() + public backgroundHings() const
Note: being protected AppletScript can't change it anymore: AppletScript friend of Applet?
(Marco Martin)
The protected methods are needed only by subclasses to know where to paint so they are still needed
(Ménard Alexis)
NOTE : AppletBrowser and AppletBrowserWidget should be in different .h