Profile editor - Add indicator for timeline editor- and normal-mode

This commit is contained in:
Robert committed 2021-07-01 23:05:44 +02:00
1 parent 8728599dcc
commit 472bcccdb6
6 files changed
+68 -12

No files matched your search

@@ -227,6 +227,12 @@ namespace Artemis.UI.Shared.Services
/// </summary>
event EventHandler PixelsPerSecondChanged;
/// <summary>
/// Occurs when the suspend editing boolean is changed
/// </summary>
event EventHandler SuspendEditingChanged;
/// <summary>
/// Occurs when the profile preview has been updated
/// </summary>
@@ -112,6 +112,9 @@ namespace Artemis.UI.Shared.Services
get => _suspendEditing;
set
{
if (_suspendEditing == value)
return;
_suspendEditing = value;
if (value)
{
@@ -123,6 +126,8 @@ namespace Artemis.UI.Shared.Services
if (SelectedProfileConfiguration != null)
_profileService.RenderForEditor = true;
}
OnSuspendEditingChanged();
}
}
@@ -505,6 +510,7 @@ namespace Artemis.UI.Shared.Services
public event EventHandler? SelectedDataBindingChanged;
public event EventHandler? CurrentTimeChanged;
public event EventHandler? PixelsPerSecondChanged;
public event EventHandler? SuspendEditingChanged;
public event EventHandler? ProfilePreviewUpdated;
protected virtual void OnSelectedProfileChanged(ProfileConfigurationEventArgs e)
@@ -537,6 +543,11 @@ namespace Artemis.UI.Shared.Services
PixelsPerSecondChanged?.Invoke(this, EventArgs.Empty);
}
protected virtual void OnSuspendEditingChanged()
{
SuspendEditingChanged?.Invoke(this, EventArgs.Empty);
}
protected virtual void OnProfilePreviewUpdated()
{
ProfilePreviewUpdated?.Invoke(this, EventArgs.Empty);