C# Class Plasma.AppletScript

Inheritance: Plasma.ScriptEngine, IDisposable
Afficher le fichier Open project: 0xd34df00d/Qross Class Usage Examples

Méthodes publiques

Méthode Description
Applet ( ) : Applet Returns the Plasma.Applet associated with this script component
AppletScript ( ) : System
AppletScript ( QObject parent ) : System Default constructor for an AppletScript. Subclasses should not attempt to access the Plasma.Applet associated with this AppletScript in the constructor. All such set up that requires the Applet itself should be done in the init() method.
ConfigNeedsSaving ( ) : void
Dispose ( ) : void
Extender ( ) : Extender
SetApplet ( Plasma applet ) : void Sets the applet associated with this AppletScript
SetConfigurationRequired ( bool req ) : void
SetConfigurationRequired ( bool req, string reason ) : void
SetFailedToLaunch ( bool failed ) : void
SetFailedToLaunch ( bool failed, string reason ) : void
SetHasConfigurationInterface ( bool hasInterface ) : void Sets whether or not this script has a configuration interface or not @arg hasInterface true if the applet is user configurable
Size ( ) : Qyoto.QSizeF Returns the area within which contents can be painted.

Méthodes protégées

Méthode Description
AddStandardConfigurationPages ( Kimono.KConfigDialog dialog ) : void This method should be called after a scripting applet has added its own pages to a configuration dialog
AppletScript ( Type dummy ) : System
CreateProxy ( ) : void
DataEngine ( string engine ) : DataEngine @arg engine name of the engine
Description ( ) : Kimono.KPluginInfo
IsRegisteredAsDragHandle ( IQGraphicsItem item ) : bool
RegisterAsDragHandle ( IQGraphicsItem item ) : void
ShowMessage ( Qyoto.QIcon icon, string message, uint buttons ) : void
StandardConfigurationDialog ( ) : Kimono.KConfigDialog Note that the dialog returned is set to delete on close.
UnregisterAsDragHandle ( IQGraphicsItem item ) : void

Private Methods

Méthode Description
ConfigChanged ( ) : void
ConstraintsEvent ( uint constraints ) : void
ContextualActions ( ) : List
MainScript ( ) : string
Package ( ) : Package
PaintInterface ( QPainter painter, QStyleOptionGraphicsItem option, Qyoto.QRect contentsRect ) : void
Shape ( ) : QPainterPath
ShowConfigurationInterface ( ) : void

Method Details

AddStandardConfigurationPages() protected méthode

This method should be called after a scripting applet has added its own pages to a configuration dialog
protected AddStandardConfigurationPages ( Kimono.KConfigDialog dialog ) : void
dialog Kimono.KConfigDialog
Résultat void

Applet() public méthode

Returns the Plasma.Applet associated with this script component
public Applet ( ) : Applet
Résultat Applet

AppletScript() public méthode

public AppletScript ( ) : System
Résultat System

AppletScript() public méthode

Default constructor for an AppletScript. Subclasses should not attempt to access the Plasma.Applet associated with this AppletScript in the constructor. All such set up that requires the Applet itself should be done in the init() method.
public AppletScript ( QObject parent ) : System
parent Qyoto.QObject
Résultat System

AppletScript() protected méthode

protected AppletScript ( Type dummy ) : System
dummy System.Type
Résultat System

ConfigNeedsSaving() public méthode

public ConfigNeedsSaving ( ) : void
Résultat void

CreateProxy() protected méthode

protected CreateProxy ( ) : void
Résultat void

DataEngine() protected méthode

@arg engine name of the engine
protected DataEngine ( string engine ) : DataEngine
engine string
Résultat DataEngine

Description() protected méthode

protected Description ( ) : Kimono.KPluginInfo
Résultat Kimono.KPluginInfo

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Extender() public méthode

public Extender ( ) : Extender
Résultat Extender

IsRegisteredAsDragHandle() protected méthode

protected IsRegisteredAsDragHandle ( IQGraphicsItem item ) : bool
item IQGraphicsItem
Résultat bool

RegisterAsDragHandle() protected méthode

protected RegisterAsDragHandle ( IQGraphicsItem item ) : void
item IQGraphicsItem
Résultat void

SetApplet() public méthode

Sets the applet associated with this AppletScript
public SetApplet ( Plasma applet ) : void
applet Plasma
Résultat void

SetConfigurationRequired() public méthode

public SetConfigurationRequired ( bool req ) : void
req bool
Résultat void

SetConfigurationRequired() public méthode

public SetConfigurationRequired ( bool req, string reason ) : void
req bool
reason string
Résultat void

SetFailedToLaunch() public méthode

public SetFailedToLaunch ( bool failed ) : void
failed bool
Résultat void

SetFailedToLaunch() public méthode

public SetFailedToLaunch ( bool failed, string reason ) : void
failed bool
reason string
Résultat void

SetHasConfigurationInterface() public méthode

Sets whether or not this script has a configuration interface or not @arg hasInterface true if the applet is user configurable
public SetHasConfigurationInterface ( bool hasInterface ) : void
hasInterface bool
Résultat void

ShowMessage() protected méthode

protected ShowMessage ( Qyoto.QIcon icon, string message, uint buttons ) : void
icon Qyoto.QIcon
message string
buttons uint
Résultat void

Size() public méthode

Returns the area within which contents can be painted.
public Size ( ) : Qyoto.QSizeF
Résultat Qyoto.QSizeF

StandardConfigurationDialog() protected méthode

Note that the dialog returned is set to delete on close.
protected StandardConfigurationDialog ( ) : Kimono.KConfigDialog
Résultat Kimono.KConfigDialog

UnregisterAsDragHandle() protected méthode

protected UnregisterAsDragHandle ( IQGraphicsItem item ) : void
item IQGraphicsItem
Résultat void