OSDN Git Service

デザインの変更,自動サイズ調整への対応
authorkimikage <kimikage_ceo@hotmail.com>
Wed, 5 Jan 2011 18:59:34 +0000 (03:59 +0900)
committerkimikage <kimikage_ceo@hotmail.com>
Wed, 5 Jan 2011 18:59:34 +0000 (03:59 +0900)
Fugashi.sln
Fugashi/BitSwitch.Designer.cs
Fugashi/BitSwitch.cs
Fugashi/BitSwitch.resx
Fugashi/BitSwitches4.Designer.cs
Fugashi/BitSwitches4.cs
Fugashi/BitSwitches4.resx
Fugashi/Fugashi.csproj
Fugashi/MainForm.Designer.cs
Fugashi/MainForm.cs
Fugashi/Properties/AssemblyInfo.cs

index e130cbe..1ec2aff 100755 (executable)
@@ -6,13 +6,19 @@ EndProject
 Global\r
        GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
                Debug|Any CPU = Debug|Any CPU\r
+               Debug|x86 = Debug|x86\r
                Release|Any CPU = Release|Any CPU\r
+               Release|x86 = Release|x86\r
        EndGlobalSection\r
        GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
                {2BA38862-D113-4482-B0FF-B3207F9A4BC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
                {2BA38862-D113-4482-B0FF-B3207F9A4BC9}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+               {2BA38862-D113-4482-B0FF-B3207F9A4BC9}.Debug|x86.ActiveCfg = Release|Any CPU\r
+               {2BA38862-D113-4482-B0FF-B3207F9A4BC9}.Debug|x86.Build.0 = Release|Any CPU\r
                {2BA38862-D113-4482-B0FF-B3207F9A4BC9}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
                {2BA38862-D113-4482-B0FF-B3207F9A4BC9}.Release|Any CPU.Build.0 = Release|Any CPU\r
+               {2BA38862-D113-4482-B0FF-B3207F9A4BC9}.Release|x86.ActiveCfg = Release|x86\r
+               {2BA38862-D113-4482-B0FF-B3207F9A4BC9}.Release|x86.Build.0 = Release|x86\r
        EndGlobalSection\r
        GlobalSection(SolutionProperties) = preSolution\r
                HideSolutionNode = FALSE\r
index 92986c9..37c2a74 100755 (executable)
@@ -47,6 +47,7 @@ namespace Fugashi
             this.label.ForeColor = System.Drawing.Color.SteelBlue;\r
             this.label.Location = new System.Drawing.Point(0, 0);\r
             this.label.Name = "label";\r
+            this.label.Padding = new System.Windows.Forms.Padding(1, 0, 0, 0);\r
             this.label.Size = new System.Drawing.Size(12, 24);\r
             this.label.TabIndex = 0;\r
             this.label.Text = "0";\r
@@ -59,9 +60,13 @@ namespace Fugashi
             // \r
             // BitSwitch\r
             // \r
+            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);\r
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
             this.BackColor = System.Drawing.Color.Transparent;\r
             this.Controls.Add(this.label);\r
+            this.Name = "BitSwitch";\r
             this.Size = new System.Drawing.Size(12, 24);\r
+            this.SizeChanged += new System.EventHandler(this.BitSwitch_SizeChanged);\r
             this.ResumeLayout(false);\r
 \r
         }\r
index 7a25e5a..8aaf987 100755 (executable)
@@ -12,12 +12,17 @@ using System.Drawing;
 using System.Data;\r
 using System.Text;\r
 using System.Windows.Forms;\r
+using System.Drawing.Drawing2D;\r
 \r
 namespace Fugashi\r
 {\r
     public partial class BitSwitch : UserControl\r
     {\r
         private bool state;\r
+        private bool isExponential;\r
+        private static Bitmap normal;\r
+        private static Bitmap exponent;\r
+        private static Bitmap hover;\r
 \r
         [Category("プロパティ変更")]\r
         public event System.EventHandler StateChanged;\r
@@ -46,14 +51,92 @@ namespace Fugashi
             set;\r
         }\r
 \r
+        public bool IsExponential\r
+        {\r
+            get\r
+            {\r
+                return isExponential;\r
+            }\r
+            set\r
+            {\r
+                isExponential = value;\r
+                if (BackgroundImage != hover)\r
+                {\r
+                    BackgroundImage = isExponential ? exponent : normal;\r
+                    Update();\r
+                }\r
+            }\r
+        }\r
+\r
         public BitSwitch()\r
         {\r
             InitializeComponent();\r
             State = false;\r
             if (BorderColor.IsEmpty)\r
             {\r
-                BorderColor = Color.LightSteelBlue;\r
+                BorderColor = Color.FromArgb(0xD5, 0xDF, 0xE5);\r
+            }\r
+\r
+            CreateNormalBackgroundImage();\r
+            CreateHoverBackgroundImage();\r
+            CreateExponentBackgroundImage();\r
+            BackgroundImage = normal;\r
+        }\r
+\r
+        private void CreateNormalBackgroundImage()\r
+        {\r
+            if (normal is Bitmap && normal.Height == Height)\r
+            {\r
+                return;\r
             }\r
+            normal = CreateBackGroundImage(Color.White, Color.Lavender,\r
+                                            Color.Gainsboro, Color.Lavender);\r
+        }\r
+\r
+        private void CreateHoverBackgroundImage()\r
+        {\r
+            if (hover is Bitmap && hover.Height == Height)\r
+            {\r
+                return;\r
+            }\r
+            hover = CreateBackGroundImage(Color.LemonChiffon, Color.Gold,\r
+                                            Color.Orange, Color.DarkOrange);\r
+            \r
+        }\r
+\r
+        private void CreateExponentBackgroundImage()\r
+        {\r
+            if (exponent is Bitmap && exponent.Height == Height)\r
+            {\r
+                return;\r
+            }\r
+            exponent = CreateBackGroundImage(Color.LemonChiffon, Color.Bisque,\r
+                                            Color.NavajoWhite, Color.Bisque);\r
+        }\r
+\r
+        private Bitmap CreateBackGroundImage(\r
+            Color hilight, Color light, Color face, Color dark)\r
+        {\r
+            Bitmap bmp  = new Bitmap(Width, Height);\r
+            Graphics g = Graphics.FromImage(bmp);\r
+            int border = (int)(Height * 0.48);\r
+            Rectangle upper = new Rectangle(0, 0, Width, border);\r
+            Rectangle lower = new Rectangle(0, border, Width, Height);\r
+            LinearGradientBrush brushL = \r
+                                new LinearGradientBrush(upper, hilight, light,\r
+                                                LinearGradientMode.Vertical);\r
+            LinearGradientBrush brushD = \r
+                                    new LinearGradientBrush(lower, face, dark,\r
+                                                LinearGradientMode.Vertical);\r
+            Pen edge = new Pen(hilight, 1);\r
+            g.FillRectangle(brushL, upper);\r
+            g.FillRectangle(brushD, lower);\r
+            g.DrawRectangle(edge, 1, 1, Width - 1, Height - 3);\r
+\r
+            brushL.Dispose();\r
+            brushD.Dispose();\r
+            g.Dispose();\r
+            return bmp;\r
         }\r
 \r
         private void label_Click(object sender, EventArgs e)\r
@@ -64,13 +147,13 @@ namespace Fugashi
 \r
         private void label_MouseLeave(object sender, EventArgs e)\r
         {\r
-            label.BackColor = Color.Transparent;\r
+            BackgroundImage = IsExponential? exponent : normal;\r
             Update();\r
         }\r
 \r
         private void label_MouseEnter(object sender, EventArgs e)\r
         {\r
-            label.BackColor = Color.Orange;\r
+            BackgroundImage = hover;\r
             Update();\r
         }\r
 \r
@@ -78,11 +161,13 @@ namespace Fugashi
         {\r
             if (!Enabled)\r
             {\r
-                e.Graphics.FillRectangle(Brushes.LightGray, 0, 0, Width, Height);\r
+                e.Graphics.FillRectangle(\r
+                    Brushes.LightGray, 0, 0, Width, Height);\r
             }\r
             using (Pen p = new Pen(BorderColor, 1))\r
             {\r
-                int width = (Margin.Right != 0) ? Width - 1 : Width;\r
+                bool rightEnd = ((Anchor & AnchorStyles.Right) == 0);\r
+                int width = rightEnd ? Width - 1 : Width;\r
                 e.Graphics.DrawRectangle(p, 0, 0, width, Height - 1);\r
             }\r
         }\r
@@ -91,8 +176,17 @@ namespace Fugashi
         {\r
             this.state = state;\r
             label.Text = state ? "1" : "0";\r
-            label.ForeColor = state ? Color.DarkCyan : Color.SteelBlue;\r
-            label.Font = new Font(label.Font, state ? FontStyle.Bold : FontStyle.Regular);            \r
+            label.ForeColor = state ? Color.DarkSlateGray : Color.SteelBlue;\r
+            label.Font = new Font(label.Font, \r
+                                state ? FontStyle.Bold : FontStyle.Regular);\r
+        }\r
+\r
+        private void BitSwitch_SizeChanged(object sender, EventArgs e)\r
+        {\r
+            CreateNormalBackgroundImage();\r
+            CreateHoverBackgroundImage();\r
+            CreateExponentBackgroundImage();\r
+            BackgroundImage = normal;\r
         }\r
     }\r
 }\r
