mirror of
https://github.com/jwetzell/QControlKit.git
synced 2026-08-18 05:34:06 +00:00
Add Event loggin for debug
This commit is contained in:
@@ -141,48 +141,56 @@ namespace QSharp
|
|||||||
|
|
||||||
protected virtual void OnCueNeedsUpdated(string cueID)
|
protected virtual void OnCueNeedsUpdated(string cueID)
|
||||||
{
|
{
|
||||||
|
Console.WriteLine($"[client] cue needs updated: {cueID}");
|
||||||
if (CueNeedsUpdated != null)
|
if (CueNeedsUpdated != null)
|
||||||
CueNeedsUpdated(this, new QCueNeedsUpdatedArgs { cueID = cueID });
|
CueNeedsUpdated(this, new QCueNeedsUpdatedArgs { cueID = cueID });
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void OnCueListsUpdated(JToken response)
|
protected virtual void OnCueListsUpdated(JToken response)
|
||||||
{
|
{
|
||||||
|
Console.WriteLine($"[client] Cue Lists Updated Changed");
|
||||||
if (CueListsUpdated != null)
|
if (CueListsUpdated != null)
|
||||||
CueListsUpdated(this, new QCueListsUpdatedArgs { data = response });
|
CueListsUpdated(this, new QCueListsUpdatedArgs { data = response });
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void OnCueListChangedPlaybackPosition(string cueID)
|
protected virtual void OnCueListChangedPlaybackPosition(string cueID)
|
||||||
{
|
{
|
||||||
|
Console.WriteLine($"[client] Playback Position changed: {cueID}");
|
||||||
if (CueListChangedPlaybackPosition != null)
|
if (CueListChangedPlaybackPosition != null)
|
||||||
CueListChangedPlaybackPosition(this, new QCueListChangedPlaybackPositionArgs { cueID = cueID });
|
CueListChangedPlaybackPosition(this, new QCueListChangedPlaybackPositionArgs { cueID = cueID });
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void OnWorkspaceUpdated()
|
protected virtual void OnWorkspaceUpdated()
|
||||||
{
|
{
|
||||||
|
Console.WriteLine($"[client] Workspace Updated");
|
||||||
if (WorkspaceUpdated != null)
|
if (WorkspaceUpdated != null)
|
||||||
WorkspaceUpdated(this, new QWorkspaceUpdatedArgs());
|
WorkspaceUpdated(this, new QWorkspaceUpdatedArgs());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void OnWorkspaceSettingsUpdated(string settingsType)
|
protected virtual void OnWorkspaceSettingsUpdated(string settingsType)
|
||||||
{
|
{
|
||||||
|
Console.WriteLine($"[client] Workspace Settings Updated");
|
||||||
if (WorkspaceSettingsUpdated != null)
|
if (WorkspaceSettingsUpdated != null)
|
||||||
WorkspaceSettingsUpdated(this, new QWorkspaceSettingsUpdatedArgs { settingsType = settingsType});
|
WorkspaceSettingsUpdated(this, new QWorkspaceSettingsUpdatedArgs { settingsType = settingsType});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void OnWorkspaceLightDashboardUpdated()
|
protected virtual void OnWorkspaceLightDashboardUpdated()
|
||||||
{
|
{
|
||||||
|
Console.WriteLine($"[client] Workspace Light Dashboard Updated");
|
||||||
if (WorkspaceLightDashboardUpdated != null)
|
if (WorkspaceLightDashboardUpdated != null)
|
||||||
WorkspaceLightDashboardUpdated(this, new QWorkspaceLightDashboardUpdatedArgs());
|
WorkspaceLightDashboardUpdated(this, new QWorkspaceLightDashboardUpdatedArgs());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void OnQLabPreferencesUpdated(string key)
|
protected virtual void OnQLabPreferencesUpdated(string key)
|
||||||
{
|
{
|
||||||
|
Console.WriteLine($"[client] QLab Preferences Updated");
|
||||||
if (QLabPreferencesUpdated != null)
|
if (QLabPreferencesUpdated != null)
|
||||||
QLabPreferencesUpdated(this, new QQLabPreferencesUpdatedArgs { key = key });
|
QLabPreferencesUpdated(this, new QQLabPreferencesUpdatedArgs { key = key });
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void OnWorkspaceDisconnected()
|
protected virtual void OnWorkspaceDisconnected()
|
||||||
{
|
{
|
||||||
|
Console.WriteLine($"[client] Workspace Disconnected");
|
||||||
if (WorkspaceDisconnected != null)
|
if (WorkspaceDisconnected != null)
|
||||||
WorkspaceDisconnected(this, new QWorkspaceDisconnectedArgs());
|
WorkspaceDisconnected(this, new QWorkspaceDisconnectedArgs());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user