C# Class Plasma.AppletScript

Inheritance: Plasma.ScriptEngine, IDisposable
ファイルを表示 Open project: 0xd34df00d/Qross Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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

Method 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 method

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
return void

Applet() public method

Returns the Plasma.Applet associated with this script component
public Applet ( ) : Applet
return Applet

AppletScript() public method

public AppletScript ( ) : System
return System

AppletScript() public method

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
return System

AppletScript() protected method

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

ConfigNeedsSaving() public method

public ConfigNeedsSaving ( ) : void
return void

CreateProxy() protected method

protected CreateProxy ( ) : void
return void

DataEngine() protected method

@arg engine name of the engine
protected DataEngine ( string engine ) : DataEngine
engine string
return DataEngine

Description() protected method

protected Description ( ) : Kimono.KPluginInfo
return Kimono.KPluginInfo

Dispose() public method

public Dispose ( ) : void
return void

Extender() public method

public Extender ( ) : Extender
return Extender

IsRegisteredAsDragHandle() protected method

protected IsRegisteredAsDragHandle ( IQGraphicsItem item ) : bool
item IQGraphicsItem
return bool

RegisterAsDragHandle() protected method

protected RegisterAsDragHandle ( IQGraphicsItem item ) : void
item IQGraphicsItem
return void

SetApplet() public method

Sets the applet associated with this AppletScript
public SetApplet ( Plasma applet ) : void
applet Plasma
return void

SetConfigurationRequired() public method

public SetConfigurationRequired ( bool req ) : void
req bool
return void

SetConfigurationRequired() public method

public SetConfigurationRequired ( bool req, string reason ) : void
req bool
reason string
return void

SetFailedToLaunch() public method

public SetFailedToLaunch ( bool failed ) : void
failed bool
return void

SetFailedToLaunch() public method

public SetFailedToLaunch ( bool failed, string reason ) : void
failed bool
reason string
return void

SetHasConfigurationInterface() public method

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
return void

ShowMessage() protected method

protected ShowMessage ( Qyoto.QIcon icon, string message, uint buttons ) : void
icon Qyoto.QIcon
message string
buttons uint
return void

Size() public method

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

StandardConfigurationDialog() protected method

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

UnregisterAsDragHandle() protected method

protected UnregisterAsDragHandle ( IQGraphicsItem item ) : void
item IQGraphicsItem
return void