index 981eaeb..ff31a6d 100755 (executable)
   <resheader name="writer">\r
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </resheader>\r
-  <metadata name="label.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">\r
-    <value>18, 16</value>\r
-  </metadata>\r
-  <metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">\r
-    <value>False</value>\r
-  </metadata>\r
 </root>
\ No newline at end of file
index 0d5b49d..82cb9b9 100755 (executable)
         /// </summary>\r
         private void InitializeComponent()\r
         {\r
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BitSwitches4));\r
             this.label = new System.Windows.Forms.Label();\r
+            this.table = new System.Windows.Forms.TableLayoutPanel();\r
+            this.b3 = new Fugashi.BitSwitch();\r
+            this.b2 = new Fugashi.BitSwitch();\r
             this.b0 = new Fugashi.BitSwitch();\r
             this.b1 = new Fugashi.BitSwitch();\r
-            this.b2 = new Fugashi.BitSwitch();\r
-            this.b3 = new Fugashi.BitSwitch();\r
+            this.table.SuspendLayout();\r
             this.SuspendLayout();\r
             // \r
             // label\r
             // \r
+            this.label.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
             this.label.Font = new System.Drawing.Font("Tahoma", 8F);\r
             this.label.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.label.Location = new System.Drawing.Point(25, 0);\r
+            this.label.Location = new System.Drawing.Point(33, 0);\r
             this.label.Name = "label";\r
-            this.label.Size = new System.Drawing.Size(26, 16);\r
+            this.label.Size = new System.Drawing.Size(27, 16);\r
             this.label.TabIndex = 38;\r
             this.label.Text = "0";\r
             this.label.TextAlign = System.Drawing.ContentAlignment.BottomRight;\r
             // \r
+            // table\r
+            // \r
+            this.table.BackColor = System.Drawing.Color.Transparent;\r
+            this.table.ColumnCount = 4;\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));\r
+            this.table.Controls.Add(this.b3, 0, 0);\r
+            this.table.Controls.Add(this.b2, 1, 0);\r
+            this.table.Controls.Add(this.b0, 3, 0);\r
+            this.table.Controls.Add(this.b1, 2, 0);\r
+            this.table.Location = new System.Drawing.Point(0, 19);\r
+            this.table.Name = "table";\r
+            this.table.RowCount = 1;\r
+            this.table.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));\r
+            this.table.Size = new System.Drawing.Size(56, 30);\r
+            this.table.TabIndex = 39;\r
+            // \r
+            // b3\r
+            // \r
+            this.b3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.b3.BackColor = System.Drawing.Color.Transparent;\r
+            this.b3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("b3.BackgroundImage")));\r
+            this.b3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(223)))), ((int)(((byte)(229)))));\r
+            this.b3.Location = new System.Drawing.Point(0, 0);\r
+            this.b3.Margin = new System.Windows.Forms.Padding(0);\r
+            this.b3.Name = "b3";\r
+            this.b3.Size = new System.Drawing.Size(14, 30);\r
+            this.b3.State = false;\r
+            this.b3.TabIndex = 3;\r
+            // \r
+            // b2\r
+            // \r
+            this.b2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.b2.BackColor = System.Drawing.Color.Transparent;\r
+            this.b2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("b2.BackgroundImage")));\r
+            this.b2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(223)))), ((int)(((byte)(229)))));\r
+            this.b2.Location = new System.Drawing.Point(14, 0);\r
+            this.b2.Margin = new System.Windows.Forms.Padding(0);\r
+            this.b2.Name = "b2";\r
+            this.b2.Size = new System.Drawing.Size(14, 30);\r
+            this.b2.State = false;\r
+            this.b2.TabIndex = 2;\r
+            // \r
             // b0\r
             // \r
+            this.b0.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)));\r
             this.b0.BackColor = System.Drawing.Color.Transparent;\r
-            this.b0.Location = new System.Drawing.Point(35, 16);\r
-            this.b0.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);\r
+            this.b0.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("b0.BackgroundImage")));\r
+            this.b0.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(223)))), ((int)(((byte)(229)))));\r
+            this.b0.Location = new System.Drawing.Point(42, 0);\r
+            this.b0.Margin = new System.Windows.Forms.Padding(0);\r
             this.b0.Name = "b0";\r
-            this.b0.Size = new System.Drawing.Size(12, 24);\r
+            this.b0.Size = new System.Drawing.Size(14, 30);\r
             this.b0.State = false;\r
             this.b0.TabIndex = 0;\r
             // \r
             // b1\r
             // \r
+            this.b1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
             this.b1.BackColor = System.Drawing.Color.Transparent;\r
-            this.b1.Location = new System.Drawing.Point(24, 16);\r
-            this.b1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
+            this.b1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("b1.BackgroundImage")));\r
+            this.b1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(213)))), ((int)(((byte)(223)))), ((int)(((byte)(229)))));\r
+            this.b1.Location = new System.Drawing.Point(28, 0);\r
+            this.b1.Margin = new System.Windows.Forms.Padding(0);\r
             this.b1.Name = "b1";\r
-            this.b1.Size = new System.Drawing.Size(12, 24);\r
+            this.b1.Size = new System.Drawing.Size(14, 30);\r
             this.b1.State = false;\r
             this.b1.TabIndex = 1;\r
             // \r
