Added ToolboxItem class and dummy view model

This commit is contained in:
2014-10-11 10:31:31 +03:00
parent 20fea8776a
commit e1d286d0e0
3 changed files with 95 additions and 2 deletions

View File

@ -2,14 +2,29 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
namespace RainmeterStudio.Core.Editor.Features
{
/// <summary>
/// Editor provides toolbox items
/// </summary>
public interface IToolboxProvider
{
bool SupportsToolboxDrop { get; }
IEnumerable<string> ToolboxItems { get; }
/// <summary>
/// Gets a list of toolbox items
/// </summary>
IEnumerable<ToolboxItem> ToolboxItems { get; }
/// <summary>
/// Triggered if the toolbox items change
/// </summary>
event EventHandler ToolboxItemsChanged;
/// <summary>
/// Called when a toolbar item is dropped by double-click
/// </summary>
/// <param name="item">Toolbox item dropped</param>
void ToolboxItemDrop(ToolboxItem item);
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RainmeterStudio.Core.Editor.Features
{
public class ToolboxItem
{
public string Name { get; private set; }
public ToolboxItem(string name)
{
Name = name;
}
}
}