Plasma/Active/DeviceShell

< Plasma‎ | Active
Revision as of 12:02, 25 January 2012 by Notmart (Talk | contribs) (Signals)

Jump to: navigation, search

Device specific workspaces

The Plasma Device shell that is used in the Plasma Active tablet shell is a generic user interface loader that doesn't provide any UI by itself.

The device shell will load:

  • A set of QML files that will define the behavior of the workspace for this form factor, in the form of a Plasma::Package file structure
  • That package may eventually load other packages via QML
  • The plasma containments will be loaded and put into the scene
  • Every activity corresponds to 1 containment
  • there may be containments not linked to activities (e.g. panels)
  • the containment are placed in the screen by logic written in JavaScript inside the main homescreen QML package

Structure of the homescreen QML package

[TODO]

API of the homescreen root QML item

The root QML item should expose some properties and signals, that the Plasma shell will use to interact with it.

Properties

All properties are optional (they are now named objects, TODO: must become properties).

  • Item availableScreenRect: an item as big as the usable area of the main containment, make it smaller to prevent the containment to lay out items out of the availableScreenRect geometry. The item can offer four additional properties:
    • int leftReserved: space reserved at the left edge of the screen. a maximized window will not go over this area of the screen.
    • int topReserved: space reserved at the top edge of the screen. a maximized window will not go over this area of the screen.
    • int rightReserved: space reserved at the right edge of the screen.
    • int bottomReserved: space reserved at the bottom edge of the screen.
  • Item leftEdgePanel: Item that will manage containments that aren't activities but panels with location Plasma::LeftEdge (FIXME: to change to a method)
  • Item topEdgePanel
  • Item rightEdgePanel
  • Item bottomEdgePanel

Signals

  • newActivityRequested(): Ask the shell to show the user interface to create a new activity
  • focusActivityView(): Ask the shell to show the main activity screen, even if it was covered by some application, by raising and focusing its window.

How to load a different default workspace

[TODO]


Content is available under Creative Commons License SA 4.0 unless otherwise noted.