mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-05-31 20:42:43 -05:00
Create ViewModel/Visitors subfolder
we have 5 of these now and will probably make more. They deserve their own folder.
This commit is contained in:
parent
b17e8c77df
commit
9766834507
|
|
@ -54,12 +54,12 @@
|
|||
<Compile Include="Models\Runs\AsciiRun.cs" />
|
||||
<Compile Include="Models\Runs\HeaderRow.cs" />
|
||||
<Compile Include="ViewModels\AutoCompleteSelectionItem.cs" />
|
||||
<Compile Include="ViewModels\CompleteEditOperation.cs" />
|
||||
<Compile Include="ViewModels\ContextItemFactory.cs" />
|
||||
<Compile Include="ViewModels\ContinueCellEdit.cs" />
|
||||
<Compile Include="ViewModels\Visitors\CompleteEditOperation.cs" />
|
||||
<Compile Include="ViewModels\Visitors\ContextItemFactory.cs" />
|
||||
<Compile Include="ViewModels\Visitors\ContinueCellEdit.cs" />
|
||||
<Compile Include="ViewModels\ConvertCellToText.cs" />
|
||||
<Compile Include="ViewModels\DataClear.cs" />
|
||||
<Compile Include="ViewModels\StartCellEdit.cs" />
|
||||
<Compile Include="ViewModels\Visitors\DataClear.cs" />
|
||||
<Compile Include="ViewModels\Visitors\StartCellEdit.cs" />
|
||||
<Compile Include="ViewModels\Theme.cs" />
|
||||
<Compile Include="ViewModels\Tools\IArrayElementViewModel.cs" />
|
||||
<Compile Include="Models\Runs\IFormattedRun.cs" />
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using HavenSoft.HexManiac.Core.Models;
|
||||
using HavenSoft.HexManiac.Core.Models.Runs;
|
||||
using HavenSoft.HexManiac.Core.ViewModels.Tools;
|
||||
using HavenSoft.HexManiac.Core.ViewModels.Visitors;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.Specialized;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
using HavenSoft.HexManiac.Core.Models.Runs;
|
||||
using HavenSoft.HexManiac.Core.ViewModels.DataFormats;
|
||||
using HavenSoft.HexManiac.Core.ViewModels.Tools;
|
||||
using HavenSoft.HexManiac.Core.ViewModels.Visitors;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
using HavenSoft.HexManiac.Core.Models.Runs;
|
||||
using HavenSoft.HexManiac.Core.ViewModels.DataFormats;
|
||||
using HavenSoft.HexManiac.Core.ViewModels.Tools;
|
||||
using HavenSoft.HexManiac.Core.ViewModels.Visitors;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ using System.Linq;
|
|||
using static HavenSoft.HexManiac.Core.Models.Runs.PCSRun;
|
||||
using static HavenSoft.HexManiac.Core.Models.Runs.PointerRun;
|
||||
|
||||
namespace HavenSoft.HexManiac.Core.ViewModels {
|
||||
namespace HavenSoft.HexManiac.Core.ViewModels.Visitors {
|
||||
internal class CompleteEditOperation : IDataFormatVisitor {
|
||||
private readonly IDataModel Model;
|
||||
private readonly int memoryLocation;
|
||||
|
|
@ -6,7 +6,7 @@ using System.Linq;
|
|||
using System.Windows.Input;
|
||||
using static HavenSoft.HexManiac.Core.ICommandExtensions;
|
||||
|
||||
namespace HavenSoft.HexManiac.Core.ViewModels {
|
||||
namespace HavenSoft.HexManiac.Core.ViewModels.Visitors {
|
||||
public interface IContextItem {
|
||||
string Text { get; }
|
||||
ICommand Command { get; }
|
||||
|
|
@ -6,7 +6,7 @@ using static HavenSoft.HexManiac.Core.Models.Runs.ArrayRun;
|
|||
using static HavenSoft.HexManiac.Core.Models.Runs.PCSRun;
|
||||
using static HavenSoft.HexManiac.Core.Models.Runs.PointerRun;
|
||||
|
||||
namespace HavenSoft.HexManiac.Core.ViewModels {
|
||||
namespace HavenSoft.HexManiac.Core.ViewModels.Visitors {
|
||||
/// <summary>
|
||||
/// An an existing UnderEdit element is trying to be edited.
|
||||
/// This object just needs to set Result to true if the Input is valid for the given cell.
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using HavenSoft.HexManiac.Core.ViewModels.DataFormats;
|
||||
using System;
|
||||
|
||||
namespace HavenSoft.HexManiac.Core.ViewModels {
|
||||
namespace HavenSoft.HexManiac.Core.ViewModels.Visitors {
|
||||
/// <summary>
|
||||
/// How we clear data depends on what type of data we're clearing.
|
||||
/// For example, cleared pointers get replaced with NULL (0x00000000).
|
||||
|
|
@ -9,7 +9,7 @@ using static HavenSoft.HexManiac.Core.Models.Runs.BaseRun;
|
|||
using static HavenSoft.HexManiac.Core.Models.Runs.PCSRun;
|
||||
using static HavenSoft.HexManiac.Core.Models.Runs.PointerRun;
|
||||
|
||||
namespace HavenSoft.HexManiac.Core.ViewModels {
|
||||
namespace HavenSoft.HexManiac.Core.ViewModels.Visitors {
|
||||
/// <summary>
|
||||
/// StartCellEdit is responsible for 2 things.
|
||||
/// (1) if Input is a valid change for MemoryLocation, Result should be true after calling the appropriate Visit() method.
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
using HavenSoft.HexManiac.Core.Models;
|
||||
using HavenSoft.HexManiac.Core.ViewModels;
|
||||
using HavenSoft.HexManiac.Core.ViewModels.DataFormats;
|
||||
using HavenSoft.HexManiac.Core.ViewModels.Visitors;
|
||||
using HavenSoft.HexManiac.WPF.Implementations;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user