C# Класс Plasma.AppletScript

Наследование: Plasma.ScriptEngine, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddStandardConfigurationPages() защищенный Метод

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
Результат void

Applet() публичный Метод

Returns the Plasma.Applet associated with this script component
public Applet ( ) : Applet
Результат Applet

AppletScript() публичный Метод

public AppletScript ( ) : System
Результат System

AppletScript() публичный Метод

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
Результат System

AppletScript() защищенный Метод

protected AppletScript ( Type dummy ) : System
dummy System.Type
Результат System

ConfigNeedsSaving() публичный Метод

public ConfigNeedsSaving ( ) : void
Результат void

CreateProxy() защищенный Метод

protected CreateProxy ( ) : void
Результат void

DataEngine() защищенный Метод

@arg engine name of the engine
protected DataEngine ( string engine ) : DataEngine
engine string
Результат DataEngine

Description() защищенный Метод

protected Description ( ) : Kimono.KPluginInfo
Результат Kimono.KPluginInfo

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Extender() публичный Метод

public Extender ( ) : Extender
Результат Extender

IsRegisteredAsDragHandle() защищенный Метод

protected IsRegisteredAsDragHandle ( IQGraphicsItem item ) : bool
item IQGraphicsItem
Результат bool

RegisterAsDragHandle() защищенный Метод

protected RegisterAsDragHandle ( IQGraphicsItem item ) : void
item IQGraphicsItem
Результат void

SetApplet() публичный Метод

Sets the applet associated with this AppletScript
public SetApplet ( Plasma applet ) : void
applet Plasma
Результат void

SetConfigurationRequired() публичный Метод

public SetConfigurationRequired ( bool req ) : void
req bool
Результат void

SetConfigurationRequired() публичный Метод

public SetConfigurationRequired ( bool req, string reason ) : void
req bool
reason string
Результат void

SetFailedToLaunch() публичный Метод

public SetFailedToLaunch ( bool failed ) : void
failed bool
Результат void

SetFailedToLaunch() публичный Метод

public SetFailedToLaunch ( bool failed, string reason ) : void
failed bool
reason string
Результат void

SetHasConfigurationInterface() публичный Метод

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
Результат void

ShowMessage() защищенный Метод

protected ShowMessage ( Qyoto.QIcon icon, string message, uint buttons ) : void
icon Qyoto.QIcon
message string
buttons uint
Результат void

Size() публичный Метод

Returns the area within which contents can be painted.
public Size ( ) : Qyoto.QSizeF
Результат Qyoto.QSizeF

StandardConfigurationDialog() защищенный Метод

Note that the dialog returned is set to delete on close.
protected StandardConfigurationDialog ( ) : Kimono.KConfigDialog
Результат Kimono.KConfigDialog

UnregisterAsDragHandle() защищенный Метод

protected UnregisterAsDragHandle ( IQGraphicsItem item ) : void
item IQGraphicsItem
Результат void