-            // b2\r
-            // \r
-            this.b2.BackColor = System.Drawing.Color.Transparent;\r
-            this.b2.Location = new System.Drawing.Point(12, 16);\r
-            this.b2.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
-            this.b2.Name = "b2";\r
-            this.b2.Size = new System.Drawing.Size(12, 24);\r
-            this.b2.State = false;\r
-            this.b2.TabIndex = 2;\r
-            // \r
-            // b3\r
-            // \r
-            this.b3.BackColor = System.Drawing.Color.Transparent;\r
-            this.b3.Location = new System.Drawing.Point(0, 16);\r
-            this.b3.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
-            this.b3.Name = "b3";\r
-            this.b3.Size = new System.Drawing.Size(12, 24);\r
-            this.b3.State = false;\r
-            this.b3.TabIndex = 3;\r
-            // \r
             // BitSwitches4\r
             // \r
+            this.AutoScaleDimensions = new System.Drawing.SizeF(115F, 115F);\r
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;\r
+            this.Controls.Add(this.table);\r
             this.Controls.Add(this.label);\r
-            this.Controls.Add(this.b0);\r
-            this.Controls.Add(this.b1);\r
-            this.Controls.Add(this.b2);\r
-            this.Controls.Add(this.b3);\r
             this.Name = "BitSwitches4";\r
-            this.Size = new System.Drawing.Size(51, 48);\r
+            this.Size = new System.Drawing.Size(60, 52);\r
+            this.SizeChanged += new System.EventHandler(this.BitSwitches4_SizeChanged);\r
+            this.table.ResumeLayout(false);\r
             this.ResumeLayout(false);\r
 \r
         }\r
         private BitSwitch b2;\r
         private BitSwitch b3;\r
         private System.Windows.Forms.Label label;\r
+        private System.Windows.Forms.TableLayoutPanel table;\r
     }\r
 }\r
index 8e55d56..f93fa8c 100755 (executable)
@@ -17,7 +17,7 @@ namespace Fugashi
         }\r
 \r
         [Category("データ")]\r
-        [DefaultValue(typeof(int), "0")]\r
+        [DefaultValue(typeof(int), "-1")]\r
         public int StartBit\r
         {\r
             get\r
@@ -62,18 +62,25 @@ namespace Fugashi
                 return b3;\r
             }\r
         }\r
+\r
         private void Coordinate()\r
         {\r
-            int y = startBit < 32 ? 16 : 0;\r
-            b0.Location = new Point(b0.Location.X, y);\r
-            b1.Location = new Point(b1.Location.X, y);\r
-            b2.Location = new Point(b2.Location.X, y);\r
-            b3.Location = new Point(b3.Location.X, y);\r
-            int labelY = startBit < 32 ? 0 : 24;\r
+            int y = startBit < 32 ? label.Size.Height : 0;\r
+            table.Location = new Point(table.Location.X, y);\r
+            int labelY = startBit < 32 ? 0 : b0.Size.Height;\r
             label.Location = new Point(label.Location.X, labelY);\r
             label.Text = startBit.ToString();\r
+            PerformAutoScale();\r
             PerformLayout();\r
         }\r
 \r
+        private void BitSwitches4_SizeChanged(object sender, EventArgs e)\r
+        {\r
+            table.Width = Width - Margin.Left - Margin.Right;\r
+            table.Height = Height - label.Height - Margin.Bottom - Margin.Top;\r
+            int y = startBit < 32 ? label.Size.Height : 0;\r
+            table.Location = new Point(table.Location.X, y);\r
+        }\r
+\r
     }\r
 }\r
index ff31a6d..469e70d 100755 (executable)
   <resheader name="writer">\r
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
   </resheader>\r
+  <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />\r
+  <data name="b3.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+    <value>\r
+        iVBORw0KGgoAAAANSUhEUgAAAA4AAAAeCAYAAAAcni9KAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8\r
+        YQUAAAAJcEhZcwAAEa8AABGvAff9S4QAAADKSURBVDhPnc5pCsJgDIThuf8Zu7vVFhFRRFq3Sb4cINPA\r
+        y/x6IPhtPHw+2yTW9evSVgnLUqCtEl6v8qutEp7PAm2V8HgUaKuE+71AWyXcbm+Htkq4Xgu0VcLlUqCt\r
+        EuZ5dWirhGkq0FYJ47g4tFVCVVUObZVQ17VDWyXCJmBDmI+wDdgS5iPsAnaE+dA0vUNbJcIh4ECYD227\r
+        c2irRLgPuCfMR3gIeCDMR3gMeCTMh647ObRVIhwDjoT5CM8Bz4T5CCeH6qHv59+W/p0oMG24BjG/AAAA\r
+        AElFTkSuQmCC\r
+</value>\r
+  </data>\r
+  <data name="b2.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+    <value>\r
+        iVBORw0KGgoAAAANSUhEUgAAAA4AAAAeCAYAAAAcni9KAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8\r
+        YQUAAAAJcEhZcwAAEa8AABGvAff9S4QAAADKSURBVDhPnc5pCsJgDIThuf8Zu7vVFhFRRFq3Sb4cINPA\r
+        y/x6IPhtPHw+2yTW9evSVgnLUqCtEl6v8qutEp7PAm2V8HgUaKuE+71AWyXcbm+Htkq4Xgu0VcLlUqCt\r
+        EuZ5dWirhGkq0FYJ47g4tFVCVVUObZVQ17VDWyXCJmBDmI+wDdgS5iPsAnaE+dA0vUNbJcIh4ECYD227\r
+        c2irRLgPuCfMR3gIeCDMR3gMeCTMh647ObRVIhwDjoT5CM8Bz4T5CCeH6qHv59+W/p0oMG24BjG/AAAA\r
+        AElFTkSuQmCC\r
+</value>\r
+  </data>\r
+  <data name="b0.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+    <value>\r
+        iVBORw0KGgoAAAANSUhEUgAAAA4AAAAeCAYAAAAcni9KAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8\r
+        YQUAAAAJcEhZcwAAEa8AABGvAff9S4QAAADKSURBVDhPnc5pCsJgDIThuf8Zu7vVFhFRRFq3Sb4cINPA\r
+        y/x6IPhtPHw+2yTW9evSVgnLUqCtEl6v8qutEp7PAm2V8HgUaKuE+71AWyXcbm+Htkq4Xgu0VcLlUqCt\r
+        EuZ5dWirhGkq0FYJ47g4tFVCVVUObZVQ17VDWyXCJmBDmI+wDdgS5iPsAnaE+dA0vUNbJcIh4ECYD227\r
+        c2irRLgPuCfMR3gIeCDMR3gMeCTMh647ObRVIhwDjoT5CM8Bz4T5CCeH6qHv59+W/p0oMG24BjG/AAAA\r
+        AElFTkSuQmCC\r
+</value>\r
+  </data>\r
+  <data name="b1.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+    <value>\r
+        iVBORw0KGgoAAAANSUhEUgAAAA4AAAAeCAYAAAAcni9KAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8\r
+        YQUAAAAJcEhZcwAAEa8AABGvAff9S4QAAADKSURBVDhPnc5pCsJgDIThuf8Zu7vVFhFRRFq3Sb4cINPA\r
+        y/x6IPhtPHw+2yTW9evSVgnLUqCtEl6v8qutEp7PAm2V8HgUaKuE+71AWyXcbm+Htkq4Xgu0VcLlUqCt\r
+        EuZ5dWirhGkq0FYJ47g4tFVCVVUObZVQ17VDWyXCJmBDmI+wDdgS5iPsAnaE+dA0vUNbJcIh4ECYD227\r
+        c2irRLgPuCfMR3gIeCDMR3gMeCTMh647ObRVIhwDjoT5CM8Bz4T5CCeH6qHv59+W/p0oMG24BjG/AAAA\r
+        AElFTkSuQmCC\r
+</value>\r
+  </data>\r
 </root>
