2014-08-12 13:33:13 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Windows;
|
2014-09-12 10:26:52 +00:00
|
|
|
|
using RainmeterStudio.Core.Editor;
|
2014-08-12 13:33:13 +00:00
|
|
|
|
using RainmeterStudio.Core.Model;
|
2014-09-12 10:26:52 +00:00
|
|
|
|
using RainmeterStudio.Core.Editor.Features;
|
2014-08-12 13:33:13 +00:00
|
|
|
|
|
|
|
|
|
namespace RainmeterStudio.SkinDesignerPlugin
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Skin designer document editor
|
|
|
|
|
/// </summary>
|
2014-08-14 07:06:20 +00:00
|
|
|
|
public class SkinDesigner : IDocumentEditor //TODO: , ISelectionPropertiesProvider, IToolboxProvider, IUndoSupport
|
2014-08-12 13:33:13 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the document attached to this editor instance
|
|
|
|
|
/// </summary>
|
|
|
|
|
public SkinDocument AttachedDocument { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the document attached to this editor instance
|
|
|
|
|
/// </summary>
|
|
|
|
|
IDocument IDocumentEditor.AttachedDocument
|
|
|
|
|
{
|
|
|
|
|
get { return AttachedDocument; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the UI control to display for this editor
|
|
|
|
|
/// </summary>
|
|
|
|
|
public SkinDesignerControl EditorUI { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the UI control to display for this editor
|
|
|
|
|
/// </summary>
|
|
|
|
|
UIElement IDocumentEditor.EditorUI
|
|
|
|
|
{
|
|
|
|
|
get { return EditorUI; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes this editor
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="document">The document</param>
|
|
|
|
|
public SkinDesigner(SkinDocument document)
|
|
|
|
|
{
|
|
|
|
|
AttachedDocument = document;
|
2014-08-14 07:06:20 +00:00
|
|
|
|
EditorUI = new SkinDesignerControl(document);
|
2014-08-12 13:33:13 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|