Skip to content

Commit

Permalink
Every editor components are moved to Editor directory
Browse files Browse the repository at this point in the history
  • Loading branch information
iconstudio committed Oct 6, 2023
1 parent a98e6aa commit 4a5262a
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
using System.Diagnostics.Contracts;
using System.Text.Json;
using System.Text.Json.Serialization;
using TestEditor.Editor;

namespace TestEditor.Contents
{
[Serializable]
[Serializable]
public struct SerializedMap : IMapAsyncSerial<Map>
{
[JsonInclude] public SerializedTileset Tileset { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TestEditor
namespace TestEditor.Editor
{
internal class EditorCanvasView
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using TestEditor.Contents;

namespace TestEditor
namespace TestEditor.Editor
{
internal static class EditorContentManager
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
using Windows.Storage;

using TestEditor.Utility;
using TestEditor.Contents;

namespace TestEditor.Contents
namespace TestEditor.Editor
{
internal static class EditorFileHelper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Diagnostics.Contracts;

namespace TestEditor
namespace TestEditor.Editor
{
public enum EditorTransitionCategory
{
Expand Down
4 changes: 2 additions & 2 deletions Editor/TestEditor/Infrastructures/EditorCanvas.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using Microsoft.UI.Xaml.Input;

using TestEditor.Contents;

using TestEditor.Editor;
using Windows.Foundation;

namespace TestEditor
{
public sealed partial class EditorCanvas : UserControl
public sealed partial class EditorCanvas : UserControl
{
private class NullEditorPageException : NullReferenceException
{
Expand Down
7 changes: 4 additions & 3 deletions Editor/TestEditor/Infrastructures/EditorPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@

using TestEditor.Contents;
using TestEditor.WinUI;
using TestEditor.Editor;

namespace TestEditor
{
using WindowOption = WINDOW_EX_STYLE;
using WindowStyle = WINDOW_STYLE;
using WindowOption = WINDOW_EX_STYLE;
using WindowStyle = WINDOW_STYLE;

public sealed partial class EditorPage : Page
public sealed partial class EditorPage : Page
{
private const int toolWidth = 240;
private const int toolHeight = 300;
Expand Down
5 changes: 2 additions & 3 deletions Editor/TestEditor/Infrastructures/ProjectOpenPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
using Microsoft.UI.Xaml.Media.Animation;

using Windows.Storage;

using TestEditor.Contents;
using TestEditor.Utility;
using TestEditor.WinUI;
using TestEditor.Editor;

namespace TestEditor
{
public sealed partial class ProjectOpenPage : Page
public sealed partial class ProjectOpenPage : Page
{
private volatile bool isPickerOpened;

Expand Down
5 changes: 2 additions & 3 deletions Editor/TestEditor/Utilities/FilePickHelper.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using Windows.Foundation;
using Windows.Storage;
using Windows.Storage.Pickers;

using TestEditor.Contents;
using TestEditor.Editor;

namespace TestEditor.Utility
{
public static class FilePickHelper
public static class FilePickHelper
{
public static IAsyncOperation<StorageFile> OpenLoadPicker(Window window)
{
Expand Down

0 comments on commit 4a5262a

Please sign in to comment.