Skip to content

Commit

Permalink
[VL/vvvv] improved document handling. drag drop vl files onto vvvv, o…
Browse files Browse the repository at this point in the history
…pen vl files within vvvv via open dialog, open first implicit entry point if found (like "Root [Main]") if found, otherwise open document canvas.
  • Loading branch information
gregsn committed Jul 19, 2018
1 parent 554e251 commit de415f7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vvvv45/src/core/Hosting/HDEHost.cs
Expand Up @@ -1061,6 +1061,11 @@ static string GetValueRendering(object obj)
return "";
}

public void ShowVLEditor()
{
FVVVVHost.ShowVLEditor();
}

public double OriginalFrameTime => FVVVVHost.GetOriginalFrameTime();

public Version Version
Expand Down
2 changes: 2 additions & 0 deletions vvvv45/src/core/Hosting/IVVVVHost.cs
Expand Up @@ -222,6 +222,8 @@ IQueryDelete FiftyEditor
/// By using this you can potenitally reduce latency.
/// </summary>
void SetTimeProvider(ITimeProvider timeProvider);

void ShowVLEditor();
}

#region Listeners
Expand Down
2 changes: 2 additions & 0 deletions vvvv45/src/core/PluginInterfaces/V2/IHDE2.cs
Expand Up @@ -399,6 +399,8 @@ IQueryDelete FiftyEditor
/// The version of vvvv. Will for example return "35.5.0.0" for the officially called beta 35.5
/// </summary>
Version Version { get; }

void ShowVLEditor();
}
#endregion IHDEHost

Expand Down
8 changes: 8 additions & 0 deletions vvvv45/src/core/PluginInterfaces/V2/IPlugin2.cs
Expand Up @@ -49,6 +49,14 @@ public interface IQueryDelete
bool DeleteMe();
}

[Guid("C0EB9C47-DB39-4DC6-9B6D-032348E6F7EA"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVLHost
{
void CloseActiveDocument();
bool OpenDocument(string filename);
}

/// <summary>
/// Implement this interface on your gui-plugin if the Mouse (System Window)
/// or Keyboard (System Window) nodes should output data for it.
Expand Down

0 comments on commit de415f7

Please sign in to comment.