mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added project templates, work on document template
This commit is contained in:
34
RainmeterStudio.Core/Model/IDocumentTemplate.cs
Normal file
34
RainmeterStudio.Core/Model/IDocumentTemplate.cs
Normal file
@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using RainmeterStudio.Core.Model;
|
||||
|
||||
namespace RainmeterStudio.Core.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a document template
|
||||
/// </summary>
|
||||
public interface IDocumentTemplate
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the document template name
|
||||
/// </summary>
|
||||
string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the default extension of this template
|
||||
/// </summary>
|
||||
string DefaultExtension { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the properties of this template
|
||||
/// </summary>
|
||||
/// <remarks>Properties are used to display a form dialog after the "New item" dialog closes.</remarks>
|
||||
IEnumerable<Property> Properties { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a document using this template
|
||||
/// </summary>
|
||||
/// <returns>Created document.</returns>
|
||||
IDocument CreateDocument();
|
||||
}
|
||||
}
|
30
RainmeterStudio.Core/Model/IProjectTemplate.cs
Normal file
30
RainmeterStudio.Core/Model/IProjectTemplate.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace RainmeterStudio.Core.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Project template interface
|
||||
/// </summary>
|
||||
public interface IProjectTemplate
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the template
|
||||
/// </summary>
|
||||
string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the properties of this template
|
||||
/// </summary>
|
||||
/// <remarks>Properties are used to display a form dialog after the "New project" dialog closes.</remarks>
|
||||
IEnumerable<Property> Properties { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a project.
|
||||
/// </summary>
|
||||
/// <returns>Created project</returns>
|
||||
Project CreateProject();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user