OSDN Git Service

AppliStation-GUI,レポジトリリスト編集ダイアログのデザイン配置を変更
[applistation/AppliStation.git] / AppliStation / PackageInfoForm.cs
index 646acf6..4aeb081 100644 (file)
@@ -45,7 +45,7 @@ namespace AppliStation
                                }\r
                        }\r
                        nameLabel.Text = string.Format("{0} ({1})", pkg.Name, pkg.Version);\r
-                       nameLabel.Font = new Font(SystemFonts.DefaultFont.FontFamily, SystemFonts.DefaultFont.Size*1.5f);\r
+                       nameLabel.Font = new Font(SystemFonts.CaptionFont.FontFamily, SystemFonts.CaptionFont.Size*1.25f);\r
                        \r
                        summaryTextBox.Text = pkg.Summary;\r
                        \r
@@ -125,7 +125,7 @@ namespace AppliStation
                                #region オープンソースかつコピーレフト\r
                                case "GPL":\r
                                        linklabel.Text = "GPL (オープンソース)";\r
-                                       addLinkToLinkLabel(linklabel, "GPL", @"http://www.gnu.org/licenses/gpl.ja.html");\r
+                                       addLinkToLinkLabel(linklabel, "GPL", @"http://www.opensource.jp/gpl/gpl.ja.html");\r
                                        addLinkToLinkLabel(linklabel, "オープンソース", @"http://creativecommons.org/licenses/GPL/2.0/deed.ja");\r
                                        break;\r
                                case "GPLv2":\r
@@ -140,7 +140,7 @@ namespace AppliStation
                                        break;\r
                                case "LGPL":\r
                                        linklabel.Text = "LGPL (オープンソース)";\r
-                                       addLinkToLinkLabel(linklabel, "LGPL", @"http://www.gnu.org/licenses/lgpl.ja.html");\r
+                                       addLinkToLinkLabel(linklabel, "LGPL", @"http://www.opensource.jp/lesser/lgpl.ja.html");\r
                                        addLinkToLinkLabel(linklabel, "オープンソース", @"http://creativecommons.org/licenses/LGPL/2.1/deed.ja");\r
                                        break;\r
                                case "LGPLv2":\r
@@ -191,6 +191,11 @@ namespace AppliStation
                                        linklabel.Links.Add(0, linklabel.Text.Length, @"http://opentechpress.jp/docs/licenses/zlib-license.shtml");\r
                                        break;\r
                                #endregion\r
+                               case "WTFPL":\r
+                               case "WTFPLv2":\r
+                                       linklabel.Text = "WTFPL";\r
+                                       linklabel.Links.Add(0, linklabel.Text.Length, @"http://sam.zoy.org/wtfpl/");\r
+                                       break;\r
                                case "NYSL":\r
                                        linklabel.Text = "煮るなり焼くなり好きにしろライセンス";\r
                                        linklabel.Links.Add(0, linklabel.Text.Length, @"http://www.kmonos.net/nysl/NYSL_withfaq.TXT");\r
@@ -256,9 +261,13 @@ namespace AppliStation
                        if (Directory.Exists(linkData)) {\r
                                e.Link.Visited = true;\r
                                System.Diagnostics.Process.Start(e.Link.LinkData.ToString());\r
-                       } else if (System.Text.RegularExpressions.Regex.IsMatch(linkData, @"(https?|file)://")) {\r
+                       } else if (System.Text.RegularExpressions.Regex.IsMatch(linkData, @"^(https?|file)://")) {\r
                                e.Link.Visited = true;\r
-                               System.Diagnostics.Process.Start(linkData);\r
+                               try {\r
+                                       System.Diagnostics.Process.Start(e.Link.LinkData.ToString());\r
+                               } catch (System.ComponentModel.Win32Exception) {\r
+                                       MessageBox.Show(string.Format("{0}を開くのに失敗しました。", e.Link.LinkData), "ブラウザ起動エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);\r
+                               }\r
                        }\r
                }\r
        }\r