C# Class Plasma.Extender

Inheritance: Qyoto.QGraphicsWidget, IDisposable
Mostra file Open project: 0xd34df00d/Qross

Private Properties

Property Type Description
DragEnterEvent void
DragLeaveEvent void
DragMoveEvent void
DropEvent void
EnabledBordersForItem uint
ItemAddedEvent void
ItemAddedEvent void
ItemChange Qyoto.QVariant
ItemHoverEnterEvent void
ItemHoverLeaveEvent void
ItemHoverMoveEvent void
ItemRemovedEvent void
MousePressEvent void
ResizeEvent void
SaveState void

Public Methods

Method Description
Applet ( ) : Applet
AttachedItems ( ) : List
DetachedItems ( ) : List
Dispose ( ) : void
Extender ( Plasma applet ) : System Creates an extender. Note that extender expects applet to have a config(), and needs a scene because of that. So you should only instantiate an extender in init() or later, not in an applet's constructor. The constructor also takes care of restoring ExtenderItems that were contained in this extender before, so ExtenderItems are persistent between sessions. Note that a call to extender() in an applet will instantiate an Extender for you if one isn't already associated with your applet. name="applet" The applet this extender is part of. Null is not allowed here.
Group ( string name ) : ExtenderGroup Extra convenience function for obtaining groups specified by name. This will avoid needed to call item and casting to ExtenderGroup, which is otherwise quite common.
Groups ( ) : List
HasItem ( string name ) : bool This function can be used for easily determining if a certain item is already displayed in an extender item somewhere, so your applet doesn't duplicate this item. This is needed because ExtenderItems are persistent, so you can't blindly add new extender items in all cases.
IsEmpty ( ) : bool
Item ( string name ) : ExtenderItem This function can be used for obtaining the extender item specified by name. For checking whether or not an item already exists, you should use hasItem instead: while plasma is starting up, not all detached items might have been instantiated yet. hasItem returns true even if the requested item isn't instantiated yet.
Items ( ) : List
SetAppearance ( Plasma appearance ) : void Use this function to instruct the extender on how to render its items. Usually you will want to call this function in your applet's constraintsEvent, allthough this is already done for you when using PopupApplet as base class for your applet. Defaults to NoBorders. name="appearance" the way this extender should look.
appearance ( ) : Plasma.Extender.Appearance

Protected Methods

Method Description
CreateProxy ( ) : void
Extender ( Type dummy ) : System

Private Methods

Method Description
DragEnterEvent ( Qyoto.QGraphicsSceneDragDropEvent arg1 ) : void
DragLeaveEvent ( Qyoto.QGraphicsSceneDragDropEvent arg1 ) : void
DragMoveEvent ( Qyoto.QGraphicsSceneDragDropEvent arg1 ) : void
DropEvent ( Qyoto.QGraphicsSceneDragDropEvent arg1 ) : void
EnabledBordersForItem ( Plasma item ) : uint
ItemAddedEvent ( Plasma item ) : void
ItemAddedEvent ( Plasma item, QPointF pos ) : void
ItemChange ( QGraphicsItem change, Qyoto.QVariant value ) : Qyoto.QVariant
ItemHoverEnterEvent ( Plasma item ) : void
ItemHoverLeaveEvent ( Plasma item ) : void
ItemHoverMoveEvent ( Plasma item, QPointF pos ) : void
ItemRemovedEvent ( Plasma item ) : void
MousePressEvent ( Qyoto.QGraphicsSceneMouseEvent arg1 ) : void
ResizeEvent ( Qyoto.QGraphicsSceneResizeEvent arg1 ) : void
SaveState ( ) : void

Method Details

Applet() public method

public Applet ( ) : Applet
return Applet

AttachedItems() public method

public AttachedItems ( ) : List
return List

CreateProxy() protected method

protected CreateProxy ( ) : void
return void

DetachedItems() public method

public DetachedItems ( ) : List
return List

Dispose() public method

public Dispose ( ) : void
return void

Extender() public method

Creates an extender. Note that extender expects applet to have a config(), and needs a scene because of that. So you should only instantiate an extender in init() or later, not in an applet's constructor. The constructor also takes care of restoring ExtenderItems that were contained in this extender before, so ExtenderItems are persistent between sessions. Note that a call to extender() in an applet will instantiate an Extender for you if one isn't already associated with your applet. name="applet" The applet this extender is part of. Null is not allowed here.
public Extender ( Plasma applet ) : System
applet Plasma
return System

Extender() protected method

protected Extender ( Type dummy ) : System
dummy System.Type
return System

Group() public method

Extra convenience function for obtaining groups specified by name. This will avoid needed to call item and casting to ExtenderGroup, which is otherwise quite common.
public Group ( string name ) : ExtenderGroup
name string
return ExtenderGroup

Groups() public method

public Groups ( ) : List
return List

HasItem() public method

This function can be used for easily determining if a certain item is already displayed in an extender item somewhere, so your applet doesn't duplicate this item. This is needed because ExtenderItems are persistent, so you can't blindly add new extender items in all cases.
public HasItem ( string name ) : bool
name string
return bool

IsEmpty() public method

public IsEmpty ( ) : bool
return bool

Item() public method

This function can be used for obtaining the extender item specified by name. For checking whether or not an item already exists, you should use hasItem instead: while plasma is starting up, not all detached items might have been instantiated yet. hasItem returns true even if the requested item isn't instantiated yet.
public Item ( string name ) : ExtenderItem
name string
return ExtenderItem

Items() public method

public Items ( ) : List
return List

SetAppearance() public method

Use this function to instruct the extender on how to render its items. Usually you will want to call this function in your applet's constraintsEvent, allthough this is already done for you when using PopupApplet as base class for your applet. Defaults to NoBorders. name="appearance" the way this extender should look.
public SetAppearance ( Plasma appearance ) : void
appearance Plasma
return void

appearance() public method

public appearance ( ) : Plasma.Extender.Appearance
return Plasma.Extender.Appearance