\ No newline at end of file
index 6b8f09e..a79f84f 100755 (executable)
     <FileAlignment>512</FileAlignment>\r
     <TargetFrameworkSubset>\r
     </TargetFrameworkSubset>\r
+    <PublishUrl>publish\</PublishUrl>\r
+    <Install>true</Install>\r
+    <InstallFrom>Disk</InstallFrom>\r
+    <UpdateEnabled>false</UpdateEnabled>\r
+    <UpdateMode>Foreground</UpdateMode>\r
+    <UpdateInterval>7</UpdateInterval>\r
+    <UpdateIntervalUnits>Days</UpdateIntervalUnits>\r
+    <UpdatePeriodically>false</UpdatePeriodically>\r
+    <UpdateRequired>false</UpdateRequired>\r
+    <MapFileExtensions>true</MapFileExtensions>\r
+    <ApplicationRevision>0</ApplicationRevision>\r
+    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>\r
+    <IsWebBootstrapper>false</IsWebBootstrapper>\r
+    <UseApplicationTrust>false</UseApplicationTrust>\r
+    <BootstrapperEnabled>true</BootstrapperEnabled>\r
   </PropertyGroup>\r
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
     <DebugSymbols>true</DebugSymbols>\r
     <ErrorReport>prompt</ErrorReport>\r
     <WarningLevel>4</WarningLevel>\r
   </PropertyGroup>\r
+    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">\r
+    <DebugType>pdbonly</DebugType>\r
+    <Optimize>true</Optimize>\r
+    <OutputPath>bin\Release\</OutputPath>\r
+    <DefineConstants>TRACE</DefineConstants>\r
+    <ErrorReport>prompt</ErrorReport>\r
+    <WarningLevel>4</WarningLevel>\r
+  </PropertyGroup>\r
   <ItemGroup>\r
     <Reference Include="System" />\r
     <Reference Include="System.Data" />\r
       <DesignTimeSharedInput>True</DesignTimeSharedInput>\r
     </Compile>\r
   </ItemGroup>\r
+  <ItemGroup>\r
+    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">\r
+      <Visible>False</Visible>\r
+      <ProductName>.NET Framework Client Profile</ProductName>\r
+      <Install>false</Install>\r
+    </BootstrapperPackage>\r
+    <BootstrapperPackage Include="Microsoft.Net.Framework.2.0">\r
+      <Visible>False</Visible>\r
+      <ProductName>.NET Framework 2.0 %28x86%29</ProductName>\r
+      <Install>true</Install>\r
+    </BootstrapperPackage>\r
+    <BootstrapperPackage Include="Microsoft.Net.Framework.3.0">\r
+      <Visible>False</Visible>\r
+      <ProductName>.NET Framework 3.0 %28x86%29</ProductName>\r
+      <Install>false</Install>\r
+    </BootstrapperPackage>\r
+    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5">\r
+      <Visible>False</Visible>\r
+      <ProductName>.NET Framework 3.5</ProductName>\r
+      <Install>false</Install>\r
+    </BootstrapperPackage>\r
+    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">\r
+      <Visible>False</Visible>\r
+      <ProductName>.NET Framework 3.5 SP1</ProductName>\r
+      <Install>false</Install>\r
+    </BootstrapperPackage>\r
+  </ItemGroup>\r
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. \r
        Other similar extension points exist, see Microsoft.Common.targets.\r
index 6f7814f..f494496 100755 (executable)
@@ -54,10 +54,7 @@ namespace Fugashi
             this.buttonDec = new System.Windows.Forms.Button();\r
             this.buttonClr = new System.Windows.Forms.Button();\r
             this.buttonNot = new System.Windows.Forms.Button();\r
-            this.bits0 = new Fugashi.BitSwitches4();\r
-            this.bits4 = new Fugashi.BitSwitches4();\r
-            this.bits8 = new Fugashi.BitSwitches4();\r
-            this.bits12 = new Fugashi.BitSwitches4();\r
+            this.table = new System.Windows.Forms.TableLayoutPanel();\r
             this.bits16 = new Fugashi.BitSwitches4();\r
             this.bits20 = new Fugashi.BitSwitches4();\r
             this.bits24 = new Fugashi.BitSwitches4();\r
@@ -70,17 +67,22 @@ namespace Fugashi
             this.bits52 = new Fugashi.BitSwitches4();\r
             this.bits56 = new Fugashi.BitSwitches4();\r
             this.bits60 = new Fugashi.BitSwitches4();\r
+            this.bits12 = new Fugashi.BitSwitches4();\r
+            this.bits8 = new Fugashi.BitSwitches4();\r
+            this.bits4 = new Fugashi.BitSwitches4();\r
+            this.bits0 = new Fugashi.BitSwitches4();\r
             this.typeGroup.SuspendLayout();\r
             this.bytesGroup.SuspendLayout();\r
+            this.table.SuspendLayout();\r
             this.SuspendLayout();\r
             // \r
             // label17\r
             // \r
             this.label17.AutoSize = true;\r
             this.label17.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.label17.Location = new System.Drawing.Point(5, 32);\r
+            this.label17.Location = new System.Drawing.Point(6, 37);\r
             this.label17.Name = "label17";\r
-            this.label17.Size = new System.Drawing.Size(36, 12);\r
+            this.label17.Size = new System.Drawing.Size(45, 15);\r
             this.label17.TabIndex = 89;\r
             this.label17.Text = "Value:";\r
             // \r
@@ -88,9 +90,9 @@ namespace Fugashi
             // \r
             this.label18.AutoSize = true;\r
             this.label18.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.label18.Location = new System.Drawing.Point(14, 59);\r
+            this.label18.Location = new System.Drawing.Point(16, 69);\r
             this.label18.Name = "label18";\r
-            this.label18.Size = new System.Drawing.Size(27, 12);\r
+            this.label18.Size = new System.Drawing.Size(35, 15);\r
             this.label18.TabIndex = 90;\r
             this.label18.Text = "Hex:";\r
             // \r
@@ -100,9 +102,9 @@ namespace Fugashi
             this.typeGroup.Controls.Add(this.radioInt);\r
             this.typeGroup.Controls.Add(this.radioUint);\r
             this.typeGroup.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.typeGroup.Location = new System.Drawing.Point(273, 12);\r
+            this.typeGroup.Location = new System.Drawing.Point(318, 14);\r
             this.typeGroup.Name = "typeGroup";\r
-            this.typeGroup.Size = new System.Drawing.Size(131, 110);\r
+            this.typeGroup.Size = new System.Drawing.Size(153, 128);\r
             this.typeGroup.TabIndex = 45;\r
             this.typeGroup.TabStop = false;\r
             this.typeGroup.Text = "Type";\r
