using System; using System.Collections.Generic; using System.Windows.Forms; using Core.Common.Controls; using Core.Common.Gui; namespace Application.Ringtoets.Forms.ViewManager { /// /// Interface providing view docking control. Implemented in DotNetBar for now. /// public interface IDockingManager : IDisposable { /// /// Occurs when the bar of a view trying to close. /// event EventHandler ViewBarClosing; /// /// Occurs when a view got activated by clicked or entering it otherways /// event EventHandler ViewActivated; event Action ViewSelectionMouseDown; IEnumerable Views { get; } /// /// Adds view at specified location /// /// View to add /// Location of the view void Add(IView view, ViewLocation location); /// /// Removes view and container from bars. If bar is empty it is also removed /// /// /// void Remove(IView view, bool removeTabFromDockingbar); /// /// Sets the tooltip of the container of the view /// /// /// void SetToolTip(IView view, string tooltip); /// /// Activates view. /// /// void ActivateView(IView view); } }