C# 클래스 Plasma.Corona

상속: Qyoto.QGraphicsScene, IDisposable
파일 보기 프로젝트 열기: 0xd34df00d/Qross

공개 메소드들

메소드 설명
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