@@ -111,9 +113,9 @@ namespace Fugashi
             // \r
             this.radioFloat.AutoSize = true;\r
             this.radioFloat.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.radioFloat.Location = new System.Drawing.Point(6, 62);\r
+            this.radioFloat.Location = new System.Drawing.Point(7, 72);\r
             this.radioFloat.Name = "radioFloat";\r
-            this.radioFloat.Size = new System.Drawing.Size(94, 16);\r
+            this.radioFloat.Size = new System.Drawing.Size(112, 19);\r
             this.radioFloat.TabIndex = 48;\r
             this.radioFloat.TabStop = true;\r
             this.radioFloat.Text = "&Floating Point";\r
@@ -124,9 +126,9 @@ namespace Fugashi
             // \r
             this.radioInt.AutoSize = true;\r
             this.radioInt.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.radioInt.Location = new System.Drawing.Point(6, 40);\r
+            this.radioInt.Location = new System.Drawing.Point(7, 47);\r
             this.radioInt.Name = "radioInt";\r
-            this.radioInt.Size = new System.Drawing.Size(96, 16);\r
+            this.radioInt.Size = new System.Drawing.Size(117, 19);\r
             this.radioInt.TabIndex = 47;\r
             this.radioInt.TabStop = true;\r
             this.radioInt.Text = "&Signed Integer";\r
@@ -137,9 +139,9 @@ namespace Fugashi
             // \r
             this.radioUint.AutoSize = true;\r
             this.radioUint.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.radioUint.Location = new System.Drawing.Point(6, 18);\r
+            this.radioUint.Location = new System.Drawing.Point(7, 21);\r
             this.radioUint.Name = "radioUint";\r
-            this.radioUint.Size = new System.Drawing.Size(109, 16);\r
+            this.radioUint.Size = new System.Drawing.Size(133, 19);\r
             this.radioUint.TabIndex = 46;\r
             this.radioUint.TabStop = true;\r
             this.radioUint.Text = "&Unsigned Integer";\r
@@ -153,9 +155,9 @@ namespace Fugashi
             this.bytesGroup.Controls.Add(this.radio2B);\r
             this.bytesGroup.Controls.Add(this.radio1B);\r
             this.bytesGroup.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.bytesGroup.Location = new System.Drawing.Point(409, 12);\r
+            this.bytesGroup.Location = new System.Drawing.Point(477, 14);\r
             this.bytesGroup.Name = "bytesGroup";\r
-            this.bytesGroup.Size = new System.Drawing.Size(52, 110);\r
+            this.bytesGroup.Size = new System.Drawing.Size(61, 128);\r
             this.bytesGroup.TabIndex = 46;\r
             this.bytesGroup.TabStop = false;\r
             this.bytesGroup.Text = "Bytes";\r
@@ -164,9 +166,9 @@ namespace Fugashi
             // \r
             this.radio8B.AutoSize = true;\r
             this.radio8B.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.radio8B.Location = new System.Drawing.Point(6, 84);\r
+            this.radio8B.Location = new System.Drawing.Point(7, 98);\r
             this.radio8B.Name = "radio8B";\r
-            this.radio8B.Size = new System.Drawing.Size(29, 16);\r
+            this.radio8B.Size = new System.Drawing.Size(33, 19);\r
             this.radio8B.TabIndex = 49;\r
             this.radio8B.TabStop = true;\r
             this.radio8B.Text = "&8";\r
@@ -177,9 +179,9 @@ namespace Fugashi
             // \r
             this.radio4B.AutoSize = true;\r
             this.radio4B.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.radio4B.Location = new System.Drawing.Point(6, 62);\r
+            this.radio4B.Location = new System.Drawing.Point(7, 72);\r
             this.radio4B.Name = "radio4B";\r
-            this.radio4B.Size = new System.Drawing.Size(29, 16);\r
+            this.radio4B.Size = new System.Drawing.Size(33, 19);\r
             this.radio4B.TabIndex = 48;\r
             this.radio4B.TabStop = true;\r
             this.radio4B.Text = "&4";\r
@@ -190,9 +192,9 @@ namespace Fugashi
             // \r
             this.radio2B.AutoSize = true;\r
             this.radio2B.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.radio2B.Location = new System.Drawing.Point(6, 40);\r
+            this.radio2B.Location = new System.Drawing.Point(7, 47);\r
             this.radio2B.Name = "radio2B";\r
-            this.radio2B.Size = new System.Drawing.Size(29, 16);\r
+            this.radio2B.Size = new System.Drawing.Size(33, 19);\r
             this.radio2B.TabIndex = 47;\r
             this.radio2B.TabStop = true;\r
             this.radio2B.Text = "&2";\r
@@ -203,9 +205,9 @@ namespace Fugashi
             // \r
             this.radio1B.AutoSize = true;\r
             this.radio1B.ForeColor = System.Drawing.Color.MidnightBlue;\r
-            this.radio1B.Location = new System.Drawing.Point(6, 18);\r
+            this.radio1B.Location = new System.Drawing.Point(7, 21);\r
             this.radio1B.Name = "radio1B";\r
-            this.radio1B.Size = new System.Drawing.Size(29, 16);\r
+            this.radio1B.Size = new System.Drawing.Size(33, 19);\r
             this.radio1B.TabIndex = 46;\r
             this.radio1B.TabStop = true;\r
             this.radio1B.Text = "&1";\r
@@ -215,9 +217,9 @@ namespace Fugashi
             // textValue\r
             // \r
             this.textValue.Font = new System.Drawing.Font("MS UI Gothic", 10.01739F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));\r
-            this.textValue.Location = new System.Drawing.Point(49, 28);\r
+            this.textValue.Location = new System.Drawing.Point(57, 33);\r
             this.textValue.Name = "textValue";\r
-            this.textValue.Size = new System.Drawing.Size(219, 21);\r
+            this.textValue.Size = new System.Drawing.Size(255, 23);\r
             this.textValue.TabIndex = 87;\r
             this.textValue.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\r
             this.textValue.TextChanged += new System.EventHandler(this.textValue_TextChanged);\r
@@ -225,256 +227,337 @@ namespace Fugashi
             // textHex\r
             // \r
             this.textHex.Font = new System.Drawing.Font("MS UI Gothic", 10.01739F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));\r
-            this.textHex.Location = new System.Drawing.Point(49, 55);\r
+            this.textHex.Location = new System.Drawing.Point(57, 64);\r
             this.textHex.Name = "textHex";\r
-            this.textHex.Size = new System.Drawing.Size(219, 21);\r
+            this.textHex.Size = new System.Drawing.Size(255, 23);\r
             this.textHex.TabIndex = 88;\r
             this.textHex.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\r
             this.textHex.TextChanged += new System.EventHandler(this.textHex_TextChanged);\r
             // \r
             // buttonLsh\r
             // \r
+            this.buttonLsh.AutoEllipsis = true;\r
             this.buttonLsh.BackColor = System.Drawing.SystemColors.ButtonFace;\r
-            this.buttonLsh.Location = new System.Drawing.Point(24, 88);\r
+            this.buttonLsh.Location = new System.Drawing.Point(28, 103);\r
             this.buttonLsh.Margin = new System.Windows.Forms.Padding(2);\r
             this.buttonLsh.Name = "buttonLsh";\r
