Jump to content

Plasma/libplasma2/API Review/Containment: Difference between revisions

From KDE Community Wiki
Notmart (talk | contribs)
No edit summary
Notmart (talk | contribs)
Line 34: Line 34:
! Method  
! Method  


{{FeatureTodo|Rename, Change signature| Applet *addApplet(const QString &name, const QVariantList args,  const QRectF geometry ; -> becomes createApplet, args and geometry arguments go away}}
{{FeatureTodo|Rename| Applet *addApplet(const QString &name, const QVariantList args,  const QRectF geometry ; -> becomes createApplet, args and geometry arguments go away}}
{{FeatureTodo | Change signature| void addApplet(Applet *applet, const QPointF pos);  -> pos parameter goes }}
{{FeatureTodo | Paramenters| void addApplet(Applet *applet, const QPointF pos);  -> pos parameter goes }}
{{FeatureDone | Keep| QList<Applet *> applets() const; }}
{{FeatureDone | Keep| QList<Applet *> applets() const; }}
{{FeatureTodo | Remove| void clearApplets(); }}
{{FeatureTodo | Remove| void clearApplets(); }}
{{FeatureTodo | Paramenters| void setScreen(int screen, int desktop); -> remove desktop }}
{{FeatureDone | Keep| int screen() const; }}
{{FeatureTodo | Remove| int lastScreen() const; }}
{{FeatureTodo | Remove|  int desktop() const; }}
{{FeatureTodo | Remove|  int lastDesktop() const; }}
|}
|}



Revision as of 14:27, 18 February 2013

Q_PROPERTIES

All qproperties and invokables must go

Enums

Type probably goes in plasma.h

       enum Type {
           NoContainmentType = -1,  /**< @internal */
           DesktopContainment = 0,  /**< A desktop containment */ New name -> suggestions [ Canvas ]
           PanelContainment,        /**< A desktop panel */
           CustomContainment = 127, /**< A containment that is neither a desktop nor a panel
                                       but something application specific */
          CustomPanelContainment = 128 /**< A customized desktop panel */
       };

ToolType goes in plasma.h it becomes ActionType (not related to toolbox anymore)

       enum ToolType {
           AddTool = 0,
           ConfigureTool = 100,
           ControlTool = 200,
           MiscTool = 300,
           DestructiveTool = 400,
           UserToolType = DestructiveTool + 1000
       };
       Q_ENUMS(ToolType)

Bookkeeping

as
Status Action Method
TO DO Rename Applet *addApplet(const QString &name, const QVariantList args, const QRectF geometry ; -> becomes createApplet, args and geometry arguments go away <{{{3}}}>
TO DO Paramenters void addApplet(Applet *applet, const QPointF pos); -> pos parameter goes <{{{3}}}>
DONE Keep QList<Applet *> applets() const;
TO DO Remove void clearApplets(); <{{{3}}}>
TO DO Paramenters void setScreen(int screen, int desktop); -> remove desktop <{{{3}}}>
DONE Keep int screen() const;
TO DO Remove int lastScreen() const; <{{{3}}}>
TO DO Remove int desktop() const; <{{{3}}}>
TO DO Remove int lastDesktop() const; <{{{3}}}>


Constructors

as
Status Action Method
DONE Keep {{{2}}}
DONE Keep Containment(QObject *parent, const QVariantList &args);
DONE Keep ~Containment();