(→Plasma::Package(josebur)) |
(→Plasma runner terminology) |
||
| (53 intermediate revisions by 6 users not shown) | |||
| Line 14: | Line 14: | ||
* <s>slots -> Q_PRIVATE_SLOT</s> | * <s>slots -> Q_PRIVATE_SLOT</s> | ||
| − | === Plasma::Corona | + | === <s>Plasma::Corona</s> === |
* <s>Remove constructor with size parameters</s> | * <s>Remove constructor with size parameters</s> | ||
| Line 21: | Line 21: | ||
* <s>loadDefaultSetup protected and loadDefaultLayout</s> | * <s>loadDefaultSetup protected and loadDefaultLayout</s> | ||
* <s>clearApplets -> clearContainments</s> | * <s>clearApplets -> clearContainments</s> | ||
| − | * config -> private Note : config protected in containments and applets | + | * <s>config -> private Note : config protected in containments and applets</s> |
Note: remaining public for now applet needs it for Applet::globalConfig() | Note: remaining public for now applet needs it for Applet::globalConfig() | ||
* <s>load/save applets -> load/save Layouts</s> | * <s>load/save applets -> load/save Layouts</s> | ||
| − | * scheduleConfigSync -> private | + | * <s>scheduleConfigSync -> private</s> |
* <s>addContainment not a slot ->split</s> | * <s>addContainment not a slot ->split</s> | ||
** <s>addContainment(id, delayedFlag) [private]</s> | ** <s>addContainment(id, delayedFlag) [private]</s> | ||
** <s>addContainment() [public]</s> | ** <s>addContainment() [public]</s> | ||
| − | * containmentFor screen -> Not slot | + | * <s>containmentFor screen -> Not slot</s> |
| − | + | ||
* <s>containments() not a slot</s> | * <s>containments() not a slot</s> | ||
* <s>launchActivated -> to plasmaapp</s> | * <s>launchActivated -> to plasmaapp</s> | ||
| − | * screenOwnerChanged -> to plasmaapp | + | * <s>screenOwnerChanged -> to plasmaapp</s> |
Note: it's not really desktop specific, so will stay here | Note: it's not really desktop specific, so will stay here | ||
* <s>protected slots -> private </s> | * <s>protected slots -> private </s> | ||
| Line 65: | Line 64: | ||
=== Plasma::Applet === | === Plasma::Applet === | ||
| − | + | * <s>remainSquare()+setAspectRatioMode()->merge using our own aspect ratio mode enun</s> | |
| + | * category()+name()+pluginName() dies->replaced by pluginInfo() | ||
| + | <!> 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>shape() dies</s> | ||
| + | * <s>*Opacity() dies</s> | ||
| + | * <s>launchActivated()-> releaseVisualFocus()</s> | ||
| + | * <s>configXml() -> configScheme()</s> | ||
| + | * <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> | ||
| − | * | + | * <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> |
| − | + | ||
Note: check again corona for events like methods | Note: check again corona for events like methods | ||
| − | * formFactors()->non virtual + get the containment impl there | + | * <s>formFactors()->non virtual + get the containment impl there |
| − | ==>Plasma::Containment::Private inherits Plasma::Applet::Private | + | ==>Plasma::Containment::Private inherits Plasma::Applet::Private</s> |
| − | * location-> Plasma::Containment::Private | + | * <s>location-> Plasma::Containment::Private</s> |
| − | + | ||
* <s>knownApplets()->listAppletInfo()</s> | * <s>knownApplets()->listAppletInfo()</s> | ||
* <s>knownAppletsForMimetype()->listAppletInfoForMimeType()</s> | * <s>knownAppletsForMimetype()->listAppletInfoForMimeType()</s> | ||
| Line 88: | Line 97: | ||
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>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> | ||
| − | |||
* <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} | ||
+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> | ||
| − | * | + | * <s>requestFocus() dies</s> |
| − | + | * <s>showConfigurationInterface()->nonvirtual</s> | |
| − | + | * <s>createconfigurationInterface()->virtual protected, not slot</s> | |
| − | + | ||
| − | * showConfigurationInterface()->nonvirtual | + | |
| − | * createconfigurationInterface()->virtual protected, not slot | + | |
* <s>Flush UpdatedConstraints()->Flush PendingCostraintEvents()</s> | * <s>Flush UpdatedConstraints()->Flush PendingCostraintEvents()</s> | ||
| − | + | * <s>ThemeChanged()->Q_PRIVATE_SLOT</s> | |
| − | + | * <s>globalName(), instanceName()->pimpl</s> | |
| − | + | * <s>watchForFocus()->dies</s> | |
| − | + | * <s>needFocus()->dies</s> | |
| − | * globalName(), instanceName()->pimpl | + | * <s>topLeft()->dies</s> |
| − | * watchForFocus()->dies | + | * <s>checkImmutability()->Q_PRIVATE_SLOT</s> |
| − | + | ||
| − | * needFocus()->dies | + | |
| − | * topLeft()->dies | + | |
| − | * checkImmutability()->Q_PRIVATE_SLOT | + | |
=== Plasma::Containments(aseigo) === | === Plasma::Containments(aseigo) === | ||
| + | * addToolBoxTool() -> addToolBoxAction(action) | ||
| + | * add removeToolBoxAction(action) | ||
| + | * <s>formfactor() & location() in Applet</s> | ||
| + | * <s>setFormFactor() & setLocation() in Containment</s> | ||
* <s>StyleOption::desktop dies</s> | * <s>StyleOption::desktop dies</s> | ||
* <s>List, Dict dies</s> | * <s>List, Dict dies</s> | ||
| Line 135: | Line 129: | ||
* <s>setContainmentType() -> protected</s> | * <s>setContainmentType() -> protected</s> | ||
* <s>setIsContainment() -> dies (meat in applet)</s> | * <s>setIsContainment() -> dies (meat in applet)</s> | ||
| − | |||
| − | |||
* <s>known...() -> list...()</s> | * <s>known...() -> list...()</s> | ||
* <s>addApplet() -> split</s> | * <s>addApplet() -> split</s> | ||
| Line 142: | Line 134: | ||
** <s>addApplet(name, args, point, size, id, delayedinit) [private]</s> | ** <s>addApplet(name, args, point, size, id, delayedinit) [private]</s> | ||
* <s>indexAt() dies, add QPointF to appletAdded()</s> | * <s>indexAt() dies, add QPointF to appletAdded()</s> | ||
| − | * setScreen() & screen() & effectiveScreenPos() -> die | + | * <s>setScreen() & screen() & effectiveScreenPos() -> die</s> will remain due to PUI relevance - aseigo |
* <s>(save|load)Constraints() -> pimpl</s> | * <s>(save|load)Constraints() -> pimpl</s> | ||
* <s>emitLaunchActivated() -> see Applet, maybe not public</s> | * <s>emitLaunchActivated() -> see Applet, maybe not public</s> | ||
| − | |||
| − | |||
* <s>containmentConstraingUpdated() -> pimpl</s> | * <s>containmentConstraingUpdated() -> pimpl</s> | ||
* <s>add setToolBoxExpanded(bool) slot</s> | * <s>add setToolBoxExpanded(bool) slot</s> | ||
| Line 156: | Line 146: | ||
* <s>toggleDesktopImmutability() -> Q_PRIVATE_SLOT</s> | * <s>toggleDesktopImmutability() -> Q_PRIVATE_SLOT</s> | ||
* <s>zoomIn() -> Q_PRIVATE_SLOT</s> | * <s>zoomIn() -> Q_PRIVATE_SLOT</s> | ||
| − | * createLayout() -> dies | + | * <s>createLayout() -> dies</s> |
* <s>protected slots (except dropEvent()) & private slots & methods ->pimpl & Q_PRIVATE_SLOT</s> | * <s>protected slots (except dropEvent()) & private slots & methods ->pimpl & Q_PRIVATE_SLOT</s> | ||
| − | === Plasma::DataEngine === | + | === <s>Plasma::DataEngine</s> === |
* <s>sourceDict() -> containerDict()</s> | * <s>sourceDict() -> containerDict()</s> | ||
* <s>engineName() -> name() + add protected setName()</s> | * <s>engineName() -> name() + add protected setName()</s> | ||
| Line 169: | Line 159: | ||
* <s>sourceRequested -> sourceRequestEvent()</s> | * <s>sourceRequested -> sourceRequestEvent()</s> | ||
* <s>updateSource() -> updateSourceEvent()</s> | * <s>updateSource() -> updateSourceEvent()</s> | ||
| − | * setData() -> SHALL NOT remove source (fix APIDOX) | + | * <s>setData() -> SHALL NOT remove source (fix APIDOX)</s> |
* <s>clearData() -> removeAllData()</s> | * <s>clearData() -> removeAllData()</s> | ||
* <s>setSourceLimit() -> DIE! DIE! DIE!</s> | * <s>setSourceLimit() -> DIE! DIE! DIE!</s> | ||
* <s>clearSources() -> removeAllSources()</s> | * <s>clearSources() -> removeAllSources()</s> | ||
* <s>checkForUpdates() -> scheduleSourcesUpdated()</s> | * <s>checkForUpdates() -> scheduleSourcesUpdated()</s> | ||
| − | * internalUpdateSource() -> Q_PRIVATE_SLOT | + | * <s>internalUpdateSource() -> Q_PRIVATE_SLOT</s> |
=== <s>Plasma::DataEngineManager</s> === | === <s>Plasma::DataEngineManager</s> === | ||
| Line 182: | Line 172: | ||
* <s>(un)load()->(un)loadEngine()</s> | * <s>(un)load()->(un)loadEngine()</s> | ||
| − | === Plasma::DataContainer === | + | === <s>Plasma::DataContainer</s> === |
* <s>clearData()->removeAllData()</s> | * <s>clearData()->removeAllData()</s> | ||
* <s>checkForUpdate()->protected</s> | * <s>checkForUpdate()->protected</s> | ||
| Line 190: | Line 180: | ||
* <s>checkUsage()->pimpl</s> | * <s>checkUsage()->pimpl</s> | ||
* <s>connectVisualization()->not slot</s> | * <s>connectVisualization()->not slot</s> | ||
| − | * unused()->becameUnused() | + | * <s>unused()->becameUnused()</s> |
| − | * requestUpdate()->updateRequested() | + | * <s>requestUpdate()->updateRequested()</s> |
| − | === Plasma::View === | + | === <s>Plasma::View</s> === |
| − | + | ||
* <s>(set)DrawWallpaper() -> (set|is)WallpaperEnabled()</s> | * <s>(set)DrawWallpaper() -> (set|is)WallpaperEnabled()</s> | ||
| − | * (set)Screen() -> plasma app | + | * <s>(set)Screen() -> plasma app</s> going to leave this here, as the screen management is not manditory, but useful for any PUI - aseigo |
| − | * (set)Desktop() -> plasma app | + | * <s>(set)Desktop() -> plasma app</s> going to leave this here, as the screen management is not manditory, but useful for any PUI - aseigo |
| − | * effectiveDesktop -> plasma app | + | * <s>effectiveDesktop -> plasma app</s> going to leave this here, as the screen management is not manditory, but useful for any PUI - aseigo |
* <s>config() -> protected</s> | * <s>config() -> protected</s> | ||
* <s>updateSceneRect() -> Q_PRIVATE_SLOT</s> | * <s>updateSceneRect() -> Q_PRIVATE_SLOT</s> | ||
* <s>initGraphicsView() -> pimpl</s> | * <s>initGraphicsView() -> pimpl</s> | ||
| − | === Plasma::AbstractRunner | + | === Plasma::AbstractRunner === |
* <s>SlowSpeed before NormalSpeed</s> | * <s>SlowSpeed before NormalSpeed</s> | ||
* <s>load() -> loadAll()</s> + load() no = QString() for whitelist | * <s>load() -> loadAll()</s> + load() no = QString() for whitelist | ||
| Line 224: | 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> | ||
| − | === <s>Plasma:: | + | === <s>Plasma::AnimationDriver</s> === |
* <s>FramesPerSeconds -> animationFramesPerSeconds, elementAnimationFramesPerSeconds,movementAnimationFramesPerSeconds</s> | * <s>FramesPerSeconds -> animationFramesPerSeconds, elementAnimationFramesPerSeconds,movementAnimationFramesPerSeconds</s> | ||
* <s>same for duration and curve</s> | * <s>same for duration and curve</s> | ||
| Line 247: | 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> | ||
| − | * constants | + | * <s>constants ->pimpl</s> |
| + | * <s>protected non virtual</s> -> pimpl | ||
The protected methods are needed only by subclasses to know where to paint so they are still needed | The protected methods are needed only by subclasses to know where to paint so they are still needed | ||
* <s>setRole()->setRoleMapping(QMap) + add roleMapping() getter</s> | * <s>setRole()->setRoleMapping(QMap) + add roleMapping() getter</s> | ||
* fixme: copy rhs of whiteboard (missing) | * fixme: copy rhs of whiteboard (missing) | ||
| − | === Plasma::Dialog === | + | === <s>Plasma::Dialog</s> === |
(Ménard Alexis) | (Ménard Alexis) | ||
* <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 | ||
| − | === Plasma::PackageMetadata | + | === <s>Plasma::PackageMetadata</s> === |
* <s>isComplete -> isValid</s> | * <s>isComplete -> isValid</s> | ||
* <s>write() -> remove icon parameter</s> | * <s>write() -> remove icon parameter</s> | ||
| Line 283: | Line 280: | ||
* <s>required -> isRequired()</s> | * <s>required -> isRequired()</s> | ||
* (set)(Default)Mimetypes -> (set)(Default)Mimetypes ?? | * (set)(Default)Mimetypes -> (set)(Default)Mimetypes ?? | ||
| − | * uninstallPackage -> packageName instead of param package | + | * <s>uninstallPackage -> packageName instead of param package</s> |
| − | * pathChanged -> died | + | * <s>pathChanged -> died</s> |
* Xtypes() -> XFormat() | * Xtypes() -> XFormat() | ||
=== Plasma::Package(josebur) === | === Plasma::Package(josebur) === | ||
* const char * -> QString | * const char * -> QString | ||
| − | * knownPackages -> listInstalled | + | * <s>knownPackages -> listInstalled</s> |
| − | * installPackage -> install | + | * <s>installPackage -> install</s> leave it |
| − | * registerPackage -> register '''Keyword!''' | + | * <s>registerPackage -> register</s> '''Keyword!''' leave it |
| − | * createPackage -> create | + | * <s>createPackage -> create</s> leave it |
* Missing uninstall | * Missing uninstall | ||
=== Plasma::ScriptEngine === | === Plasma::ScriptEngine === | ||
| − | * contructor -> protected | + | * <s>contructor -> protected</s> |
| − | * protected slots -> not slots | + | * <s>protected slots -> not slots</s> |
* knowLanguages -> getScriptApis() ?? | * knowLanguages -> getScriptApis() ?? | ||
* loadScriptEngine() -> language param become a scriptAPI | * loadScriptEngine() -> language param become a scriptAPI | ||
| Line 304: | Line 301: | ||
=== Plasma::AppletScript === | === Plasma::AppletScript === | ||
* <s>contentSizeHint -> died</s> | * <s>contentSizeHint -> died</s> | ||
| − | * constraintsUpdated -> constraintsEvent | + | * <s>constraintsUpdated -> constraintsEvent</s> |
* <s>contextActions -> contextualActions</s> | * <s>contextActions -> contextualActions</s> | ||
* change the K_EXPORT stuff to support several plugins by lib | * change the K_EXPORT stuff to support several plugins by lib | ||
| Line 310: | Line 307: | ||
=== Plasma::RunnerScript === | === Plasma::RunnerScript === | ||
* change to new runner API | * change to new runner API | ||
| − | * protected slots -> not slots | + | * <s>protected slots -> not slots</s> |
| − | === Plasma::DataEngineScript === | + | === <s>Plasma::DataEngineScript</s> === |
* <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