OSDN Git Service

AppliStation-GUI,ライセンスにまつわる記述周辺の修正
authorttp <ttp@users.sourceforge.jp>
Mon, 28 Jul 2008 10:36:09 +0000 (10:36 +0000)
committerttp <ttp@users.sourceforge.jp>
Mon, 28 Jul 2008 10:36:09 +0000 (10:36 +0000)
git-svn-id: http://localhost/svn/AppliStation/trunk@940 34ed2c89-c49f-4a4b-abdb-c318350108cf

AppliStation/PackageInfoForm.cs

index 1f18a43..72f73f5 100644 (file)
@@ -19,6 +19,9 @@ namespace AppliStation
                        InitializeComponent();\r
                }\r
                \r
                        InitializeComponent();\r
                }\r
                \r
+               /// <summary>\r
+               /// 現在選択中(=表示中)のパッケージ\r
+               /// </summary>\r
                public Package SelectedObject {\r
                        get { return pkg; }\r
                        set {\r
                public Package SelectedObject {\r
                        get { return pkg; }\r
                        set {\r
@@ -100,6 +103,11 @@ namespace AppliStation
                        this.Size = new Size(this.Size.Width, (tabControl1.TabCount>0)? 380 : 250);\r
                }\r
                \r
                        this.Size = new Size(this.Size.Width, (tabControl1.TabCount>0)? 380 : 250);\r
                }\r
                \r
+               /// <summary>\r
+               /// インストーラの種類についてラベルにテキストを設定する\r
+               /// </summary>\r
+               /// <param name="typeValueLabel">設定先のラベル</param>\r
+               /// <param name="instType">インストーラの種類</param>\r
                private static void setLinkLabelFromLicense(LinkLabel linklabel, string license, string publicSiteUrl)\r
                {\r
                        linklabel.Enabled = true;\r
                private static void setLinkLabelFromLicense(LinkLabel linklabel, string license, string publicSiteUrl)\r
                {\r
                        linklabel.Enabled = true;\r
@@ -122,12 +130,12 @@ namespace AppliStation
                                case "GPLv2":\r
                                case "GPLv2+":\r
                                        linklabel.Text = "GPLv2 (オープンソース)";\r
                                case "GPLv2":\r
                                case "GPLv2+":\r
                                        linklabel.Text = "GPLv2 (オープンソース)";\r
-                                       addLinkToLinkLabel(linklabel, "GPLv2", @"http://www.gnu.org/licenses/gpl-2.0.html");\r
+                                       addLinkToLinkLabel(linklabel, "GPLv2", @"http://www.gnu.org/licenses/gpl-2.0.txt");\r
                                        break;\r
                                case "GPLv3":\r
                                case "GPLv3+":\r
                                        linklabel.Text = "GPLv3 (オープンソース)";\r
                                        break;\r
                                case "GPLv3":\r
                                case "GPLv3+":\r
                                        linklabel.Text = "GPLv3 (オープンソース)";\r
-                                       addLinkToLinkLabel(linklabel, "GPLv3", @"http://www.gnu.org/licenses/gpl-3.0.html");\r
+                                       addLinkToLinkLabel(linklabel, "GPLv3", @"http://www.gnu.org/licenses/gpl-3.0.txt");\r
                                        break;\r
                                case "LGPL":\r
                                        linklabel.Text = "LGPL (オープンソース)";\r
                                        break;\r
                                case "LGPL":\r
                                        linklabel.Text = "LGPL (オープンソース)";\r
@@ -137,12 +145,17 @@ namespace AppliStation
                                case "LGPLv2":\r
                                case "LGPLv2+":\r
                                        linklabel.Text = "LGPLv2 (オープンソース)";\r
                                case "LGPLv2":\r
                                case "LGPLv2+":\r
                                        linklabel.Text = "LGPLv2 (オープンソース)";\r
-                                       addLinkToLinkLabel(linklabel, "LGPLv2", @"http://www.gnu.org/licenses/lgpl-2.1.html");\r
+                                       addLinkToLinkLabel(linklabel, "LGPLv2", @"http://www.gnu.org/licenses/lgpl-2.1.txt");\r
                                        break;\r
                                case "LGPLv3":\r
                                case "LGPLv3+":\r
                                        linklabel.Text = "LGPLv3 (オープンソース)";\r
                                        break;\r
                                case "LGPLv3":\r
                                case "LGPLv3+":\r
                                        linklabel.Text = "LGPLv3 (オープンソース)";\r
-                                       addLinkToLinkLabel(linklabel, "LGPLv3", @"http://www.gnu.org/licenses/lgpl-3.0.html");\r
+                                       addLinkToLinkLabel(linklabel, "LGPLv3", @"http://www.gnu.org/licenses/lgpl-3.0.txt");\r
+                                       break;\r
+                               case "AGPLv3":\r
+                               case "AGPLv3+":\r
+                                       linklabel.Text = "AGPLv3 (オープンソース)";\r
+                                       addLinkToLinkLabel(linklabel, "AGPLv3", @"http://www.gnu.org/licenses/agpl-3.0.txt");\r
                                        break;\r
                                case "MPL":\r
                                        linklabel.Text = "MPL (オープンソース)";\r
                                        break;\r
                                case "MPL":\r
                                        linklabel.Text = "MPL (オープンソース)";\r
@@ -152,8 +165,12 @@ namespace AppliStation
                                        linklabel.Text = "CPL (オープンソース)";\r
                                        linklabel.Links.Add(0, linklabel.Text.Length, @"http://sourceforge.jp/projects/opensource/wiki/licenses%2FCommon_Public_License");\r
                                        break;\r
                                        linklabel.Text = "CPL (オープンソース)";\r
                                        linklabel.Links.Add(0, linklabel.Text.Length, @"http://sourceforge.jp/projects/opensource/wiki/licenses%2FCommon_Public_License");\r
                                        break;\r
+                               case "Artistic":\r
+                                       linklabel.Text = "Artisticライセンス (オープンソース)";\r
+                                       addLinkToLinkLabel(linklabel, "Artisticライセンス", @"http://www.perlfoundation.org/artistic_license_2_0");\r
+                                       break;\r
                                #endregion\r
                                #endregion\r
-                               #region オープンソースだが、コピーレフトでない\r
+                               #region オープンソースだが、コピーレフトでない著名なライセンス\r
                                case "MIT":\r
                                        linklabel.Text = "MITライセンス (オープンソース)";\r
                                        addLinkToLinkLabel(linklabel, "MITライセンス", @"http://www.opensource.org/licenses/mit-license.php");\r
                                case "MIT":\r
                                        linklabel.Text = "MITライセンス (オープンソース)";\r
                                        addLinkToLinkLabel(linklabel, "MITライセンス", @"http://www.opensource.org/licenses/mit-license.php");\r
@@ -162,14 +179,20 @@ namespace AppliStation
                                        linklabel.Text = "修正済BSDライセンス (オープンソース)";\r
                                        addLinkToLinkLabel(linklabel, "BSDライセンス", @"http://www.opensource.org/licenses/bsd-license.php");\r
                                        break;\r
                                        linklabel.Text = "修正済BSDライセンス (オープンソース)";\r
                                        addLinkToLinkLabel(linklabel, "BSDライセンス", @"http://www.opensource.org/licenses/bsd-license.php");\r
                                        break;\r
-                               case "Artistic":\r
-                                       linklabel.Text = "Artisticライセンス (オープンソース)";\r
-                                       addLinkToLinkLabel(linklabel, "Artisticライセンス", @"http://www.perlfoundation.org/artistic_license_2_0");\r
+                               case "Apache":\r
+                               case "ASLv2":\r
+                               case "ASLv2+":\r
+                                       linklabel.Text = "Apacheライセンス (オープンソース)";\r
+                                       addLinkToLinkLabel(linklabel, "Apacheライセンス", @"http://www.apache.org/licenses/LICENSE-2.0.txt");\r
+                                       break;\r
+                               case "zlib":\r
+                                       linklabel.Text = "zlibライセンス";\r
+                                       linklabel.Links.Add(0, linklabel.Text.Length, @"http://opentechpress.jp/docs/licenses/zlib-license.shtml");\r
                                        break;\r
                                #endregion\r
                                case "NYSL":\r
                                        linklabel.Text = "煮るなり焼くなり好きにしろライセンス";\r
                                        break;\r
                                #endregion\r
                                case "NYSL":\r
                                        linklabel.Text = "煮るなり焼くなり好きにしろライセンス";\r
-                                       linklabel.Links.Add(0, linklabel.Text.Length, @"http://www.kmonos.net/nysl/");\r
+                                       linklabel.Links.Add(0, linklabel.Text.Length, @"http://www.kmonos.net/nysl/NYSL_withfaq.TXT");\r
                                        break;\r
                                case "Public Domain":\r
                                        linklabel.Text = "パブリックドメイン (著作権帰属なし)";\r
                                        break;\r
                                case "Public Domain":\r
                                        linklabel.Text = "パブリックドメイン (著作権帰属なし)";\r
@@ -188,6 +211,11 @@ namespace AppliStation
                        \r
                }\r
                \r
                        \r
                }\r
                \r
+               /// <summary>\r
+               /// インストーラの種類についてラベルにテキストを設定する\r
+               /// </summary>\r
+               /// <param name="typeValueLabel">設定先のラベル</param>\r
+               /// <param name="instType">インストーラの種類</param>\r
                private static void setTypeValueLabel(Label typeValueLabel, InstallerType instType)\r
                {\r
                        switch (instType) {\r
                private static void setTypeValueLabel(Label typeValueLabel, InstallerType instType)\r
                {\r
                        switch (instType) {\r