C# Class Plasma.Corona

Inheritance: Qyoto.QGraphicsScene, IDisposable
Afficher le fichier Open project: 0xd34df00d/Qross

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Action() public méthode

Returns the QAction with the given name from our collection
public Action ( string name ) : Qyoto.QAction
name string
Résultat Qyoto.QAction

Actions() public méthode

Returns all the actions in our collection
public Actions ( ) : List
Résultat List

AddAction() public méthode

public AddAction ( string name ) : Kimono.KAction
name string
Résultat Kimono.KAction

AddAction() public méthode

Adds the action to our collection under the given name
public AddAction ( string name, Qyoto.QAction action ) : void
name string
action Qyoto.QAction
Résultat void

AddContainment() public méthode

public AddContainment ( string name ) : Containment
name string
Résultat Containment

AddContainment() public méthode

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
Résultat Containment

AddContainmentDelayed() protected méthode

protected AddContainmentDelayed ( string name ) : Containment
name string
Résultat Containment

AddContainmentDelayed() protected méthode

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
Résultat Containment

AddOffscreenWidget() public méthode

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
Résultat void

AddShortcuts() public méthode

public AddShortcuts ( Kimono.KActionCollection newShortcuts ) : void
newShortcuts Kimono.KActionCollection
Résultat void

AppletMimeType() public méthode

The current mime type of Drag/Drop items.
public AppletMimeType ( ) : string
Résultat string

ClearContainments() public méthode

Clear the Corona from all applets.
public ClearContainments ( ) : void
Résultat void

Config() public méthode

Returns the config file used to store the configuration for this Corona
public Config ( ) : Kimono.KSharedConfig
Résultat Kimono.KSharedConfig

ContainmentActionsDefaults() public méthode

public ContainmentActionsDefaults ( Plasma containmentType ) : ContainmentActionsPluginsConfig
containmentType Plasma
Résultat ContainmentActionsPluginsConfig

ContainmentForScreen() public méthode

public ContainmentForScreen ( int screen ) : Containment
screen int
Résultat Containment

ContainmentForScreen() public méthode

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
Résultat Containment

Containments() public méthode

public Containments ( ) : List
Résultat List

Corona() public méthode

public Corona ( ) : System
Résultat System

Corona() public méthode

public Corona ( QObject parent ) : System
parent Qyoto.QObject
Résultat System

Corona() protected méthode

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

CreateProxy() protected méthode

protected CreateProxy ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EnableAction() public méthode

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
Résultat void

FreeEdges() public méthode

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
Résultat List

OffscreenWidgets() public méthode

public OffscreenWidgets ( ) : List
Résultat List

PopupPosition() public méthode

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
Résultat Qyoto.QPoint

PopupPosition() public méthode

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
Résultat Qyoto.QPoint

RemoveOffscreenWidget() public méthode

Removes a widget from the topleft quadrant in the scene. name="widget" the widget to remove.
public RemoveOffscreenWidget ( QGraphicsWidget widget ) : void
widget Qyoto.QGraphicsWidget
Résultat void

SetAppletMimeType() public méthode

Sets the mimetype of Drag/Drop items. Default is text/x-plasmoidservicename
public SetAppletMimeType ( string mimetype ) : void
mimetype string
Résultat void

SetContainmentActionsDefaults() public méthode

public SetContainmentActionsDefaults ( Plasma containmentType, Plasma config ) : void
containmentType Plasma
config Plasma
Résultat void

UpdateShortcuts() public méthode

public UpdateShortcuts ( ) : void
Résultat void