Class InputSequencerViewModel
View model for input sequencer (recorder, player, viewer and editor)
Inheritance
Implements
Inherited Members
Namespace: Phoenix.Input
Assembly: Phoenix.Plugin.Input.dll
Syntax
public class InputSequencerViewModel : INotifyPropertyChanged, IDisposable
Constructors
View SourceInputSequencerViewModel(InputViewModel)
Initializes a new instance of the InputSequencerViewModel class
Declaration
public InputSequencerViewModel(InputViewModel parent)
Parameters
Type | Name | Description |
---|---|---|
InputViewModel | parent | Parent to initialize with |
Properties
View SourceClear
Gets or sets the Clear command
Declaration
public DelegateCommand Clear { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ClearRecent
Gets or sets the Clear Recent command run from recent file list on Open button menu
Declaration
public DelegateCommand ClearRecent { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
Document
Gets the document for view to work with
Declaration
public Sequence Document { get; }
Property Value
Type | Description |
---|---|
Sequence |
DocumentName
Gets the name of current document for display in UI
Declaration
public string DocumentName { get; }
Property Value
Type | Description |
---|---|
System.String |
IsCollapsed
Gets or sets a value indicating whether the panel is collapsed
Declaration
public bool IsCollapsed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsDirty
Gets or sets a value indicating whether input script hasn't been saved
Declaration
public bool IsDirty { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsExpanded
Gets a value indicating whether the panel is expanded
Declaration
public bool IsExpanded { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsLooping
Gets or sets a value indicating whether the sequence will loop
Declaration
public bool IsLooping { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsPlaying
Gets a value indicating whether the sequence is playing
Declaration
public bool IsPlaying { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsRecording
Gets a value indicating whether sequencer is currently recording
Declaration
public bool IsRecording { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
JumpNextComment
Gets or sets the jump to next comment command
Declaration
public DelegateCommand JumpNextComment { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
JumpPreviousComment
Gets or sets the jump to previous comment command
Declaration
public DelegateCommand JumpPreviousComment { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
Keyboard
Gets or sets the command to display keyboard simulation dialog
Declaration
public DelegateCommand Keyboard { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
LastComment
Gets or sets a value with last comment from current position
Declaration
public string LastComment { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Open
Gets or sets the Open command
Declaration
public DelegateCommand Open { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
OpenContextMenuItems
Gets the menu items from Open context menu
Declaration
public ObservableCollection<MenuItem> OpenContextMenuItems { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.MenuItem> |
OpenRecent
Gets or sets the Open Recent command run from recent file list on Open button menu
Declaration
public DelegateCommand<string> OpenRecent { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand<System.String> |
Pause
Gets or sets the Pause command
Declaration
public DelegateCommand Pause { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
Play
Gets or sets the Play command
Declaration
public DelegateCommand Play { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
PlaybackStatus
Gets the playback status to display
Declaration
public string PlaybackStatus { get; }
Property Value
Type | Description |
---|---|
System.String |
Record
Gets or sets the Record command
Declaration
public DelegateCommand Record { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
Redo
Gets or sets the redo command
Declaration
public DelegateCommand Redo { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
RedoContextMenuItems
Gets the menu items for Redo context menu
Declaration
public ObservableCollection<RevisionTarget> RedoContextMenuItems { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<RevisionTarget> |
RevertRevision
Gets or sets the revert revision command
Declaration
public DelegateCommand<int?> RevertRevision { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand<System.Nullable<System.Int32>> |
Save
Gets or sets the Save command
Declaration
public DelegateCommand Save { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
SaveAs
Gets or sets the Save As command
Declaration
public DelegateCommand SaveAs { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ShowComment
Gets or sets a value indicating whether to display comment bar with last comment
Declaration
public bool ShowComment { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Stop
Gets or sets the Stop command
Declaration
public DelegateCommand Stop { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
StopKeyboard
Gets or sets the command to stop real time keyboard simulation
Declaration
public DelegateCommand StopKeyboard { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
TakeScreenshotAsync
Gets or sets the callback fired when view model wants view to get a screenshot of the sequence
Declaration
public Func<DateTime, Task<BitmapSource>> TakeScreenshotAsync { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.DateTime, System.Threading.Tasks.Task<System.Windows.Media.Imaging.BitmapSource>> |
Undo
Gets or sets the undo command
Declaration
public DelegateCommand Undo { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
UndoContextMenuItems
Gets the menu items for Undo context menu
Declaration
public ObservableCollection<RevisionTarget> UndoContextMenuItems { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<RevisionTarget> |
ViewDispatcher
Gets or sets the view dispatcher
Declaration
public Dispatcher ViewDispatcher { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Threading.Dispatcher |
Methods
View SourceCreateSequence(String)
Creates a blank sequence or loads an existing sequence from file, setting up tracks for Xbox Input
Declaration
public Sequence CreateSequence(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Path to load from, or null/empty string to create a blank one |
Returns
Type | Description |
---|---|
Sequence | Sequence created |
Dispose()
Releases resources
Declaration
public void Dispose()
Dispose(Boolean)
Perform finalization
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Whether disposing managed resources |
Finalize()
Finalizes an instance of the InputSequencerViewModel class.
Declaration
protected void Finalize()
MoveLeftTrigger(Double)
Sets the Left Trigger
Declaration
public void MoveLeftTrigger(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set |
MoveRightTrigger(Double)
Sets the Right Trigger
Declaration
public void MoveRightTrigger(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set |
OnClosing(CancelEventArgs)
Handle application closure
Declaration
public void OnClosing(CancelEventArgs cancelArgs)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.CancelEventArgs | cancelArgs | Event arguments |
PressButton(GamepadButtons)
Presses a button
Declaration
public void PressButton(GamepadButtons button)
Parameters
Type | Name | Description |
---|---|---|
GamepadButtons | button | Buttons to press and release |
ReleaseButton(GamepadButtons)
Release a button
Declaration
public void ReleaseButton(GamepadButtons button)
Parameters
Type | Name | Description |
---|---|---|
GamepadButtons | button | Button to release |
SetLeftThumbStickX(Double)
Sets the Left Thumb Stick X
Declaration
public void SetLeftThumbStickX(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set |
SetLeftThumbStickY(Double)
Sets the Left Thumb Stick Y
Declaration
public void SetLeftThumbStickY(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set |
SetRightThumbStickX(Double)
Sets the Right Thumb Stick X
Declaration
public void SetRightThumbStickX(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set |
SetRightThumbStickY(Double)
Sets the Right Thumb Stick Y
Declaration
public void SetRightThumbStickY(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to set |
SimulateKeyboard(String, Boolean, Boolean, Double, Double)
Simulate text input to on-screen keyboard
Declaration
public void SimulateKeyboard(string text, bool insert, bool pressEnter, double buttonPressTime, double actionWaitTime)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Text to enter |
System.Boolean | insert | Whether to insert into sequence at current position or play back in real-time |
System.Boolean | pressEnter | Whether to press enter after entering text |
System.Double | buttonPressTime | Time to wait between button press and release |
System.Double | actionWaitTime | Time to wait between button presses |
Events
View SourceEnsurePositionVisible
Event fired when view model wants view to ensure current position is visible
Declaration
public event EventHandler EnsurePositionVisible
Event Type
Type | Description |
---|---|
System.EventHandler |
PropertyChanged
Property changed event required for INotifyPropertyChanged support
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |
ShowKeyboard
Event fired when view model wants view to show keyboard simulation dialog
Declaration
public event EventHandler ShowKeyboard
Event Type
Type | Description |
---|---|
System.EventHandler |