(→Plasma::Applet) |
(→Plasma runner terminology) |
||
| (16 intermediate revisions by 4 users not shown) | |||
| Line 64: | Line 64: | ||
=== Plasma::Applet === | === Plasma::Applet === | ||
| − | * remainSquare()+setAspectRatioMode()->merge using our own aspect ratio mode enun | + | * <s>remainSquare()+setAspectRatioMode()->merge using our own aspect ratio mode enun</s> |
* category()+name()+pluginName() dies->replaced by pluginInfo() | * category()+name()+pluginName() dies->replaced by pluginInfo() | ||
<!> pluginInfo() should return a hand-made KPluginInfo if id->appletDescription isValid() | <!> pluginInfo() should return a hand-made KPluginInfo if id->appletDescription isValid() | ||
| + | * <s>resetConfigurationObject()->pimpl</s> | ||
| + | * <s>watchForMouseMove()-> ??? (the suggested registerDragHandles is a very bad name)</s> | ||
| + | * <s>protected setBackgroundHints() + public backgroundHings() const</s>; <s>as a result (set)DrawStandardBackground() dies</s> | ||
| + | <s>Note: being protected AppletScript can't change it anymore: AppletScript friend of Applet?</s> | ||
* <s>(set)configNeeded()->(is|set)ConfigurationRequired()+set protected</s> | * <s>(set)configNeeded()->(is|set)ConfigurationRequired()+set protected</s> | ||
* <s>shape() dies</s> | * <s>shape() dies</s> | ||
| − | * | + | * <s>*Opacity() dies</s> |
| − | + | ||
| − | + | ||
* <s>launchActivated()-> releaseVisualFocus()</s> | * <s>launchActivated()-> releaseVisualFocus()</s> | ||
* <s>configXml() -> configScheme()</s> | * <s>configXml() -> configScheme()</s> | ||
| Line 77: | Line 79: | ||
* <s>inherits QGraphicsWidget</s> | * <s>inherits QGraphicsWidget</s> | ||
* <s>init()->protecgted+Corona::loadLayout() is friend</s> | * <s>init()->protecgted+Corona::loadLayout() is friend</s> | ||
| − | * | + | * <s>config() methods->protected.</s> |
| − | * | + | * <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> | ||
| Line 97: | Line 99: | ||
* <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() | ||
| − | |||
* <s>failedtoLaunch()->hasfailedToLaunch()</s> | * <s>failedtoLaunch()->hasfailedToLaunch()</s> | ||
* <s>setFailedToLaunch()->protected</s> | * <s>setFailedToLaunch()->protected</s> | ||
| Line 105: | Line 106: | ||
->enum BackgroundHint {NoBackground=0, StandardBackground, ShadowedBackground} | ->enum BackgroundHint {NoBackground=0, StandardBackground, ShadowedBackground} | ||
+QFlag | +QFlag | ||
| − | |||
| − | |||
* <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> | ||
| Line 214: | Line 213: | ||
* <s>clearMatches() -> removeAllMatches()</s> | * <s>clearMatches() -> removeAllMatches()</s> | ||
| − | === <s>Plasma:: | + | === Plasma runner terminology === |
| + | * <s>Plasma::SearchContext => Plasma::RunnerContext</s> | ||
| + | * <s>Plasma::SearchMatch => Plasma::QueryMatch</s> | ||
| + | * <s>In the RunnerContext, RunnerResult and AbstractRunner APIs:</s> | ||
| + | * search term => query | ||
| + | |||
| + | === <s>Plasma::Phase -> Plasma::Animator</s> === | ||
* <s>Animation merges with ElementAnimation -> AppearAnimation,DisappearAnimation,ActivateAnimation</s> | * <s>Animation merges with ElementAnimation -> AppearAnimation,DisappearAnimation,ActivateAnimation</s> | ||
* <s>SlideInMovement,SlideOutMovement,FastSlideInMovement, FastSlideOutMovement</s> | * <s>SlideInMovement,SlideOutMovement,FastSlideInMovement, FastSlideOutMovement</s> | ||
* <s>AnimId dies -> use int</s> | * <s>AnimId dies -> use int</s> | ||
| − | * constructor + destructor private | + | * <s>constructor + destructor private</s> |
| − | * animateItem, moveItem return int | + | * <s>animateItem, moveItem return int</s> |
| − | * add stopItemAnimation(int) | + | * <s>add stopItemAnimation(int)</s> |
* <s>animationCompleted() -> animationFinished()</s> | * <s>animationCompleted() -> animationFinished()</s> | ||
* <s>same for others signal</s> | * <s>same for others signal</s> | ||
| − | * protected slots -> Q_PRIVATE_SLOT | + | * <s>protected slots -> Q_PRIVATE_SLOT</s> |
| − | * init -> pimpl | + | * <s>init -> pimpl</s> |
* <s>setAnimationPixmap -> setInitialPixmap</s> | * <s>setAnimationPixmap -> setInitialPixmap</s> | ||
* <s>animationResult() -> currentPixmap</s> | * <s>animationResult() -> currentPixmap</s> | ||
| Line 237: | Line 242: | ||
* <s>elementX -> should use progress, not frame</s> | * <s>elementX -> should use progress, not frame</s> | ||
| − | === Plasma::GlApplet === | + | === <s>Plasma::GlApplet</s> === |
| − | * makeCurrent -> pimpl | + | * <s>makeCurrent -> pimpl</s>: actually, this is required to be public - aseigo |
=== Plasma::Delegate === | === Plasma::Delegate === | ||
(Marco Martin) | (Marco Martin) | ||
* <nowiki>*</nowiki>columnType* -> device notifier | * <nowiki>*</nowiki>columnType* -> device notifier | ||
| + | Needed for the delegate to know he must draw an icon smaller than the main one | ||
* <s>ctor should have parent param</s> | * <s>ctor should have parent param</s> | ||
* <s>constants ->pimpl</s> | * <s>constants ->pimpl</s> | ||
| Line 254: | Line 260: | ||
* <s>themeUpdated -> Q_PRIVATE_SLOT</s> | * <s>themeUpdated -> Q_PRIVATE_SLOT</s> | ||
| − | === Plasma::AppletBrowserWidget === | + | === <s>Plasma::AppletBrowserWidget</s> === |
| − | * remove containment from constructor | + | * <s>remove containment from constructor</s> |
| − | * protected slots -> Q_PRIVATE_SLOTS | + | * <s>protected slots -> Q_PRIVATE_SLOTS</s> |
| − | * private methods -> pimpl | + | * <s>private methods -> pimpl</s> |
| − | === Plasma::AppletBrowser === | + | === <s>Plasma::AppletBrowser</s> === |
| − | * remove containment from constructor | + | * <s>remove containment from constructor</s> |
NOTE : AppletBrowser and AppletBrowserWidget should be in different .h | NOTE : AppletBrowser and AppletBrowserWidget should be in different .h | ||
| Line 306: | Line 312: | ||
* <s>Change to new API</s> | * <s>Change to new API</s> | ||
| − | == | + | == Personal Hotpoints Shared During Introductory Session == |
* Get QScript script bindings loading | * Get QScript script bindings loading | ||
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: being protected AppletScript can't change it anymore: AppletScript friend of 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
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
* search term => query
(Marco Martin)
Needed for the delegate to know he must draw an icon smaller than the main one
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