C# Class Treefrog.Presentation.LevelPresenter

Inheritance: IDisposable, ILayerContext, IPointerResponderProvider, ICommandSubscriber, ILayerListPresenter
显示文件 Open project: jaquadro/Treefrog Class Usage Examples

Public Methods

Method Description
ActionInvalidateLevelGeometry ( ) : void
ActionSelectLayer ( System.Guid layerUid ) : void
ActionShowHideLayer ( System.Guid layerUid, LayerVisibility visibility ) : void
Activate ( ) : void
ActivateContextMenu ( CommandMenu menu, Point location ) : void
ActivatePropertyProvider ( IPropertyProvider provider ) : void
Deactivate ( ) : void
Dispose ( ) : void
LevelPresenter ( PresenterManager pm, Treefrog.Presentation.EditorPresenter editor, Treefrog.Framework.Model.Level level ) : System
SetPropertyProvider ( IPropertyProvider provider ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnContextMenuActivated ( ContextMenuEventArgs e ) : void
OnLevelGeometryInvalidated ( EventArgs e ) : void
OnPointerEventResponderChanged ( EventArgs e ) : void
OnSyncLayerList ( EventArgs e ) : void
OnSyncLayerSelection ( EventArgs e ) : void

Private Methods

Method Description
AddLayer ( Layer layer ) : void
BindLayerEvents ( Layer layer ) : void
BindSelectedLayerEvents ( LevelLayerPresenter layer ) : void
CommandAddObjectLayer ( ) : void
CommandAddTileLayer ( ) : void
CommandCanAddObjectLayer ( ) : bool
CommandCanAddTileLayer ( ) : bool
CommandCanCloneLayer ( ) : bool
CommandCanDeleteLayer ( ) : bool
CommandCanEditLayer ( ) : bool
CommandCanLayerProperties ( ) : bool
CommandCanLevelProperties ( ) : bool
CommandCanMoveLayerBottom ( ) : bool
CommandCanMoveLayerDown ( ) : bool
CommandCanMoveLayerTop ( ) : bool
CommandCanMoveLayerUp ( ) : bool
CommandCanRedo ( ) : bool
CommandCanRename ( ) : bool
CommandCanResize ( ) : bool
CommandCanShowAll ( ) : bool
CommandCanShowNone ( ) : bool
CommandCanShowSelectedOnly ( ) : bool
CommandCanToggleGrid ( ) : bool
CommandCanUndo ( ) : bool
CommandCanZoomIn ( ) : bool
CommandCanZoomNormal ( ) : bool
CommandCanZoomOut ( ) : bool
CommandCloneLayer ( ) : void
CommandDeleteLayer ( ) : void
CommandEditLayer ( ) : void
CommandLayerProperties ( ) : void
CommandLevelProperties ( ) : void
CommandMoveLayerBottom ( ) : void
CommandMoveLayerDown ( ) : void
CommandMoveLayerTop ( ) : void
CommandMoveLayerUp ( ) : void
CommandRedo ( ) : void
CommandRename ( ) : void
CommandResize ( ) : void
CommandShowAll ( ) : void
CommandShowNone ( ) : void
CommandShowSelectedOnly ( ) : void
CommandToggleGrid ( ) : void
CommandUndo ( ) : void
CommandZoomIn ( ) : void
CommandZoomNormal ( ) : void
CommandZoomOut ( ) : void
FindCloneLayerName ( string basename ) : string
FindDefaultLayerName ( string baseName ) : string
HistoryChangedHandler ( object sender, EventArgs e ) : void
InitializeCommandManager ( ) : void
InitializeLayerHierarchy ( ) : void
InitializeLayers ( ) : void
InvalidateLayerCommands ( ) : void
InvalidateLayerViewCommands ( ) : void
InvalidateZoomCommands ( ) : void
PresenterRegsitered ( object sender, InstanceRegistryEventArgs e ) : void
PresenterUnregistered ( object sender, InstanceRegistryEventArgs e ) : void
RefreshGridVisibility ( ) : void
RemoveLayer ( System.Guid layerUid ) : void
SelectLayer ( ) : void
SelectLayer ( System.Guid layerUid ) : void
SelectedLayerPointerEventResponderChanged ( object sender, EventArgs e ) : void
UnbindLayerEvents ( Layer layer ) : void
UnbindLayerEvents ( LevelLayerPresenter layer ) : void
UnbindSelectedLayerEvents ( LevelLayerPresenter layer ) : void
ZoomStateLevelChanged ( object sender, EventArgs e ) : void

Method Details

ActionInvalidateLevelGeometry() public method

public ActionInvalidateLevelGeometry ( ) : void
return void

ActionSelectLayer() public method

public ActionSelectLayer ( System.Guid layerUid ) : void
layerUid System.Guid
return void

ActionShowHideLayer() public method

public ActionShowHideLayer ( System.Guid layerUid, LayerVisibility visibility ) : void
layerUid System.Guid
visibility LayerVisibility
return void

Activate() public method

public Activate ( ) : void
return void

ActivateContextMenu() public method

public ActivateContextMenu ( CommandMenu menu, Point location ) : void
menu CommandMenu
location Point
return void

ActivatePropertyProvider() public method

public ActivatePropertyProvider ( IPropertyProvider provider ) : void
provider IPropertyProvider
return void

Deactivate() public method

public Deactivate ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

LevelPresenter() public method

public LevelPresenter ( PresenterManager pm, Treefrog.Presentation.EditorPresenter editor, Treefrog.Framework.Model.Level level ) : System
pm PresenterManager
editor Treefrog.Presentation.EditorPresenter
level Treefrog.Framework.Model.Level
return System

OnContextMenuActivated() protected method

protected OnContextMenuActivated ( ContextMenuEventArgs e ) : void
e ContextMenuEventArgs
return void

OnLevelGeometryInvalidated() protected method

protected OnLevelGeometryInvalidated ( EventArgs e ) : void
e System.EventArgs
return void

OnPointerEventResponderChanged() protected method

protected OnPointerEventResponderChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnSyncLayerList() protected method

protected OnSyncLayerList ( EventArgs e ) : void
e System.EventArgs
return void

OnSyncLayerSelection() protected method

protected OnSyncLayerSelection ( EventArgs e ) : void
e System.EventArgs
return void

SetPropertyProvider() public method

public SetPropertyProvider ( IPropertyProvider provider ) : void
provider IPropertyProvider
return void