2014-08-12 13:33:13 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using RainmeterStudio.Core.Documents;
|
|
|
|
|
using RainmeterStudio.Core.Model;
|
2014-08-14 07:06:20 +00:00
|
|
|
|
using RainmeterStudio.Core.Documents.DocumentEditorFeatures;
|
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
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|