C# Класс Plasma.Corona

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

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

Метод Описание
Action ( string name ) : Qyoto.QAction Returns the QAction with the given name from our collection
Actions ( ) : List Returns all the actions in our collection
AddAction ( string name ) : Kimono.KAction
AddAction ( string name, Qyoto.QAction action ) : void Adds the action to our collection under the given name
AddContainment ( string name ) : Containment
AddContainment ( string name, List args ) : Containment Adds a Containment to the Corona name="name" the plugin name for the containment, as given by KPluginInfo.PluginName(). If an empty string is passed in, the defalt containment plugin will be used (usually DesktopContainment). If the string literal "null" is passed in, then no plugin will be loaded and a simple Containment object will be created instead. name="args" argument list to pass to the containment
AddOffscreenWidget ( QGraphicsWidget widget ) : void Adds a widget in the topleft quadrant in the scene. Widgets in the topleft quadrant are normally never shown unless you specifically aim a view at it, which makes it ideal for toplevel views etc. name="widget" the widget to add.
AddShortcuts ( Kimono.KActionCollection newShortcuts ) : void
AppletMimeType ( ) : string The current mime type of Drag/Drop items.
ClearContainments ( ) : void Clear the Corona from all applets.
Config ( ) : Kimono.KSharedConfig Returns the config file used to store the configuration for this Corona
ContainmentActionsDefaults ( Plasma containmentType ) : ContainmentActionsPluginsConfig
ContainmentForScreen ( int screen ) : Containment
ContainmentForScreen ( int screen, int desktop ) : Containment Returns the Containment, if any, for a given physical screen name="screen" number of the physical screen to locate name="desktop" the desktop) to locate; if < 0 then it will simply return the first Containment associated with screen
Containments ( ) : List
Corona ( ) : System
Corona ( QObject parent ) : System
Dispose ( ) : void
EnableAction ( string name, bool enable ) : void convenience function - enables or disables an action by name name="name" the name of the action in our collection name="enable" true to enable, false to disable
FreeEdges ( int screen ) : List This method is useful in order to retrieve the list of available screen edges for panel type containments. name="screen" the id of the screen to look for free edges.
OffscreenWidgets ( ) : List
PopupPosition ( IQGraphicsItem item, Qyoto.QSize size ) : Qyoto.QPoint Recommended position for a popup window like a menu or a tooltip given its size name="item" the item that the popup should appear adjacent to (an applet, say) name="size" size of the popup
PopupPosition ( IQGraphicsItem item, Qyoto.QSize size, Qt alignment ) : Qyoto.QPoint name="item" the item that the popup should appear adjacent to (an applet, say) name="size" size of the popup name="alignment" alignment of the popup, valid flags are Qt.AlignLeft, Qt.AlignRight and Qt.AlignCenter
RemoveOffscreenWidget ( QGraphicsWidget widget ) : void Removes a widget from the topleft quadrant in the scene. name="widget" the widget to remove.
SetAppletMimeType ( string mimetype ) : void Sets the mimetype of Drag/Drop items. Default is text/x-plasmoidservicename
SetContainmentActionsDefaults ( Plasma containmentType, Plasma config ) : void
UpdateShortcuts ( ) : void

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

Метод Описание
AddContainmentDelayed ( string name ) : Containment
AddContainmentDelayed ( string name, List args ) : Containment Loads a containment with delayed initialization, primarily useful for implementations of loadDefaultLayout. The caller is responsible for all initializating, saving and notification of a new containment. name="name" the plugin name for the containment, as given by KPluginInfo.PluginName(). If an empty string is passed in, the defalt containment plugin will be used (usually DesktopContainment). If the string literal "null" is passed in, then no plugin will be loaded and a simple Containment object will be created instead. name="args" argument list to pass to the containment
Corona ( Type dummy ) : System
CreateProxy ( ) : void

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

Метод Описание
AvailableScreenRegion ( int id ) : QRegion
DragEnterEvent ( Qyoto.QGraphicsSceneDragDropEvent arg1 ) : void
DragLeaveEvent ( Qyoto.QGraphicsSceneDragDropEvent arg1 ) : void
DragMoveEvent ( Qyoto.QGraphicsSceneDragDropEvent arg1 ) : void
Immutability ( ) : Plasma.ImmutabilityType
InitializeLayout ( ) : void
InitializeLayout ( string config ) : void
LoadDefaultLayout ( ) : void
LoadLayout ( ) : void
LoadLayout ( string config ) : void
NumScreens ( ) : int
RequestConfigSync ( ) : void
RequireConfigSync ( ) : void
SaveLayout ( ) : void
SaveLayout ( string config ) : void
ScreenGeometry ( int id ) : Qyoto.QRect
SetImmutability ( Plasma immutable ) : void

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

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

