2014-07-29 16:42:52 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
2014-10-11 07:31:31 +00:00
|
|
|
|
using System.Windows;
|
2014-07-29 16:42:52 +00:00
|
|
|
|
|
2014-09-12 10:26:52 +00:00
|
|
|
|
namespace RainmeterStudio.Core.Editor.Features
|
2014-07-29 16:42:52 +00:00
|
|
|
|
{
|
2014-10-11 07:31:31 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Editor provides toolbox items
|
|
|
|
|
/// </summary>
|
2014-07-29 16:42:52 +00:00
|
|
|
|
public interface IToolboxProvider
|
|
|
|
|
{
|
2014-10-11 07:31:31 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a list of toolbox items
|
|
|
|
|
/// </summary>
|
|
|
|
|
IEnumerable<ToolboxItem> ToolboxItems { get; }
|
2014-07-29 16:42:52 +00:00
|
|
|
|
|
2014-10-11 07:31:31 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Triggered if the toolbox items change
|
|
|
|
|
/// </summary>
|
2014-07-29 16:42:52 +00:00
|
|
|
|
event EventHandler ToolboxItemsChanged;
|
2014-10-11 07:31:31 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Called when a toolbar item is dropped by double-click
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">Toolbox item dropped</param>
|
|
|
|
|
void ToolboxItemDrop(ToolboxItem item);
|
2014-07-29 16:42:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|