Plasma/libplasma2/API Review/Containment: Difference between revisions
(Created page with "= Constructors = All still needed? * explicit Containment(QObject *parent = 0, const QString &serviceId = QString(), uint containmentId = 0) * Containment(QObject *parent, c...") |
No edit summary |
||
Line 1: | Line 1: | ||
= | =Q_PROPERTIES= | ||
All | 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 = | ||
{| cellspacing="0" cellpadding="5" border="1" style="border: 1px solid gray; border-collapse: collapse; text-align: left; width: 100%;" class="sortable" | |||
|- style="background: rgb(236, 236, 236) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; white-space: nowrap;" | |||
as | |||
! Status | |||
! Action | |||
! Method | |||
{{FeatureDone|Keep| uint id() const;}} | |||
|} |
Revision as of 14:18, 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
asStatus | Action | Method |
---|---|---|
DONE | Keep | uint id() const;
|