From 704a5659188c2e62ff917fd6265794372bc626fb Mon Sep 17 00:00:00 2001 From: Alee14 Date: Sat, 12 May 2018 23:04:54 -0400 Subject: someone needs to work on the window manager --- PortEngine/PortEngine.csproj | 59 ++++++++++++++++ PortEngine/Properties/AssemblyInfo.cs | 36 ++++++++++ PortEngine/WindowManager/WM.Designer.cs | 60 ++++++++++++++++ PortEngine/WindowManager/WM.cs | 20 ++++++ PortEngine/WindowManager/WM.resx | 120 ++++++++++++++++++++++++++++++++ Project Ports.sln | 6 ++ Project Ports/Desktop.Designer.cs | 44 ++++++------ Project Ports/MainMenu.Designer.cs | 4 +- 8 files changed, 325 insertions(+), 24 deletions(-) create mode 100644 PortEngine/PortEngine.csproj create mode 100644 PortEngine/Properties/AssemblyInfo.cs create mode 100644 PortEngine/WindowManager/WM.Designer.cs create mode 100644 PortEngine/WindowManager/WM.cs create mode 100644 PortEngine/WindowManager/WM.resx diff --git a/PortEngine/PortEngine.csproj b/PortEngine/PortEngine.csproj new file mode 100644 index 0000000..ed37411 --- /dev/null +++ b/PortEngine/PortEngine.csproj @@ -0,0 +1,59 @@ + + + + + Debug + AnyCPU + {C1B21B60-7CCC-42FC-83AA-B41644FAA952} + Library + Properties + PortEngine + PortEngine + v4.6.1 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + WM.cs + + + + + WM.cs + + + + \ No newline at end of file diff --git a/PortEngine/Properties/AssemblyInfo.cs b/PortEngine/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..49b5691 --- /dev/null +++ b/PortEngine/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("PortEngine")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("PortEngine")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("c1b21b60-7ccc-42fc-83aa-b41644faa952")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/PortEngine/WindowManager/WM.Designer.cs b/PortEngine/WindowManager/WM.Designer.cs new file mode 100644 index 0000000..400de7d --- /dev/null +++ b/PortEngine/WindowManager/WM.Designer.cs @@ -0,0 +1,60 @@ +namespace PortEngine.WindowManager +{ + partial class WM + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.panel1.Location = new System.Drawing.Point(-1, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(407, 32); + this.panel1.TabIndex = 0; + // + // WM + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.White; + this.ClientSize = new System.Drawing.Size(405, 349); + this.Controls.Add(this.panel1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "WM"; + this.Text = "WM"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + } +} \ No newline at end of file diff --git a/PortEngine/WindowManager/WM.cs b/PortEngine/WindowManager/WM.cs new file mode 100644 index 0000000..5f7f23c --- /dev/null +++ b/PortEngine/WindowManager/WM.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PortEngine.WindowManager +{ + public partial class WM : Form + { + public WM() + { + InitializeComponent(); + } + } +} diff --git a/PortEngine/WindowManager/WM.resx b/PortEngine/WindowManager/WM.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PortEngine/WindowManager/WM.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Project Ports.sln b/Project Ports.sln index 731e43c..97db25d 100644 --- a/Project Ports.sln +++ b/Project Ports.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.27428.2043 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project Ports", "Project Ports\Project Ports.csproj", "{7FF89341-BE42-4AE1-B53E-F9FA4104D30F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PortEngine", "PortEngine\PortEngine.csproj", "{C1B21B60-7CCC-42FC-83AA-B41644FAA952}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {7FF89341-BE42-4AE1-B53E-F9FA4104D30F}.Debug|Any CPU.Build.0 = Debug|Any CPU {7FF89341-BE42-4AE1-B53E-F9FA4104D30F}.Release|Any CPU.ActiveCfg = Release|Any CPU {7FF89341-BE42-4AE1-B53E-F9FA4104D30F}.Release|Any CPU.Build.0 = Release|Any CPU + {C1B21B60-7CCC-42FC-83AA-B41644FAA952}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C1B21B60-7CCC-42FC-83AA-B41644FAA952}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C1B21B60-7CCC-42FC-83AA-B41644FAA952}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C1B21B60-7CCC-42FC-83AA-B41644FAA952}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Project Ports/Desktop.Designer.cs b/Project Ports/Desktop.Designer.cs index 90496dd..730738c 100644 --- a/Project Ports/Desktop.Designer.cs +++ b/Project Ports/Desktop.Designer.cs @@ -30,12 +30,12 @@ { this.appMenu = new System.Windows.Forms.MenuStrip(); this.menuToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ltime = new System.Windows.Forms.Label(); this.programsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.noProgramsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.shutdownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.shutdownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.ltime = new System.Windows.Forms.Label(); this.appMenu.SuspendLayout(); this.SuspendLayout(); // @@ -63,50 +63,50 @@ this.menuToolStripMenuItem.Size = new System.Drawing.Size(51, 20); this.menuToolStripMenuItem.Text = "Menu"; // - // ltime - // - this.ltime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.ltime.AutoSize = true; - this.ltime.BackColor = System.Drawing.Color.Silver; - this.ltime.ForeColor = System.Drawing.Color.Black; - this.ltime.Location = new System.Drawing.Point(753, 7); - this.ltime.Name = "ltime"; - this.ltime.Size = new System.Drawing.Size(35, 13); - this.ltime.TabIndex = 1; - this.ltime.Text = "label1"; - this.ltime.Click += new System.EventHandler(this.label1_Click); - // // programsToolStripMenuItem // this.programsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.noProgramsToolStripMenuItem}); this.programsToolStripMenuItem.Name = "programsToolStripMenuItem"; - this.programsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.programsToolStripMenuItem.Size = new System.Drawing.Size(131, 22); this.programsToolStripMenuItem.Text = "Programs"; // // noProgramsToolStripMenuItem // this.noProgramsToolStripMenuItem.Name = "noProgramsToolStripMenuItem"; - this.noProgramsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.noProgramsToolStripMenuItem.Size = new System.Drawing.Size(156, 22); this.noProgramsToolStripMenuItem.Text = "No programs :("; // // settingsToolStripMenuItem // this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; - this.settingsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.settingsToolStripMenuItem.Size = new System.Drawing.Size(131, 22); this.settingsToolStripMenuItem.Text = "Settings"; // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(128, 6); + // // shutdownToolStripMenuItem // this.shutdownToolStripMenuItem.Name = "shutdownToolStripMenuItem"; - this.shutdownToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.shutdownToolStripMenuItem.Size = new System.Drawing.Size(131, 22); this.shutdownToolStripMenuItem.Text = "Shutdown"; this.shutdownToolStripMenuItem.Click += new System.EventHandler(this.shutdownToolStripMenuItem_Click); // - // toolStripSeparator1 + // ltime // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(177, 6); + this.ltime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.ltime.AutoSize = true; + this.ltime.BackColor = System.Drawing.Color.Silver; + this.ltime.ForeColor = System.Drawing.Color.Black; + this.ltime.Location = new System.Drawing.Point(753, 7); + this.ltime.Name = "ltime"; + this.ltime.Size = new System.Drawing.Size(35, 13); + this.ltime.TabIndex = 1; + this.ltime.Text = "label1"; + this.ltime.Click += new System.EventHandler(this.label1_Click); // // Desktop // diff --git a/Project Ports/MainMenu.Designer.cs b/Project Ports/MainMenu.Designer.cs index 765f981..cfe4607 100644 --- a/Project Ports/MainMenu.Designer.cs +++ b/Project Ports/MainMenu.Designer.cs @@ -104,10 +104,10 @@ this.webBrowser1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.webBrowser1.Location = new System.Drawing.Point(298, 29); + this.webBrowser1.Location = new System.Drawing.Point(300, 32); this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20); this.webBrowser1.Name = "webBrowser1"; - this.webBrowser1.Size = new System.Drawing.Size(891, 591); + this.webBrowser1.Size = new System.Drawing.Size(891, 571); this.webBrowser1.TabIndex = 5; this.webBrowser1.Url = new System.Uri("https://aleecorp.github.io/project-ports", System.UriKind.Absolute); // -- cgit v1.2.3