Returns the QAction with the given name from our collection
public Action ( string name ) : Qyoto.QAction
name string
Результат Qyoto.QAction

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

Returns all the actions in our collection
public Actions ( ) : List
Результат List

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

public AddAction ( string name ) : Kimono.KAction
name string
Результат Kimono.KAction

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

Adds the action to our collection under the given name
public AddAction ( string name, Qyoto.QAction action ) : void
name string
action Qyoto.QAction
Результат void

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

public AddContainment ( string name ) : Containment
name string
Результат Containment

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

Adds a Containment to the Corona name="name" the plugin name for the containment, as given by KPluginInfo.PluginName(). If an empty string is passed in, the defalt containment plugin will be used (usually DesktopContainment). If the string literal "null" is passed in, then no plugin will be loaded and a simple Containment object will be created instead. name="args" argument list to pass to the containment
public AddContainment ( string name, List args ) : Containment
name string
args List
Результат Containment

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

protected AddContainmentDelayed ( string name ) : Containment
name string
Результат Containment

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

Loads a containment with delayed initialization, primarily useful for implementations of loadDefaultLayout. The caller is responsible for all initializating, saving and notification of a new containment. name="name" the plugin name for the containment, as given by KPluginInfo.PluginName(). If an empty string is passed in, the defalt containment plugin will be used (usually DesktopContainment). If the string literal "null" is passed in, then no plugin will be loaded and a simple Containment object will be created instead. name="args" argument list to pass to the containment
protected AddContainmentDelayed ( string name, List args ) : Containment
name string
args List
Результат Containment

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

Adds a widget in the topleft quadrant in the scene. Widgets in the topleft quadrant are normally never shown unless you specifically aim a view at it, which makes it ideal for toplevel views etc. name="widget" the widget to add.
public AddOffscreenWidget ( QGraphicsWidget widget ) : void
widget Qyoto.QGraphicsWidget
Результат void

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

public AddShortcuts ( Kimono.KActionCollection newShortcuts ) : void
newShortcuts Kimono.KActionCollection
Результат void

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

The current mime type of Drag/Drop items.
public AppletMimeType ( ) : string
Результат string

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

Clear the Corona from all applets.
public ClearContainments ( ) : void
Результат void

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

Returns the config file used to store the configuration for this Corona
public Config ( ) : Kimono.KSharedConfig
Результат Kimono.KSharedConfig

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

public ContainmentActionsDefaults ( Plasma containmentType ) : ContainmentActionsPluginsConfig
containmentType Plasma
Результат ContainmentActionsPluginsConfig

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

public ContainmentForScreen ( int screen ) : Containment
screen int
Результат Containment

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

Returns the Containment, if any, for a given physical screen name="screen" number of the physical screen to locate name="desktop" the desktop) to locate; if < 0 then it will simply return the first Containment associated with screen
public ContainmentForScreen ( int screen, int desktop ) : Containment
screen int
desktop int
Результат Containment

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

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

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

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

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

public Corona ( QObject parent ) : System
parent Qyoto.QObject
Результат System

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

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

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

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

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

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

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

convenience function - enables or disables an action by name name="name" the name of the action in our collection name="enable" true to enable, false to disable
public EnableAction ( string name, bool enable ) : void
name string
enable bool
Результат void

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

This method is useful in order to retrieve the list of available screen edges for panel type containments. name="screen" the id of the screen to look for free edges.
public FreeEdges ( int screen ) : List
screen int
Результат List

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

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

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

Recommended position for a popup window like a menu or a tooltip given its size name="item" the item that the popup should appear adjacent to (an applet, say) name="size" size of the popup
public PopupPosition ( IQGraphicsItem item, Qyoto.QSize size ) : Qyoto.QPoint
item IQGraphicsItem
size Qyoto.QSize
Результат Qyoto.QPoint

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

name="item" the item that the popup should appear adjacent to (an applet, say) name="size" size of the popup name="alignment" alignment of the popup, valid flags are Qt.AlignLeft, Qt.AlignRight and Qt.AlignCenter
public PopupPosition ( IQGraphicsItem item, Qyoto.QSize size, Qt alignment ) : Qyoto.QPoint
item IQGraphicsItem
size Qyoto.QSize
alignment Qyoto.Qt
Результат Qyoto.QPoint

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

Removes a widget from the topleft quadrant in the scene. name="widget" the widget to remove.
public RemoveOffscreenWidget ( QGraphicsWidget widget ) : void
widget Qyoto.QGraphicsWidget
Результат void

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

Sets the mimetype of Drag/Drop items. Default is text/x-plasmoidservicename
public SetAppletMimeType ( string mimetype ) : void
mimetype string
Результат void

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

public SetContainmentActionsDefaults ( Plasma containmentType, Plasma config ) : void
containmentType Plasma
config Plasma
Результат void

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

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