-            this.buttonLsh.Size = new System.Drawing.Size(38, 24);\r
+            this.buttonLsh.Size = new System.Drawing.Size(44, 28);\r
             this.buttonLsh.TabIndex = 107;\r
             this.buttonLsh.Text = "&Lsh";\r
-            this.buttonLsh.UseVisualStyleBackColor = false;\r
+            this.buttonLsh.UseVisualStyleBackColor = true;\r
             this.buttonLsh.Click += new System.EventHandler(this.buttonLsh_Click);\r
             // \r
             // buttonRsh\r
             // \r
+            this.buttonRsh.AutoEllipsis = true;\r
             this.buttonRsh.BackColor = System.Drawing.SystemColors.ButtonFace;\r
-            this.buttonRsh.Location = new System.Drawing.Point(65, 88);\r
+            this.buttonRsh.Location = new System.Drawing.Point(76, 103);\r
             this.buttonRsh.Margin = new System.Windows.Forms.Padding(2);\r
             this.buttonRsh.Name = "buttonRsh";\r
-            this.buttonRsh.Size = new System.Drawing.Size(38, 24);\r
+            this.buttonRsh.Size = new System.Drawing.Size(44, 28);\r
             this.buttonRsh.TabIndex = 108;\r
             this.buttonRsh.Text = "&Rsh";\r
-            this.buttonRsh.UseVisualStyleBackColor = false;\r
+            this.buttonRsh.UseVisualStyleBackColor = true;\r
             this.buttonRsh.Click += new System.EventHandler(this.buttonRsh_Click);\r
             // \r
             // buttonInc\r
             // \r
+            this.buttonInc.AutoEllipsis = true;\r
             this.buttonInc.BackColor = System.Drawing.SystemColors.ButtonFace;\r
-            this.buttonInc.Location = new System.Drawing.Point(106, 88);\r
+            this.buttonInc.Location = new System.Drawing.Point(124, 103);\r
             this.buttonInc.Margin = new System.Windows.Forms.Padding(2);\r
             this.buttonInc.Name = "buttonInc";\r
-            this.buttonInc.Size = new System.Drawing.Size(38, 24);\r
+            this.buttonInc.Size = new System.Drawing.Size(44, 28);\r
             this.buttonInc.TabIndex = 109;\r
             this.buttonInc.Text = "&Inc";\r
-            this.buttonInc.UseVisualStyleBackColor = false;\r
+            this.buttonInc.UseVisualStyleBackColor = true;\r
             this.buttonInc.Click += new System.EventHandler(this.buttonInc_Click);\r
             // \r
             // buttonDec\r
             // \r
+            this.buttonDec.AutoEllipsis = true;\r
             this.buttonDec.BackColor = System.Drawing.SystemColors.ButtonFace;\r
-            this.buttonDec.Location = new System.Drawing.Point(147, 88);\r
+            this.buttonDec.Location = new System.Drawing.Point(171, 103);\r
             this.buttonDec.Margin = new System.Windows.Forms.Padding(2);\r
             this.buttonDec.Name = "buttonDec";\r
-            this.buttonDec.Size = new System.Drawing.Size(38, 24);\r
+            this.buttonDec.Size = new System.Drawing.Size(44, 28);\r
             this.buttonDec.TabIndex = 110;\r
             this.buttonDec.Text = "&Dec";\r
-            this.buttonDec.UseVisualStyleBackColor = false;\r
+            this.buttonDec.UseVisualStyleBackColor = true;\r
             this.buttonDec.Click += new System.EventHandler(this.buttonDec_Click);\r
             // \r
             // buttonClr\r
             // \r
+            this.buttonClr.AutoEllipsis = true;\r
             this.buttonClr.BackColor = System.Drawing.SystemColors.ButtonFace;\r
-            this.buttonClr.Location = new System.Drawing.Point(189, 88);\r
+            this.buttonClr.Location = new System.Drawing.Point(220, 103);\r
             this.buttonClr.Margin = new System.Windows.Forms.Padding(2);\r
             this.buttonClr.Name = "buttonClr";\r
-            this.buttonClr.Size = new System.Drawing.Size(38, 24);\r
+            this.buttonClr.Size = new System.Drawing.Size(44, 28);\r
             this.buttonClr.TabIndex = 111;\r
             this.buttonClr.Text = "&Clr";\r
-            this.buttonClr.UseVisualStyleBackColor = false;\r
+            this.buttonClr.UseVisualStyleBackColor = true;\r
             this.buttonClr.Click += new System.EventHandler(this.buttonClr_Click);\r
             // \r
             // buttonNot\r
             // \r
+            this.buttonNot.AutoEllipsis = true;\r
             this.buttonNot.BackColor = System.Drawing.SystemColors.ButtonFace;\r
-            this.buttonNot.Location = new System.Drawing.Point(230, 88);\r
+            this.buttonNot.Location = new System.Drawing.Point(268, 103);\r
             this.buttonNot.Margin = new System.Windows.Forms.Padding(2);\r
             this.buttonNot.Name = "buttonNot";\r
-            this.buttonNot.Size = new System.Drawing.Size(38, 24);\r
+            this.buttonNot.Size = new System.Drawing.Size(44, 28);\r
             this.buttonNot.TabIndex = 112;\r
             this.buttonNot.Text = "&Not";\r
-            this.buttonNot.UseVisualStyleBackColor = false;\r
+            this.buttonNot.UseVisualStyleBackColor = true;\r
             this.buttonNot.Click += new System.EventHandler(this.buttonNot_Click);\r
             // \r
-            // bits0\r
-            // \r
-            this.bits0.Location = new System.Drawing.Point(393, 144);\r
-            this.bits0.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
-            this.bits0.Name = "bits0";\r
-            this.bits0.Size = new System.Drawing.Size(51, 44);\r
-            this.bits0.TabIndex = 91;\r
-            // \r
-            // bits4\r
-            // \r
-            this.bits4.Location = new System.Drawing.Point(342, 144);\r
-            this.bits4.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
-            this.bits4.Name = "bits4";\r
-            this.bits4.Size = new System.Drawing.Size(51, 44);\r
-            this.bits4.StartBit = 4;\r
-            this.bits4.TabIndex = 93;\r
-            // \r
-            // bits8\r
-            // \r
-            this.bits8.Location = new System.Drawing.Point(291, 144);\r
-            this.bits8.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
-            this.bits8.Name = "bits8";\r
-            this.bits8.Size = new System.Drawing.Size(51, 44);\r
-            this.bits8.StartBit = 8;\r
-            this.bits8.TabIndex = 94;\r
-            // \r
-            // bits12\r
-            // \r
-            this.bits12.Location = new System.Drawing.Point(240, 144);\r
-            this.bits12.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
-            this.bits12.Name = "bits12";\r
-            this.bits12.Size = new System.Drawing.Size(51, 44);\r
-            this.bits12.StartBit = 12;\r
-            this.bits12.TabIndex = 95;\r
+            // table\r
+            // \r
+            this.table.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.table.ColumnCount = 10;\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.4F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.40001F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.40001F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.40001F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 0.7999492F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.40001F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.40001F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.40001F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 12.40001F));\r
+            this.table.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());\r
+            this.table.Controls.Add(this.bits16, 3, 0);\r
+            this.table.Controls.Add(this.bits20, 2, 0);\r
+            this.table.Controls.Add(this.bits24, 1, 0);\r
+            this.table.Controls.Add(this.bits28, 0, 0);\r
+            this.table.Controls.Add(this.bits32, 8, 1);\r
+            this.table.Controls.Add(this.bits36, 7, 1);\r
+            this.table.Controls.Add(this.bits40, 6, 1);\r
+            this.table.Controls.Add(this.bits44, 5, 1);\r
+            this.table.Controls.Add(this.bits48, 3, 1);\r
+            this.table.Controls.Add(this.bits52, 2, 1);\r
+            this.table.Controls.Add(this.bits56, 1, 1);\r
+            this.table.Controls.Add(this.bits60, 0, 1);\r
+            this.table.Controls.Add(this.bits12, 5, 0);\r
+            this.table.Controls.Add(this.bits8, 6, 0);\r
+            this.table.Controls.Add(this.bits4, 7, 0);\r
+            this.table.Controls.Add(this.bits0, 8, 0);\r
+            this.table.Location = new System.Drawing.Point(21, 156);\r
+            this.table.Margin = new System.Windows.Forms.Padding(12, 3, 12, 3);\r
+            this.table.Name = "table";\r
+            this.table.RowCount = 2;\r
+            this.table.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));\r
+            this.table.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));\r
+            this.table.Size = new System.Drawing.Size(508, 116);\r
+            this.table.TabIndex = 113;\r
             // \r
             // bits16\r
             // \r
