provide a way to annotate DataFormats that are incomplete

This commit is contained in:
Michael Becker 2022-04-11 19:13:25 -04:00
parent f065ec217c
commit e585c425b8
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C
3 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,32 @@
//
// DataFormatImplementationStatus.cs
//
// Author:
// Michael Becker <alcexhim@gmail.com>
//
// Copyright (c) 2022 Mike Becker's Software
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
namespace UniversalEditor
{
public enum DataFormatImplementationStatus
{
None = 0,
Incomplete = -1,
Load = 1,
Save = 2,
Complete = 3
}
}

View File

@ -0,0 +1,33 @@
//
// Implementationstatus.cs
//
// Author:
// Michael Becker <alcexhim@gmail.com>
//
// Copyright (c) 2022 Mike Becker's Software
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
namespace UniversalEditor
{
public class ImplementationStatusAttribute : Attribute
{
private DataFormatImplementationStatus _dfStatus = DataFormatImplementationStatus.None;
public ImplementationStatusAttribute(DataFormatImplementationStatus status)
{
_dfStatus = status;
}
}
}

View File

@ -101,6 +101,8 @@
<Compile Include="UserInterface\HostApplicationMessage.cs" />
<Compile Include="UserInterface\HostApplicationOutputWindow.cs" />
<Compile Include="CustomOptionCompatSettingsProvider.cs" />
<Compile Include="ImplementationStatusAttribute.cs" />
<Compile Include="DataFormatImplementationStatus.cs" />
</ItemGroup>
<ItemGroup />
<ItemGroup>