├── screenshots ├── Home_1.PNG ├── Home_2.PNG └── Home_3.png ├── src └── CursorInstallerWizard │ ├── CursorInstallerWizard.v11.suo │ ├── packages │ ├── repositories.config │ ├── DotNetZip.Reduced.1.9.1.8 │ │ ├── DotNetZip.Reduced.1.9.1.8.nupkg │ │ ├── lib │ │ │ └── net20 │ │ │ │ └── Ionic.Zip.Reduced.dll │ │ └── DotNetZip.Reduced.1.9.1.8.nuspec │ └── Windows7APICodePack-Core.1.1.0.0 │ │ ├── lib │ │ ├── Microsoft.WindowsAPICodePack.dll │ │ └── Microsoft.WindowsAPICodePack.pdb │ │ ├── Windows7APICodePack-Core.1.1.0.0.nupkg │ │ └── Windows7APICodePack-Core.1.1.0.0.nuspec │ ├── CursorInstallerWizard │ ├── Resources │ │ ├── 1_navigation_accept.png │ │ ├── 1_navigation_cancel.png │ │ └── 4-collections-collection.png │ ├── packages.config │ ├── Properties │ │ ├── Settings.settings │ │ ├── Settings.Designer.cs │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── RegistryCursor.cs │ ├── CursorInstallerWizard.csproj.vspscc │ ├── Program.cs │ ├── CursorFile.cs │ ├── CustomPictureBox.cs │ ├── AndroidTextField.Designer.cs │ ├── AndroidTextField1.Designer.cs │ ├── CursorInstallerWizard.csproj │ ├── AndroidTextField.cs │ ├── AndroidTextField.resx │ ├── Form1.resx │ ├── Form1.cs │ ├── AndroidButton.cs │ └── Form1.Designer.cs │ ├── CursorInstallerWizard.vssscc │ └── CursorInstallerWizard.sln ├── README.md └── LICENSE /screenshots/Home_1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/screenshots/Home_1.PNG -------------------------------------------------------------------------------- /screenshots/Home_2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/screenshots/Home_2.PNG -------------------------------------------------------------------------------- /screenshots/Home_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/screenshots/Home_3.png -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard.v11.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/src/CursorInstallerWizard/CursorInstallerWizard.v11.suo -------------------------------------------------------------------------------- /src/CursorInstallerWizard/packages/repositories.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Resources/1_navigation_accept.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/src/CursorInstallerWizard/CursorInstallerWizard/Resources/1_navigation_accept.png -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Resources/1_navigation_cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/src/CursorInstallerWizard/CursorInstallerWizard/Resources/1_navigation_cancel.png -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Resources/4-collections-collection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/src/CursorInstallerWizard/CursorInstallerWizard/Resources/4-collections-collection.png -------------------------------------------------------------------------------- /src/CursorInstallerWizard/packages/DotNetZip.Reduced.1.9.1.8/DotNetZip.Reduced.1.9.1.8.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/src/CursorInstallerWizard/packages/DotNetZip.Reduced.1.9.1.8/DotNetZip.Reduced.1.9.1.8.nupkg -------------------------------------------------------------------------------- /src/CursorInstallerWizard/packages/DotNetZip.Reduced.1.9.1.8/lib/net20/Ionic.Zip.Reduced.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/src/CursorInstallerWizard/packages/DotNetZip.Reduced.1.9.1.8/lib/net20/Ionic.Zip.Reduced.dll -------------------------------------------------------------------------------- /src/CursorInstallerWizard/packages/Windows7APICodePack-Core.1.1.0.0/lib/Microsoft.WindowsAPICodePack.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/src/CursorInstallerWizard/packages/Windows7APICodePack-Core.1.1.0.0/lib/Microsoft.WindowsAPICodePack.dll -------------------------------------------------------------------------------- /src/CursorInstallerWizard/packages/Windows7APICodePack-Core.1.1.0.0/lib/Microsoft.WindowsAPICodePack.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/src/CursorInstallerWizard/packages/Windows7APICodePack-Core.1.1.0.0/lib/Microsoft.WindowsAPICodePack.pdb -------------------------------------------------------------------------------- /src/CursorInstallerWizard/packages/Windows7APICodePack-Core.1.1.0.0/Windows7APICodePack-Core.1.1.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/HEAD/src/CursorInstallerWizard/packages/Windows7APICodePack-Core.1.1.0.0/Windows7APICodePack-Core.1.1.0.0.nupkg -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard.vssscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT" 10 | } 11 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/RegistryCursor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace CursorInstallerWizard 7 | { 8 | class RegistryCursor 9 | { 10 | public string Key { get; set; } 11 | public string Value { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/CursorInstallerWizard.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace CursorInstallerWizard 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault( false ); 18 | Application.Run( new Form1() ); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/CursorFile.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace CursorInstallerWizard 7 | { 8 | class CursorFile 9 | { 10 | public string FName { get; set; } 11 | public string FPath { get; set; } 12 | public string CursorName { get; set; } 13 | public System.Drawing.Icon Icon { get; set; } 14 | public override string ToString() 15 | { 16 | return "[FName: " + FName + ", CursorName: " + CursorName + ", FPath: " + FPath + "]"; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/CustomPictureBox.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Drawing; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace CursorInstallerWizard 8 | { 9 | class CustomPictureBox : System.Windows.Forms.PictureBox 10 | { 11 | public string CursorPath { get; set; } 12 | 13 | protected override void OnPaint( System.Windows.Forms.PaintEventArgs pe ) 14 | { 15 | base.OnPaint( pe ); 16 | pe.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; 17 | var color = ColorTranslator.FromHtml( "#13a1d0" ); 18 | pe.Graphics.DrawRectangle( new Pen( new SolidBrush( color ) ), new Rectangle( 0, 0, 31, 31 ) ); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/packages/DotNetZip.Reduced.1.9.1.8/DotNetZip.Reduced.1.9.1.8.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DotNetZip.Reduced 5 | 1.9.1.8 6 | DotNetZip.Reduced 7 | Dino Chiesa 8 | Dino Chiesa 9 | http://dotnetzip.codeplex.com/license 10 | http://dotnetzip.codeplex.com/ 11 | false 12 | DotNetZip is an easy-to-use, FAST, FREE class library and toolset for manipulating zip files or folders. 13 | DotNetZip is an easy-to-use, FAST, FREE class library and toolset for manipulating zip files or folders. 14 | 15 | 16 | 17 | zip 18 | 19 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/packages/Windows7APICodePack-Core.1.1.0.0/Windows7APICodePack-Core.1.1.0.0.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Windows7APICodePack-Core 5 | 1.1.0.0 6 | Windows 7 API Code Pack - Core 7 | Chandrakanth Tati 8 | Chandrakanth Tati 9 | http://code.msdn.microsoft.com/WindowsAPICodePack/Project/License.aspx 10 | http://code.msdn.microsoft.com/WindowsAPICodePack/ 11 | true 12 | Core library for Windows 7 API Code Pack 13 | Windows API Code Pack for Microsoft. NET Framework provides a source code library that can be used to access some features of Windows 7 and Windows Vista from managed code. 14 | WindowsAPICodePack 15 | 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # windows-mouse-cursor-installer-wizard 2 | Forked from https://archive.codeplex.com/?p=cursorinstaller 3 | 4 | "Cursor Installer Wizard" is simple application that create installation package for cursors. 5 | 6 | 7 | With this application you don't have to configure each cursor separately. Just create package and install your favorite cursor with two clicks. 8 | 9 | # Installation / Download Process 10 | 1. Go to [Releases](https://github.com/iamtalhaasghar/windows-mouse-cursor-installer-wizard/releases) page. 11 | 2. Download `CursorInstallerWizard_1.0.zip` and Extract this zip file. 12 | 3. Then run `CursorInstallerWizard.exe` 13 | 14 | 15 | # How to Create Your Icons 16 | 17 | 1. Type in name of your cursor package and select your cursors than click "Create cursor package"

18 | ![](screenshots/Home_1.PNG) 19 | 20 | 2. Application will create zip file with your cursors and install file (Install.inf)

21 | ![](screenshots/Home_2.PNG) 22 | 23 | 3. Right click on Install.inf and select Install, system will copy your cursors to windows directory. Now you can find your cursor theme in mouse pointer configuration.