-            this.bits16.Location = new System.Drawing.Point(185, 144);\r
+            this.bits16.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits16.Location = new System.Drawing.Point(186, 3);\r
             this.bits16.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits16.Name = "bits16";\r
-            this.bits16.Size = new System.Drawing.Size(51, 44);\r
+            this.bits16.Size = new System.Drawing.Size(62, 52);\r
             this.bits16.StartBit = 16;\r
             this.bits16.TabIndex = 99;\r
             // \r
             // bits20\r
             // \r
-            this.bits20.Location = new System.Drawing.Point(134, 144);\r
+            this.bits20.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits20.Location = new System.Drawing.Point(124, 3);\r
             this.bits20.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits20.Name = "bits20";\r
-            this.bits20.Size = new System.Drawing.Size(51, 44);\r
+            this.bits20.Size = new System.Drawing.Size(62, 52);\r
             this.bits20.StartBit = 20;\r
             this.bits20.TabIndex = 101;\r
             // \r
             // bits24\r
             // \r
-            this.bits24.Location = new System.Drawing.Point(83, 144);\r
+            this.bits24.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits24.Location = new System.Drawing.Point(62, 3);\r
             this.bits24.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits24.Name = "bits24";\r
-            this.bits24.Size = new System.Drawing.Size(51, 44);\r
+            this.bits24.Size = new System.Drawing.Size(62, 52);\r
             this.bits24.StartBit = 24;\r
             this.bits24.TabIndex = 102;\r
             // \r
             // bits28\r
             // \r
-            this.bits28.Location = new System.Drawing.Point(32, 144);\r
+            this.bits28.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits28.Location = new System.Drawing.Point(0, 3);\r
             this.bits28.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits28.Name = "bits28";\r
-            this.bits28.Size = new System.Drawing.Size(51, 44);\r
+            this.bits28.Size = new System.Drawing.Size(62, 52);\r
             this.bits28.StartBit = 28;\r
             this.bits28.TabIndex = 103;\r
             // \r
             // bits32\r
             // \r
-            this.bits32.Location = new System.Drawing.Point(393, 195);\r
+            this.bits32.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits32.Location = new System.Drawing.Point(438, 61);\r
             this.bits32.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits32.Name = "bits32";\r
-            this.bits32.Size = new System.Drawing.Size(51, 44);\r
+            this.bits32.Size = new System.Drawing.Size(62, 52);\r
             this.bits32.StartBit = 32;\r
             this.bits32.TabIndex = 92;\r
             // \r
             // bits36\r
             // \r
-            this.bits36.Location = new System.Drawing.Point(342, 195);\r
+            this.bits36.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits36.Location = new System.Drawing.Point(376, 61);\r
             this.bits36.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits36.Name = "bits36";\r
-            this.bits36.Size = new System.Drawing.Size(51, 44);\r
+            this.bits36.Size = new System.Drawing.Size(62, 52);\r
             this.bits36.StartBit = 36;\r
             this.bits36.TabIndex = 96;\r
             // \r
             // bits40\r
             // \r
-            this.bits40.Location = new System.Drawing.Point(291, 195);\r
+            this.bits40.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits40.Location = new System.Drawing.Point(314, 61);\r
             this.bits40.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits40.Name = "bits40";\r
-            this.bits40.Size = new System.Drawing.Size(51, 44);\r
+            this.bits40.Size = new System.Drawing.Size(62, 52);\r
             this.bits40.StartBit = 40;\r
             this.bits40.TabIndex = 97;\r
             // \r
             // bits44\r
             // \r
-            this.bits44.Location = new System.Drawing.Point(240, 195);\r
+            this.bits44.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits44.Location = new System.Drawing.Point(252, 61);\r
             this.bits44.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits44.Name = "bits44";\r
-            this.bits44.Size = new System.Drawing.Size(51, 44);\r
+            this.bits44.Size = new System.Drawing.Size(62, 52);\r
             this.bits44.StartBit = 44;\r
             this.bits44.TabIndex = 98;\r
             // \r
             // bits48\r
             // \r
-            this.bits48.Location = new System.Drawing.Point(185, 195);\r
+            this.bits48.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits48.Location = new System.Drawing.Point(186, 61);\r
             this.bits48.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits48.Name = "bits48";\r
-            this.bits48.Size = new System.Drawing.Size(51, 44);\r
+            this.bits48.Size = new System.Drawing.Size(62, 52);\r
             this.bits48.StartBit = 48;\r
             this.bits48.TabIndex = 100;\r
             // \r
             // bits52\r
             // \r
-            this.bits52.Location = new System.Drawing.Point(134, 195);\r
+            this.bits52.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits52.Location = new System.Drawing.Point(124, 61);\r
             this.bits52.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits52.Name = "bits52";\r
-            this.bits52.Size = new System.Drawing.Size(51, 44);\r
+            this.bits52.Size = new System.Drawing.Size(62, 52);\r
             this.bits52.StartBit = 52;\r
             this.bits52.TabIndex = 104;\r
             // \r
             // bits56\r
             // \r
-            this.bits56.Location = new System.Drawing.Point(83, 195);\r
+            this.bits56.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits56.Location = new System.Drawing.Point(62, 61);\r
             this.bits56.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits56.Name = "bits56";\r
-            this.bits56.Size = new System.Drawing.Size(51, 44);\r
+            this.bits56.Size = new System.Drawing.Size(62, 52);\r
             this.bits56.StartBit = 56;\r
             this.bits56.TabIndex = 105;\r
             // \r
             // bits60\r
             // \r
-            this.bits60.Location = new System.Drawing.Point(32, 195);\r
+            this.bits60.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits60.Location = new System.Drawing.Point(0, 61);\r
             this.bits60.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
             this.bits60.Name = "bits60";\r
-            this.bits60.Size = new System.Drawing.Size(51, 44);\r
+            this.bits60.Size = new System.Drawing.Size(62, 52);\r
             this.bits60.StartBit = 60;\r
             this.bits60.TabIndex = 106;\r
             // \r
