(→Plasma::GlApplet) |
(→Plasma runner terminology) |
||
| (9 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() | ||
| − | * resetConfigurationObject()->pimpl | + | * <s>resetConfigurationObject()->pimpl</s> |
| − | * watchForMouseMove()-> ??? (the suggested registerDragHandles is a very bad name) | + | * <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>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>Note: being protected AppletScript can't change it anymore: AppletScript friend of Applet?</s> | ||
| Line 220: | 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 249: | Line 248: | ||
(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 260: | 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 | ||
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