Mercurial > repos > RelicTools > IChunkyViewer
changeset 0:8439bec53421
Initial commit under the GPLv3
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 06 Oct 2018 20:00:56 +0100 |
parents | |
children | 9106f044f5f3 |
files | .hgignore .vscode/launch.json .vscode/tasks.json AboutChunkyViewer.cs AboutChunkyViewer.resx App.ico AssemblyInfo.cs COPYING DataChunk.ico Form1.cs Form1.resx FrmConfig.cs FrmConfig.resx FrmValidationString.cs FrmValidationString.resx IChunkyViewer.cs IChunkyViewer.csproj IChunkyViewer.csproj.user Progress.cs Progress.resx WinFolderClosed.ico WinFolderOpen.ico |
diffstat | 22 files changed, 4182 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,2 @@ +bin/ +obj/ \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.vscode/launch.json Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch IChunky Viewer", + "type": "mono", + "request": "launch", + "program": "${workspaceRoot}/bin/Debug/IChunkyViewer.exe", + "cwd": "${workspaceRoot}" + } + ] +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.vscode/tasks.json Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,43 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Build IChunkyViewer (Debug)", + "type": "shell", + "command": "xbuild", + "args": [ + // Ask msbuild to generate full paths for file names. + "/property:GenerateFullPaths=true", + "/t:build" + ], + "group": "build", + "presentation": { + // Reveal the output only if unrecognized errors occur. + "reveal": "silent" + }, + // Use the standard MS compiler pattern to detect errors, warnings and infos + "problemMatcher": "$msCompile" + }, + + { + "label": "Build IChunkyViewer (Release)", + "type": "shell", + "command": "xbuild", + "args": [ + "/p:Configuration=Release", + // Ask msbuild to generate full paths for file names. + "/property:GenerateFullPaths=true", + "/t:build" + ], + "group": "build", + "presentation": { + // Reveal the output only if unrecognized errors occur. + "reveal": "silent" + }, + // Use the standard MS compiler pattern to detect errors, warnings and infos + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AboutChunkyViewer.cs Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,118 @@ +using System; +using System.Drawing; +using System.Collections; +using System.ComponentModel; +using System.Windows.Forms; + +namespace IBBoard.Relic.IChunkyViewer +{ + /// <summary> + /// Summary description for AboutTextureTool. + /// </summary> + public class AboutChunkyViewer : System.Windows.Forms.Form + { + private System.Windows.Forms.Button bttnClose; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.Container components = null; + + public AboutChunkyViewer() + { + // + // Required for Windows Form Designer support + // + InitializeComponent(); + + string version = Application.ProductVersion.Substring(0, Application.ProductVersion.LastIndexOf('.')); + + if (version.EndsWith(".0")) + { + version = version.Substring(0, version.Length-2); + } + + label2.Text = "Intelligent Chunky Viewer v"+version; + // + // TODO: Add any constructor code after InitializeComponent call + // + } + + /// <summary> + /// Clean up any resources being used. + /// </summary> + protected override void Dispose( bool disposing ) + { + if( disposing ) + { + if(components != null) + { + components.Dispose(); + } + } + base.Dispose( disposing ); + } + + #region Windows Form Designer generated code + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.bttnClose = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // bttnClose + // + this.bttnClose.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.bttnClose.Location = new System.Drawing.Point(200, 88); + this.bttnClose.Name = "bttnClose"; + this.bttnClose.TabIndex = 0; + this.bttnClose.Text = "Close"; + this.bttnClose.Click += new System.EventHandler(this.bttnClose_Click); + // + // label1 + // + this.label1.Location = new System.Drawing.Point(8, 32); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(272, 56); + this.label1.TabIndex = 1; + this.label1.Text = "Created by IBBoard for Skins @ Hive World Terra (http://skins.hiveworldterra.co." + + "uk)\r\n\r\nRelic Chunky file format reader and analyser."; + // + // label2 + // + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); + this.label2.Location = new System.Drawing.Point(8, 8); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(264, 23); + this.label2.TabIndex = 2; + this.label2.Text = "Intelligent Chunky Viewer v1.0"; + // + // AboutChunkyViewer + // + this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); + this.ClientSize = new System.Drawing.Size(282, 113); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.bttnClose); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + this.Name = "AboutChunkyViewer"; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "About"; + this.ResumeLayout(false); + + } + #endregion + + private void bttnClose_Click(object sender, System.EventArgs e) + { + this.Close(); + } + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AboutChunkyViewer.resx Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,157 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 1.3 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">1.3</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1">this is my long string</data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + [base64 mime encoded serialized .NET Framework object] + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + [base64 mime encoded string representing a byte array form of the .NET Framework object] + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used forserialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>1.3</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <data name="bttnClose.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="bttnClose.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="bttnClose.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="label1.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="label1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="label1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="label2.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="label2.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="label2.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="$this.Name"> + <value>AboutChunkyViewer</value> + </data> + <data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>(Default)</value> + </data> + <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>8, 8</value> + </data> + <data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </data> + <data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>80</value> + </data> + <data name="$this.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </data> + <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> +</root> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AssemblyInfo.cs Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,58 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +// +[assembly: AssemblyTitle("IChunky Viewer")] +[assembly: AssemblyDescription("Intelligent Chunky Viewer - a Chunky file format viewer for Relic's Chunky files that parses some of the data in to meaningful output and allows you to edit Chunky files")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("IChunkyViewer")] +[assembly: AssemblyCopyright("IBBoard, 2006-2007")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: + +[assembly: AssemblyVersion("1.1.3.*")] + +// +// In order to sign your assembly you must specify a key to use. Refer to the +// Microsoft .NET Framework documentation for more information on assembly signing. +// +// Use the attributes below to control which key is used for signing. +// +// Notes: +// (*) If no key is specified, the assembly is not signed. +// (*) KeyName refers to a key that has been installed in the Crypto Service +// Provider (CSP) on your machine. KeyFile refers to a file which contains +// a key. +// (*) If the KeyFile and the KeyName values are both specified, the +// following processing occurs: +// (1) If the KeyName can be found in the CSP, that key is used. +// (2) If the KeyName does not exist and the KeyFile does exist, the key +// in the KeyFile is installed into the CSP and used. +// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. +// When specifying the KeyFile, the location of the KeyFile should be +// relative to the project output directory which is +// %Project Directory%\obj\<configuration>. For example, if your KeyFile is +// located in the project directory, you would specify the AssemblyKeyFile +// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] +// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework +// documentation for more information on this. +// +[assembly: AssemblyDelaySign(false)] +[assembly: AssemblyKeyFile("")] +[assembly: AssemblyKeyName("")]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/COPYING Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + 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/>. + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + <program> Copyright (C) <year> <name of author> + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +<http://www.gnu.org/licenses/>. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +<http://www.gnu.org/philosophy/why-not-lgpl.html>.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Form1.cs Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,1056 @@ +using System; +using System.Drawing; +using System.Collections; +using System.ComponentModel; +using System.Windows.Forms; +using System.Data; +using IBBoard; +using IBBoard.Relic.RelicTools; +using IBBoard.Relic.RelicTools.Exceptions; +using System.Threading; +using System.IO; + +namespace IBBoard.Relic.IChunkyViewer +{ + /// <summary> + /// Summary description for Form1. + /// </summary> + public class Form1 : System.Windows.Forms.Form + { + private System.Windows.Forms.MainMenu mainMenu; + private System.Windows.Forms.MenuItem menuItem1; + private System.Windows.Forms.MenuItem miFile_Open; + private System.Windows.Forms.OpenFileDialog openFileDialog; + private System.ComponentModel.IContainer components; + private System.Windows.Forms.TreeView treeView; + private System.Windows.Forms.TextBox txtDetails; + private System.Windows.Forms.ImageList imageList; + private System.Windows.Forms.ContextMenu contextMenu; + private System.Windows.Forms.MenuItem miSaveChunk; + private System.Windows.Forms.SaveFileDialog saveFileDialog; + private System.Windows.Forms.MenuItem menuItem2; + private System.Windows.Forms.MenuItem menuItem3; + private System.Windows.Forms.MenuItem menuItem4; + + private RelicChunkyFile chunkyFile; + private string chunkyFilePath = ""; + private string chunkyFileNewPath = ""; + private System.Windows.Forms.MenuItem menuItem5; + private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog; + private System.Windows.Forms.StatusBar statusBar; + private System.Windows.Forms.Timer timer; + + private System.Windows.Forms.MenuItem menuItem6; + private System.Windows.Forms.MenuItem menuItem8; + private System.Windows.Forms.MenuItem miExportChunk; + private System.Windows.Forms.MenuItem miImportChunk; + private System.Windows.Forms.SaveFileDialog exportFileDialog; + private System.Windows.Forms.OpenFileDialog importFileDialog; + private System.Windows.Forms.MenuItem miImportSiblingChunk; + private System.Windows.Forms.MenuItem menuItem9; + private System.Windows.Forms.MenuItem miSave; + private System.Windows.Forms.MenuItem menuItem11; + private System.Windows.Forms.MenuItem menuItem10; + private System.Windows.Forms.MenuItem miDeleteChunk; + private System.Windows.Forms.MenuItem miOptions; + private System.Windows.Forms.MenuItem menuItem7; + private System.Windows.Forms.MenuItem miShowValidationString; + private System.Windows.Forms.MenuItem menuItem16; + private System.Windows.Forms.MenuItem miRefreshValidations; + + private ChunkyValidator[] chunkyValidators; + private System.Windows.Forms.MenuItem miValidateAs; + private System.Windows.Forms.MenuItem miNoValidators; + private Preferences preferences; + + private Progress progress = null; + + private Form1() + { // + // Required for Windows Form Designer support + // + InitializeComponent(); + preferences = new Preferences("IChunkyViewer"); + + openFileDialog.InitialDirectory = preferences["DoWPath"].ToString(); + } + + public Form1(string path): this() + { + if (path!=null && path.Trim()!="") + { + chunkyFileNewPath = path; + Thread thr = new Thread(new ThreadStart(openChunkyFile)); + thr.Start(); + } + } + + private void Form1_Load(object sender, System.EventArgs e) + { + readInValidators(); + } + + /// <summary> + /// Clean up any resources being used. + /// </summary> + protected override void Dispose( bool disposing ) + { + if( disposing ) + { + if (components != null) + { + components.Dispose(); + } + } + base.Dispose( disposing ); + } + + #region Windows Form Designer generated code + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); + this.treeView = new System.Windows.Forms.TreeView(); + this.contextMenu = new System.Windows.Forms.ContextMenu(); + this.miSaveChunk = new System.Windows.Forms.MenuItem(); + this.miExportChunk = new System.Windows.Forms.MenuItem(); + this.menuItem8 = new System.Windows.Forms.MenuItem(); + this.miImportChunk = new System.Windows.Forms.MenuItem(); + this.miImportSiblingChunk = new System.Windows.Forms.MenuItem(); + this.menuItem10 = new System.Windows.Forms.MenuItem(); + this.miDeleteChunk = new System.Windows.Forms.MenuItem(); + this.imageList = new System.Windows.Forms.ImageList(this.components); + this.mainMenu = new System.Windows.Forms.MainMenu(); + this.menuItem1 = new System.Windows.Forms.MenuItem(); + this.miFile_Open = new System.Windows.Forms.MenuItem(); + this.menuItem5 = new System.Windows.Forms.MenuItem(); + this.menuItem9 = new System.Windows.Forms.MenuItem(); + this.miSave = new System.Windows.Forms.MenuItem(); + this.menuItem11 = new System.Windows.Forms.MenuItem(); + this.menuItem4 = new System.Windows.Forms.MenuItem(); + this.menuItem6 = new System.Windows.Forms.MenuItem(); + this.miOptions = new System.Windows.Forms.MenuItem(); + this.menuItem7 = new System.Windows.Forms.MenuItem(); + this.miShowValidationString = new System.Windows.Forms.MenuItem(); + this.miValidateAs = new System.Windows.Forms.MenuItem(); + this.miNoValidators = new System.Windows.Forms.MenuItem(); + this.menuItem16 = new System.Windows.Forms.MenuItem(); + this.miRefreshValidations = new System.Windows.Forms.MenuItem(); + this.menuItem2 = new System.Windows.Forms.MenuItem(); + this.menuItem3 = new System.Windows.Forms.MenuItem(); + this.txtDetails = new System.Windows.Forms.TextBox(); + this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); + this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); + this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); + this.statusBar = new System.Windows.Forms.StatusBar(); + this.timer = new System.Windows.Forms.Timer(this.components); + this.exportFileDialog = new System.Windows.Forms.SaveFileDialog(); + this.importFileDialog = new System.Windows.Forms.OpenFileDialog(); + this.SuspendLayout(); + // + // treeView + // + this.treeView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.treeView.ContextMenu = this.contextMenu; + this.treeView.ImageList = this.imageList; + this.treeView.Location = new System.Drawing.Point(0, 0); + this.treeView.Name = "treeView"; + this.treeView.SelectedImageIndex = 1; + this.treeView.Size = new System.Drawing.Size(344, 520); + this.treeView.TabIndex = 0; + this.treeView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.treeView_MouseDown); + this.treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView_AfterSelect); + // + // contextMenu + // + this.contextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.miSaveChunk, + this.miExportChunk, + this.menuItem8, + this.miImportChunk, + this.miImportSiblingChunk, + this.menuItem10, + this.miDeleteChunk}); + this.contextMenu.Popup += new System.EventHandler(this.contextMenu_Popup); + // + // miSaveChunk + // + this.miSaveChunk.Index = 0; + this.miSaveChunk.Text = "&Save chunk to location"; + this.miSaveChunk.Click += new System.EventHandler(this.miSaveChunk_Click); + // + // miExportChunk + // + this.miExportChunk.Index = 1; + this.miExportChunk.Text = "&Export chunk"; + this.miExportChunk.Click += new System.EventHandler(this.miExportChunk_Click); + // + // menuItem8 + // + this.menuItem8.Index = 2; + this.menuItem8.Text = "-"; + // + // miImportChunk + // + this.miImportChunk.Index = 3; + this.miImportChunk.Text = "&Import child chunk"; + this.miImportChunk.Click += new System.EventHandler(this.miImportChunk_Click); + // + // miImportSiblingChunk + // + this.miImportSiblingChunk.Index = 4; + this.miImportSiblingChunk.Text = "I&mport sibling chunk"; + this.miImportSiblingChunk.Click += new System.EventHandler(this.miImportSiblingChunk_Click); + // + // menuItem10 + // + this.menuItem10.Index = 5; + this.menuItem10.Text = "-"; + // + // miDeleteChunk + // + this.miDeleteChunk.Index = 6; + this.miDeleteChunk.Text = "&Delete chunk"; + this.miDeleteChunk.Click += new System.EventHandler(this.miDeleteChunk_Click); + // + // imageList + // + this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; + this.imageList.ImageSize = new System.Drawing.Size(16, 16); + this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream"))); + this.imageList.TransparentColor = System.Drawing.Color.Transparent; + // + // mainMenu + // + this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.menuItem1, + this.menuItem6, + this.menuItem7, + this.menuItem2}); + // + // menuItem1 + // + this.menuItem1.Index = 0; + this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.miFile_Open, + this.menuItem5, + this.menuItem9, + this.miSave, + this.menuItem11, + this.menuItem4}); + this.menuItem1.Text = "&File"; + // + // miFile_Open + // + this.miFile_Open.Index = 0; + this.miFile_Open.Text = "&Open"; + this.miFile_Open.Click += new System.EventHandler(this.miFile_Open_Click); + // + // menuItem5 + // + this.menuItem5.Index = 1; + this.menuItem5.Text = "O&pen in new window"; + this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click); + // + // menuItem9 + // + this.menuItem9.Index = 2; + this.menuItem9.Text = "-"; + // + // miSave + // + this.miSave.Enabled = false; + this.miSave.Index = 3; + this.miSave.Text = "&Save"; + this.miSave.Click += new System.EventHandler(this.miSave_Click); + // + // menuItem11 + // + this.menuItem11.Index = 4; + this.menuItem11.Text = "-"; + // + // menuItem4 + // + this.menuItem4.Index = 5; + this.menuItem4.Text = "&Exit"; + this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click); + // + // menuItem6 + // + this.menuItem6.Index = 1; + this.menuItem6.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.miOptions}); + this.menuItem6.Text = "&Edit"; + // + // miOptions + // + this.miOptions.Index = 0; + this.miOptions.Text = "&Options"; + this.miOptions.Click += new System.EventHandler(this.miOptions_Click); + // + // menuItem7 + // + this.menuItem7.Index = 2; + this.menuItem7.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.miShowValidationString, + this.miValidateAs}); + this.menuItem7.Text = "&Tools"; + // + // miShowValidationString + // + this.miShowValidationString.Enabled = false; + this.miShowValidationString.Index = 0; + this.miShowValidationString.Text = "Vali&dation string"; + this.miShowValidationString.Click += new System.EventHandler(this.miShowValidationString_Click); + // + // miValidateAs + // + this.miValidateAs.Enabled = false; + this.miValidateAs.Index = 1; + this.miValidateAs.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.miNoValidators, + this.menuItem16, + this.miRefreshValidations}); + this.miValidateAs.Text = "&Validate as..."; + // + // miNoValidators + // + this.miNoValidators.Enabled = false; + this.miNoValidators.Index = 0; + this.miNoValidators.Text = "No validators"; + // + // menuItem16 + // + this.menuItem16.Index = 1; + this.menuItem16.Text = "-"; + // + // miRefreshValidations + // + this.miRefreshValidations.Index = 2; + this.miRefreshValidations.Text = "Refresh list"; + this.miRefreshValidations.Click += new System.EventHandler(this.miRefreshValidations_Click); + // + // menuItem2 + // + this.menuItem2.Index = 3; + this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.menuItem3}); + this.menuItem2.Text = "&Help"; + // + // menuItem3 + // + this.menuItem3.Index = 0; + this.menuItem3.Text = "&About"; + this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click); + // + // txtDetails + // + this.txtDetails.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtDetails.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); + this.txtDetails.Location = new System.Drawing.Point(344, 0); + this.txtDetails.Multiline = true; + this.txtDetails.Name = "txtDetails"; + this.txtDetails.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.txtDetails.Size = new System.Drawing.Size(392, 520); + this.txtDetails.TabIndex = 1; + this.txtDetails.Text = ""; + // + // statusBar + // + this.statusBar.Location = new System.Drawing.Point(0, 519); + this.statusBar.Name = "statusBar"; + this.statusBar.Size = new System.Drawing.Size(736, 22); + this.statusBar.TabIndex = 2; + // + // timer + // + this.timer.Interval = 2000; + this.timer.Tick += new System.EventHandler(this.timer_Tick); + // + // exportFileDialog + // + this.exportFileDialog.DefaultExt = "chunk"; + this.exportFileDialog.Filter = "Relic Chunky Chunks (*.chunk)|*.chunk"; + // + // importFileDialog + // + this.importFileDialog.Filter = "Relic Chunky Chunks (*.chunk)|*.chunk"; + // + // Form1 + // + this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); + this.ClientSize = new System.Drawing.Size(736, 541); + this.Controls.Add(this.statusBar); + this.Controls.Add(this.txtDetails); + this.Controls.Add(this.treeView); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Menu = this.mainMenu; + this.Name = "Form1"; + this.Text = "IChunky Viewer"; + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + + } + #endregion + + /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + static void Main(string[] args) + { + if (args.Length==0) + { + Application.EnableVisualStyles(); + Application.DoEvents(); + Application.Run(new Form1("")); + } + else if (args.Length==1 && File.Exists(args[0])) + { + Application.EnableVisualStyles(); + Application.DoEvents(); + Application.Run(new Form1(args[0])); + } + else + { + MessageBox.Show(null, "The file path specified was invalid. Please try again with a correct path.", "Invalid path", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private delegate void NoParamDelegate(); + private delegate int TreeNodeAddDelegate(TreeNode node); + private delegate void TreeNodeAddRangeDelegate(TreeNode[] nodes); + + private void openChunkyFile() + { + if (chunkyFileNewPath=="") + { + return; + } + + Thread progressThread = null; + + //if (new FileInfo(chunkyFileNewPath).Length>102400) + //{ + // progressThread = new Thread(new ThreadStart(showProgress)); + // progressThread.Start(); + //} + + Thread.Sleep(100); + + try{ + RelicChunkyFile newChunkyFile = RelicChunkyReader.ReadChunkyFile(chunkyFileNewPath); + chunkyFile = newChunkyFile; // make sure we don't trash the old value if it fails + } + catch(InvalidFileException) + { + if (OnChunkyOpenFailed!=null) + { + OnChunkyOpenFailed(); + } + + MessageBox.Show(this, "The file '"+chunkyFileNewPath+"' was not a valid Relic Chunky file", "Invalid Chunky File", MessageBoxButtons.OK, MessageBoxIcon.Error); + + if (!(progressThread.ThreadState==ThreadState.Aborted || progressThread.ThreadState==ThreadState.AbortRequested + || progressThread.ThreadState==ThreadState.Stopped || progressThread.ThreadState==ThreadState.StopRequested)) + { + try + { + progressThread.Abort(); + } + catch{} + } + + return; + } + catch(InvalidChunkException) + { + if (OnChunkyOpenFailed!=null) + { + OnChunkyOpenFailed(); + } + + MessageBox.Show(this, "The file '"+chunkyFileNewPath+"' was not a valid Relic Chunky file", "Invalid Chunky Chunk in file", MessageBoxButtons.OK, MessageBoxIcon.Error); + + if (!(progressThread.ThreadState==ThreadState.Aborted || progressThread.ThreadState==ThreadState.AbortRequested + || progressThread.ThreadState==ThreadState.Stopped || progressThread.ThreadState==ThreadState.StopRequested)) + { + try + { + progressThread.Abort(); + } + catch{} + } + + return; + } + + chunkyFilePath = chunkyFileNewPath; + chunkyFileNewPath = ""; + + if (OnChunkyOpened!=null) + { + OnChunkyOpened(chunkyFilePath); + } + + treeView.Invoke(new NoParamDelegate(treeView.Nodes.Clear)); + txtDetails.Invoke(new NoParamDelegate(txtDetails.Clear)); + + foreach (RelicChunkyStructure strct in chunkyFile.ChunkyStructures) + { + int count = strct.RootChunks.Count; + TreeNode node = null; + ChunkyFolder fold; + TreeNode[] nodes = new TreeNode[count]; + + int children = strct.RootChunks.Count; + + for(int i = 0; i<count; i++) + { + if (strct.RootChunks[i] is ChunkyData) + { + children+=1; + } + else if (strct.RootChunks[i] is ChunkyFolder) + { + children += ((ChunkyFolder)strct.RootChunks[i]).Children.Count; + } + } + + if (OnChunkyNodesCounted!=null) + { + OnChunkyNodesCounted(children); + } + + for(int i = 0; i<count; i++) + { + node = new TreeNode(); + setNodeName(node, strct.RootChunks[i]); + node.Tag = strct.RootChunks[i]; + + if (strct.RootChunks[i] is ChunkyFolder) + { + fold = (ChunkyFolder)strct.RootChunks[i]; + + foreach(ChunkyChunk chunk in fold.Children) + { + addTreeNode(chunk, node); + } + } + else + { + node.ImageIndex = 2; + node.SelectedImageIndex = 2; + } + + nodes[i] = node; + + if (OnChunkyNodeAdded!=null) + { + OnChunkyNodeAdded(strct.RootChunks[i]); + } + } + + if (OnChunkyNodesAdded!=null) + { + OnChunkyNodesAdded(false); + } + + treeView.Invoke(new TreeNodeAddRangeDelegate(treeView.Nodes.AddRange), new object[]{nodes}); + + if (OnChunkyNodesAdded!=null) + { + OnChunkyNodesAdded(true); + } + } + + this.Invoke(new SetStringDelegate(SetTitle), new object[]{"IChunky Viewer - "+chunkyFile.Name}); + + System.Console.Write(chunkyFilePath.Substring(0, chunkyFilePath.LastIndexOf(Constants.DirectoryChar))); + folderBrowserDialog.SelectedPath = chunkyFilePath.Substring(0, chunkyFilePath.LastIndexOf(Constants.DirectoryChar)); + openFileDialog.InitialDirectory = chunkyFilePath.Substring(0, chunkyFilePath.LastIndexOf(Constants.DirectoryChar)); + miSave.Enabled = true; + miShowValidationString.Enabled = true; + miValidateAs.Enabled = true; + } + + private delegate void SetStringDelegate(string val); + + private void SetTitle(string title) + { + this.Text = title; + } + + private void addTreeNode(ChunkyChunk chunk, TreeNode parent) + { + if (chunk is ChunkyData) + { + addTreeNode((ChunkyData)chunk, parent); + } + else + { + addTreeNode((ChunkyFolder)chunk, parent); + } + } + + private void addTreeNode(ChunkyData chunk, TreeNode parent) + { + TreeNode temp = new TreeNode("", 2, 2); + setNodeName(temp, chunk); + temp.Tag = chunk; + parent.Nodes.Add(temp); + + if (OnChunkyNodeAdded!=null) + { + OnChunkyNodeAdded(chunk); + } + } + + private void addTreeNode(ChunkyFolder fld, TreeNode parent) + { + TreeNode node = new TreeNode("", 0, 1); + setNodeName(node, fld); + node.Tag = fld; + + foreach(ChunkyChunk chunk in fld.Children) + { + addTreeNode(chunk, node); + } + + parent.Nodes.Add(node); + + if (OnChunkyNodeAdded!=null) + { + OnChunkyNodeAdded(fld); + } + } + + private void miFile_Open_Click(object sender, System.EventArgs e) + { + DialogResult dr = openFileDialog.ShowDialog(this); + + if (dr == DialogResult.OK) + { + chunkyFileNewPath = openFileDialog.FileName; + Thread thr = new Thread(new ThreadStart(openChunkyFile)); + thr.Start(); + } + } + + private void treeView_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) + { + txtDetails.Text = ((ChunkyChunk)e.Node.Tag).GetDisplayDetails(); + } + + private void miSaveChunk_Click(object sender, System.EventArgs e) + { + if (treeView.SelectedNode!=null) + { + DialogResult dr = folderBrowserDialog.ShowDialog(); + + if (dr == DialogResult.OK) + { + statusBar.Text = "Saving chunk..."; + + if(treeView.SelectedNode.Tag is ChunkyData) + { + if (((ChunkyData)treeView.SelectedNode.Tag).Save(folderBrowserDialog.SelectedPath)) + { + statusBar.Text+= "Saved"; + timer.Enabled = true; + } + } + else + { + int saves = ((ChunkyFolder)treeView.SelectedNode.Tag).Save(folderBrowserDialog.SelectedPath); + + if (saves != 1) + { + statusBar.Text+= saves+" items saved"; + } + else + { + statusBar.Text+= "1 item saved"; + } + + timer.Enabled = true; + } + } + } + } + + private void treeView_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) + { + if (e.Button == MouseButtons.Right) + { + TreeNode tn = treeView.GetNodeAt(e.X, e.Y); + + if (tn!=null) + { + treeView.SelectedNode = tn; + } + else + { + treeView.SelectedNode = null; + } + } + } + + private void contextMenu_Popup(object sender, System.EventArgs e) + { + if (treeView.SelectedNode!=null) + { + foreach(MenuItem item in contextMenu.MenuItems) + { + item.Visible = true; + } + + ChunkyChunk chunk = ((ChunkyChunk)treeView.SelectedNode.Tag); + miSaveChunk.Enabled = chunk.Savable; + + miDeleteChunk.Enabled = (treeView.SelectedNode!=treeView.Nodes[0] || treeView.Nodes.Count>1); + } + else + { + foreach(MenuItem item in contextMenu.MenuItems) + { + item.Visible = false; + } + } + } + + private void menuItem3_Click(object sender, System.EventArgs e) + { + AboutChunkyViewer frm = new AboutChunkyViewer(); + frm.ShowDialog(this); + frm.Dispose(); + } + + private void menuItem4_Click(object sender, System.EventArgs e) + { + this.Close(); + } + + private void showProgress() + { + try + { + progress = new Progress(this); + progress.ShowDialog(this); + } + catch{} + } + + private void menuItem5_Click(object sender, System.EventArgs e) + { + DialogResult dr = openFileDialog.ShowDialog(this); + + if (dr == DialogResult.OK) + { + System.Diagnostics.Process proc = new System.Diagnostics.Process(); + proc.EnableRaisingEvents = false; + proc.StartInfo.FileName = Application.ExecutablePath; + proc.StartInfo.Arguments = "\""+openFileDialog.FileName+"\""; + proc.Start(); + } + } + + private void timer_Tick(object sender, System.EventArgs e) + { + statusBar.Text = ""; + timer.Enabled = false; + } + + private void miExportChunk_Click(object sender, System.EventArgs e) + { + if (treeView.SelectedNode!=null) + { + DialogResult dr = exportFileDialog.ShowDialog(this); + + if (dr == DialogResult.OK) + { + statusBar.Text = "Exporting..."; + if (((ChunkyChunk)treeView.SelectedNode.Tag).Export(exportFileDialog.FileName)) + { + statusBar.Text+= "Exported"; + timer.Enabled = true; + } + else + { + statusBar.Text = "Export failed"; + } + } + } + } + + private void miImportChunk_Click(object sender, System.EventArgs e) + { + if (treeView.SelectedNode!=null && treeView.SelectedNode.Tag is ChunkyFolder) + { + DialogResult dr = importFileDialog.ShowDialog(this); + + if (dr == DialogResult.OK) + { + FileStream str = new FileStream(importFileDialog.FileName, FileMode.Open); + byte[] bytes = new byte[str.Length]; + str.Read(bytes, 0, (int)str.Length); + str.Close(); + ChunkyChunk chunk = RelicChunkReader.ReadChunkyChunk(bytes); + ChunkyFolder folder = (ChunkyFolder)treeView.SelectedNode.Tag; + folder.Children.Add(chunk); + addTreeNode(chunk, treeView.SelectedNode); + cascadeRefreshUp(treeView.SelectedNode); + txtDetails.Text = ((ChunkyChunk)treeView.SelectedNode.Tag).GetDisplayDetails(); + } + } + } + + private void cascadeRefreshUp(TreeNode node) + { + setNodeName(node, (ChunkyChunk)node.Tag); + + if (node.Parent!=null) + { + cascadeRefreshUp(node.Parent); + } + } + + private void cascadeRefreshDown(TreeNode node) + { + setNodeName(node, (ChunkyChunk)node.Tag); + + foreach (TreeNode childNode in node.Nodes) + { + cascadeRefreshDown(childNode); + } + } + + private void setNodeName(TreeNode node, ChunkyChunk chunk) + { + int showSizes = (int)preferences["ShowChunkSizes"]; + + if (showSizes == 1) + { + node.Text = chunk.ID+" ("+chunk.DataLength+")"; + } + else if (showSizes == 2) + { + node.Text = chunk.ID+" ("+chunk.Length+")"; + } + else + { + node.Text = chunk.ID; + } + } + + private void miImportSiblingChunk_Click(object sender, System.EventArgs e) + { + if (treeView.SelectedNode!=null) + { + DialogResult dr = importFileDialog.ShowDialog(this); + + if (dr == DialogResult.OK) + { + FileStream str = new FileStream(importFileDialog.FileName, FileMode.Open); + byte[] bytes = new byte[str.Length]; + str.Read(bytes, 0, (int)str.Length); + str.Close(); + ChunkyChunk chunk = RelicChunkReader.ReadChunkyChunk(bytes); + + if (treeView.SelectedNode.Parent!=null) + { + ChunkyFolder folder = (ChunkyFolder)((ChunkyChunk)treeView.SelectedNode.Tag).Parent; + folder.Children.Add(chunk); + addTreeNode(chunk, treeView.SelectedNode.Parent); + cascadeRefreshUp(treeView.SelectedNode.Parent); + } + else + { + RelicChunkyFile file = ((ChunkyChunk)treeView.SelectedNode.Tag).ParentFile; + file.ChunkyStructures[0].RootChunks.Add(chunk); + TreeNode node = new TreeNode(); + setNodeName(node, chunk); + node.Tag = chunk; + + if (chunk is ChunkyFolder) + { + ChunkyFolder fold = (ChunkyFolder)chunk; + + foreach(ChunkyChunk childChunk in fold.Children) + { + addTreeNode(childChunk, node); + } + } + else + { + node.ImageIndex = 2; + node.SelectedImageIndex = 2; + } + + treeView.Nodes.Add(node); + + if (OnChunkyNodeAdded!=null) + { + OnChunkyNodeAdded(chunk); + } + } + } + } + } + + private void miSave_Click(object sender, System.EventArgs e) + { + if (chunkyFile!=null) + { + statusBar.Text = "Saving..."; + chunkyFile.Save(new DirectoryInfo(chunkyFilePath.Substring(0, chunkyFilePath.LastIndexOf(Constants.DirectoryChar)))); + statusBar.Text+= "Saved"; + timer.Enabled = true; + } + } + + private void miDeleteChunk_Click(object sender, System.EventArgs e) + { + if (treeView.SelectedNode!=null) + { + TreeNode node = treeView.SelectedNode; + ChunkyChunk chunk = (ChunkyChunk)node.Tag; + + if (chunk.Parent!=null) + { + chunk.Parent.Children.Remove(chunk); + TreeNode parent = node.Parent; + node.Parent.Nodes.Remove(node); + cascadeRefreshUp(parent); + } + else + { + chunk.ParentFile.ChunkyStructures[0].RootChunks.Remove(chunk); + treeView.Nodes.Remove(node); + } + } + } + + private void miOptions_Click(object sender, System.EventArgs e) + { + FrmConfig frm = new FrmConfig(preferences); + DialogResult dr = frm.ShowDialog(this); + + if (dr == DialogResult.OK) + { + foreach (TreeNode node in treeView.Nodes) + { + cascadeRefreshDown(node); + } + } + } + + private void miShowValidationString_Click(object sender, System.EventArgs e) + { + if (chunkyFile!=null) + { + FrmValidationString val = new FrmValidationString(chunkyFile); + val.ShowDialog(this); + } + } + + private void readInValidators() + { + statusBar.Text = "Reading validators..."; + DirectoryInfo dir = new DirectoryInfo(preferences["DoWPath"].ToString() + Constants.DirectoryString + "IChunkyValidators"); + + miValidateAs.MenuItems.Clear(); + + if (dir.Exists) + { + FileInfo[] validators = dir.GetFiles("*.validator"); + + if (validators.Length>0) + { + //chunkyValidators = new ChunkyValidator[validators.Length]; + //MenuItem[] items = new MenuItem[validators.Length]; + ArrayList chunkyValidatorsTemp = new ArrayList(); + ArrayList menuitems = new ArrayList(); + EventHandler handler = new EventHandler(miValidate_Click); + ChunkyValidator validator; + + for (int i = 0; i<validators.Length; i++) + { + try + { + validator = new ChunkyValidator(validators[i]); + chunkyValidatorsTemp.Add(validator); + menuitems.Add(new MenuItem(validator.FileType, handler)); + } + catch (InvalidOperationException){}//invalid validator file + } + + chunkyValidators = (ChunkyValidator[])chunkyValidatorsTemp.ToArray(typeof(ChunkyValidator)); + miValidateAs.MenuItems.AddRange((MenuItem[])menuitems.ToArray(typeof(MenuItem))); + miValidateAs.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {this.menuItem16, + this.miRefreshValidations}); + + statusBar.Text = "Refreshed"; + timer.Enabled = true; + } + else + { + statusBar.Text = "No validators found"; + timer.Enabled = true; + miValidateAs.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {this.miNoValidators, + this.menuItem16, + this.miRefreshValidations}); + } + } + else + { + statusBar.Text = "ERROR: Could not find validators"; + timer.Enabled = true; + MessageBox.Show(this, "IChunkyViewer could not find a folder of Chunky file validators at "+dir.FullName, "Could not find validators", MessageBoxButtons.OK, MessageBoxIcon.Warning); + + miValidateAs.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {this.miNoValidators, + this.menuItem16, + this.miRefreshValidations}); + } + } + + private void miValidate_Click(object sender, System.EventArgs e) + { + if (sender is MenuItem && chunkyFile!=null) + { + ChunkyValidator validator = chunkyValidators[((MenuItem)sender).Index]; + if (validator.Validate(chunkyFile.GetValidationString())) + { + MessageBox.Show(this, chunkyFile.Name+" is a valid "+validator.FileType+" file", "Validation successful", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + else + { + MessageBox.Show(this, chunkyFile.Name+" is not a valid "+validator.FileType+" file", "Validation failed", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + } + } + + private void miRefreshValidations_Click(object sender, System.EventArgs e) + { + readInValidators(); + } + + public delegate void ChunkyOpenedDelegate(string path); + public event ChunkyOpenedDelegate OnChunkyOpened; + public delegate void ChunkyNodesCountedDelegate(int nodes); + public event ChunkyNodesCountedDelegate OnChunkyNodesCounted; + public delegate void ChunkyNodeAddedDelegate(ChunkyChunk chunk); + public event ChunkyNodeAddedDelegate OnChunkyNodeAdded; + public delegate void ChunkyNodesAddedDelegate(bool rendered); + public event ChunkyNodesAddedDelegate OnChunkyNodesAdded; + public delegate void ChunkyOpenFailedDelegate(); + public event ChunkyOpenFailedDelegate OnChunkyOpenFailed; + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Form1.resx Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,467 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 1.3 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">1.3</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1">this is my long string</data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + [base64 mime encoded serialized .NET Framework object] + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + [base64 mime encoded string representing a byte array form of the .NET Framework object] + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used forserialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>1.3</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <data name="treeView.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="treeView.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="treeView.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="contextMenu.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="contextMenu.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </data> + <data name="contextMenu.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miSaveChunk.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miSaveChunk.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miExportChunk.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miExportChunk.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem8.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem8.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miImportChunk.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miImportChunk.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miImportSiblingChunk.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miImportSiblingChunk.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem10.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem10.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miDeleteChunk.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miDeleteChunk.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="imageList.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="imageList.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="imageList.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>133, 17</value> + </data> + <data name="imageList.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64"> + <value> + AAEAAAD/////AQAAAAAAAAAMAgAAAFpTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0xLjAuNTAw + MC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZT + eXN0ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMA + AACKCwAAAk1TRnQBSQFMAgEBAwEAAQUBAAEEAQABEAEAARABAAT/ASEBEAj/AUIBTQE2BwABNgMAASgD + AAFAAwABIAMAAQEBAAEgBgABIP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8AqgADBAH/AwQB + /wMEAf8DBAH/AwQB/wMEAf8DBAH/AwQB/wMEAf8DBAH/AwQB/wMEAf8DBAH/TAABGAF5AZwB/wEYAXkB + nAH/ARgBeQGcAf8BGAF5AZwB/wEYAXkBnAH/ARgBeQGcAf8BGAF5AZwB/wEYAXkBnAH/ARgBeQGcAf8B + GAF5AZwB/wEYAXkBnAH/ARgBeQGcAf8BGAF5AZwB/0wAA4Yt/wMEAf9IAAEYAY4BtQH/ARgBjgG1Af8B + GAGOAbUB/wEYAY4BtQH/ARgBjgG1Af8BGAGOAbUB/wEYAY4BtQH/ARgBjgG1Af8BGAGOAbUB/wEY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B/wOGBf8DhgH/kAABIQGiAc4B/wEhAaIBzgH/ASEBogHOAf8BIQGiAc4B/zAAA4Yh + /wOGAf8DhgH/1AADhgH/A4YB/wOGAf8DhgH/A4YB/wOGAf8DhgH/A4YB/wOGAf8DhgH/UAABQgFNAT4H + AAE+AwABKAMAAUADAAEgAwABAQEAAQEGAAEBFgAD/4EABP8BwAEBAgABwAEBAv8BwAEBAgABgAEAAcAB + DwHAAQEEAAGAAQcBwAEBBQABAwHAAQEFAAEDAcABAQUAAQMBwAEBBQABAQHAAQEFAAEBAcABAQMAAQEB + AAEBAcABAQMAAQcBAAEBAcABAQMAAQcBAAEDAcABAQIAAYEB/wEAAQcBwAEBAgABwwH/AYEB/wHAAQMC + AAL/AcMB/wHAAQcCAAT/AcABDxgACw== +</value> + </data> + <data name="mainMenu.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mainMenu.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>233, 17</value> + </data> + <data name="mainMenu.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miFile_Open.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miFile_Open.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem5.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem5.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem9.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem9.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miSave.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miSave.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem11.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem11.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem4.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem4.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem6.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem6.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miOptions.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miOptions.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem7.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem7.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miShowValidationString.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miShowValidationString.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miValidateAs.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miValidateAs.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miNoValidators.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miNoValidators.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem16.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem16.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miRefreshValidations.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="miRefreshValidations.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem2.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem2.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem3.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem3.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="txtDetails.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="txtDetails.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="txtDetails.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="openFileDialog.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="openFileDialog.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="openFileDialog.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>337, 17</value> + </data> + <data name="saveFileDialog.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="saveFileDialog.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="saveFileDialog.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>464, 17</value> + </data> + <data name="folderBrowserDialog.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="folderBrowserDialog.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>589, 17</value> + </data> + <data name="folderBrowserDialog.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="statusBar.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="statusBar.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="statusBar.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="timer.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="timer.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>742, 17</value> + </data> + <data name="timer.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="exportFileDialog.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="exportFileDialog.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="exportFileDialog.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>818, 17</value> + </data> + <data name="importFileDialog.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="importFileDialog.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="importFileDialog.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 54</value> + </data> + <data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>(Default)</value> + </data> + <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>8, 8</value> + </data> + <data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </data> + <data name="$this.Name"> + <value>Form1</value> + </data> + <data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>80</value> + </data> + <data name="$this.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </data> + <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value> + AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAB + AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAMDcwADwyqYABAQEAAgICAAMDAwAERERABYW + FgAcHBwAIiIiACkpKQBVVVUATU1NAEJCQgA5OTkAgHz/AFBQ/wCTANYA/+zMAMbW7wDW5+cAkKmtAAAA + MwAAAGYAAACZAAAAzAAAMwAAADMzAAAzZgAAM5kAADPMAAAz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X18Ad3d3AIaGhgCWlpYAy8vLALKy + sgDX19cA3d3dAOPj4wDq6uoA8fHxAPj4+ADw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// + AAD///8AAAAAAAAAAAAAAAAAAAAAAAD39/f3APcAAPcA9wAA9wD38fHx8ffx9/fx9/H39/H39/H39/f3 + 8ff38ffx9/H3APfx9wAA9/Hx8fH38fH3AAD38ff39/fx9/fx9/H38fcA9/Hx8fH38ff38ffx9/fx9wD3 + 9/f3APcAAPcA9wAA9wAAAAAAAAAAAAAAAAAAAAAAAPf39wAA9/f3APf3APf3APfx8fH39/Hx8ffx8ffx + 8ff38ff38ffx9/H38ffx9/H39/H39/H38ffx9/H39/fx9/fx9/fx9/H38ffx9wD38ff38fHx9/fx8fH3 + 8fcA9/H3APf39wAA9/f3APcAAAD3AP//AACFrQAAAAAAAAABAAAYAwAAAAEAAAAAAACFrQAA//8AAIxJ + AAAAAAAAAAAAAAAAAAAACAAAAAgAAIxdAAA= +</value> + </data> +</root> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FrmConfig.cs Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,419 @@ +using System; +using System.Drawing; +using System.Collections; +using System.ComponentModel; +using System.Windows.Forms; +using System.IO; + +using IBBoard; + +namespace IBBoard.Relic.IChunkyViewer +{ + /// <summary> + /// Summary description for FrmConfig. + /// </summary> + public class FrmConfig : System.Windows.Forms.Form + { + private System.Windows.Forms.Label lblDoWPath; + private System.Windows.Forms.TextBox txtDoWPath; + private System.Windows.Forms.Button bttnDoWPath; + private System.Windows.Forms.Button bttnOK; + private System.Windows.Forms.Button bttnCancel; + private System.Windows.Forms.FolderBrowserDialog fbdPath; + private System.ComponentModel.IContainer components; + private System.Windows.Forms.Button bttnSave; + private ArrayList changed; + private System.Windows.Forms.RadioButton rbSizeNone; + private System.Windows.Forms.RadioButton rbSizeContent; + private System.Windows.Forms.RadioButton rbSizeChunk; + private System.Windows.Forms.Label lblShowSizes; + private System.Windows.Forms.ToolTip toolTip; + + private bool saved = false; + private Preferences preferences; + + public FrmConfig(Preferences prefs) + { + // + // Required for Windows Form Designer support + // + InitializeComponent(); + preferences = prefs; + changed = new ArrayList(); + } + + /// <summary> + /// Clean up any resources being used. + /// </summary> + protected override void Dispose( bool disposing ) + { + if( disposing ) + { + if(components != null) + { + components.Dispose(); + } + } + base.Dispose( disposing ); + } + + #region Windows Form Designer generated code + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FrmConfig)); + this.lblDoWPath = new System.Windows.Forms.Label(); + this.fbdPath = new System.Windows.Forms.FolderBrowserDialog(); + this.txtDoWPath = new System.Windows.Forms.TextBox(); + this.bttnDoWPath = new System.Windows.Forms.Button(); + this.bttnOK = new System.Windows.Forms.Button(); + this.bttnCancel = new System.Windows.Forms.Button(); + this.lblShowSizes = new System.Windows.Forms.Label(); + this.rbSizeNone = new System.Windows.Forms.RadioButton(); + this.rbSizeContent = new System.Windows.Forms.RadioButton(); + this.bttnSave = new System.Windows.Forms.Button(); + this.rbSizeChunk = new System.Windows.Forms.RadioButton(); + this.toolTip = new System.Windows.Forms.ToolTip(this.components); + this.SuspendLayout(); + // + // lblDoWPath + // + this.lblDoWPath.Location = new System.Drawing.Point(8, 8); + this.lblDoWPath.Name = "lblDoWPath"; + this.lblDoWPath.TabIndex = 0; + this.lblDoWPath.Text = "Game Path:"; + // + // txtDoWPath + // + this.txtDoWPath.Location = new System.Drawing.Point(112, 8); + this.txtDoWPath.Name = "txtDoWPath"; + this.txtDoWPath.Size = new System.Drawing.Size(288, 20); + this.txtDoWPath.TabIndex = 2; + this.txtDoWPath.Tag = "DoWPath"; + this.txtDoWPath.Text = ""; + this.txtDoWPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textbox_KeyDown); + this.txtDoWPath.TextChanged += new System.EventHandler(this.textbox_TextChanged); + this.txtDoWPath.Leave += new System.EventHandler(this.textbox_Leave); + // + // bttnDoWPath + // + this.bttnDoWPath.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.bttnDoWPath.Location = new System.Drawing.Point(408, 8); + this.bttnDoWPath.Name = "bttnDoWPath"; + this.bttnDoWPath.TabIndex = 3; + this.bttnDoWPath.Text = "Browse"; + this.bttnDoWPath.Click += new System.EventHandler(this.bttnDoWPath_Click); + // + // bttnOK + // + this.bttnOK.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.bttnOK.Location = new System.Drawing.Point(408, 184); + this.bttnOK.Name = "bttnOK"; + this.bttnOK.TabIndex = 10; + this.bttnOK.Text = "OK"; + this.bttnOK.Click += new System.EventHandler(this.bttnOK_Click); + // + // bttnCancel + // + this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.bttnCancel.Location = new System.Drawing.Point(320, 184); + this.bttnCancel.Name = "bttnCancel"; + this.bttnCancel.TabIndex = 1; + this.bttnCancel.Text = "Cancel"; + this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click); + // + // lblShowSizes + // + this.lblShowSizes.Location = new System.Drawing.Point(8, 40); + this.lblShowSizes.Name = "lblShowSizes"; + this.lblShowSizes.TabIndex = 14; + this.lblShowSizes.Text = "Show sizes:"; + this.lblShowSizes.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // rbSizeNone + // + this.rbSizeNone.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.rbSizeNone.Location = new System.Drawing.Point(112, 40); + this.rbSizeNone.Name = "rbSizeNone"; + this.rbSizeNone.Size = new System.Drawing.Size(72, 24); + this.rbSizeNone.TabIndex = 6; + this.rbSizeNone.Text = "None"; + this.toolTip.SetToolTip(this.rbSizeNone, "Do not show chunk sizes"); + this.rbSizeNone.CheckedChanged += new System.EventHandler(this.radiobutton_CheckedChanged); + // + // rbSizeContent + // + this.rbSizeContent.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.rbSizeContent.Location = new System.Drawing.Point(192, 40); + this.rbSizeContent.Name = "rbSizeContent"; + this.rbSizeContent.TabIndex = 7; + this.rbSizeContent.Text = "Chunk Contents"; + this.toolTip.SetToolTip(this.rbSizeContent, "Show size of data in chunk (like Relic\'s Chunky Viewer)"); + this.rbSizeContent.CheckedChanged += new System.EventHandler(this.radiobutton_CheckedChanged); + // + // bttnSave + // + this.bttnSave.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.bttnSave.Location = new System.Drawing.Point(8, 184); + this.bttnSave.Name = "bttnSave"; + this.bttnSave.TabIndex = 9; + this.bttnSave.Text = "Save"; + this.bttnSave.Click += new System.EventHandler(this.bttnSave_Click); + // + // rbSizeChunk + // + this.rbSizeChunk.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.rbSizeChunk.Location = new System.Drawing.Point(304, 40); + this.rbSizeChunk.Name = "rbSizeChunk"; + this.rbSizeChunk.TabIndex = 8; + this.rbSizeChunk.Text = "Chunk Size"; + this.toolTip.SetToolTip(this.rbSizeChunk, "Show size of data in chunk plus chunk headers"); + this.rbSizeChunk.CheckedChanged += new System.EventHandler(this.radiobutton_CheckedChanged); + // + // FrmConfig + // + this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); + this.ClientSize = new System.Drawing.Size(496, 214); + this.Controls.Add(this.rbSizeChunk); + this.Controls.Add(this.bttnSave); + this.Controls.Add(this.rbSizeContent); + this.Controls.Add(this.rbSizeNone); + this.Controls.Add(this.lblShowSizes); + this.Controls.Add(this.txtDoWPath); + this.Controls.Add(this.bttnCancel); + this.Controls.Add(this.bttnOK); + this.Controls.Add(this.bttnDoWPath); + this.Controls.Add(this.lblDoWPath); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmConfig"; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Configuration"; + this.Load += new System.EventHandler(this.FrmConfig_Load); + this.ResumeLayout(false); + + } + #endregion + + private void bttnCancel_Click(object sender, System.EventArgs e) + { + if (!saved) + { + this.DialogResult = DialogResult.Cancel; + } + + this.Close(); + this.Dispose(); + } + + private void bttnOK_Click(object sender, System.EventArgs e) + { + if (setValues()) + { + this.DialogResult = DialogResult.OK; + this.Close(); + } + } + + private void FrmConfig_Load(object sender, System.EventArgs e) + { + txtDoWPath.Text = preferences["DoWPath"].ToString(); + + int size = (int)preferences["ShowChunkSizes"]; + rbSizeNone.Checked = (size!=1 && size!=2); + rbSizeContent.Checked = (size==1); + rbSizeChunk.Checked = (size==2); + bttnSave.Enabled = false; + } + + private void bttnDoWPath_Click(object sender, System.EventArgs e) + { + fbdPath.ShowNewFolderButton = false; + fbdPath.SelectedPath = txtDoWPath.Text; + DialogResult dr = fbdPath.ShowDialog(); + if (dr == DialogResult.OK) + { + txtDoWPath.Text = fbdPath.SelectedPath; + } + } + + private void bttnSave_Click(object sender, System.EventArgs e) + { + saved = true; //Save but don't close + setValues(); + preferences.Save(); + bttnSave.Enabled = false; + } + + private void textbox_TextChanged(object sender, System.EventArgs e) + { + if (sender is TextBox) + { + TextBox box = (TextBox)sender; + string prefString = preferences[box.Tag.ToString()].ToString(); + + if (box.Text != prefString && box.Text+Constants.DirectoryString != prefString) + { + if (!changed.Contains(box)) + { + changed.Add(box); + } + } + else if (changed.Contains(box)) + { + changed.Remove(box); + } + + if (box==txtDoWPath) + { + if (!validPath()) + { + box.ForeColor = Color.Red; + } + else + { + box.ForeColor = SystemColors.WindowText; + } + } + + setSaveButtonEnabled(); + } + } + + private void radiobutton_CheckedChanged(object sender, System.EventArgs e) + { + if (sender is RadioButton) + { + if (((RadioButton)sender).Checked) + { + int showValue = (int)preferences["ShowChunkSizes"]; + + if (sender==rbSizeNone) + { + if (showValue == 1 || showValue == 2) + { + if (!changed.Contains(lblShowSizes)) + { + changed.Add(lblShowSizes); + } + } + else + { + changed.Remove(lblShowSizes); + } + } + else if (sender==rbSizeContent) + { + if (showValue != 1) + { + if (!changed.Contains(lblShowSizes)) + { + changed.Add(lblShowSizes); + } + } + else + { + changed.Remove(lblShowSizes); + } + } + else if (sender==rbSizeChunk) + { + if (showValue != 2) + { + if (!changed.Contains(lblShowSizes)) + { + changed.Add(lblShowSizes); + } + } + else + { + changed.Remove(lblShowSizes); + } + } + } + + setSaveButtonEnabled(); + } + } + + private void textbox_Leave(object sender, System.EventArgs e) + { + if (sender is TextBox) + { + TextBox txt = (TextBox)sender; + + if (txt.Text!="" && !txt.Text.EndsWith(Constants.DirectoryString)) + txt.Text = txt.Text + Constants.DirectoryString; + } + } + + private void textbox_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) + { + if (sender is TextBox) + { + if(e.KeyData == (Keys.Control|Keys.A) && e.Control) + { + ((TextBox)sender).SelectAll(); + } + } + } + + private bool validPath() + { + string path = txtDoWPath.Text; + + if (path=="") + { + return false; + } + + if (!path.EndsWith(Constants.DirectoryString)) + { + path+=Constants.DirectoryString; + } + + return Directory.Exists(path) && (File.Exists(path+"W40k.exe") || File.Exists(path+"DarkCrusade.exe")); + } + + private bool setValues() + { + //TODO: Propogate refresh after setting so that the GUI knows even if we save, change one value then cancel (which would return DialogResult.Cancel) + if (!validPath()) + { + MessageBox.Show(this, "Could not find the Dawn of War exe in the 'Game Path' specified. Please make sure you specified the correct folder.","Dawn of War Missing", MessageBoxButtons.OK, MessageBoxIcon.Error); + return false; + } + + preferences["DoWPath"] = txtDoWPath.Text; + + if (rbSizeNone.Checked) + { + preferences["ShowChunkSizes"] = 0; + } + else if (rbSizeContent.Checked) + { + preferences["ShowChunkSizes"] = 1; + } + else if (rbSizeChunk.Checked) + { + preferences["ShowChunkSizes"] = 2; + } + + changed.Clear(); + + return true; + } + + private void setSaveButtonEnabled() + { + bttnSave.Enabled = changed.Count>0; + } + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FrmConfig.resx Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,303 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 1.3 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">1.3</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1">this is my long string</data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + [base64 mime encoded serialized .NET Framework object] + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + [base64 mime encoded string representing a byte array form of the .NET Framework object] + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used forserialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>1.3</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <data name="lblDoWPath.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="lblDoWPath.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="lblDoWPath.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="fbdPath.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="fbdPath.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </data> + <data name="fbdPath.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="txtDoWPath.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="txtDoWPath.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="txtDoWPath.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="bttnDoWPath.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="bttnDoWPath.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="bttnDoWPath.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="bttnOK.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="bttnOK.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="bttnOK.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="bttnCancel.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="bttnCancel.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="bttnCancel.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="lblShowSizes.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="lblShowSizes.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="lblShowSizes.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="rbSizeNone.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="rbSizeNone.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="rbSizeNone.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="rbSizeContent.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="rbSizeContent.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="rbSizeContent.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="bttnSave.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="bttnSave.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="bttnSave.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="rbSizeChunk.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="rbSizeChunk.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="rbSizeChunk.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="toolTip.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="toolTip.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>107, 17</value> + </data> + <data name="toolTip.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>(Default)</value> + </data> + <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.Name"> + <value>FrmConfig</value> + </data> + <data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>8, 8</value> + </data> + <data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </data> + <data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>80</value> + </data> + <data name="$this.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </data> + <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value> + AAABAAIAEBAAAAAAAABoBQAAJgAAACAgAAAAAAAAqAgAAI4FAAAoAAAAEAAAACAAAAABAAgAAAAAAAAB + AAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAMDAwADA3MAA8MqmAAQE + BAAICAgADAwMABEREQAWFhYAHBwcACIiIgApKSkAVVVVAE1NTQBCQkIAOTk5AIB8/w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ceHvfw9/fw9/D39/D38PD38Pfw9/D39/D38Pf38Pfw9x739/D3 + 9/D38Pf38Pfw9/fw9/D39/D38Pfw9/fw9/D39/D38Pf38Pfw9/fw9/D39/D38Pf38Pfw9/D39/D39/Dw + 9/fw9/fw9/D39/D38Pf38Pfw9/fw9/D38PcA9/z89/f8/Pc/P/fp9+np9+n3QED3/Pf8/Pf89/z3/Pz8 + /Pz8/Pz8/Pz8/AHp6UBAQEDp/Pz8/Pz8/Pz8/Pz8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAA + AAEAAAARAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAswAC1f/wD/8= +</value> + </data> +</root> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FrmValidationString.cs Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,103 @@ +using System; +using System.Drawing; +using System.Collections; +using System.ComponentModel; +using System.Windows.Forms; + +namespace IBBoard.Relic.IChunkyViewer +{ + /// <summary> + /// Summary description for FrmValidationString. + /// </summary> + public class FrmValidationString : System.Windows.Forms.Form + { + private System.Windows.Forms.TextBox textBox; + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.Container components = null; + + public FrmValidationString(RelicTools.RelicChunkyFile chunkyFile) + { + // + // Required for Windows Form Designer support + // + InitializeComponent(); + + textBox.Text = chunkyFile.GetValidationString(); + this.Text = "Validation string for '"+chunkyFile.Name+"'"; + } + + /// <summary> + /// Clean up any resources being used. + /// </summary> + protected override void Dispose( bool disposing ) + { + if( disposing ) + { + if(components != null) + { + components.Dispose(); + } + } + base.Dispose( disposing ); + } + + #region Windows Form Designer generated code + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FrmValidationString)); + this.textBox = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // textBox + // + this.textBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBox.Location = new System.Drawing.Point(0, 0); + this.textBox.Multiline = true; + this.textBox.Name = "textBox"; + this.textBox.ReadOnly = true; + this.textBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.textBox.Size = new System.Drawing.Size(394, 270); + this.textBox.TabIndex = 0; + this.textBox.TabStop = false; + this.textBox.Text = ""; + this.textBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox_KeyDown); + // + // FrmValidationString + // + this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); + this.ClientSize = new System.Drawing.Size(394, 270); + this.Controls.Add(this.textBox); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FrmValidationString"; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Validation String"; + this.ResumeLayout(false); + + } + #endregion + + private void textBox_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) + { + if (sender is TextBox) + { + if(e.KeyData == (Keys.Control|Keys.A) && e.Control) + { + ((TextBox)sender).SelectAll(); + } + } + } + + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FrmValidationString.resx Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,204 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 1.3 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">1.3</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1">this is my long string</data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + [base64 mime encoded serialized .NET Framework object] + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + [base64 mime encoded string representing a byte array form of the .NET Framework object] + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used forserialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>1.3</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <data name="textBox.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="textBox.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="textBox.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>(Default)</value> + </data> + <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.Name"> + <value>FrmValidationString</value> + </data> + <data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>8, 8</value> + </data> + <data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </data> + <data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>80</value> + </data> + <data name="$this.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </data> + <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value> + AAABAAIAEBAAAAAAAABoBQAAJgAAACAgAAAAAAAAqAgAAI4FAAAoAAAAEAAAACAAAAABAAgAAAAAAAAB + AAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAMDAwADA3MAA8MqmAAQE + BAAICAgADAwMABEREQAWFhYAHBwcACIiIgApKSkAVVVVAE1NTQBCQkIAOTk5AIB8/wBQUP8AkwDWAP/s + zADG1u8A1ufnAJCprQAAADMAAABmAAAAmQAAAMwAADMAAAAzMwAAM2YAADOZAAAzzAAAM/8AAGYAAABm + MwAAZmYAAGaZAABmz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pf38Pfw9/D39/D39/Dw + 9/fw9/fw9/D39/D38Pf38Pfw9/fw9/D38PcA9/z89/f8/Pc/P/fp9+np9+n3QED3/Pf8/Pf89/z3/Pz8 + /Pz8/Pz8/Pz8/AHp6UBAQEDp/Pz8/Pz8/Pz8/Pz8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAA + AAEAAAARAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAswAC1f/wD/8= +</value> + </data> +</root> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IChunkyViewer.cs Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,52 @@ +using System; +using System.Collections; +using System.Windows.Forms; +using System.Threading; + +namespace IBBoard.Relic.IChunkyViewer +{ + /// <summary> + /// Summary description for IChunkyViewer. + /// </summary> + public class IChunkyViewer + { + private ArrayList windows; + + public IChunkyViewer() + { + windows = new ArrayList(); + } + + public void CreateForm(string path) + { + Form1 frm = new Form1(path); + windows.Add(frm); + + frm.ShowDialog(); + } + + public void RemoveForm(Form1 frm) + { + if (windows.Contains(frm)) + { + windows.Remove(frm); + } + + if (windows.Count==0) + { + Application.Exit(); + } + } + + /* + * /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + static void Main() + { + IChunkyViewer viewer = new IChunkyViewer(); + viewer.CreateForm(""); + }*/ + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IChunkyViewer.csproj Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,122 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <ProjectType>Local</ProjectType> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{FCD9A241-CDFD-49BF-8125-878A728E7BBA}</ProjectGuid> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ApplicationIcon>App.ico</ApplicationIcon> + <AssemblyKeyContainerName> + </AssemblyKeyContainerName> + <AssemblyName>IChunkyViewer</AssemblyName> + <DefaultClientScript>JScript</DefaultClientScript> + <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> + <DefaultTargetSchema>IE50</DefaultTargetSchema> + <DelaySign>false</DelaySign> + <OutputType>WinExe</OutputType> + <RootNamespace>IBBoard.Relic.IChunkyViewer</RootNamespace> + <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent> + <FileUpgradeFlags> + </FileUpgradeFlags> + <UpgradeBackupLocation> + </UpgradeBackupLocation> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <OutputPath>C:\Documents and Settings\ibboard\My Documents\Visual Studio 2005\Projects\IChunkyViewer\bin\Debug\</OutputPath> + <BaseAddress>285212672</BaseAddress> + <ConfigurationOverrideFile> + </ConfigurationOverrideFile> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <DocumentationFile> + </DocumentationFile> + <DebugSymbols>true</DebugSymbols> + <FileAlignment>4096</FileAlignment> + <Optimize>false</Optimize> + <RegisterForComInterop>false</RegisterForComInterop> + <RemoveIntegerChecks>false</RemoveIntegerChecks> + <WarningLevel>4</WarningLevel> + <DebugType>full</DebugType> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <OutputPath>bin\Release\</OutputPath> + <BaseAddress>285212672</BaseAddress> + <ConfigurationOverrideFile> + </ConfigurationOverrideFile> + <DefineConstants>TRACE</DefineConstants> + <DocumentationFile> + </DocumentationFile> + <FileAlignment>4096</FileAlignment> + <Optimize>true</Optimize> + <RegisterForComInterop>false</RegisterForComInterop> + <RemoveIntegerChecks>false</RemoveIntegerChecks> + <WarningLevel>4</WarningLevel> + <DebugType>none</DebugType> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Drawing" /> + <Reference Include="System.Windows.Forms" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="AboutChunkyViewer.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="AssemblyInfo.cs"> + <SubType>Code</SubType> + </Compile> + <Compile Include="Form1.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="FrmConfig.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="FrmValidationString.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="Progress.cs"> + <SubType>Form</SubType> + </Compile> + <EmbeddedResource Include="AboutChunkyViewer.resx"> + <DependentUpon>AboutChunkyViewer.cs</DependentUpon> + </EmbeddedResource> + <EmbeddedResource Include="Form1.resx"> + <DependentUpon>Form1.cs</DependentUpon> + </EmbeddedResource> + <EmbeddedResource Include="FrmConfig.resx"> + <DependentUpon>FrmConfig.cs</DependentUpon> + </EmbeddedResource> + <EmbeddedResource Include="FrmValidationString.resx"> + <DependentUpon>FrmValidationString.cs</DependentUpon> + </EmbeddedResource> + <EmbeddedResource Include="Progress.resx"> + <DependentUpon>Progress.cs</DependentUpon> + </EmbeddedResource> + <Content Include="App.ico" /> + <Content Include="DataChunk.ico" /> + <Content Include="WinFolderClosed.ico" /> + <Content Include="WinFolderOpen.ico" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <PropertyGroup> + <PreBuildEvent> + </PreBuildEvent> + <PostBuildEvent> + </PostBuildEvent> + </PropertyGroup> + <ItemGroup> + <ProjectReference Include="..\..\dev\IBBoard\IBBoard.csproj"> + <Project>{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}</Project> + <Name>IBBoard</Name> + </ProjectReference> + <ProjectReference Include="..\RelicTools\RelicTools.csproj"> + <Project>{D3B2F94E-ADE9-45E1-829F-698C0F4F1CFC}</Project> + <Name>RelicTools</Name> + </ProjectReference> + </ItemGroup> +</Project> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IChunkyViewer.csproj.user Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,58 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <LastOpenVersion>7.10.3077</LastOpenVersion> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ReferencePath> + </ReferencePath> + <CopyProjectDestinationFolder> + </CopyProjectDestinationFolder> + <CopyProjectUncPath> + </CopyProjectUncPath> + <CopyProjectOption>0</CopyProjectOption> + <ProjectView>ProjectFiles</ProjectView> + <ProjectTrust>0</ProjectTrust> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <EnableASPDebugging>false</EnableASPDebugging> + <EnableASPXDebugging>false</EnableASPXDebugging> + <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging> + <EnableSQLServerDebugging>false</EnableSQLServerDebugging> + <RemoteDebugEnabled>false</RemoteDebugEnabled> + <RemoteDebugMachine> + </RemoteDebugMachine> + <StartAction>Project</StartAction> + <StartArguments> + </StartArguments> + <StartPage> + </StartPage> + <StartProgram> + </StartProgram> + <StartURL> + </StartURL> + <StartWorkingDirectory> + </StartWorkingDirectory> + <StartWithIE>true</StartWithIE> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <EnableASPDebugging>false</EnableASPDebugging> + <EnableASPXDebugging>false</EnableASPXDebugging> + <EnableUnmanagedDebugging>false</EnableUnmanagedDebugging> + <EnableSQLServerDebugging>false</EnableSQLServerDebugging> + <RemoteDebugEnabled>false</RemoteDebugEnabled> + <RemoteDebugMachine> + </RemoteDebugMachine> + <StartAction>Project</StartAction> + <StartArguments> + </StartArguments> + <StartPage> + </StartPage> + <StartProgram> + </StartProgram> + <StartURL> + </StartURL> + <StartWorkingDirectory> + </StartWorkingDirectory> + <StartWithIE>true</StartWithIE> + </PropertyGroup> +</Project> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Progress.cs Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,174 @@ +using System; +using System.Drawing; +using System.Collections; +using System.ComponentModel; +using System.Windows.Forms; + +using IBBoard.Relic.RelicTools; + +namespace IBBoard.Relic.IChunkyViewer +{ + /// <summary> + /// Summary description for Progress. + /// </summary> + public class Progress : System.Windows.Forms.Form + { + private System.Windows.Forms.ProgressBar progressBar; + private System.Windows.Forms.Timer timer; + private System.Windows.Forms.Label lblProgress; + private System.ComponentModel.IContainer components; + + Form1.ChunkyOpenedDelegate OnChunkyOpened = null; + Form1.ChunkyNodesCountedDelegate OnChunkyNodesCounted = null; + Form1.ChunkyNodeAddedDelegate OnChunkyNodeAdded = null; + Form1.ChunkyNodesAddedDelegate OnChunkyNodesAdded = null; + Form1.ChunkyOpenFailedDelegate OnChunkyOpenFailed = null; + Form1 parent; + + public Progress(Form1 parent) + { + OnChunkyOpened = new Form1.ChunkyOpenedDelegate(chunkyOpened); + OnChunkyNodesCounted = new Form1.ChunkyNodesCountedDelegate(nodesCounted); + OnChunkyNodeAdded = new Form1.ChunkyNodeAddedDelegate(nodeAdded); + OnChunkyNodesAdded = new Form1.ChunkyNodesAddedDelegate(nodesAdded); + OnChunkyOpenFailed = new Form1.ChunkyOpenFailedDelegate(openFailed); + + parent.OnChunkyOpened+= OnChunkyOpened; + parent.OnChunkyNodesCounted+= OnChunkyNodesCounted; + parent.OnChunkyNodeAdded+= OnChunkyNodeAdded; + parent.OnChunkyNodesAdded+= OnChunkyNodesAdded; + parent.OnChunkyOpenFailed+= OnChunkyOpenFailed; + + InitializeComponent(); + + this.parent = parent; + + timer.Enabled = true; + } + + /// <summary> + /// Clean up any resources being used. + /// </summary> + protected override void Dispose( bool disposing ) + { + parent.OnChunkyOpened-= OnChunkyOpened; + parent.OnChunkyNodesCounted-= OnChunkyNodesCounted; + parent.OnChunkyNodeAdded-= OnChunkyNodeAdded; + parent.OnChunkyNodesAdded-= OnChunkyNodesAdded; + parent.OnChunkyOpenFailed-= OnChunkyOpenFailed; + + if( disposing ) + { + if(components != null) + { + components.Dispose(); + } + } + base.Dispose( disposing ); + } + + #region Windows Form Designer generated code + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.progressBar = new System.Windows.Forms.ProgressBar(); + this.timer = new System.Windows.Forms.Timer(this.components); + this.lblProgress = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // progressBar + // + this.progressBar.Location = new System.Drawing.Point(8, 8); + this.progressBar.Name = "progressBar"; + this.progressBar.Size = new System.Drawing.Size(288, 23); + this.progressBar.TabIndex = 0; + // + // timer + // + this.timer.Interval = 40; + this.timer.Tick += new System.EventHandler(this.timer_Tick); + // + // lblProgress + // + this.lblProgress.Location = new System.Drawing.Point(8, 32); + this.lblProgress.Name = "lblProgress"; + this.lblProgress.Size = new System.Drawing.Size(288, 23); + this.lblProgress.TabIndex = 1; + this.lblProgress.Text = "Loading Chunky file..."; + this.lblProgress.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + // Progress + // + this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); + this.ClientSize = new System.Drawing.Size(304, 52); + this.ControlBox = false; + this.Controls.Add(this.lblProgress); + this.Controls.Add(this.progressBar); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + this.Name = "Progress"; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Loading Relic Chunky file..."; + this.ResumeLayout(false); + + } + #endregion + + private void timer_Tick(object sender, System.EventArgs e) + { + progressBar.PerformStep(); + } + + private void nodesCounted(int nodes) + { + lblProgress.Text = "Adding chunks..."; + timer.Enabled = false; + progressBar.Step = 1; + progressBar.Value = 1; + progressBar.Minimum = 1; + progressBar.Maximum = nodes; + } + + private void nodeAdded(ChunkyChunk chunk) + { + progressBar.PerformStep(); + } + + private void nodesAdded(bool rendered) + { + progressBar.Value = progressBar.Maximum; + + if (rendered) + { + this.Close(); + this.Dispose(); + } + else + { + lblProgress.Text = "Displaying tree..."; + } + } + + private void chunkyOpened(string filename) + { + lblProgress.Text = "Counting chunks..."; + } + + private void openFailed() + { + timer.Enabled = false; + progressBar.Value = progressBar.Maximum; + this.Hide(); + this.Close(); + try + { + this.Dispose(); + } + catch{} + } + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Progress.resx Sat Oct 06 20:00:56 2018 +0100 @@ -0,0 +1,157 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 1.3 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">1.3</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1">this is my long string</data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + [base64 mime encoded serialized .NET Framework object] + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + [base64 mime encoded string representing a byte array form of the .NET Framework object] + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used forserialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>1.3</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <data name="progressBar.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="progressBar.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="progressBar.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="timer.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="timer.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </data> + <data name="timer.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="lblProgress.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="lblProgress.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="lblProgress.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>(Default)</value> + </data> + <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>False</value> + </data> + <data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>8, 8</value> + </data> + <data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </data> + <data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>80</value> + </data> + <data name="$this.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </data> + <data name="$this.Name"> + <value>Progress</value> + </data> + <data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> +</root> \ No newline at end of file