Async busy indicator; Change plugin interface, and more

This commit is contained in:
Paddy Xu
2017-04-30 22:52:54 +03:00
parent 0b0d9deccb
commit 73a2dafabf
23 changed files with 836 additions and 230 deletions

View File

@@ -40,17 +40,19 @@ namespace QuickLook.Plugin.TextViewer
}
}
public void Prepare(string path, ViewContentContainer container)
public void BoundViewSize(string path, ViewerObject context)
{
container.PreferedSize = new Size {Width = 800, Height = 600};
context.PreferredSize = new Size {Width = 800, Height = 600};
}
public void View(string path, ViewContentContainer container)
public void View(string path, ViewerObject context)
{
_tvp = new TextViewerPanel(path);
container.SetContent(_tvp);
container.Title = $"{Path.GetFileName(path)}";
context.ViewerContent = _tvp;
context.Title = $"{Path.GetFileName(path)}";
context.IsBusy = false;
}
public void Dispose()