+            // bits12\r
+            // \r
+            this.bits12.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits12.Location = new System.Drawing.Point(252, 3);\r
+            this.bits12.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
+            this.bits12.Name = "bits12";\r
+            this.bits12.Size = new System.Drawing.Size(62, 52);\r
+            this.bits12.StartBit = 12;\r
+            this.bits12.TabIndex = 95;\r
+            // \r
+            // bits8\r
+            // \r
+            this.bits8.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits8.Location = new System.Drawing.Point(314, 3);\r
+            this.bits8.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
+            this.bits8.Name = "bits8";\r
+            this.bits8.Size = new System.Drawing.Size(62, 52);\r
+            this.bits8.StartBit = 8;\r
+            this.bits8.TabIndex = 96;\r
+            // \r
+            // bits4\r
+            // \r
+            this.bits4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits4.Location = new System.Drawing.Point(376, 3);\r
+            this.bits4.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
+            this.bits4.Name = "bits4";\r
+            this.bits4.Size = new System.Drawing.Size(62, 52);\r
+            this.bits4.StartBit = 4;\r
+            this.bits4.TabIndex = 93;\r
+            // \r
+            // bits0\r
+            // \r
+            this.bits0.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\r
+                        | System.Windows.Forms.AnchorStyles.Left)\r
+                        | System.Windows.Forms.AnchorStyles.Right)));\r
+            this.bits0.Location = new System.Drawing.Point(438, 3);\r
+            this.bits0.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
+            this.bits0.Name = "bits0";\r
+            this.bits0.Size = new System.Drawing.Size(62, 52);\r
+            this.bits0.StartBit = 0;\r
+            this.bits0.TabIndex = 91;\r
+            // \r
             // MainForm\r
             // \r
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);\r
+            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);\r
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
             this.BackColor = System.Drawing.SystemColors.Window;\r
-            this.ClientSize = new System.Drawing.Size(470, 244);\r
+            this.ClientSize = new System.Drawing.Size(550, 284);\r
+            this.Controls.Add(this.table);\r
             this.Controls.Add(this.buttonNot);\r
             this.Controls.Add(this.buttonClr);\r
             this.Controls.Add(this.buttonDec);\r
             this.Controls.Add(this.buttonInc);\r
             this.Controls.Add(this.buttonRsh);\r
             this.Controls.Add(this.buttonLsh);\r
-            this.Controls.Add(this.bits0);\r
-            this.Controls.Add(this.bits4);\r
-            this.Controls.Add(this.bits8);\r
-            this.Controls.Add(this.bits12);\r
-            this.Controls.Add(this.bits16);\r
-            this.Controls.Add(this.bits20);\r
-            this.Controls.Add(this.bits24);\r
-            this.Controls.Add(this.bits28);\r
-            this.Controls.Add(this.bits32);\r
-            this.Controls.Add(this.bits36);\r
-            this.Controls.Add(this.bits40);\r
-            this.Controls.Add(this.bits44);\r
-            this.Controls.Add(this.bits48);\r
-            this.Controls.Add(this.bits52);\r
-            this.Controls.Add(this.bits56);\r
-            this.Controls.Add(this.bits60);\r
             this.Controls.Add(this.label18);\r
             this.Controls.Add(this.label17);\r
             this.Controls.Add(this.textHex);\r
@@ -489,6 +572,7 @@ namespace Fugashi
             this.typeGroup.PerformLayout();\r
             this.bytesGroup.ResumeLayout(false);\r
             this.bytesGroup.PerformLayout();\r
+            this.table.ResumeLayout(false);\r
             this.ResumeLayout(false);\r
             this.PerformLayout();\r
 \r
@@ -511,7 +595,6 @@ namespace Fugashi
         private System.Windows.Forms.Label label18;\r
         private BitSwitches4 bits0;\r
         private BitSwitches4 bits4;\r
-        private BitSwitches4 bits8;\r
         private BitSwitches4 bits12;\r
         private BitSwitches4 bits16;\r
         private BitSwitches4 bits20;\r
@@ -531,6 +614,8 @@ namespace Fugashi
         private System.Windows.Forms.Button buttonDec;\r
         private System.Windows.Forms.Button buttonClr;\r
         private System.Windows.Forms.Button buttonNot;\r
+        private System.Windows.Forms.TableLayoutPanel table;\r
+        private BitSwitches4 bits8;\r
     }\r
 }\r
 \r
index d108645..b14067d 100755 (executable)
@@ -25,7 +25,7 @@ namespace Fugashi
             InitializeComponent();\r
 \r
             bits = new BitSwitch[64];\r
-            foreach (Control c in Controls)\r
+            foreach (Control c in table.Controls)\r
             {\r
                 if (c is BitSwitches4)\r
                 {\r
@@ -44,6 +44,8 @@ namespace Fugashi
             Font mono = new Font(FontFamily.GenericMonospace, textHex.Font.Size);\r
             textHex.Font = mono;\r
             textValue.Font = mono;\r
+\r
+            PerformAutoScale();\r
         }\r
 \r
         private void radioUint_CheckedChanged(object sender, EventArgs e)\r
@@ -92,15 +94,13 @@ namespace Fugashi
 \r
         private void SetForFloatingPoint(bool isDouble)\r
         {\r
-            Color c1 = isDouble ? Color.White : Color.Moccasin;\r
-            Color c2 = isDouble ? Color.Moccasin : Color.White;\r
             for (int i = 23; i < 31; ++i)\r
             {\r
-                bits[i].BackColor = c1;\r
+                bits[i].IsExponential = !isDouble;\r
             }\r
             for (int i = 52; i < 63; ++i)\r
             {\r
-                bits[i].BackColor = c2;\r
+                bits[i].IsExponential = isDouble;\r
             }\r
         }\r
 \r
@@ -108,7 +108,7 @@ namespace Fugashi
         {\r
             for (int i = 0; i < 64; ++i)\r
             {\r
-                bits[i].BackColor = Color.White;\r
+                bits[i].IsExponential = false;\r
             }\r
         }\r
 \r
index 06baf8d..ddfec1c 100755 (executable)
@@ -5,12 +5,12 @@ using System.Runtime.InteropServices;
 // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。\r
 // アセンブリに関連付けられている情報を変更するには、\r
 // これらの属性値を変更してください。\r
-[assembly: AssemblyTitle("Fugashi")]\r
+[assembly: AssemblyTitle("Fugashi Bit Viewer")]\r
 [assembly: AssemblyDescription("")]\r
 [assembly: AssemblyConfiguration("")]\r
-[assembly: AssemblyCompany("")]\r
+[assembly: AssemblyCompany("Fugashi Project")]\r
 [assembly: AssemblyProduct("Fugashi")]\r
-[assembly: AssemblyCopyright("Copyright ©  2010")]\r
+[assembly: AssemblyCopyright("Copyright© 2011 Fugashi Project")]\r
 [assembly: AssemblyTrademark("")]\r
 [assembly: AssemblyCulture("")]\r
 \r
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を \r
 // 既定値にすることができます:\r
 // [assembly: AssemblyVersion("1.0.*")]\r
-[assembly: AssemblyVersion("1.0.0.0")]\r
-[assembly: AssemblyFileVersion("1.0.0.0")]\r
+[assembly: AssemblyVersion("0.0.0.0")]\r
+[assembly: AssemblyFileVersion("0.0.0.0")]\r