C# Class Plasma.Global

ファイルを表示 Open project: 0xd34df00d/Qross

Public Methods

Method Description
ActionsFromMenu ( Qyoto.QMenu menu ) : List
ActionsFromMenu ( Qyoto.QMenu menu, string prefix ) : List
ActionsFromMenu ( Qyoto.QMenu menu, string prefix, QObject parent ) : List Returns a list of all actions in the given QMenu This method flattens the hierarchy of the menu by prefixing the text of all actions in a submenu with the submenu title. name="menu" the QMenu storing the actions name="prefix" text to display before the text of all actions in the menu name="parent" QObject to be passed as parent of all the actions in the list
IsPluginVersionCompatible ( uint version ) : bool Verifies that a plugin is compatible with plasma
KnownLanguages ( uint types ) : List @arg types a set of ComponentTypes flags for which to look up the language support for
LoadScriptEngine ( string language, Plasma applet ) : AppletScript Loads an Applet script engine for the given language. name="language" the language to load for name="applet" the Plasma.Applet for this script
LoadScriptEngine ( string language, Plasma dataEngine ) : Plasma.DataEngineScript Loads an DataEngine script engine for the given language. name="language" the language to load for name="dataEngine" the Plasma.DataEngine for this script;
LoadScriptEngine ( string language, Plasma runner ) : RunnerScript Loads an Applet script engine for the given language. name="language" the language to load for name="runner" the Plasma.AbstractRunner for this script
LoadScriptEngine ( string language, Plasma wallpaper ) : WallpaperScript Loads an Wallpaper script engine for the given language. name="language" the language to load for name="runner" the Plasma.Wallpaper for this script
LocationToDirection ( Plasma location ) : Plasma.Direction Converts a location to a direction. Handy for figuring out which way to send a popup based on location or to point arrows and other directional items. name="location" the location of the container the element will appear in
LocationToInverseDirection ( Plasma location ) : Plasma.Direction Converts a location to the direction facing it. Handy for figuring out which way to collapse a popup or to point arrows at the item itself. name="location" the location of the container the element will appear in
PackageStructure ( string language, Plasma type ) : Plasma.PackageStructure Loads an appropriate PackageStructure for the given language and type name="language" the language to load the PackageStructure for name="type" the component type
ScalingFactor ( Plasma level ) : double Streaming operators for sending/storing identities.
Version ( ) : uint The runtime version of libplasma
VersionMajor ( ) : uint The runtime major version of libplasma
VersionMinor ( ) : uint The runtime major version of libplasma
VersionRelease ( ) : uint The runtime major version of libplasma
VersionString ( ) : string The runtime version string of libplasma
ViewFor ( IQGraphicsItem item ) : Qyoto.QGraphicsView Returns the most appropriate QGraphicsView for the item. @arg item the QGraphicsItem to locate a view for

Private Methods

Method Description
Global ( ) : System

Method Details

ActionsFromMenu() public static method

public static ActionsFromMenu ( Qyoto.QMenu menu ) : List
menu Qyoto.QMenu
return List

ActionsFromMenu() public static method

public static ActionsFromMenu ( Qyoto.QMenu menu, string prefix ) : List
menu Qyoto.QMenu
prefix string
return List

ActionsFromMenu() public static method

Returns a list of all actions in the given QMenu This method flattens the hierarchy of the menu by prefixing the text of all actions in a submenu with the submenu title. name="menu" the QMenu storing the actions name="prefix" text to display before the text of all actions in the menu name="parent" QObject to be passed as parent of all the actions in the list
public static ActionsFromMenu ( Qyoto.QMenu menu, string prefix, QObject parent ) : List
menu Qyoto.QMenu
prefix string
parent Qyoto.QObject
return List

IsPluginVersionCompatible() public static method

Verifies that a plugin is compatible with plasma
public static IsPluginVersionCompatible ( uint version ) : bool
version uint
return bool

KnownLanguages() public static method

@arg types a set of ComponentTypes flags for which to look up the language support for
public static KnownLanguages ( uint types ) : List
types uint
return List

LoadScriptEngine() public static method

Loads an Applet script engine for the given language. name="language" the language to load for name="applet" the Plasma.Applet for this script
public static LoadScriptEngine ( string language, Plasma applet ) : AppletScript
language string
applet Plasma
return AppletScript

LoadScriptEngine() public static method

Loads an DataEngine script engine for the given language. name="language" the language to load for name="dataEngine" the Plasma.DataEngine for this script;
public static LoadScriptEngine ( string language, Plasma dataEngine ) : Plasma.DataEngineScript
language string
dataEngine Plasma
return Plasma.DataEngineScript

LoadScriptEngine() public static method

Loads an Applet script engine for the given language. name="language" the language to load for name="runner" the Plasma.AbstractRunner for this script
public static LoadScriptEngine ( string language, Plasma runner ) : RunnerScript
language string
runner Plasma
return RunnerScript

LoadScriptEngine() public static method

Loads an Wallpaper script engine for the given language. name="language" the language to load for name="runner" the Plasma.Wallpaper for this script
public static LoadScriptEngine ( string language, Plasma wallpaper ) : WallpaperScript
language string
wallpaper Plasma
return WallpaperScript

LocationToDirection() public static method

Converts a location to a direction. Handy for figuring out which way to send a popup based on location or to point arrows and other directional items. name="location" the location of the container the element will appear in
public static LocationToDirection ( Plasma location ) : Plasma.Direction
location Plasma
return Plasma.Direction

LocationToInverseDirection() public static method

Converts a location to the direction facing it. Handy for figuring out which way to collapse a popup or to point arrows at the item itself. name="location" the location of the container the element will appear in
public static LocationToInverseDirection ( Plasma location ) : Plasma.Direction
location Plasma
return Plasma.Direction

PackageStructure() public static method

Loads an appropriate PackageStructure for the given language and type name="language" the language to load the PackageStructure for name="type" the component type
public static PackageStructure ( string language, Plasma type ) : Plasma.PackageStructure
language string
type Plasma
return Plasma.PackageStructure

ScalingFactor() public static method

Streaming operators for sending/storing identities.
public static ScalingFactor ( Plasma level ) : double
level Plasma
return double

Version() public static method

The runtime version of libplasma
public static Version ( ) : uint
return uint

VersionMajor() public static method

The runtime major version of libplasma
public static VersionMajor ( ) : uint
return uint

VersionMinor() public static method

The runtime major version of libplasma
public static VersionMinor ( ) : uint
return uint

VersionRelease() public static method

The runtime major version of libplasma
public static VersionRelease ( ) : uint
return uint

VersionString() public static method

The runtime version string of libplasma
public static VersionString ( ) : string
return string

ViewFor() public static method

Returns the most appropriate QGraphicsView for the item. @arg item the QGraphicsItem to locate a view for
public static ViewFor ( IQGraphicsItem item ) : Qyoto.QGraphicsView
item IQGraphicsItem
return Qyoto.QGraphicsView