1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-06-11 17:29:29 +00:00

Move WinForms code to SourceGenWF

This commit is contained in:
Andy McFadden 2019-07-20 13:02:54 -07:00
parent b617d72b70
commit e3906e021b
138 changed files with 128 additions and 128 deletions

View File

@ -18,7 +18,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Map file offsets to 65xx addresses and vice-versa. Useful for sources with
/// multiple ORG directives.

View File

@ -19,7 +19,7 @@ using System.Text;
using Asm65;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Analyzer attribute holder. Contains the output of the instruction and data analyzers.
/// Every byte in the input file has one of these associated with it.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class AboutBox {
/// <summary>
/// Required designer variable.

View File

@ -17,7 +17,7 @@ using System;
using System.IO;
using System.Windows.Forms;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class AboutBox : Form {
private const string IMAGE_FILE_NAME = "AboutImage.png";
private const string LEGAL_STUFF_FILE_NAME = "LegalStuff.txt";

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class DataFileLoadIssue {
/// <summary>
/// Required designer variable.

View File

@ -16,7 +16,7 @@
using System;
using System.Windows.Forms;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class DataFileLoadIssue : Form {
/// <summary>
/// Path name of problematic file.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class DiscardChanges {
/// <summary>
/// Required designer variable.

View File

@ -16,7 +16,7 @@
using System;
using System.Windows.Forms;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
/// <summary>
/// Prompt the user before discarding changes.
///

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class EditAddress {
/// <summary>
/// Required designer variable.

View File

@ -17,7 +17,7 @@ using System;
using System.Diagnostics;
using System.Windows.Forms;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class EditAddress : Form {
/// <summary>

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class EditAppSettings {
/// <summary>
/// Required designer variable.

View File

@ -20,11 +20,11 @@ using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
using AssemblerInfo = SourceGen.AsmGen.AssemblerInfo;
using AssemblerConfig = SourceGen.AsmGen.AssemblerConfig;
using AssemblerInfo = SourceGenWF.AsmGen.AssemblerInfo;
using AssemblerConfig = SourceGenWF.AsmGen.AssemblerConfig;
using ExpressionMode = Asm65.Formatter.FormatConfig.ExpressionMode;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class EditAppSettings : Form {
/// <summary>
/// Tab page enumeration. Numbers must match page indices in designer.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class EditComment {
/// <summary>
/// Required designer variable.

View File

@ -18,7 +18,7 @@ using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class EditComment : Form {
/// <summary>
/// Edited comment string. Will be empty if the comment is to be deleted.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class EditData {
/// <summary>
/// Required designer variable.

View File

@ -20,7 +20,7 @@ using System.Windows.Forms;
using CommonUtil;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class EditData : Form {
/// <summary>
/// Result set that describes the formatting to perform. Not all regions will have

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class EditDefSymbol {
/// <summary>
/// Required designer variable.

View File

@ -21,7 +21,7 @@ using System.Windows.Forms;
using Asm65;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class EditDefSymbol : Form {
/// <summary>
/// Set to previous value before calling; may be null if creating a new symbol.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class EditLabel {
/// <summary>
/// Required designer variable.

View File

@ -18,7 +18,7 @@ using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class EditLabel : Form {
/// <summary>
/// Symbol object. When the dialog completes successfully,

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class EditLongComment {
/// <summary>
/// Required designer variable.

View File

@ -20,7 +20,7 @@ using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class EditLongComment : Form {
/// <summary>
/// Get or set the multi-line comment object. On exit, will be set to null if

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class EditNote {
/// <summary>
/// Required designer variable.

View File

@ -18,7 +18,7 @@ using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class EditNote : Form {
/// <summary>
/// Get or set the note object. On exit, will be set to null if the user wants

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class EditOperand {
/// <summary>
/// Required designer variable.

View File

@ -20,7 +20,7 @@ using System.Windows.Forms;
using Asm65;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class EditOperand : Form {
/// <summary>
/// In/out. May be null on entry if the offset doesn't have a format descriptor

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class EditProjectProperties {
/// <summary>
/// Required designer variable.

View File

@ -23,7 +23,7 @@ using System.Windows.Forms;
using Asm65;
using CommonUtil;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
/// <summary>
/// Edit project properties.
///

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class EditStatusFlags {
/// <summary>
/// Required designer variable.

View File

@ -19,7 +19,7 @@ using System.Windows.Forms;
using Asm65;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class EditStatusFlags : Form {
/// <summary>
/// In/out status flag value.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class FindBox {
/// <summary>
/// Required designer variable.

View File

@ -16,7 +16,7 @@
using System;
using System.Windows.Forms;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class FindBox : Form {
/// <summary>
/// Text to find. On success, holds the string searched for.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class FormatSplitAddress {
/// <summary>
/// Required designer variable.

View File

@ -22,7 +22,7 @@ using Asm65;
using CommonUtil;
using CommonWinForms;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class FormatSplitAddress : Form {
/// <summary>
/// Format descriptors to apply.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class GotoBox {
/// <summary>
/// Required designer variable.

View File

@ -18,7 +18,7 @@ using System.Windows.Forms;
using Asm65;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
public partial class GotoBox : Form {
/// <summary>
/// On success, this will hold the target offset.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
partial class ProjectLoadIssues {
/// <summary>
/// Required designer variable.

View File

@ -16,7 +16,7 @@
using System;
using System.Windows.Forms;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
/// <summary>
/// Display errors and warnings generated while attempting to open a project.
/// </summary>

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AppForms
namespace SourceGenWF.AppForms
{
partial class ProjectView
{

View File

@ -26,9 +26,9 @@ using System.Windows.Forms;
using Asm65;
using CommonUtil;
using CommonWinForms;
using SourceGen.Sandbox;
using SourceGenWF.Sandbox;
namespace SourceGen.AppForms {
namespace SourceGenWF.AppForms {
/// <summary>
/// Main application form. This is the top-level application object.
/// </summary>

View File

@ -19,7 +19,7 @@ using System.Diagnostics;
using System.Text;
using System.Web.Script.Serialization;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Application settings registry. This holds both user-accessible settings and saved
/// values like window widths.

View File

@ -23,7 +23,7 @@ using System.Text;
using Asm65;
using CommonUtil;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
#region IGenerator
/// <summary>

View File

@ -23,7 +23,7 @@ using System.Text;
using Asm65;
using CommonUtil;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
#region IGenerator
/// <summary>

View File

@ -23,7 +23,7 @@ using System.Text;
using Asm65;
using CommonUtil;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
#region IGenerator
/// <summary>

View File

@ -19,7 +19,7 @@ using System.Diagnostics;
using System.Text;
using System.Web.Script.Serialization;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
/// <summary>
/// Assembler configuration holder. Serializes and deserializes information held in
/// application settings.

View File

@ -18,7 +18,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
/// <summary>
/// Static information on assemblers supported by SourceGen. This is relevant for both
/// assembly source generation and assembler execution. Nothing here is affected

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
partial class AssemblerProgress {
/// <summary>
/// Required designer variable.

View File

@ -19,7 +19,7 @@ using System.ComponentModel;
using System.Diagnostics;
using System.Windows.Forms;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
/// <summary>
/// Dialog that shows the progress of the assembler, and allows cancellation.
/// </summary>

View File

@ -17,7 +17,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
public class AssemblerVersion {
/// <summary>
/// Version string reported by the assembler. Retained mostly for debugging.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
partial class GenAndAsm {
/// <summary>
/// Required designer variable.

View File

@ -22,7 +22,7 @@ using System.IO;
using System.Text;
using System.Windows.Forms;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
public partial class GenAndAsm : Form {
private const int PREVIEW_BUF_SIZE = 64 * 1024; // 64KB should be enough for preview
private static string NO_PREVIEW_FILES =

View File

@ -21,7 +21,7 @@ using System.IO;
using Asm65;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
public class GenCommon {
/// <summary>
/// Generates assembly source.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
partial class GeneratorProgress {
/// <summary>
/// Required designer variable.

View File

@ -19,7 +19,7 @@ using System.ComponentModel;
using System.Diagnostics;
using System.Windows.Forms;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
/// <summary>
/// Dialog that shows the progress of the assembler, and allows cancellation.
/// </summary>

View File

@ -17,7 +17,7 @@ using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
/// <summary>
/// Common interface for executing assemblers.
/// </summary>

View File

@ -19,7 +19,7 @@ using System.ComponentModel;
using Asm65;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
/// <summary>
/// Common interface for generating assembler-specific source code.
/// </summary>

View File

@ -76,7 +76,7 @@ The eventual output of our efforts is a map from the original symbol name to the
name. This must be applied to both labels and operands.
*/
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
public class LabelLocalizer {
/// <summary>
/// A pairing of an offset with a label string. (Essentially mAnattribs[n].Symbol

View File

@ -16,7 +16,7 @@
using System;
using System.Diagnostics;
namespace SourceGen.AsmGen {
namespace SourceGenWF.AsmGen {
/// <summary>
/// Multi-line string gatherer. Accumulates characters and raw bytes, emitting
/// them when we have a full operand's worth.

View File

@ -18,7 +18,7 @@ using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Functions for generation of "auto" labels.
/// </summary>

View File

@ -18,7 +18,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Holds information about a set of changes.
///

View File

@ -20,9 +20,9 @@ using System.Diagnostics;
using Asm65;
using CommonUtil;
using PluginCommon;
using SourceGen.Sandbox;
using SourceGenWF.Sandbox;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Instruction analyzer.
///

View File

@ -19,7 +19,7 @@ using System.Diagnostics;
using Asm65;
using CommonUtil;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Auto-detection of structured data.
///

View File

@ -17,7 +17,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Subclass of Symbol used for symbols defined in the platform or project.
///

View File

@ -21,9 +21,9 @@ using System.Text;
using Asm65;
using CommonUtil;
using SourceGen.Sandbox;
using SourceGenWF.Sandbox;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// All state for an open project.
///

View File

@ -21,7 +21,7 @@ using System.Text;
using Asm65;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Converts file data and Anattrib contents into a series of strings and format metadata.
/// This is used as the backing store for ProjectView's codeListView.

View File

@ -17,7 +17,7 @@ using System;
using System.Diagnostics;
using System.IO;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Manages references to external files, notably symbol files (.sym65) and extension
/// scripts. Identifiers look like "RT:subdir/file.sym65".

View File

@ -17,7 +17,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Format descriptor for data items and instruction operands. Instances are immutable.
///

View File

@ -44,7 +44,7 @@ What we need in terms of API is a way to say, "show the help for XYZ". The rest
encapsulated here.
*/
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Help viewer API.
/// </summary>

View File

@ -19,7 +19,7 @@ using System.Diagnostics;
using System.Drawing;
using System.Text;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Representation of a multi-line comment, which is a string plus some format directives.
/// Used for long comments and notes.

View File

@ -18,7 +18,7 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Maintains a record of interesting places we've been.
/// </summary>

View File

@ -18,13 +18,11 @@ using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Text.RegularExpressions;
using CommonUtil;
using SourceGen.Sandbox;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Loads and maintains a collection of platform-specific symbols from a ".sym65" file.
/// </summary>

View File

@ -17,7 +17,7 @@ using System;
using System.Diagnostics;
using System.Windows.Forms;
namespace SourceGen {
namespace SourceGenWF {
static class Program {
// Version number applied to the program as a whole.
public static readonly CommonUtil.Version ProgramVersion =

View File

@ -23,7 +23,7 @@ using System.Web.Script.Serialization;
using CommonUtil;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// Load and save project data from/to a ".dis65" file.
///

View File

@ -16,7 +16,7 @@
using System;
using System.Collections.Generic;
namespace SourceGen {
namespace SourceGenWF {
/// <summary>
/// A collection of project properties.
///

View File

@ -8,7 +8,7 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace SourceGen.Properties {
namespace SourceGenWF.Properties {
using System;
@ -39,7 +39,7 @@ namespace SourceGen.Properties {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SourceGen.Properties.Resources", typeof(Resources).Assembly);
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SourceGenWF.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;

Some files were not shown because too many files have changed in this diff Show More