24 | ![](screenshots/Home_3.png) 25 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.18052 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace CursorInstallerWizard.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute( "Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0" )] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ( ( Settings ) ( global::System.Configuration.ApplicationSettingsBase.Synchronized( new Settings() ) ) ); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CursorInstallerWizard", "CursorInstallerWizard\CursorInstallerWizard.csproj", "{784E8970-3DB5-43E0-A8CB-56D0E0BBD02E}" 5 | EndProject 6 | Global 7 | GlobalSection(TeamFoundationVersionControl) = preSolution 8 | SccNumberOfProjects = 2 9 | SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} 10 | SccTeamFoundationServer = https://tfs.codeplex.com/tfs/tfs37 11 | SccLocalPath0 = . 12 | SccProjectUniqueName1 = CursorInstallerWizard\\CursorInstallerWizard.csproj 13 | SccProjectName1 = CursorInstallerWizard 14 | SccLocalPath1 = CursorInstallerWizard 15 | EndGlobalSection 16 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 17 | Debug|Any CPU = Debug|Any CPU 18 | Release|Any CPU = Release|Any CPU 19 | EndGlobalSection 20 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 21 | {784E8970-3DB5-43E0-A8CB-56D0E0BBD02E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 22 | {784E8970-3DB5-43E0-A8CB-56D0E0BBD02E}.Debug|Any CPU.Build.0 = Debug|Any CPU 23 | {784E8970-3DB5-43E0-A8CB-56D0E0BBD02E}.Release|Any CPU.ActiveCfg = Release|Any CPU 24 | {784E8970-3DB5-43E0-A8CB-56D0E0BBD02E}.Release|Any CPU.Build.0 = Release|Any CPU 25 | EndGlobalSection 26 | GlobalSection(SolutionProperties) = preSolution 27 | HideSolutionNode = FALSE 28 | EndGlobalSection 29 | EndGlobal 30 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle( "CursorInstallerWizard" )] 9 | [assembly: AssemblyDescription( "" )] 10 | [assembly: AssemblyConfiguration( "" )] 11 | [assembly: AssemblyCompany( "" )] 12 | [assembly: AssemblyProduct( "CursorInstallerWizard" )] 13 | [assembly: AssemblyCopyright( "Copyright © 2013" )] 14 | [assembly: AssemblyTrademark( "" )] 15 | [assembly: AssemblyCulture( "" )] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible( false )] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid( "56593113-ba90-4837-9057-3e1073bddf6f" )] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion( "1.0.0.0" )] 36 | [assembly: AssemblyFileVersion( "1.0.0.0" )] 37 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/AndroidTextField.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace AndroidUI.HolyLight 2 | { 3 | partial class AndroidTextField 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if ( disposing && ( components != null ) ) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Component Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.textBox1 = new System.Windows.Forms.TextBox(); 32 | this.SuspendLayout(); 33 | // 34 | // textBox1 35 | // 36 | this.textBox1.BackColor = System.Drawing.Color.FromArgb(( ( int ) ( ( ( byte ) ( 249 ) ) ) ), ( ( int ) ( ( ( byte ) ( 249 ) ) ) ), ( ( int ) ( ( ( byte ) ( 249 ) ) ) )); 37 | this.textBox1.ForeColor = System.Drawing.Color.FromArgb(( ( int ) ( ( ( byte ) ( 51 ) ) ) ), ( ( int ) ( ( ( byte ) ( 51 ) ) ) ), ( ( int ) ( ( ( byte ) ( 51 ) ) ) )); 38 | this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; 39 | this.textBox1.Font = new System.Drawing.Font("Roboto", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ( ( byte ) ( 238 ) )); 40 | this.textBox1.Location = new System.Drawing.Point(8, 2); 41 | this.textBox1.Margin = new System.Windows.Forms.Padding(0); 42 | this.textBox1.Name = "textBox1"; 43 | this.textBox1.Size = new System.Drawing.Size(168, 14); 44 | this.textBox1.TabIndex = 0; 45 | // 46 | // AndroidTextField 47 | // 48 | this.Controls.Add(this.textBox1); 49 | this.Name = "AndroidTextField"; 50 | this.Padding = new System.Windows.Forms.Padding(8, 2, 8, 5); 51 | this.Size = new System.Drawing.Size(184, 20); 52 | this.ForeColor = System.Drawing.Color.FromArgb(( ( int ) ( ( ( byte ) ( 51 ) ) ) ), ( ( int ) ( ( ( byte ) ( 51 ) ) ) ), ( ( int ) ( ( ( byte ) ( 51 ) ) ) )); 53 | this.Font = new System.Drawing.Font("Roboto", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ( ( byte ) ( 238 ) )); 54 | this.ResumeLayout(false); 55 | this.PerformLayout(); 56 | 57 | } 58 | 59 | #endregion 60 | 61 | private System.Windows.Forms.TextBox textBox1; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/AndroidTextField1.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.18052 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace CursorInstallerWizard { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class AndroidTextField { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal AndroidTextField() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CursorInstallerWizard.AndroidTextField", typeof(AndroidTextField).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.18052 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace CursorInstallerWizard.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CursorInstallerWizard.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap _1_navigation_accept { 67 | get { 68 | object obj = ResourceManager.GetObject("1_navigation_accept", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | internal static System.Drawing.Bitmap _1_navigation_cancel { 77 | get { 78 | object obj = ResourceManager.GetObject("1_navigation_cancel", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | internal static System.Drawing.Bitmap _4_collections_collection { 87 | get { 88 | object obj = ResourceManager.GetObject("4-collections-collection", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/CursorInstallerWizard.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {784E8970-3DB5-43E0-A8CB-56D0E0BBD02E} 8 | WinExe 9 | Properties 10 | CursorInstallerWizard 11 | CursorInstallerWizard 12 | v4.0 13 | 512 14 | SAK 15 | SAK 16 | SAK 17 | SAK 18 | 19 | 20 | AnyCPU 21 | true 22 | full 23 | false 24 | bin\Debug\ 25 | DEBUG;TRACE 26 | prompt 27 | 4 28 | 29 | 30 | AnyCPU 31 | pdbonly 32 | true 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | 38 | 39 | 40 | ..\packages\DotNetZip.Reduced.1.9.1.8\lib\net20\Ionic.Zip.Reduced.dll 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | Component 56 | 57 | 58 | Component 59 | 60 | 61 | 62 | True 63 | True 64 | AndroidTextField.resx 65 | 66 | 67 | 68 | Component 69 | 70 | 71 | Form 72 | 73 | 74 | Form1.cs 75 | 76 | 77 | 78 | 79 | 80 | ResXFileCodeGenerator 81 | AndroidTextField1.Designer.cs 82 | 83 | 84 | Form1.cs 85 | 86 | 87 | ResXFileCodeGenerator 88 | Resources.Designer.cs 89 | Designer 90 | 91 | 92 | True 93 | Resources.resx 94 | True 95 | 96 | 97 | 98 | SettingsSingleFileGenerator 99 | Settings.Designer.cs 100 | 101 | 102 | True 103 | Settings.settings 104 | True 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 124 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/AndroidTextField.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Drawing; 5 | using System.Data; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | using System.Runtime.InteropServices; 10 | 11 | namespace AndroidUI.HolyLight 12 | { 13 | [ClassInterface( ClassInterfaceType.AutoDispatch )] 14 | public partial class AndroidTextField : Control 15 | { 16 | public event EventHandler TextAlignChanged; 17 | private static Font _defaultFont = new System.Drawing.Font("Roboto", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ( ( byte ) ( 238 ) )); 18 | private static Color _defaultForeColor = Color.FromArgb(255, 51, 51, 51); 19 | 20 | private AndroidTextField( int i ) 21 | { 22 | //Font = _defaultFont; 23 | //ForeColor = _defaultForeColor; 24 | } 25 | 26 | public AndroidTextField() : this(0) 27 | { 28 | InitializeComponent(); 29 | 30 | textBox1.Resize += (o, e) => 31 | { 32 | if ( textBox1.Multiline == false ) 33 | { 34 | Height = textBox1.Height + Padding.Top + Padding.Bottom; 35 | } 36 | }; 37 | 38 | textBox1.TextAlignChanged += (o, e) => 39 | { 40 | OnTextAlignChanged(e); 41 | }; 42 | 43 | textBox1.KeyDown += (o, e) => 44 | { 45 | OnKeyDown(e); 46 | }; 47 | 48 | textBox1.KeyUp += (o, e) => 49 | { 50 | OnKeyUp(e); 51 | }; 52 | 53 | textBox1.KeyPress += (o, e) => 54 | { 55 | OnKeyPress(e); 56 | }; 57 | 58 | textBox1.PreviewKeyDown += (o, e) => 59 | { 60 | OnPreviewKeyDown(e); 61 | }; 62 | 63 | textBox1.Click += (o, e) => 64 | { 65 | OnClick(e); 66 | }; 67 | } 68 | 69 | protected virtual void OnTextAlignChanged(EventArgs e) 70 | { 71 | var handler = TextAlignChanged; 72 | if ( handler != null ) 73 | { 74 | handler(this, e); 75 | } 76 | } 77 | 78 | protected override void OnPaint(PaintEventArgs e) 79 | { 80 | base.OnPaint(e); 81 | var color = ColorTranslator.FromHtml("#13a1d0"); 82 | var w = 2F; 83 | var pen = new Pen(new SolidBrush(color), w); 84 | 85 | e.Graphics.DrawLine(pen, 1, Height - 6, 1, Height - 1); // left 86 | e.Graphics.DrawLine(pen, Width - 1, Height - 6, Width - 1, Height - 1); // right 87 | e.Graphics.DrawLine(pen, 0, Height - 2, Width, Height - 2); // bottom 88 | } 89 | 90 | protected override void OnResize(EventArgs e) 91 | { 92 | base.OnResize(e); 93 | 94 | textBox1.Top = Padding.Top; 95 | textBox1.Left = Padding.Left; 96 | textBox1.Width = Width - ( Padding.Left + Padding.Right ); 97 | 98 | if ( textBox1.Multiline == false ) 99 | { 100 | Height = textBox1.Height + ( Padding.Top + Padding.Bottom ); 101 | } 102 | else 103 | { 104 | textBox1.Height = Height - ( Padding.Top + Padding.Bottom ); 105 | } 106 | } 107 | 108 | protected override void OnPaddingChanged(EventArgs e) 109 | { 110 | base.OnPaddingChanged(e); 111 | Padding = new Padding(8, 2, 8, 5); 112 | } 113 | 114 | protected override void OnForeColorChanged(EventArgs e) 115 | { 116 | base.OnForeColorChanged(e); 117 | textBox1.ForeColor = ForeColor; 118 | } 119 | 120 | protected override void OnFontChanged(EventArgs e) 121 | { 122 | base.OnFontChanged(e); 123 | textBox1.Font = Font; 124 | } 125 | 126 | protected override void OnTextChanged( EventArgs e ) 127 | { 128 | base.OnTextChanged( e ); 129 | //textBox1.Text = Text; 130 | } 131 | 132 | [DefaultValue(false), Category("Behavior")] 133 | public bool Multiline 134 | { 135 | get { return textBox1.Multiline; } 136 | set { textBox1.Multiline = value; } 137 | } 138 | 139 | [DefaultValue(typeof(HorizontalAlignment),"Left"),Category("Appearance"), Description("Gets or sets how text is aligned in a System.Windows.Forms.TextBox control.")] 140 | public HorizontalAlignment TextAlign 141 | { 142 | get { return textBox1.TextAlign; } 143 | set { textBox1.TextAlign = value; } 144 | } 145 | 146 | public override Font Font 147 | { 148 | get 149 | { 150 | return base.Font; 151 | } 152 | set 153 | { 154 | if ( value == null ) 155 | base.Font = _defaultFont; 156 | else 157 | { 158 | if ( value == System.Windows.Forms.Control.DefaultFont ) 159 | base.Font = _defaultFont; 160 | else 161 | base.Font = value; 162 | } 163 | } 164 | } 165 | 166 | public override void ResetFont() 167 | { 168 | Font = _defaultFont; 169 | } 170 | 171 | private bool ShouldSerializeFont() 172 | { 173 | return ( !Font.Equals(_defaultFont) ); 174 | } 175 | 176 | public override Color ForeColor 177 | { 178 | get 179 | { 180 | return base.ForeColor; 181 | } 182 | set 183 | { 184 | if ( value == null ) 185 | base.ForeColor = _defaultForeColor; 186 | else 187 | { 188 | if ( value == System.Windows.Forms.Control.DefaultForeColor ) 189 | base.ForeColor = _defaultForeColor; 190 | else 191 | base.ForeColor = value; 192 | } 193 | } 194 | } 195 | 196 | public override void ResetForeColor() 197 | { 198 | ForeColor = _defaultForeColor; 199 | } 200 | 201 | private bool ShouldSerializeForeColor() 202 | { 203 | return ( !ForeColor.Equals(_defaultForeColor) ); 204 | } 205 | 206 | public override string Text 207 | { 208 | get 209 | { 210 | return textBox1.Text; 211 | } 212 | set 213 | { 214 | textBox1.Text = value; 215 | } 216 | } 217 | 218 | //public override bool AutoScroll 219 | //{ 220 | // get 221 | // { 222 | // return false; 223 | // } 224 | //} 225 | 226 | } 227 | } 228 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/AndroidTextField.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Form1.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 17, 17 122 | 123 | 124 | 157, 17 125 | 126 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | ..\Resources\4-collections-collection.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 123 | 124 | 125 | ..\Resources\1_navigation_accept.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 126 | 127 | 128 | ..\Resources\1_navigation_cancel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 129 | 130 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Form1.cs: -------------------------------------------------------------------------------- 1 | using Ionic.Zip; 2 | using Microsoft.Win32; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel; 6 | using System.Data; 7 | using System.Drawing; 8 | using System.IO; 9 | using System.Linq; 10 | using System.Text; 11 | using System.Windows.Forms; 12 | 13 | namespace CursorInstallerWizard 14 | { 15 | public partial class Form1 : Form 16 | { 17 | public Form1() 18 | { 19 | InitializeComponent(); 20 | } 21 | 22 | private void InitializeCursors() 23 | { 24 | var cursors = GetCursors(); 25 | if( cursors.Count != 0 ) 26 | { 27 | for( var index = 0; index < cursors.Count; index++ ) 28 | { 29 | switch( cursors[index].CursorName ) 30 | { 31 | case "AppStarting": 32 | AppStarting.Image = cursors[index].Icon.ToBitmap(); 33 | AppStarting.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 34 | break; 35 | case "Arrow": 36 | Arrow.Image = cursors[index].Icon.ToBitmap(); 37 | Arrow.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 38 | break; 39 | case "Crosshair": 40 | Crosshair.Image = cursors[index].Icon.ToBitmap(); 41 | Crosshair.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 42 | break; 43 | case "Hand": 44 | Hand.Image = cursors[index].Icon.ToBitmap(); 45 | Hand.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 46 | break; 47 | case "Help": 48 | Help.Image = cursors[index].Icon.ToBitmap(); 49 | Help.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 50 | break; 51 | case "IBeam": 52 | IBeam.Image = cursors[index].Icon.ToBitmap(); 53 | IBeam.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 54 | break; 55 | case "No": 56 | No.Image = cursors[index].Icon.ToBitmap(); 57 | No.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 58 | break; 59 | case "NWPen": 60 | NWPen.Image = cursors[index].Icon.ToBitmap(); 61 | NWPen.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 62 | break; 63 | case "SizeAll": 64 | SizeAll.Image = cursors[index].Icon.ToBitmap(); 65 | SizeAll.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 66 | break; 67 | case "SizeNESW": 68 | SizeNESW.Image = cursors[index].Icon.ToBitmap(); 69 | SizeNESW.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 70 | break; 71 | case "SizeNS": 72 | SizeNS.Image = cursors[index].Icon.ToBitmap(); 73 | SizeNS.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 74 | break; 75 | case "SizeNWSE": 76 | SizeNWSE.Image = cursors[index].Icon.ToBitmap(); 77 | SizeNWSE.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 78 | break; 79 | case "SizeWE": 80 | SizeWE.Image = cursors[index].Icon.ToBitmap(); 81 | SizeWE.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 82 | break; 83 | case "UpArrow": 84 | UpArrow.Image = cursors[index].Icon.ToBitmap(); 85 | UpArrow.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 86 | break; 87 | case "Wait": 88 | Wait.Image = cursors[index].Icon.ToBitmap(); 89 | Wait.CursorPath = cursors[index].FPath + "\\" + cursors[index].FName; 90 | break; 91 | } 92 | } 93 | } 94 | } 95 | 96 | private static List GetCursors() 97 | { 98 | var icons = new List(); 99 | 100 | foreach( var regcur in getCursorRegList() ) 101 | { 102 | try 103 | { 104 | var file = new System.IO.FileInfo(regcur.Value); 105 | if (file.Extension == ".cur" || file.Extension == ".ani") 106 | { 107 | // Set a default icon for the file. 108 | Icon iconForFile = SystemIcons.WinLogo; 109 | iconForFile = Icon.ExtractAssociatedIcon(file.FullName); 110 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon(file.FullName); 111 | var cursorFile = new CursorFile(); 112 | cursorFile.CursorName = regcur.Key; 113 | cursorFile.FName = file.Name; 114 | cursorFile.FPath = Path.GetDirectoryName(file.FullName); 115 | cursorFile.Icon = iconForFile; 116 | icons.Add(cursorFile); 117 | } 118 | 119 | } 120 | catch (System.ArgumentException ex) 121 | { 122 | Console.WriteLine(ex); 123 | continue; 124 | } 125 | } 126 | return icons; 127 | } 128 | 129 | private static List getCursorRegList() 130 | { 131 | var RegCurList = new List(); 132 | var m = Registry.CurrentUser.OpenSubKey( @"Control Panel\Cursors" ); 133 | var key = m.GetValueNames(); 134 | for( var index = 0; index < key.Length; index++ ) 135 | { 136 | if( key[index] != "Scheme Source" ) 137 | { 138 | RegCurList.Add( new RegistryCursor() { Key = key[index], Value = m.GetValue( key[index] ).ToString() } ); 139 | } 140 | } 141 | return RegCurList; 142 | } 143 | 144 | private void Form1_Load( object sender, EventArgs e ) 145 | { 146 | InitializeCursors(); 147 | } 148 | 149 | private void Cancel_Click( object sender, EventArgs e ) 150 | { 151 | PackageName.Text = ""; 152 | Submit.Enabled = false; 153 | InitializeCursors(); 154 | } 155 | 156 | private void Submit_Click( object sender, EventArgs e ) 157 | { 158 | if( PackageName.Text.Length != 0 ) 159 | { 160 | if( folderBrowserDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 161 | { 162 | CreateInstallFile( folderBrowserDialog1.SelectedPath ); 163 | folderBrowserDialog1.SelectedPath = ""; 164 | InitializeCursors(); 165 | } 166 | } 167 | else 168 | { 169 | MessageBox.Show( "Fill in the title, it's required.", "Empty title field", MessageBoxButtons.OK ); 170 | } 171 | } 172 | 173 | private void CreateInstallFile( string path ) 174 | { 175 | using( ZipFile zip = new ZipFile() ) 176 | { 177 | foreach( var cursorPicture in Controls.OfType() ) 178 | { 179 | zip.AddFile( cursorPicture.CursorPath, "" ); 180 | } 181 | 182 | using( System.IO.StreamWriter file = new System.IO.StreamWriter( path + "\\Install.inf" ) ) 183 | { 184 | file.WriteLine( "; " + PackageName.Text + "\n" ); 185 | 186 | file.WriteLine( "[Version]" ); 187 | file.WriteLine( "signature=\"$CHICAGO$\"\n" ); 188 | 189 | file.WriteLine( "[DefaultInstall]" ); 190 | file.WriteLine( "CopyFiles = Scheme.Cur, Scheme.Txt" ); 191 | file.WriteLine( "AddReg = Scheme.Reg\n" ); 192 | 193 | file.WriteLine( "[DestinationDirs]" ); 194 | file.WriteLine( "Scheme.Cur = 10,\"%CUR_DIR%\"" ); 195 | file.WriteLine( "Scheme.Txt = 10,\"%CUR_DIR%\"\n" ); 196 | 197 | file.WriteLine( "[Scheme.Reg]" ); 198 | file.WriteLine( "HKCU,\"Control Panel\\Cursors\\Schemes\",\"%SCHEME_NAME%\",,\"%10%\\%CUR_DIR%\\%pointer%,%10%\\%CUR_DIR%\\%help%,%10%\\%CUR_DIR%\\%work%,%10%\\%CUR_DIR%\\%busy%,%10%\\%CUR_DIR%\\%cross%,%10%\\%CUR_DIR%\\%Text%,%10%\\%CUR_DIR%\\%Hand%,%10%\\%CUR_DIR%\\%unavailiable%,%10%\\%CUR_DIR%\\%Vert%,%10%\\%CUR_DIR%\\%Horz%,%10%\\%CUR_DIR%\\%Dgn1%,%10%\\%CUR_DIR%\\%Dgn2%,%10%\\%CUR_DIR%\\%move%,%10%\\%CUR_DIR%\\%alternate%,%10%\\%CUR_DIR%\\%link%\"\n" ); 199 | 200 | file.WriteLine( "; -- Common Information\n" ); 201 | 202 | file.WriteLine( "[Scheme.Cur]" ); 203 | file.WriteLine( Path.GetFileName( Arrow.CursorPath ) ); 204 | file.WriteLine( Path.GetFileName( Help.CursorPath ) ); 205 | file.WriteLine( Path.GetFileName( AppStarting.CursorPath ) ); 206 | file.WriteLine( Path.GetFileName( Wait.CursorPath ) ); 207 | file.WriteLine( Path.GetFileName( IBeam.CursorPath ) ); 208 | file.WriteLine( Path.GetFileName( No.CursorPath ) ); 209 | file.WriteLine( Path.GetFileName( SizeNS.CursorPath ) ); 210 | file.WriteLine( Path.GetFileName( SizeWE.CursorPath ) ); 211 | file.WriteLine( Path.GetFileName( SizeNWSE.CursorPath ) ); 212 | file.WriteLine( Path.GetFileName( SizeNESW.CursorPath ) ); 213 | file.WriteLine( Path.GetFileName( SizeAll.CursorPath ) ); 214 | file.WriteLine( Path.GetFileName( Hand.CursorPath ) ); 215 | file.WriteLine( Path.GetFileName( Crosshair.CursorPath ) ); 216 | file.WriteLine( Path.GetFileName( NWPen.CursorPath ) ); 217 | file.WriteLine( Path.GetFileName( UpArrow.CursorPath ) ); 218 | 219 | file.WriteLine( "[Strings]" ); 220 | file.WriteLine( "CUR_DIR = \"Cursors\\" + PackageName.Text + "\"" ); 221 | file.WriteLine( "SCHEME_NAME = \"" + PackageName.Text + "\"" ); 222 | 223 | file.WriteLine( "pointer = \"" + Path.GetFileName( Arrow.CursorPath ) + "\"" ); 224 | file.WriteLine( "help = \"" + Path.GetFileName( Help.CursorPath ) + "\"" ); 225 | file.WriteLine( "work = \"" + Path.GetFileName( AppStarting.CursorPath ) + "\"" ); 226 | file.WriteLine( "busy = \"" + Path.GetFileName( Wait.CursorPath ) + "\"" ); 227 | file.WriteLine( "text = \"" + Path.GetFileName( IBeam.CursorPath ) + "\"" ); 228 | file.WriteLine( "unavailiable = \"" + Path.GetFileName( No.CursorPath ) + "\"" ); 229 | file.WriteLine( "vert = \"" + Path.GetFileName( SizeWE.CursorPath ) + "\"" ); 230 | file.WriteLine( "horz = \"" + Path.GetFileName( SizeNS.CursorPath ) + "\"" ); 231 | file.WriteLine( "dgn1 = \"" + Path.GetFileName( SizeNWSE.CursorPath ) + "\"" ); 232 | file.WriteLine( "dgn2 = \"" + Path.GetFileName( SizeNESW.CursorPath ) + "\"" ); 233 | file.WriteLine( "move = \"" + Path.GetFileName( SizeAll.CursorPath ) + "\"" ); 234 | file.WriteLine( "link = \"" + Path.GetFileName( Hand.CursorPath ) + "\"" ); 235 | file.WriteLine( "cross = \"" + Path.GetFileName( Crosshair.CursorPath ) + "\"" ); 236 | file.WriteLine( "hand = \"" + Path.GetFileName( NWPen.CursorPath ) + "\"" ); 237 | file.WriteLine( "alternate = \"" + Path.GetFileName( UpArrow.CursorPath ) + "\"" ); 238 | 239 | } 240 | 241 | zip.AddFile( path + "\\Install.inf", "" ); 242 | zip.Save( path + "\\" + PackageName.Text + ".zip" ); 243 | } 244 | try 245 | { 246 | System.IO.File.Delete( path + "\\Install.inf" ); 247 | } 248 | catch( System.IO.IOException e ) 249 | { 250 | } 251 | MessageBox.Show( "Succesfuly created package", "File created", MessageBoxButtons.OK ); 252 | PackageName.Text = ""; 253 | Submit.Enabled = false; 254 | InitializeCursors(); 255 | } 256 | 257 | private void CursorButton_Click( object sender, EventArgs e ) 258 | { 259 | var button = ( AndroidUI.HolyLight.AndroidButton ) sender; 260 | 261 | switch( button.Name ) 262 | { 263 | case "AppStartingButton": 264 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 265 | { 266 | Console.WriteLine( openFileDialog1.FileName ); 267 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 268 | 269 | Icon iconForFile = SystemIcons.WinLogo; 270 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 271 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 272 | AppStarting.Image = iconForFile.ToBitmap(); 273 | AppStarting.CursorPath = openFileDialog1.FileName; 274 | } 275 | openFileDialog1.FileName = ""; 276 | break; 277 | case "ArrowButton": 278 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 279 | { 280 | Console.WriteLine( openFileDialog1.FileName ); 281 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 282 | 283 | Icon iconForFile = SystemIcons.WinLogo; 284 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 285 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 286 | Arrow.Image = iconForFile.ToBitmap(); 287 | Arrow.CursorPath = openFileDialog1.FileName; 288 | } 289 | openFileDialog1.FileName = ""; 290 | break; 291 | case "CrosshairButton": 292 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 293 | { 294 | Console.WriteLine( openFileDialog1.FileName ); 295 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 296 | 297 | Icon iconForFile = SystemIcons.WinLogo; 298 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 299 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 300 | Crosshair.Image = iconForFile.ToBitmap(); 301 | Crosshair.CursorPath = openFileDialog1.FileName; 302 | } 303 | break; 304 | case "HandButton": 305 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 306 | { 307 | Console.WriteLine( openFileDialog1.FileName ); 308 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 309 | 310 | Icon iconForFile = SystemIcons.WinLogo; 311 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 312 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 313 | Hand.Image = iconForFile.ToBitmap(); 314 | Hand.CursorPath = openFileDialog1.FileName; 315 | } 316 | openFileDialog1.FileName = ""; 317 | break; 318 | case "HelpButton": 319 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 320 | { 321 | Console.WriteLine( openFileDialog1.FileName ); 322 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 323 | 324 | Icon iconForFile = SystemIcons.WinLogo; 325 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 326 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 327 | Help.Image = iconForFile.ToBitmap(); 328 | Help.CursorPath = openFileDialog1.FileName; 329 | } 330 | openFileDialog1.FileName = ""; 331 | break; 332 | case "IBeamButton": 333 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 334 | { 335 | Console.WriteLine( openFileDialog1.FileName ); 336 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 337 | 338 | Icon iconForFile = SystemIcons.WinLogo; 339 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 340 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 341 | IBeam.Image = iconForFile.ToBitmap(); 342 | IBeam.CursorPath = openFileDialog1.FileName; 343 | } 344 | openFileDialog1.FileName = ""; 345 | break; 346 | case "NoButton": 347 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 348 | { 349 | Console.WriteLine( openFileDialog1.FileName ); 350 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 351 | 352 | Icon iconForFile = SystemIcons.WinLogo; 353 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 354 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 355 | No.Image = iconForFile.ToBitmap(); 356 | No.CursorPath = openFileDialog1.FileName; 357 | } 358 | openFileDialog1.FileName = ""; 359 | break; 360 | case "NWPenButton": 361 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 362 | { 363 | Console.WriteLine( openFileDialog1.FileName ); 364 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 365 | 366 | Icon iconForFile = SystemIcons.WinLogo; 367 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 368 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 369 | NWPen.Image = iconForFile.ToBitmap(); 370 | NWPen.CursorPath = openFileDialog1.FileName; 371 | } 372 | openFileDialog1.FileName = ""; 373 | break; 374 | case "SizeAllButton": 375 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 376 | { 377 | Console.WriteLine( openFileDialog1.FileName ); 378 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 379 | 380 | Icon iconForFile = SystemIcons.WinLogo; 381 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 382 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 383 | SizeAll.Image = iconForFile.ToBitmap(); 384 | SizeAll.CursorPath = openFileDialog1.FileName; 385 | } 386 | openFileDialog1.FileName = ""; 387 | break; 388 | case "SizeNESWButton": 389 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 390 | { 391 | Console.WriteLine( openFileDialog1.FileName ); 392 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 393 | 394 | Icon iconForFile = SystemIcons.WinLogo; 395 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 396 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 397 | SizeNESW.Image = iconForFile.ToBitmap(); 398 | SizeNESW.CursorPath = openFileDialog1.FileName; 399 | } 400 | openFileDialog1.FileName = ""; 401 | break; 402 | case "SizeNSButton": 403 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 404 | { 405 | Console.WriteLine( openFileDialog1.FileName ); 406 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 407 | 408 | Icon iconForFile = SystemIcons.WinLogo; 409 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 410 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 411 | SizeNS.Image = iconForFile.ToBitmap(); 412 | SizeNS.CursorPath = openFileDialog1.FileName; 413 | } 414 | openFileDialog1.FileName = ""; 415 | break; 416 | case "SizeNWSEButton": 417 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 418 | { 419 | Console.WriteLine( openFileDialog1.FileName ); 420 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 421 | 422 | Icon iconForFile = SystemIcons.WinLogo; 423 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 424 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 425 | SizeNWSE.Image = iconForFile.ToBitmap(); 426 | SizeNWSE.CursorPath = openFileDialog1.FileName; 427 | } 428 | openFileDialog1.FileName = ""; 429 | break; 430 | case "SizeWEButton": 431 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 432 | { 433 | Console.WriteLine( openFileDialog1.FileName ); 434 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 435 | 436 | Icon iconForFile = SystemIcons.WinLogo; 437 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 438 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 439 | SizeWE.Image = iconForFile.ToBitmap(); 440 | SizeWE.CursorPath = openFileDialog1.FileName; 441 | } 442 | openFileDialog1.FileName = ""; 443 | break; 444 | case "UpArrowButton": 445 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 446 | { 447 | Console.WriteLine( openFileDialog1.FileName ); 448 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 449 | 450 | Icon iconForFile = SystemIcons.WinLogo; 451 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 452 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 453 | UpArrow.Image = iconForFile.ToBitmap(); 454 | UpArrow.CursorPath = openFileDialog1.FileName; 455 | } 456 | openFileDialog1.FileName = ""; 457 | break; 458 | case "WaitButton": 459 | if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) 460 | { 461 | Console.WriteLine( openFileDialog1.FileName ); 462 | var file = new System.IO.FileInfo( openFileDialog1.FileName ); 463 | 464 | Icon iconForFile = SystemIcons.WinLogo; 465 | iconForFile = Icon.ExtractAssociatedIcon( file.FullName ); 466 | iconForFile = System.Drawing.Icon.ExtractAssociatedIcon( file.FullName ); 467 | Wait.Image = iconForFile.ToBitmap(); 468 | Wait.CursorPath = openFileDialog1.FileName; 469 | } 470 | openFileDialog1.FileName = ""; 471 | break; 472 | } 473 | 474 | } 475 | 476 | private void PackageName_KeyUp( object sender, KeyEventArgs e ) 477 | { 478 | Submit.Enabled = ( PackageName.Text.Length > 3 ) ? true : false; 479 | } 480 | 481 | } 482 | } 483 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/AndroidButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | using System.ComponentModel.Design; 4 | using System.Drawing; 5 | using System.Drawing.Drawing2D; 6 | using System.Drawing.Text; 7 | using System.Runtime.InteropServices; 8 | using System.Windows.Forms; 9 | 10 | namespace AndroidUI.HolyLight 11 | { 12 | [ClassInterface(ClassInterfaceType.AutoDispatch)] 13 | [ToolboxBitmap(typeof(AndroidButton), "Button.AndroidButton.bmp")] 14 | [ComVisible(true)] 15 | public class AndroidButton : Control 16 | { 17 | public enum AndroidType { Text, IconText, Icon}; 18 | public enum AndroidState { Normal, Pressed, Disabled }; 19 | 20 | #region Private properties 21 | public AndroidState _buttonState = AndroidState.Normal; 22 | private AndroidType _buttonType = AndroidType.Icon; 23 | private StringAlignment _verticalAlignment = StringAlignment.Center; 24 | private StringAlignment _horizontalAlignment = StringAlignment.Center; 25 | private bool _autoSize = true; 26 | private int _iconSize = 32; 27 | private int _iconLeftMargin = 5; 28 | private int _iconRightMargin = 5; 29 | private float _cornerRadius = 4.0f; 30 | private Size _minimumSize = new Size( 75, 23 ); 31 | private Size _size = new Size( 105, 32 ); 32 | private Padding _padding = new Padding( 5 ); 33 | private Bitmap _icon = new Bitmap( 32, 32 ); 34 | private Color _foreColor = ColorTranslator.FromHtml( "#333333" ); 35 | #endregion 36 | 37 | public AndroidButton() 38 | { 39 | SetStyle( 40 | ControlStyles.UserPaint | 41 | ControlStyles.AllPaintingInWmPaint | 42 | ControlStyles.ResizeRedraw | 43 | ControlStyles.OptimizedDoubleBuffer, 44 | true); 45 | if( isFontInstalled() ) 46 | { 47 | Font = new System.Drawing.Font( "Roboto", 10.0f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ( ( byte ) ( 238 ) ) ); 48 | } 49 | else 50 | { 51 | Font = new System.Drawing.Font( "Tahoma", 10.0f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ( ( byte ) ( 238 ) ) ); 52 | } 53 | } 54 | 55 | #region OnPaint 56 | protected override void OnPaint(PaintEventArgs pevent) 57 | { 58 | pevent.Graphics.TextRenderingHint = TextRenderingHint.ClearTypeGridFit; 59 | base.OnPaint(pevent); 60 | 61 | if( Enabled ) 62 | { 63 | switch( _buttonState ) 64 | { 65 | case AndroidState.Normal: ButtonStateNormal( pevent.Graphics ); break; 66 | case AndroidState.Pressed: ButtonStatePressed( pevent.Graphics ); break; 67 | } 68 | } 69 | else 70 | { 71 | ButtonStateDisabled( pevent.Graphics ); 72 | } 73 | } 74 | #endregion 75 | 76 | protected override void OnMouseDown(MouseEventArgs e) 77 | { 78 | base.OnMouseDown(e); 79 | if( Enabled ) { _buttonState = AndroidState.Pressed; } 80 | Refresh(); 81 | } 82 | 83 | protected override void OnMouseUp(MouseEventArgs e) 84 | { 85 | base.OnMouseUp(e); 86 | if( Enabled ) { _buttonState = AndroidState.Normal; } 87 | Refresh(); 88 | } 89 | 90 | #region ButtonStateNormal 91 | protected void ButtonStateNormal(Graphics g) 92 | { 93 | var rect = new Rectangle(0, 0, Width, Height); 94 | 95 | g.FillRectangle(new SolidBrush(ColorTranslator.FromHtml("#d6d6d6")), rect); 96 | 97 | //TOP LINE 98 | DrawPixel(g, ColorTranslator.FromHtml("#fdfdfd"), 0, 0); 99 | DrawPixel(g, ColorTranslator.FromHtml("#e8e8e8"), 1, 0); 100 | DrawPixel(g, ColorTranslator.FromHtml("#e4e4e4"), 2, 0); 101 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#e3e3e3"))), 3, 0, Width - 4, 0); 102 | DrawPixel(g, ColorTranslator.FromHtml("#e4e4e4"), Width - 3, 0); 103 | DrawPixel(g, ColorTranslator.FromHtml("#e8e8e8"), Width - 2, 0); 104 | DrawPixel(g, ColorTranslator.FromHtml("#fdfdfd"), Width - 1, 0); 105 | // END TOP LINE 106 | 107 | // LEFT LINE 108 | DrawPixel(g, ColorTranslator.FromHtml("#f6f6f6"), 0, 1); 109 | DrawPixel(g, ColorTranslator.FromHtml("#d6d6d6"), 1, 1); 110 | DrawPixel(g, ColorTranslator.FromHtml("#d8d8d8"), 2, 1); 111 | DrawPixel(g, ColorTranslator.FromHtml("#f1f1f1"), 0, 2); 112 | DrawPixel(g, ColorTranslator.FromHtml("#cbcbcb"), 1, 2); 113 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#efefef"))), 0, 3, 0, Height - 4); 114 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#cacaca"))), 1, 3, 1, Height - 5); 115 | DrawPixel(g, ColorTranslator.FromHtml("#bdbdbd"), 1, Height - 4); 116 | DrawPixel(g, ColorTranslator.FromHtml("#c8c8c8"), 2, Height - 4); 117 | // END LEFT LINE 118 | 119 | // BOTTOM LINE 120 | DrawPixel(g, ColorTranslator.FromHtml("#f1f1f1"), 0, Height - 3); 121 | DrawPixel(g, ColorTranslator.FromHtml("#b0b0b0"), 1, Height - 3); 122 | DrawPixel(g, ColorTranslator.FromHtml("#f7f7f7"), 0, Height - 2); 123 | DrawPixel(g, ColorTranslator.FromHtml("#e2e2e2"), 1, Height - 2); 124 | DrawPixel(g, ColorTranslator.FromHtml("#d3d3d3"), 2, Height - 2); 125 | DrawPixel(g, ColorTranslator.FromHtml("#fdfdfd"), 0, Height - 1); 126 | DrawPixel(g, ColorTranslator.FromHtml("#f6f6f6"), 1, Height - 1); 127 | DrawPixel(g, ColorTranslator.FromHtml("#f1f1f1"), 2, Height - 1); 128 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#787878"))), 2, Height - 3, Width - 3, Height - 3); 129 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#cfcfcf"))), 3, Height - 2, Width - 4, Height - 2); 130 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#efefef"))), 3, Height - 1, Width - 4, Height - 1); 131 | DrawPixel(g, ColorTranslator.FromHtml("#f1f1f1"), Width - 1, Height - 3); 132 | DrawPixel(g, ColorTranslator.FromHtml("#b0b0b0"), Width - 2, Height - 3); 133 | DrawPixel(g, ColorTranslator.FromHtml("#f7f7f7"), Width - 1, Height - 2); 134 | DrawPixel(g, ColorTranslator.FromHtml("#e2e2e2"), Width - 2, Height - 2); 135 | DrawPixel(g, ColorTranslator.FromHtml("#d3d3d3"), Width - 3, Height - 2); 136 | DrawPixel(g, ColorTranslator.FromHtml("#fdfdfd"), Width - 1, Height - 1); 137 | DrawPixel(g, ColorTranslator.FromHtml("#f6f6f6"), Width - 2, Height - 1); 138 | DrawPixel(g, ColorTranslator.FromHtml("#f1f1f1"), Width - 3, Height - 1); 139 | // END BOTTOM LINE 140 | 141 | // RIGHT LINE 142 | DrawPixel(g, ColorTranslator.FromHtml("#f6f6f6"), Width - 1, 1); 143 | DrawPixel(g, ColorTranslator.FromHtml("#d6d6d6"), Width - 2, 1); 144 | DrawPixel(g, ColorTranslator.FromHtml("#d8d8d8"), Width - 3, 1); 145 | DrawPixel(g, ColorTranslator.FromHtml("#f1f1f1"), Width - 1, 2); 146 | DrawPixel(g, ColorTranslator.FromHtml("#cbcbcb"), Width - 2, 2); 147 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#efefef"))), Width - 1, 3, Width - 1, Height - 4); 148 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#cacaca"))), Width - 2, 3, Width - 2, Height - 5); 149 | DrawPixel(g, ColorTranslator.FromHtml("#bdbdbd"), Width - 2, Height - 4); 150 | DrawPixel(g, ColorTranslator.FromHtml("#c8c8c8"), Width - 3, Height - 4); 151 | // END RIGHT LINE 152 | 153 | var format = new StringFormat { Alignment = HorizontalAlignment, LineAlignment = VerticalAlignment }; 154 | int space; 155 | 156 | switch(ButtonType){ 157 | case AndroidType.Text: 158 | g.DrawString(base.Text, Font, new SolidBrush(ForeColor), new Rectangle(Padding.Left, Padding.Top, ClientRectangle.Width - (Padding.Left + Padding.Right), ClientRectangle.Height - (Padding.Top + Padding.Bottom)), format); 159 | break; 160 | case AndroidType.IconText: 161 | space = Height - (Padding.Top + Padding.Bottom + IconSize); 162 | g.DrawImage(Icon, Padding.Left + IconLeftMargin, space / 2 + Padding.Top, IconSize, IconSize); 163 | g.DrawString(base.Text, Font, new SolidBrush(ForeColor), new Rectangle(Padding.Left + IconLeftMargin + IconSize + IconRightMargin, Padding.Top, ClientRectangle.Width - ( Padding.Left + IconLeftMargin + IconSize + IconRightMargin + Padding.Right ), ClientRectangle.Height - ( Padding.Top + Padding.Bottom )), format); 164 | break; 165 | case AndroidType.Icon: 166 | space = Height - (Padding.Top + Padding.Bottom + IconSize); 167 | g.DrawImage(Icon, Padding.Left + IconLeftMargin, space / 2 + Padding.Top, IconSize, IconSize); 168 | break; 169 | } 170 | } 171 | #endregion 172 | 173 | #region ButtonStatePressed 174 | private void ButtonStatePressed(Graphics g) 175 | { 176 | var X = 0; 177 | var Y = 0; 178 | var width = Width; 179 | var height = Height; 180 | 181 | // BEGIN BLUE ROUNDED BACKGROUND 182 | var gp = new GraphicsPath(); 183 | gp.AddLine(X + CornerRadius, Y, X + width - (CornerRadius * 2), Y); 184 | gp.AddArc(X + width - (CornerRadius * 2), Y, CornerRadius * 2, CornerRadius * 2, 270, 90); 185 | gp.AddLine(X + width, Y + CornerRadius, X + width, Y + height - (CornerRadius * 2)); 186 | gp.AddArc(X + width - (CornerRadius * 2), Y + height - (CornerRadius * 2), CornerRadius * 2, CornerRadius * 2, 0, 90); 187 | gp.AddLine(X + width - (CornerRadius * 2), Y + height, X + CornerRadius, Y + height); 188 | gp.AddArc(X, Y + height - (CornerRadius * 2), CornerRadius * 2, CornerRadius * 2, 90, 90); 189 | gp.AddLine(X, Y + height - (CornerRadius * 2), X, Y + CornerRadius); 190 | gp.AddArc(X, Y, CornerRadius * 2, CornerRadius * 2, 180, 90); 191 | gp.CloseFigure(); 192 | g.FillPath(new SolidBrush(ColorTranslator.FromHtml("#ade1f4")), gp); 193 | gp.Dispose(); 194 | g.FillRectangle(new SolidBrush(ColorTranslator.FromHtml("#4bbde8")), 5, 5, (Width - 6) - 4, (Height - 6) - 4); 195 | // ENG BLUE ROUNDED BACKGROUND 196 | 197 | // TOP LINE 198 | DrawPixel(g, ColorTranslator.FromHtml("#abdef1"), 3, 3); 199 | DrawPixel(g, ColorTranslator.FromHtml("#a7d9ec"), 4, 3); 200 | DrawPixel(g, ColorTranslator.FromHtml("#a3d4e6"), 5, 3); 201 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#a2d3e5"))), 6, 3, Width - 7, 3); 202 | DrawPixel(g, ColorTranslator.FromHtml("#a4d5e7"), Width - 6, 3); 203 | DrawPixel(g, ColorTranslator.FromHtml("#a7d9ec"), Width - 5, 3); 204 | DrawPixel(g, ColorTranslator.FromHtml("#acdff2"), Width - 4, 3); 205 | DrawPixel(g, ColorTranslator.FromHtml("#a6d8ea"), 3, 4); 206 | DrawPixel(g, ColorTranslator.FromHtml("#7cc8e5"), 4, 4); 207 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#7bcfee"))), 5, 4, Width - 6, 4); 208 | DrawPixel(g, ColorTranslator.FromHtml("#7dc8e4"), Width - 5, 4); 209 | DrawPixel(g, ColorTranslator.FromHtml("#a7d9ec"), Width - 4, 4); 210 | // END TOP LINE 211 | 212 | // LEFT LINE 213 | DrawPixel(g, ColorTranslator.FromHtml("#9dd2e5"), 3, 5); 214 | DrawPixel(g, ColorTranslator.FromHtml("#4cbde8"), 4, 5); 215 | DrawPixel(g, ColorTranslator.FromHtml("#52c0e8"), 5, 5); 216 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#9cd0e3"))), 3, 6, 3, Height - 7); 217 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#4ab9e2"))), 4, 6, 4, Height - 7); 218 | DrawPixel(g, ColorTranslator.FromHtml("#9dd1e5"), 3, Height - 6); 219 | DrawPixel(g, ColorTranslator.FromHtml("#47b3db"), 4, Height - 6); 220 | DrawPixel(g, ColorTranslator.FromHtml("#49b8e1"), 5, Height - 6); 221 | // END LEFT LINE 222 | 223 | // RIGHT LINE 224 | DrawPixel(g, ColorTranslator.FromHtml("#a4d5e7"), Width - 4, 5); 225 | DrawPixel(g, ColorTranslator.FromHtml("#4cbee7"), Width - 5, 5); 226 | DrawPixel(g, ColorTranslator.FromHtml("#54c1e8"), Width - 6, 5); 227 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#a2d3e5"))), Width - 4, 6, Width - 4, Height - 7); 228 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#49b8e1"))), Width - 5, 6, Width - 5, Height - 7); 229 | DrawPixel(g, ColorTranslator.FromHtml("#a4d5e7"), Width - 4, Height - 6); 230 | DrawPixel(g, ColorTranslator.FromHtml("#48b4da"), Width - 5, Height - 6); 231 | DrawPixel(g, ColorTranslator.FromHtml("#49b8e1"), Width - 6, Height - 6); 232 | // END RIGHT LINE 233 | 234 | // BOTTOM LINE 235 | DrawPixel(g, ColorTranslator.FromHtml("#abdef1"), 3, Height - 4); 236 | DrawPixel(g, ColorTranslator.FromHtml("#a7d9ec"), 4, Height - 4); 237 | DrawPixel(g, ColorTranslator.FromHtml("#a3d4e6"), 5, Height - 4); 238 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#a2d3e5"))), 6, Height - 4, Width - 7, Height - 4); 239 | DrawPixel(g, ColorTranslator.FromHtml("#a4d5e7"), Width - 6, Height - 4); 240 | DrawPixel(g, ColorTranslator.FromHtml("#a7d9ec"), Width - 5, Height - 4); 241 | DrawPixel(g, ColorTranslator.FromHtml("#acdff2"), Width - 4, Height - 4); 242 | DrawPixel(g, ColorTranslator.FromHtml("#a7d9ec"), 3, Height - 5); 243 | DrawPixel(g, ColorTranslator.FromHtml("#62afcb"), 4, Height - 5); 244 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#3b94b4"))), 5, Height - 5, Width - 6, Height - 5); 245 | DrawPixel(g, ColorTranslator.FromHtml("#66b1cd"), Width - 5, Height - 5); 246 | DrawPixel(g, ColorTranslator.FromHtml("#a7d9ec"), Width - 4, Height - 5); 247 | // END BOTTOM LINE 248 | 249 | var format = new StringFormat() { Alignment = HorizontalAlignment, LineAlignment = VerticalAlignment }; 250 | var space = 0; 251 | 252 | switch (ButtonType) 253 | { 254 | case AndroidType.Text: 255 | g.DrawString(Text, Font, new SolidBrush(ColorTranslator.FromHtml("#333333")), new Rectangle(Padding.Left, Padding.Top, ClientRectangle.Width - (Padding.Left + Padding.Right), ClientRectangle.Height - (Padding.Top + Padding.Bottom)), format); 256 | break; 257 | case AndroidType.IconText: 258 | space = Height - (Padding.Top + Padding.Bottom + IconSize); 259 | g.DrawImage(Icon, Padding.Left + IconLeftMargin, space / 2 + Padding.Top, IconSize, IconSize); 260 | g.DrawString(Text, Font, new SolidBrush(ColorTranslator.FromHtml("#333333")), new Rectangle(Padding.Left + IconLeftMargin + IconSize + IconRightMargin, Padding.Top, ClientRectangle.Width - (Padding.Left + IconLeftMargin + IconSize + IconRightMargin + Padding.Right), ClientRectangle.Height - (Padding.Top + Padding.Bottom)), format); 261 | break; 262 | case AndroidType.Icon: 263 | space = Height - (Padding.Top + Padding.Bottom + IconSize); 264 | g.DrawImage(Icon, Padding.Left + IconLeftMargin, space / 2 + Padding.Top, IconSize, IconSize); 265 | break; 266 | } 267 | } 268 | #endregion 269 | 270 | #region ButtonStateDisabled 271 | private void ButtonStateDisabled(Graphics g) 272 | { 273 | g.FillRectangle(new SolidBrush(ColorTranslator.FromHtml("#f0f0f0")), 0, 0, Width, Height); 274 | 275 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#dadada"))), 1, 0, Width - 1, 0); 276 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#c7c7c7"))), 0, 0, 0, Height - 1); 277 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#c2c2c2"))), 1, Height - 1, Width - 1, Height - 1); 278 | g.DrawLine(new Pen(new SolidBrush(ColorTranslator.FromHtml("#c6c6c6"))), Width - 1, 1, Width - 1, Height - 1); 279 | 280 | var format = new StringFormat() { Alignment = HorizontalAlignment, LineAlignment = VerticalAlignment }; 281 | int space = 0; 282 | 283 | switch (ButtonType) 284 | { 285 | case AndroidType.Text: 286 | g.DrawString(Text, Font, new SolidBrush(ColorTranslator.FromHtml("#b7b7b7")), new Rectangle(Padding.Left, Padding.Top, ClientRectangle.Width - (Padding.Left + Padding.Right), ClientRectangle.Height - (Padding.Top + Padding.Bottom)), format); 287 | break; 288 | case AndroidType.IconText: 289 | space = Height - (Padding.Top + Padding.Bottom + IconSize); 290 | g.DrawImage(Icon, Padding.Left + IconLeftMargin, space / 2 + Padding.Top, IconSize, IconSize); 291 | g.DrawString(Text, Font, new SolidBrush(ColorTranslator.FromHtml("#b7b7b7")), new Rectangle(Padding.Left + IconLeftMargin + IconSize + IconRightMargin, Padding.Top, ClientRectangle.Width - (Padding.Left + IconLeftMargin + IconSize + IconRightMargin + Padding.Right), ClientRectangle.Height - (Padding.Top + Padding.Bottom)), format); 292 | break; 293 | case AndroidType.Icon: 294 | space = Height - (Padding.Top + Padding.Bottom + IconSize); 295 | g.DrawImage(Icon, Padding.Left + IconLeftMargin, space / 2 + Padding.Top, IconSize, IconSize); 296 | break; 297 | } 298 | } 299 | #endregion 300 | 301 | #region ButtonStateFocused 302 | private void ButtonStateFocused(Graphics g) 303 | { 304 | g.FillRectangle(new SolidBrush(ColorTranslator.FromHtml("#54c1e9")), 0, 0, Width, Height); 305 | g.FillRectangle(new SolidBrush(ColorTranslator.FromHtml("#85d3ef")), 2, 2, (Width - 2) - 2, (Height - 2) - 2); 306 | 307 | var format = new StringFormat() { Alignment = VerticalAlignment, LineAlignment = HorizontalAlignment }; 308 | g.DrawString(Text, Font, new SolidBrush(ColorTranslator.FromHtml("#333333")), ClientRectangle, format); 309 | } 310 | #endregion 311 | 312 | [DefaultValue(4.0f), RefreshProperties(RefreshProperties.All), Category("Android UI"), Description("Radius of rounded background")] 313 | public float CornerRadius 314 | { 315 | get { return _cornerRadius; } 316 | set { _cornerRadius = value; Invalidate(); } 317 | } 318 | 319 | [DefaultValue(StringAlignment.Center), RefreshProperties(RefreshProperties.All), Category("Android UI"), Description("Vertical alignment of caption")] 320 | public StringAlignment VerticalAlignment 321 | { 322 | get { return _verticalAlignment; } 323 | set { _verticalAlignment = value; Invalidate(); } 324 | } 325 | 326 | [DefaultValue(StringAlignment.Center), RefreshProperties(RefreshProperties.All), Category("Android UI"), Description("Horizontal alignment of caption")] 327 | public StringAlignment HorizontalAlignment 328 | { 329 | get { return _horizontalAlignment; } 330 | set { _horizontalAlignment = value; Invalidate(); } 331 | } 332 | 333 | [DefaultValue(AndroidType.Text), RefreshProperties(RefreshProperties.All), Category("Android UI"), Description("Type of a button")] 334 | public AndroidType ButtonType 335 | { 336 | get { return _buttonType; } 337 | set { _buttonType = value; Invalidate(); } 338 | } 339 | 340 | [DefaultValue(32), RefreshProperties(RefreshProperties.All), Category("Android UI"), Description("Size of icon")] 341 | public int IconSize 342 | { 343 | get { return _iconSize; } 344 | set { _iconSize = value; Invalidate(); } 345 | } 346 | 347 | [DefaultValue(5), RefreshProperties(RefreshProperties.Repaint), Category("Android UI"), Description("Left margin of icon")] 348 | public int IconLeftMargin 349 | { 350 | get { return _iconLeftMargin; } 351 | set { _iconLeftMargin = value; Invalidate(); } 352 | } 353 | 354 | [DefaultValue(5), RefreshProperties(RefreshProperties.Repaint), Category("Android UI"), Description("Right margin of icon")] 355 | public int IconRightMargin 356 | { 357 | get { return _iconRightMargin; } 358 | set { _iconRightMargin = value; Invalidate(); } 359 | } 360 | 361 | [DefaultValue(null), RefreshProperties(RefreshProperties.Repaint), Category("Android UI"), Description("Icon of button")] 362 | public Bitmap Icon 363 | { 364 | get { return _icon; } 365 | set { _icon = value; Invalidate(); } 366 | } 367 | 368 | [DefaultValue(false), RefreshProperties(RefreshProperties.Repaint), Category("Android UI"), Description("Automatically adjust the size")] 369 | public bool AutoSizeButton 370 | { 371 | get { return _autoSize; } 372 | set 373 | { 374 | _autoSize = value; 375 | if (_autoSize) 376 | { 377 | SizeF sizef; 378 | var w = 0; 379 | var h = 0; 380 | switch (ButtonType) 381 | { 382 | case AndroidType.Text: 383 | using (var g = CreateGraphics()) 384 | { 385 | sizef = g.MeasureString(Text, Font); 386 | } 387 | w = (int)Math.Round(sizef.Width); 388 | h = (int)Math.Round(sizef.Height); 389 | Width = Padding.Left + Padding.Right + w + 5; 390 | Height = Padding.Top + Padding.Bottom + h + 5; 391 | MinimumSize = Size; 392 | MaximumSize = Size; 393 | break; 394 | case AndroidType.IconText: 395 | using (var g = CreateGraphics()) 396 | { 397 | sizef = g.MeasureString(Text, Font); 398 | } 399 | w = (int)Math.Round(sizef.Width); 400 | h = (int)Math.Round(sizef.Height); 401 | Width = Padding.Left + Padding.Right + IconLeftMargin + IconRightMargin + IconSize + w + 5; 402 | Height = Padding.Top + Padding.Bottom + IconSize + 5; 403 | MinimumSize = Size; 404 | MaximumSize = Size; 405 | break; 406 | case AndroidType.Icon: 407 | Width = Padding.Left + Padding.Right + IconLeftMargin + IconRightMargin + IconSize; 408 | Height = Padding.Top + Padding.Bottom + IconSize; 409 | MinimumSize = Size; 410 | MaximumSize = Size; 411 | break; 412 | } 413 | Refresh(); 414 | } 415 | else 416 | { 417 | MinimumSize = new Size(8, 8); 418 | MaximumSize = new Size(0,0); 419 | } 420 | } 421 | } 422 | 423 | protected override void OnTextChanged( EventArgs e ) 424 | { 425 | base.OnTextChanged( e ); 426 | 427 | if( _autoSize ) 428 | { 429 | SizeF sizef; 430 | var w = 0; 431 | var h = 0; 432 | switch( ButtonType ) 433 | { 434 | case AndroidType.Text: 435 | using( var g = CreateGraphics() ) 436 | { 437 | sizef = g.MeasureString( Text, Font ); 438 | } 439 | w = ( int ) Math.Round( sizef.Width ); 440 | h = ( int ) Math.Round( sizef.Height ); 441 | Width = Padding.Left + Padding.Right + w + 5; 442 | Height = Padding.Top + Padding.Bottom + h + 5; 443 | MinimumSize = Size; 444 | MaximumSize = Size; 445 | break; 446 | case AndroidType.IconText: 447 | using( var g = CreateGraphics() ) 448 | { 449 | sizef = g.MeasureString( Text, Font ); 450 | } 451 | w = ( int ) Math.Round( sizef.Width ); 452 | h = ( int ) Math.Round( sizef.Height ); 453 | Width = Padding.Left + Padding.Right + IconLeftMargin + IconRightMargin + IconSize + w + 5; 454 | Height = Padding.Top + Padding.Bottom + IconSize + 5; 455 | MinimumSize = Size; 456 | MaximumSize = Size; 457 | break; 458 | case AndroidType.Icon: 459 | Width = Padding.Left + Padding.Right + IconLeftMargin + IconRightMargin + IconSize; 460 | Height = Padding.Top + Padding.Bottom + IconSize; 461 | MinimumSize = Size; 462 | MaximumSize = Size; 463 | break; 464 | } 465 | Refresh(); 466 | } 467 | } 468 | 469 | private static void DrawPixel(Graphics g, Color color, int x, int y) 470 | { 471 | g.FillRectangle(new SolidBrush(color), x, y, 1, 1); 472 | } 473 | 474 | private bool isFontInstalled() 475 | { 476 | using ( Font fontTester = new Font("Roboto", 10F, FontStyle.Regular, GraphicsUnit.Pixel) ) 477 | { 478 | if ( fontTester.Name == "Roboto" ) 479 | { 480 | // Font exists 481 | return true; 482 | } 483 | else 484 | { 485 | // Font doesn't exist 486 | return false; 487 | } 488 | } 489 | } 490 | 491 | #region InstallFont 492 | private static void InstallFont() 493 | { 494 | // Try install the font. 495 | var result = AddFontResource(@"RobotoRegular.ttf"); 496 | var error = Marshal.GetLastWin32Error(); 497 | if (error != 0) 498 | { 499 | Console.WriteLine(new Win32Exception(error).Message); 500 | } 501 | else 502 | { 503 | Console.WriteLine((result == 0) ? "Font is already installed." : 504 | "Font installed successfully."); 505 | } 506 | } 507 | 508 | [DllImport("gdi32.dll", EntryPoint = "AddFontResourceW", SetLastError = true)] 509 | public static extern int AddFontResource([In][MarshalAs(UnmanagedType.LPWStr)] 510 | string lpFileName); 511 | #endregion 512 | 513 | } 514 | 515 | } 516 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | WindowsCursorInstaller Copyright (C) 2014 [i_dont_know_the_name_of_original_author] 656 | WindowsCursorInstaller Copyright (C) 2021 Talha Asghar 657 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 658 | This is free software, and you are welcome to redistribute it 659 | under certain conditions; type `show c' for details. 660 | 661 | The hypothetical commands `show w' and `show c' should show the appropriate 662 | parts of the General Public License. Of course, your program's commands 663 | might be different; for a GUI interface, you would use an "about box". 664 | 665 | You should also get your employer (if you work as a programmer) or school, 666 | if any, to sign a "copyright disclaimer" for the program, if necessary. 667 | For more information on this, and how to apply and follow the GNU GPL, see 668 | . 669 | 670 | The GNU General Public License does not permit incorporating your program 671 | into proprietary programs. If your program is a subroutine library, you 672 | may consider it more useful to permit linking proprietary applications with 673 | the library. If this is what you want to do, use the GNU Lesser General 674 | Public License instead of this License. But first, please read 675 | . 676 | -------------------------------------------------------------------------------- /src/CursorInstallerWizard/CursorInstallerWizard/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace CursorInstallerWizard 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose( bool disposing ) 15 | { 16 | if( disposing && ( components != null ) ) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose( disposing ); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.label1 = new System.Windows.Forms.Label(); 32 | this.label2 = new System.Windows.Forms.Label(); 33 | this.label3 = new System.Windows.Forms.Label(); 34 | this.label4 = new System.Windows.Forms.Label(); 35 | this.label5 = new System.Windows.Forms.Label(); 36 | this.label6 = new System.Windows.Forms.Label(); 37 | this.label7 = new System.Windows.Forms.Label(); 38 | this.label8 = new System.Windows.Forms.Label(); 39 | this.label9 = new System.Windows.Forms.Label(); 40 | this.label10 = new System.Windows.Forms.Label(); 41 | this.label11 = new System.Windows.Forms.Label(); 42 | this.label12 = new System.Windows.Forms.Label(); 43 | this.label13 = new System.Windows.Forms.Label(); 44 | this.label14 = new System.Windows.Forms.Label(); 45 | this.label15 = new System.Windows.Forms.Label(); 46 | this.label16 = new System.Windows.Forms.Label(); 47 | this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); 48 | this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); 49 | this.Cancel = new AndroidUI.HolyLight.AndroidButton(); 50 | this.Submit = new AndroidUI.HolyLight.AndroidButton(); 51 | this.HandButton = new AndroidUI.HolyLight.AndroidButton(); 52 | this.SizeWEButton = new AndroidUI.HolyLight.AndroidButton(); 53 | this.CrosshairButton = new AndroidUI.HolyLight.AndroidButton(); 54 | this.UpArrowButton = new AndroidUI.HolyLight.AndroidButton(); 55 | this.SizeNSButton = new AndroidUI.HolyLight.AndroidButton(); 56 | this.WaitButton = new AndroidUI.HolyLight.AndroidButton(); 57 | this.SizeAllButton = new AndroidUI.HolyLight.AndroidButton(); 58 | this.NoButton = new AndroidUI.HolyLight.AndroidButton(); 59 | this.AppStartingButton = new AndroidUI.HolyLight.AndroidButton(); 60 | this.SizeNESWButton = new AndroidUI.HolyLight.AndroidButton(); 61 | this.NWPenButton = new AndroidUI.HolyLight.AndroidButton(); 62 | this.HelpButton = new AndroidUI.HolyLight.AndroidButton(); 63 | this.SizeNWSEButton = new AndroidUI.HolyLight.AndroidButton(); 64 | this.IBeamButton = new AndroidUI.HolyLight.AndroidButton(); 65 | this.ArrowButton = new AndroidUI.HolyLight.AndroidButton(); 66 | this.PackageName = new AndroidUI.HolyLight.AndroidTextField(); 67 | this.Help = new CursorInstallerWizard.CustomPictureBox(); 68 | this.AppStarting = new CursorInstallerWizard.CustomPictureBox(); 69 | this.SizeAll = new CursorInstallerWizard.CustomPictureBox(); 70 | this.No = new CursorInstallerWizard.CustomPictureBox(); 71 | this.Hand = new CursorInstallerWizard.CustomPictureBox(); 72 | this.SizeWE = new CursorInstallerWizard.CustomPictureBox(); 73 | this.NWPen = new CursorInstallerWizard.CustomPictureBox(); 74 | this.Wait = new CursorInstallerWizard.CustomPictureBox(); 75 | this.SizeNS = new CursorInstallerWizard.CustomPictureBox(); 76 | this.SizeNESW = new CursorInstallerWizard.CustomPictureBox(); 77 | this.UpArrow = new CursorInstallerWizard.CustomPictureBox(); 78 | this.IBeam = new CursorInstallerWizard.CustomPictureBox(); 79 | this.SizeNWSE = new CursorInstallerWizard.CustomPictureBox(); 80 | this.Crosshair = new CursorInstallerWizard.CustomPictureBox(); 81 | this.Arrow = new CursorInstallerWizard.CustomPictureBox(); 82 | ((System.ComponentModel.ISupportInitialize)(this.Help)).BeginInit(); 83 | ((System.ComponentModel.ISupportInitialize)(this.AppStarting)).BeginInit(); 84 | ((System.ComponentModel.ISupportInitialize)(this.SizeAll)).BeginInit(); 85 | ((System.ComponentModel.ISupportInitialize)(this.No)).BeginInit(); 86 | ((System.ComponentModel.ISupportInitialize)(this.Hand)).BeginInit(); 87 | ((System.ComponentModel.ISupportInitialize)(this.SizeWE)).BeginInit(); 88 | ((System.ComponentModel.ISupportInitialize)(this.NWPen)).BeginInit(); 89 | ((System.ComponentModel.ISupportInitialize)(this.Wait)).BeginInit(); 90 | ((System.ComponentModel.ISupportInitialize)(this.SizeNS)).BeginInit(); 91 | ((System.ComponentModel.ISupportInitialize)(this.SizeNESW)).BeginInit(); 92 | ((System.ComponentModel.ISupportInitialize)(this.UpArrow)).BeginInit(); 93 | ((System.ComponentModel.ISupportInitialize)(this.IBeam)).BeginInit(); 94 | ((System.ComponentModel.ISupportInitialize)(this.SizeNWSE)).BeginInit(); 95 | ((System.ComponentModel.ISupportInitialize)(this.Crosshair)).BeginInit(); 96 | ((System.ComponentModel.ISupportInitialize)(this.Arrow)).BeginInit(); 97 | this.SuspendLayout(); 98 | // 99 | // label1 100 | // 101 | this.label1.AutoSize = true; 102 | this.label1.Font = new System.Drawing.Font("Roboto", 13F); 103 | this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 104 | this.label1.Location = new System.Drawing.Point(12, 9); 105 | this.label1.Name = "label1"; 106 | this.label1.Size = new System.Drawing.Size(132, 22); 107 | this.label1.TabIndex = 2; 108 | this.label1.Text = "Package name:"; 109 | // 110 | // label2 111 | // 112 | this.label2.Font = new System.Drawing.Font("Roboto", 13F); 113 | this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 114 | this.label2.Location = new System.Drawing.Point(50, 50); 115 | this.label2.Name = "label2"; 116 | this.label2.Size = new System.Drawing.Size(213, 32); 117 | this.label2.TabIndex = 2; 118 | this.label2.Text = "Normal Select"; 119 | this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 120 | // 121 | // label3 122 | // 123 | this.label3.Font = new System.Drawing.Font("Roboto", 13F); 124 | this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 125 | this.label3.Location = new System.Drawing.Point(50, 88); 126 | this.label3.Name = "label3"; 127 | this.label3.Size = new System.Drawing.Size(213, 32); 128 | this.label3.TabIndex = 2; 129 | this.label3.Text = "Help Select"; 130 | this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 131 | // 132 | // label4 133 | // 134 | this.label4.Font = new System.Drawing.Font("Roboto", 13F); 135 | this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 136 | this.label4.Location = new System.Drawing.Point(50, 126); 137 | this.label4.Name = "label4"; 138 | this.label4.Size = new System.Drawing.Size(213, 32); 139 | this.label4.TabIndex = 2; 140 | this.label4.Text = "Working in background"; 141 | this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 142 | // 143 | // label5 144 | // 145 | this.label5.Font = new System.Drawing.Font("Roboto", 13F); 146 | this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 147 | this.label5.Location = new System.Drawing.Point(50, 164); 148 | this.label5.Name = "label5"; 149 | this.label5.Size = new System.Drawing.Size(213, 32); 150 | this.label5.TabIndex = 2; 151 | this.label5.Text = "Busy"; 152 | this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 153 | // 154 | // label6 155 | // 156 | this.label6.Font = new System.Drawing.Font("Roboto", 13F); 157 | this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 158 | this.label6.Location = new System.Drawing.Point(50, 202); 159 | this.label6.Name = "label6"; 160 | this.label6.Size = new System.Drawing.Size(213, 32); 161 | this.label6.TabIndex = 2; 162 | this.label6.Text = "Precision Select"; 163 | this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 164 | // 165 | // label7 166 | // 167 | this.label7.Font = new System.Drawing.Font("Roboto", 13F); 168 | this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 169 | this.label7.Location = new System.Drawing.Point(345, 50); 170 | this.label7.Name = "label7"; 171 | this.label7.Size = new System.Drawing.Size(197, 32); 172 | this.label7.TabIndex = 2; 173 | this.label7.Text = "Text Select"; 174 | this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 175 | // 176 | // label8 177 | // 178 | this.label8.Font = new System.Drawing.Font("Roboto", 13F); 179 | this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 180 | this.label8.Location = new System.Drawing.Point(345, 88); 181 | this.label8.Name = "label8"; 182 | this.label8.Size = new System.Drawing.Size(197, 32); 183 | this.label8.TabIndex = 2; 184 | this.label8.Text = "Handwriting"; 185 | this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 186 | // 187 | // label9 188 | // 189 | this.label9.Font = new System.Drawing.Font("Roboto", 13F); 190 | this.label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 191 | this.label9.Location = new System.Drawing.Point(345, 126); 192 | this.label9.Name = "label9"; 193 | this.label9.Size = new System.Drawing.Size(197, 32); 194 | this.label9.TabIndex = 2; 195 | this.label9.Text = "Unavaliable"; 196 | this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 197 | // 198 | // label10 199 | // 200 | this.label10.Font = new System.Drawing.Font("Roboto", 13F); 201 | this.label10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 202 | this.label10.Location = new System.Drawing.Point(345, 164); 203 | this.label10.Name = "label10"; 204 | this.label10.Size = new System.Drawing.Size(197, 32); 205 | this.label10.TabIndex = 2; 206 | this.label10.Text = "Vertical Resize"; 207 | this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 208 | // 209 | // label11 210 | // 211 | this.label11.Font = new System.Drawing.Font("Roboto", 13F); 212 | this.label11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 213 | this.label11.Location = new System.Drawing.Point(345, 202); 214 | this.label11.Name = "label11"; 215 | this.label11.Size = new System.Drawing.Size(197, 32); 216 | this.label11.TabIndex = 2; 217 | this.label11.Text = "Horizontal Resize"; 218 | this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 219 | // 220 | // label12 221 | // 222 | this.label12.Font = new System.Drawing.Font("Roboto", 13F); 223 | this.label12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 224 | this.label12.Location = new System.Drawing.Point(624, 50); 225 | this.label12.Name = "label12"; 226 | this.label12.Size = new System.Drawing.Size(289, 32); 227 | this.label12.TabIndex = 2; 228 | this.label12.Text = "Diagonal Resize 1"; 229 | this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 230 | // 231 | // label13 232 | // 233 | this.label13.Font = new System.Drawing.Font("Roboto", 13F); 234 | this.label13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 235 | this.label13.Location = new System.Drawing.Point(624, 88); 236 | this.label13.Name = "label13"; 237 | this.label13.Size = new System.Drawing.Size(289, 32); 238 | this.label13.TabIndex = 2; 239 | this.label13.Text = "Diagonal Resize 2"; 240 | this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 241 | // 242 | // label14 243 | // 244 | this.label14.Font = new System.Drawing.Font("Roboto", 13F); 245 | this.label14.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 246 | this.label14.Location = new System.Drawing.Point(624, 126); 247 | this.label14.Name = "label14"; 248 | this.label14.Size = new System.Drawing.Size(289, 32); 249 | this.label14.TabIndex = 2; 250 | this.label14.Text = "Move"; 251 | this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 252 | // 253 | // label15 254 | // 255 | this.label15.Font = new System.Drawing.Font("Roboto", 13F); 256 | this.label15.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 257 | this.label15.Location = new System.Drawing.Point(624, 164); 258 | this.label15.Name = "label15"; 259 | this.label15.Size = new System.Drawing.Size(289, 32); 260 | this.label15.TabIndex = 2; 261 | this.label15.Text = "Alternate Select"; 262 | this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 263 | // 264 | // label16 265 | // 266 | this.label16.Font = new System.Drawing.Font("Roboto", 13F); 267 | this.label16.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(3)))), ((int)(((byte)(51))))); 268 | this.label16.Location = new System.Drawing.Point(624, 202); 269 | this.label16.Name = "label16"; 270 | this.label16.Size = new System.Drawing.Size(289, 32); 271 | this.label16.TabIndex = 2; 272 | this.label16.Text = "Link Select"; 273 | this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 274 | // 275 | // openFileDialog1 276 | // 277 | this.openFileDialog1.Filter = "Kursory |*.cur;*ani"; 278 | this.openFileDialog1.Title = "Wybierz kursor"; 279 | // 280 | // folderBrowserDialog1 281 | // 282 | this.folderBrowserDialog1.Description = "Wybierz folder do zapisu paczki instalacyjnej"; 283 | // 284 | // Cancel 285 | // 286 | this.Cancel.AutoSizeButton = true; 287 | this.Cancel.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.IconText; 288 | this.Cancel.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 289 | this.Cancel.HorizontalAlignment = System.Drawing.StringAlignment.Near; 290 | this.Cancel.Icon = global::CursorInstallerWizard.Properties.Resources._1_navigation_cancel; 291 | this.Cancel.Location = new System.Drawing.Point(541, 272); 292 | this.Cancel.MaximumSize = new System.Drawing.Size(93, 37); 293 | this.Cancel.MinimumSize = new System.Drawing.Size(93, 37); 294 | this.Cancel.Name = "Cancel"; 295 | this.Cancel.Size = new System.Drawing.Size(93, 37); 296 | this.Cancel.TabIndex = 6; 297 | this.Cancel.Text = "Cancel"; 298 | this.Cancel.Click += new System.EventHandler(this.Cancel_Click); 299 | // 300 | // Submit 301 | // 302 | this.Submit.AutoSizeButton = true; 303 | this.Submit.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.IconText; 304 | this.Submit.Enabled = false; 305 | this.Submit.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 306 | this.Submit.HorizontalAlignment = System.Drawing.StringAlignment.Near; 307 | this.Submit.Icon = global::CursorInstallerWizard.Properties.Resources._1_navigation_accept; 308 | this.Submit.Location = new System.Drawing.Point(640, 272); 309 | this.Submit.MaximumSize = new System.Drawing.Size(190, 37); 310 | this.Submit.MinimumSize = new System.Drawing.Size(190, 37); 311 | this.Submit.Name = "Submit"; 312 | this.Submit.Size = new System.Drawing.Size(190, 37); 313 | this.Submit.TabIndex = 5; 314 | this.Submit.Text = "Create cursor package"; 315 | this.Submit.Click += new System.EventHandler(this.Submit_Click); 316 | // 317 | // HandButton 318 | // 319 | this.HandButton.AutoSizeButton = true; 320 | this.HandButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 321 | this.HandButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 322 | this.HandButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 323 | this.HandButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 324 | this.HandButton.IconLeftMargin = 0; 325 | this.HandButton.IconRightMargin = 0; 326 | this.HandButton.IconSize = 21; 327 | this.HandButton.Location = new System.Drawing.Point(798, 202); 328 | this.HandButton.MaximumSize = new System.Drawing.Size(32, 32); 329 | this.HandButton.MinimumSize = new System.Drawing.Size(32, 32); 330 | this.HandButton.Name = "HandButton"; 331 | this.HandButton.Padding = new System.Windows.Forms.Padding(5); 332 | this.HandButton.Size = new System.Drawing.Size(32, 32); 333 | this.HandButton.TabIndex = 4; 334 | this.HandButton.Text = "androidButton1"; 335 | this.HandButton.Click += new System.EventHandler(this.CursorButton_Click); 336 | // 337 | // SizeWEButton 338 | // 339 | this.SizeWEButton.AutoSizeButton = true; 340 | this.SizeWEButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 341 | this.SizeWEButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 342 | this.SizeWEButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 343 | this.SizeWEButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 344 | this.SizeWEButton.IconLeftMargin = 0; 345 | this.SizeWEButton.IconRightMargin = 0; 346 | this.SizeWEButton.IconSize = 21; 347 | this.SizeWEButton.Location = new System.Drawing.Point(548, 202); 348 | this.SizeWEButton.MaximumSize = new System.Drawing.Size(32, 32); 349 | this.SizeWEButton.MinimumSize = new System.Drawing.Size(32, 32); 350 | this.SizeWEButton.Name = "SizeWEButton"; 351 | this.SizeWEButton.Padding = new System.Windows.Forms.Padding(5); 352 | this.SizeWEButton.Size = new System.Drawing.Size(32, 32); 353 | this.SizeWEButton.TabIndex = 4; 354 | this.SizeWEButton.Text = "androidButton1"; 355 | this.SizeWEButton.Click += new System.EventHandler(this.CursorButton_Click); 356 | // 357 | // CrosshairButton 358 | // 359 | this.CrosshairButton.AutoSizeButton = true; 360 | this.CrosshairButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 361 | this.CrosshairButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 362 | this.CrosshairButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 363 | this.CrosshairButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 364 | this.CrosshairButton.IconLeftMargin = 0; 365 | this.CrosshairButton.IconRightMargin = 0; 366 | this.CrosshairButton.IconSize = 21; 367 | this.CrosshairButton.Location = new System.Drawing.Point(269, 202); 368 | this.CrosshairButton.MaximumSize = new System.Drawing.Size(32, 32); 369 | this.CrosshairButton.MinimumSize = new System.Drawing.Size(32, 32); 370 | this.CrosshairButton.Name = "CrosshairButton"; 371 | this.CrosshairButton.Padding = new System.Windows.Forms.Padding(5); 372 | this.CrosshairButton.Size = new System.Drawing.Size(32, 32); 373 | this.CrosshairButton.TabIndex = 4; 374 | this.CrosshairButton.Text = "androidButton1"; 375 | this.CrosshairButton.Click += new System.EventHandler(this.CursorButton_Click); 376 | // 377 | // UpArrowButton 378 | // 379 | this.UpArrowButton.AutoSizeButton = true; 380 | this.UpArrowButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 381 | this.UpArrowButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 382 | this.UpArrowButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 383 | this.UpArrowButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 384 | this.UpArrowButton.IconLeftMargin = 0; 385 | this.UpArrowButton.IconRightMargin = 0; 386 | this.UpArrowButton.IconSize = 21; 387 | this.UpArrowButton.Location = new System.Drawing.Point(798, 164); 388 | this.UpArrowButton.MaximumSize = new System.Drawing.Size(32, 32); 389 | this.UpArrowButton.MinimumSize = new System.Drawing.Size(32, 32); 390 | this.UpArrowButton.Name = "UpArrowButton"; 391 | this.UpArrowButton.Padding = new System.Windows.Forms.Padding(5); 392 | this.UpArrowButton.Size = new System.Drawing.Size(32, 32); 393 | this.UpArrowButton.TabIndex = 4; 394 | this.UpArrowButton.Text = "androidButton1"; 395 | this.UpArrowButton.Click += new System.EventHandler(this.CursorButton_Click); 396 | // 397 | // SizeNSButton 398 | // 399 | this.SizeNSButton.AutoSizeButton = true; 400 | this.SizeNSButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 401 | this.SizeNSButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 402 | this.SizeNSButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 403 | this.SizeNSButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 404 | this.SizeNSButton.IconLeftMargin = 0; 405 | this.SizeNSButton.IconRightMargin = 0; 406 | this.SizeNSButton.IconSize = 21; 407 | this.SizeNSButton.Location = new System.Drawing.Point(548, 164); 408 | this.SizeNSButton.MaximumSize = new System.Drawing.Size(32, 32); 409 | this.SizeNSButton.MinimumSize = new System.Drawing.Size(32, 32); 410 | this.SizeNSButton.Name = "SizeNSButton"; 411 | this.SizeNSButton.Padding = new System.Windows.Forms.Padding(5); 412 | this.SizeNSButton.Size = new System.Drawing.Size(32, 32); 413 | this.SizeNSButton.TabIndex = 4; 414 | this.SizeNSButton.Text = "androidButton1"; 415 | this.SizeNSButton.Click += new System.EventHandler(this.CursorButton_Click); 416 | // 417 | // WaitButton 418 | // 419 | this.WaitButton.AutoSizeButton = true; 420 | this.WaitButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 421 | this.WaitButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 422 | this.WaitButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 423 | this.WaitButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 424 | this.WaitButton.IconLeftMargin = 0; 425 | this.WaitButton.IconRightMargin = 0; 426 | this.WaitButton.IconSize = 21; 427 | this.WaitButton.Location = new System.Drawing.Point(269, 164); 428 | this.WaitButton.MaximumSize = new System.Drawing.Size(32, 32); 429 | this.WaitButton.MinimumSize = new System.Drawing.Size(32, 32); 430 | this.WaitButton.Name = "WaitButton"; 431 | this.WaitButton.Padding = new System.Windows.Forms.Padding(5); 432 | this.WaitButton.Size = new System.Drawing.Size(32, 32); 433 | this.WaitButton.TabIndex = 4; 434 | this.WaitButton.Text = "androidButton1"; 435 | this.WaitButton.Click += new System.EventHandler(this.CursorButton_Click); 436 | // 437 | // SizeAllButton 438 | // 439 | this.SizeAllButton.AutoSizeButton = true; 440 | this.SizeAllButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 441 | this.SizeAllButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 442 | this.SizeAllButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 443 | this.SizeAllButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 444 | this.SizeAllButton.IconLeftMargin = 0; 445 | this.SizeAllButton.IconRightMargin = 0; 446 | this.SizeAllButton.IconSize = 21; 447 | this.SizeAllButton.Location = new System.Drawing.Point(798, 126); 448 | this.SizeAllButton.MaximumSize = new System.Drawing.Size(32, 32); 449 | this.SizeAllButton.MinimumSize = new System.Drawing.Size(32, 32); 450 | this.SizeAllButton.Name = "SizeAllButton"; 451 | this.SizeAllButton.Padding = new System.Windows.Forms.Padding(5); 452 | this.SizeAllButton.Size = new System.Drawing.Size(32, 32); 453 | this.SizeAllButton.TabIndex = 4; 454 | this.SizeAllButton.Text = "androidButton1"; 455 | this.SizeAllButton.Click += new System.EventHandler(this.CursorButton_Click); 456 | // 457 | // NoButton 458 | // 459 | this.NoButton.AutoSizeButton = true; 460 | this.NoButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 461 | this.NoButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 462 | this.NoButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 463 | this.NoButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 464 | this.NoButton.IconLeftMargin = 0; 465 | this.NoButton.IconRightMargin = 0; 466 | this.NoButton.IconSize = 21; 467 | this.NoButton.Location = new System.Drawing.Point(548, 126); 468 | this.NoButton.MaximumSize = new System.Drawing.Size(32, 32); 469 | this.NoButton.MinimumSize = new System.Drawing.Size(32, 32); 470 | this.NoButton.Name = "NoButton"; 471 | this.NoButton.Padding = new System.Windows.Forms.Padding(5); 472 | this.NoButton.Size = new System.Drawing.Size(32, 32); 473 | this.NoButton.TabIndex = 4; 474 | this.NoButton.Text = "androidButton1"; 475 | this.NoButton.Click += new System.EventHandler(this.CursorButton_Click); 476 | // 477 | // AppStartingButton 478 | // 479 | this.AppStartingButton.AutoSizeButton = true; 480 | this.AppStartingButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 481 | this.AppStartingButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 482 | this.AppStartingButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 483 | this.AppStartingButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 484 | this.AppStartingButton.IconLeftMargin = 0; 485 | this.AppStartingButton.IconRightMargin = 0; 486 | this.AppStartingButton.IconSize = 21; 487 | this.AppStartingButton.Location = new System.Drawing.Point(269, 126); 488 | this.AppStartingButton.MaximumSize = new System.Drawing.Size(32, 32); 489 | this.AppStartingButton.MinimumSize = new System.Drawing.Size(32, 32); 490 | this.AppStartingButton.Name = "AppStartingButton"; 491 | this.AppStartingButton.Padding = new System.Windows.Forms.Padding(5); 492 | this.AppStartingButton.Size = new System.Drawing.Size(32, 32); 493 | this.AppStartingButton.TabIndex = 4; 494 | this.AppStartingButton.Text = "androidButton1"; 495 | this.AppStartingButton.Click += new System.EventHandler(this.CursorButton_Click); 496 | // 497 | // SizeNESWButton 498 | // 499 | this.SizeNESWButton.AutoSizeButton = true; 500 | this.SizeNESWButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 501 | this.SizeNESWButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 502 | this.SizeNESWButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 503 | this.SizeNESWButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 504 | this.SizeNESWButton.IconLeftMargin = 0; 505 | this.SizeNESWButton.IconRightMargin = 0; 506 | this.SizeNESWButton.IconSize = 21; 507 | this.SizeNESWButton.Location = new System.Drawing.Point(798, 88); 508 | this.SizeNESWButton.MaximumSize = new System.Drawing.Size(32, 32); 509 | this.SizeNESWButton.MinimumSize = new System.Drawing.Size(32, 32); 510 | this.SizeNESWButton.Name = "SizeNESWButton"; 511 | this.SizeNESWButton.Padding = new System.Windows.Forms.Padding(5); 512 | this.SizeNESWButton.Size = new System.Drawing.Size(32, 32); 513 | this.SizeNESWButton.TabIndex = 4; 514 | this.SizeNESWButton.Text = "androidButton1"; 515 | this.SizeNESWButton.Click += new System.EventHandler(this.CursorButton_Click); 516 | // 517 | // NWPenButton 518 | // 519 | this.NWPenButton.AutoSizeButton = true; 520 | this.NWPenButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 521 | this.NWPenButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 522 | this.NWPenButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 523 | this.NWPenButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 524 | this.NWPenButton.IconLeftMargin = 0; 525 | this.NWPenButton.IconRightMargin = 0; 526 | this.NWPenButton.IconSize = 21; 527 | this.NWPenButton.Location = new System.Drawing.Point(548, 88); 528 | this.NWPenButton.MaximumSize = new System.Drawing.Size(32, 32); 529 | this.NWPenButton.MinimumSize = new System.Drawing.Size(32, 32); 530 | this.NWPenButton.Name = "NWPenButton"; 531 | this.NWPenButton.Padding = new System.Windows.Forms.Padding(5); 532 | this.NWPenButton.Size = new System.Drawing.Size(32, 32); 533 | this.NWPenButton.TabIndex = 4; 534 | this.NWPenButton.Text = "androidButton1"; 535 | this.NWPenButton.Click += new System.EventHandler(this.CursorButton_Click); 536 | // 537 | // HelpButton 538 | // 539 | this.HelpButton.AutoSizeButton = true; 540 | this.HelpButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 541 | this.HelpButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 542 | this.HelpButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 543 | this.HelpButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 544 | this.HelpButton.IconLeftMargin = 0; 545 | this.HelpButton.IconRightMargin = 0; 546 | this.HelpButton.IconSize = 21; 547 | this.HelpButton.Location = new System.Drawing.Point(269, 88); 548 | this.HelpButton.MaximumSize = new System.Drawing.Size(32, 32); 549 | this.HelpButton.MinimumSize = new System.Drawing.Size(32, 32); 550 | this.HelpButton.Name = "HelpButton"; 551 | this.HelpButton.Padding = new System.Windows.Forms.Padding(5); 552 | this.HelpButton.Size = new System.Drawing.Size(32, 32); 553 | this.HelpButton.TabIndex = 4; 554 | this.HelpButton.Text = "androidButton1"; 555 | this.HelpButton.Click += new System.EventHandler(this.CursorButton_Click); 556 | // 557 | // SizeNWSEButton 558 | // 559 | this.SizeNWSEButton.AutoSizeButton = true; 560 | this.SizeNWSEButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 561 | this.SizeNWSEButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 562 | this.SizeNWSEButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 563 | this.SizeNWSEButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 564 | this.SizeNWSEButton.IconLeftMargin = 0; 565 | this.SizeNWSEButton.IconRightMargin = 0; 566 | this.SizeNWSEButton.IconSize = 21; 567 | this.SizeNWSEButton.Location = new System.Drawing.Point(798, 50); 568 | this.SizeNWSEButton.MaximumSize = new System.Drawing.Size(32, 32); 569 | this.SizeNWSEButton.MinimumSize = new System.Drawing.Size(32, 32); 570 | this.SizeNWSEButton.Name = "SizeNWSEButton"; 571 | this.SizeNWSEButton.Padding = new System.Windows.Forms.Padding(5); 572 | this.SizeNWSEButton.Size = new System.Drawing.Size(32, 32); 573 | this.SizeNWSEButton.TabIndex = 4; 574 | this.SizeNWSEButton.Text = "androidButton1"; 575 | this.SizeNWSEButton.Click += new System.EventHandler(this.CursorButton_Click); 576 | // 577 | // IBeamButton 578 | // 579 | this.IBeamButton.AutoSizeButton = true; 580 | this.IBeamButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 581 | this.IBeamButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 582 | this.IBeamButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 583 | this.IBeamButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 584 | this.IBeamButton.IconLeftMargin = 0; 585 | this.IBeamButton.IconRightMargin = 0; 586 | this.IBeamButton.IconSize = 21; 587 | this.IBeamButton.Location = new System.Drawing.Point(548, 50); 588 | this.IBeamButton.MaximumSize = new System.Drawing.Size(32, 32); 589 | this.IBeamButton.MinimumSize = new System.Drawing.Size(32, 32); 590 | this.IBeamButton.Name = "IBeamButton"; 591 | this.IBeamButton.Padding = new System.Windows.Forms.Padding(5); 592 | this.IBeamButton.Size = new System.Drawing.Size(32, 32); 593 | this.IBeamButton.TabIndex = 4; 594 | this.IBeamButton.Text = "androidButton1"; 595 | this.IBeamButton.Click += new System.EventHandler(this.CursorButton_Click); 596 | // 597 | // ArrowButton 598 | // 599 | this.ArrowButton.AutoSizeButton = true; 600 | this.ArrowButton.ButtonType = AndroidUI.HolyLight.AndroidButton.AndroidType.Icon; 601 | this.ArrowButton.Font = new System.Drawing.Font("Roboto", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 602 | this.ArrowButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); 603 | this.ArrowButton.Icon = global::CursorInstallerWizard.Properties.Resources._4_collections_collection; 604 | this.ArrowButton.IconLeftMargin = 0; 605 | this.ArrowButton.IconRightMargin = 0; 606 | this.ArrowButton.IconSize = 21; 607 | this.ArrowButton.Location = new System.Drawing.Point(269, 50); 608 | this.ArrowButton.MaximumSize = new System.Drawing.Size(32, 32); 609 | this.ArrowButton.MinimumSize = new System.Drawing.Size(32, 32); 610 | this.ArrowButton.Name = "ArrowButton"; 611 | this.ArrowButton.Padding = new System.Windows.Forms.Padding(5); 612 | this.ArrowButton.Size = new System.Drawing.Size(32, 32); 613 | this.ArrowButton.TabIndex = 4; 614 | this.ArrowButton.Text = "ArrowButton"; 615 | this.ArrowButton.Click += new System.EventHandler(this.CursorButton_Click); 616 | // 617 | // PackageName 618 | // 619 | this.PackageName.Font = new System.Drawing.Font("Roboto", 11F); 620 | this.PackageName.Location = new System.Drawing.Point(145, 6); 621 | this.PackageName.Name = "PackageName"; 622 | this.PackageName.Padding = new System.Windows.Forms.Padding(8, 2, 8, 5); 623 | this.PackageName.Size = new System.Drawing.Size(250, 25); 624 | this.PackageName.TabIndex = 3; 625 | this.PackageName.KeyUp += new System.Windows.Forms.KeyEventHandler(this.PackageName_KeyUp); 626 | // 627 | // Help 628 | // 629 | this.Help.CursorPath = null; 630 | this.Help.Location = new System.Drawing.Point(12, 88); 631 | this.Help.Name = "Help"; 632 | this.Help.Padding = new System.Windows.Forms.Padding(3); 633 | this.Help.Size = new System.Drawing.Size(32, 32); 634 | this.Help.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 635 | this.Help.TabIndex = 0; 636 | this.Help.TabStop = false; 637 | // 638 | // AppStarting 639 | // 640 | this.AppStarting.CursorPath = null; 641 | this.AppStarting.Location = new System.Drawing.Point(12, 126); 642 | this.AppStarting.Name = "AppStarting"; 643 | this.AppStarting.Padding = new System.Windows.Forms.Padding(3); 644 | this.AppStarting.Size = new System.Drawing.Size(32, 32); 645 | this.AppStarting.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 646 | this.AppStarting.TabIndex = 0; 647 | this.AppStarting.TabStop = false; 648 | // 649 | // SizeAll 650 | // 651 | this.SizeAll.CursorPath = null; 652 | this.SizeAll.Location = new System.Drawing.Point(586, 126); 653 | this.SizeAll.Name = "SizeAll"; 654 | this.SizeAll.Padding = new System.Windows.Forms.Padding(3); 655 | this.SizeAll.Size = new System.Drawing.Size(32, 32); 656 | this.SizeAll.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 657 | this.SizeAll.TabIndex = 0; 658 | this.SizeAll.TabStop = false; 659 | // 660 | // No 661 | // 662 | this.No.CursorPath = null; 663 | this.No.Location = new System.Drawing.Point(307, 126); 664 | this.No.Name = "No"; 665 | this.No.Padding = new System.Windows.Forms.Padding(3); 666 | this.No.Size = new System.Drawing.Size(32, 32); 667 | this.No.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 668 | this.No.TabIndex = 0; 669 | this.No.TabStop = false; 670 | // 671 | // Hand 672 | // 673 | this.Hand.CursorPath = null; 674 | this.Hand.Location = new System.Drawing.Point(586, 202); 675 | this.Hand.Name = "Hand"; 676 | this.Hand.Padding = new System.Windows.Forms.Padding(3); 677 | this.Hand.Size = new System.Drawing.Size(32, 32); 678 | this.Hand.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 679 | this.Hand.TabIndex = 0; 680 | this.Hand.TabStop = false; 681 | // 682 | // SizeWE 683 | // 684 | this.SizeWE.CursorPath = null; 685 | this.SizeWE.Location = new System.Drawing.Point(307, 202); 686 | this.SizeWE.Name = "SizeWE"; 687 | this.SizeWE.Padding = new System.Windows.Forms.Padding(3); 688 | this.SizeWE.Size = new System.Drawing.Size(32, 32); 689 | this.SizeWE.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 690 | this.SizeWE.TabIndex = 0; 691 | this.SizeWE.TabStop = false; 692 | // 693 | // NWPen 694 | // 695 | this.NWPen.CursorPath = null; 696 | this.NWPen.Location = new System.Drawing.Point(307, 88); 697 | this.NWPen.Name = "NWPen"; 698 | this.NWPen.Padding = new System.Windows.Forms.Padding(3); 699 | this.NWPen.Size = new System.Drawing.Size(32, 32); 700 | this.NWPen.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 701 | this.NWPen.TabIndex = 0; 702 | this.NWPen.TabStop = false; 703 | // 704 | // Wait 705 | // 706 | this.Wait.CursorPath = null; 707 | this.Wait.Location = new System.Drawing.Point(12, 164); 708 | this.Wait.Name = "Wait"; 709 | this.Wait.Padding = new System.Windows.Forms.Padding(3); 710 | this.Wait.Size = new System.Drawing.Size(32, 32); 711 | this.Wait.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 712 | this.Wait.TabIndex = 0; 713 | this.Wait.TabStop = false; 714 | // 715 | // SizeNS 716 | // 717 | this.SizeNS.CursorPath = null; 718 | this.SizeNS.Location = new System.Drawing.Point(307, 164); 719 | this.SizeNS.Name = "SizeNS"; 720 | this.SizeNS.Padding = new System.Windows.Forms.Padding(3); 721 | this.SizeNS.Size = new System.Drawing.Size(32, 32); 722 | this.SizeNS.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 723 | this.SizeNS.TabIndex = 0; 724 | this.SizeNS.TabStop = false; 725 | // 726 | // SizeNESW 727 | // 728 | this.SizeNESW.CursorPath = null; 729 | this.SizeNESW.Location = new System.Drawing.Point(586, 88); 730 | this.SizeNESW.Name = "SizeNESW"; 731 | this.SizeNESW.Padding = new System.Windows.Forms.Padding(3); 732 | this.SizeNESW.Size = new System.Drawing.Size(32, 32); 733 | this.SizeNESW.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 734 | this.SizeNESW.TabIndex = 0; 735 | this.SizeNESW.TabStop = false; 736 | // 737 | // UpArrow 738 | // 739 | this.UpArrow.CursorPath = null; 740 | this.UpArrow.Location = new System.Drawing.Point(586, 164); 741 | this.UpArrow.Name = "UpArrow"; 742 | this.UpArrow.Padding = new System.Windows.Forms.Padding(3); 743 | this.UpArrow.Size = new System.Drawing.Size(32, 32); 744 | this.UpArrow.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 745 | this.UpArrow.TabIndex = 0; 746 | this.UpArrow.TabStop = false; 747 | // 748 | // IBeam 749 | // 750 | this.IBeam.CursorPath = null; 751 | this.IBeam.Location = new System.Drawing.Point(307, 50); 752 | this.IBeam.Name = "IBeam"; 753 | this.IBeam.Padding = new System.Windows.Forms.Padding(3); 754 | this.IBeam.Size = new System.Drawing.Size(32, 32); 755 | this.IBeam.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 756 | this.IBeam.TabIndex = 0; 757 | this.IBeam.TabStop = false; 758 | // 759 | // SizeNWSE 760 | // 761 | this.SizeNWSE.CursorPath = null; 762 | this.SizeNWSE.Location = new System.Drawing.Point(586, 50); 763 | this.SizeNWSE.Name = "SizeNWSE"; 764 | this.SizeNWSE.Padding = new System.Windows.Forms.Padding(3); 765 | this.SizeNWSE.Size = new System.Drawing.Size(32, 32); 766 | this.SizeNWSE.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 767 | this.SizeNWSE.TabIndex = 0; 768 | this.SizeNWSE.TabStop = false; 769 | // 770 | // Crosshair 771 | // 772 | this.Crosshair.CursorPath = null; 773 | this.Crosshair.Location = new System.Drawing.Point(12, 202); 774 | this.Crosshair.Name = "Crosshair"; 775 | this.Crosshair.Padding = new System.Windows.Forms.Padding(3); 776 | this.Crosshair.Size = new System.Drawing.Size(32, 32); 777 | this.Crosshair.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 778 | this.Crosshair.TabIndex = 0; 779 | this.Crosshair.TabStop = false; 780 | // 781 | // Arrow 782 | // 783 | this.Arrow.CursorPath = null; 784 | this.Arrow.Location = new System.Drawing.Point(12, 50); 785 | this.Arrow.Name = "Arrow"; 786 | this.Arrow.Padding = new System.Windows.Forms.Padding(3); 787 | this.Arrow.Size = new System.Drawing.Size(32, 32); 788 | this.Arrow.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; 789 | this.Arrow.TabIndex = 0; 790 | this.Arrow.TabStop = false; 791 | // 792 | // Form1 793 | // 794 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 795 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 796 | this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249))))); 797 | this.ClientSize = new System.Drawing.Size(845, 327); 798 | this.Controls.Add(this.Cancel); 799 | this.Controls.Add(this.Submit); 800 | this.Controls.Add(this.HandButton); 801 | this.Controls.Add(this.SizeWEButton); 802 | this.Controls.Add(this.CrosshairButton); 803 | this.Controls.Add(this.UpArrowButton); 804 | this.Controls.Add(this.SizeNSButton); 805 | this.Controls.Add(this.WaitButton); 806 | this.Controls.Add(this.SizeAllButton); 807 | this.Controls.Add(this.NoButton); 808 | this.Controls.Add(this.AppStartingButton); 809 | this.Controls.Add(this.SizeNESWButton); 810 | this.Controls.Add(this.NWPenButton); 811 | this.Controls.Add(this.HelpButton); 812 | this.Controls.Add(this.SizeNWSEButton); 813 | this.Controls.Add(this.IBeamButton); 814 | this.Controls.Add(this.ArrowButton); 815 | this.Controls.Add(this.PackageName); 816 | this.Controls.Add(this.label11); 817 | this.Controls.Add(this.label6); 818 | this.Controls.Add(this.label10); 819 | this.Controls.Add(this.label5); 820 | this.Controls.Add(this.label9); 821 | this.Controls.Add(this.label4); 822 | this.Controls.Add(this.label8); 823 | this.Controls.Add(this.label3); 824 | this.Controls.Add(this.label16); 825 | this.Controls.Add(this.label15); 826 | this.Controls.Add(this.label14); 827 | this.Controls.Add(this.label13); 828 | this.Controls.Add(this.label12); 829 | this.Controls.Add(this.label7); 830 | this.Controls.Add(this.label2); 831 | this.Controls.Add(this.label1); 832 | this.Controls.Add(this.Help); 833 | this.Controls.Add(this.AppStarting); 834 | this.Controls.Add(this.SizeAll); 835 | this.Controls.Add(this.No); 836 | this.Controls.Add(this.Hand); 837 | this.Controls.Add(this.SizeWE); 838 | this.Controls.Add(this.NWPen); 839 | this.Controls.Add(this.Wait); 840 | this.Controls.Add(this.SizeNS); 841 | this.Controls.Add(this.SizeNESW); 842 | this.Controls.Add(this.UpArrow); 843 | this.Controls.Add(this.IBeam); 844 | this.Controls.Add(this.SizeNWSE); 845 | this.Controls.Add(this.Crosshair); 846 | this.Controls.Add(this.Arrow); 847 | this.MaximumSize = new System.Drawing.Size(853, 354); 848 | this.MinimumSize = new System.Drawing.Size(853, 354); 849 | this.Name = "Form1"; 850 | this.Text = "Cursor Installer Wizard"; 851 | this.Load += new System.EventHandler(this.Form1_Load); 852 | ((System.ComponentModel.ISupportInitialize)(this.Help)).EndInit(); 853 | ((System.ComponentModel.ISupportInitialize)(this.AppStarting)).EndInit(); 854 | ((System.ComponentModel.ISupportInitialize)(this.SizeAll)).EndInit(); 855 | ((System.ComponentModel.ISupportInitialize)(this.No)).EndInit(); 856 | ((System.ComponentModel.ISupportInitialize)(this.Hand)).EndInit(); 857 | ((System.ComponentModel.ISupportInitialize)(this.SizeWE)).EndInit(); 858 | ((System.ComponentModel.ISupportInitialize)(this.NWPen)).EndInit(); 859 | ((System.ComponentModel.ISupportInitialize)(this.Wait)).EndInit(); 860 | ((System.ComponentModel.ISupportInitialize)(this.SizeNS)).EndInit(); 861 | ((System.ComponentModel.ISupportInitialize)(this.SizeNESW)).EndInit(); 862 | ((System.ComponentModel.ISupportInitialize)(this.UpArrow)).EndInit(); 863 | ((System.ComponentModel.ISupportInitialize)(this.IBeam)).EndInit(); 864 | ((System.ComponentModel.ISupportInitialize)(this.SizeNWSE)).EndInit(); 865 | ((System.ComponentModel.ISupportInitialize)(this.Crosshair)).EndInit(); 866 | ((System.ComponentModel.ISupportInitialize)(this.Arrow)).EndInit(); 867 | this.ResumeLayout(false); 868 | this.PerformLayout(); 869 | 870 | } 871 | 872 | #endregion 873 | 874 | private CustomPictureBox Arrow; 875 | private CustomPictureBox Crosshair; 876 | private CustomPictureBox IBeam; 877 | private CustomPictureBox SizeNS; 878 | private CustomPictureBox SizeWE; 879 | private CustomPictureBox SizeNWSE; 880 | private CustomPictureBox SizeNESW; 881 | private CustomPictureBox NWPen; 882 | private CustomPictureBox No; 883 | private CustomPictureBox SizeAll; 884 | private CustomPictureBox UpArrow; 885 | private CustomPictureBox Wait; 886 | private CustomPictureBox Hand; 887 | private CustomPictureBox AppStarting; 888 | private CustomPictureBox Help; 889 | private System.Windows.Forms.Label label1; 890 | private AndroidUI.HolyLight.AndroidTextField PackageName; 891 | private System.Windows.Forms.Label label2; 892 | private System.Windows.Forms.Label label3; 893 | private System.Windows.Forms.Label label4; 894 | private System.Windows.Forms.Label label5; 895 | private System.Windows.Forms.Label label6; 896 | private System.Windows.Forms.Label label7; 897 | private System.Windows.Forms.Label label8; 898 | private System.Windows.Forms.Label label9; 899 | private System.Windows.Forms.Label label10; 900 | private System.Windows.Forms.Label label11; 901 | private System.Windows.Forms.Label label12; 902 | private System.Windows.Forms.Label label13; 903 | private System.Windows.Forms.Label label14; 904 | private System.Windows.Forms.Label label15; 905 | private System.Windows.Forms.Label label16; 906 | private AndroidUI.HolyLight.AndroidButton ArrowButton; 907 | private AndroidUI.HolyLight.AndroidButton HelpButton; 908 | private AndroidUI.HolyLight.AndroidButton AppStartingButton; 909 | private AndroidUI.HolyLight.AndroidButton WaitButton; 910 | private AndroidUI.HolyLight.AndroidButton CrosshairButton; 911 | private AndroidUI.HolyLight.AndroidButton IBeamButton; 912 | private AndroidUI.HolyLight.AndroidButton NWPenButton; 913 | private AndroidUI.HolyLight.AndroidButton NoButton; 914 | private AndroidUI.HolyLight.AndroidButton SizeNSButton; 915 | private AndroidUI.HolyLight.AndroidButton SizeWEButton; 916 | private AndroidUI.HolyLight.AndroidButton SizeNWSEButton; 917 | private AndroidUI.HolyLight.AndroidButton SizeNESWButton; 918 | private AndroidUI.HolyLight.AndroidButton SizeAllButton; 919 | private AndroidUI.HolyLight.AndroidButton UpArrowButton; 920 | private AndroidUI.HolyLight.AndroidButton HandButton; 921 | private System.Windows.Forms.OpenFileDialog openFileDialog1; 922 | private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1; 923 | private AndroidUI.HolyLight.AndroidButton Submit; 924 | private AndroidUI.HolyLight.AndroidButton Cancel; 925 | 926 | 927 | } 928 | } 929 | 930 | --------------------------------------------------------------------------------