C# Class Artemis.ViewModels.Profiles.ProfileEditorViewModel

Inheritance: Caliburn.Micro.Screen, GongSolutions.Wpf.DragDrop.IDropTarget
显示文件 Open project: SpoinkyNL/Artemis

Private Properties

Property Type Description
DeviceManagerOnOnKeyboardChangedEvent void
EditorStateHandler void
LayerSelectedHandler void
LoadProfiles void
ProfileSaveHandler void
UpdateLayerList void

Public Methods

Method Description
Activate ( ) : void
AddFolder ( ) : LayerModel
AddLayer ( ) : LayerModel

Adds a new layer to the profile and selects it

AddProfile ( ) : void

Adds a new profile to the current game and keyboard

CloneLayer ( ) : void

Clones the currently selected layer and adds it to the profile, after the original

CloneLayer ( LayerModel layer ) : void

Clones the given layer and adds it to the profile, after the original

Deactivate ( ) : void
DeleteProfile ( ) : void
DragOver ( IDropInfo dropInfo ) : void
Drop ( IDropInfo dropInfo ) : void
DuplicateProfile ( ) : void
EditLayer ( ) : void
EditLayer ( LayerModel layer ) : void

Opens a new LayerEditorView for the given layer

EditLayerFromDoubleClick ( ) : void
ExportProfile ( ) : void
ImportProfile ( ) : void
MouseDownKeyboardPreview ( System.Windows.Input.MouseButtonEventArgs e ) : void

Handler for clicking

MouseMoveKeyboardPreview ( System.Windows.Input.MouseEventArgs e ) : void

Handler for resizing and moving the currently selected layer

MouseUpKeyboardPreview ( System.Windows.Input.MouseButtonEventArgs e ) : void

Second handler for clicking, selects a the layer the user clicked on if the used clicked on an empty spot, deselects the current layer

ProfileEditorViewModel ( MainManager mainManager, EffectModel gameModel, ProfileViewModel profileViewModel, MetroDialogService dialogService, string lastProfile, ILayerEditorVmFactory layerEditorVmFactory ) : System
RemoveLayer ( ) : void

Removes the currently selected layer from the profile

RemoveLayer ( LayerModel layer ) : void

Removes the given layer from the profile

RenameLayer ( LayerModel layer ) : void
RenameProfile ( ) : void

Private Methods

Method Description
DeviceManagerOnOnKeyboardChangedEvent ( object sender, KeyboardChangedEventArgs e ) : void

Handles chaning the active keyboard, updating the preview image and profiles collection

EditorStateHandler ( object sender, PropertyChangedEventArgs e ) : void
LayerSelectedHandler ( object sender, PropertyChangedEventArgs e ) : void
LoadProfiles ( ) : void

Loads all profiles for the current game and keyboard

ProfileSaveHandler ( object sender, System.Timers.ElapsedEventArgs e ) : void
UpdateLayerList ( LayerModel selectModel ) : void

Method Details

Activate() public method

public Activate ( ) : void
return void

AddFolder() public method

public AddFolder ( ) : LayerModel
return LayerModel

AddLayer() public method

Adds a new layer to the profile and selects it
public AddLayer ( ) : LayerModel
return LayerModel

AddProfile() public method

Adds a new profile to the current game and keyboard
public AddProfile ( ) : void
return void

CloneLayer() public method

Clones the currently selected layer and adds it to the profile, after the original
public CloneLayer ( ) : void
return void

CloneLayer() public method

Clones the given layer and adds it to the profile, after the original
public CloneLayer ( LayerModel layer ) : void
layer LayerModel
return void

Deactivate() public method

public Deactivate ( ) : void
return void

DeleteProfile() public method

public DeleteProfile ( ) : void
return void

DragOver() public method

public DragOver ( IDropInfo dropInfo ) : void
dropInfo IDropInfo
return void

Drop() public method

public Drop ( IDropInfo dropInfo ) : void
dropInfo IDropInfo
return void

DuplicateProfile() public method

public DuplicateProfile ( ) : void
return void

EditLayer() public method

public EditLayer ( ) : void
return void

EditLayer() public method

Opens a new LayerEditorView for the given layer
public EditLayer ( LayerModel layer ) : void
layer LayerModel The layer to open the view for
return void

EditLayerFromDoubleClick() public method

public EditLayerFromDoubleClick ( ) : void
return void

ExportProfile() public method

public ExportProfile ( ) : void
return void

ImportProfile() public method

public ImportProfile ( ) : void
return void

MouseDownKeyboardPreview() public method

Handler for clicking
public MouseDownKeyboardPreview ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

MouseMoveKeyboardPreview() public method

Handler for resizing and moving the currently selected layer
public MouseMoveKeyboardPreview ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void

MouseUpKeyboardPreview() public method

Second handler for clicking, selects a the layer the user clicked on if the used clicked on an empty spot, deselects the current layer
public MouseUpKeyboardPreview ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

ProfileEditorViewModel() public method

public ProfileEditorViewModel ( MainManager mainManager, EffectModel gameModel, ProfileViewModel profileViewModel, MetroDialogService dialogService, string lastProfile, ILayerEditorVmFactory layerEditorVmFactory ) : System
mainManager Artemis.Managers.MainManager
gameModel Artemis.Models.EffectModel
profileViewModel ProfileViewModel
dialogService Artemis.Services.MetroDialogService
lastProfile string
layerEditorVmFactory ILayerEditorVmFactory
return System

RemoveLayer() public method

Removes the currently selected layer from the profile
public RemoveLayer ( ) : void
return void

RemoveLayer() public method

Removes the given layer from the profile
public RemoveLayer ( LayerModel layer ) : void
layer LayerModel
return void

RenameLayer() public method

public RenameLayer ( LayerModel layer ) : void
layer LayerModel
return void

RenameProfile() public method

public RenameProfile ( ) : void
return void