• R/O
  • SSH
  • HTTPS

chaki: 提交


Commit MetaInfo

修订版612 (tree)
时间2018-02-20 18:58:13
作者tomorita

Log Message

ChaMame: exeリソースアイコンの差し替えをProjectのビルド設定に追加.

更改概述

差异

--- trunk/ChaKi.NET/src/ChaKiCommon/Settings/Text2CorpusSettings.cs (revision 611)
+++ trunk/ChaKi.NET/src/ChaKiCommon/Settings/Text2CorpusSettings.cs (revision 612)
@@ -32,6 +32,10 @@
3232
3333 public void Save(string file)
3434 {
35+ if (this.BunruiOutputFormat <= 0)
36+ {
37+ this.BunruiOutputFormat = BunruiOutputFormat.None;
38+ }
3539 var ser = new XmlSerializer(typeof(Text2CorpusSettings));
3640 using (var str = new FileStream(file, FileMode.Create))
3741 {
--- trunk/ChaKi.NET/src/ImportWordRelation/Properties/AssemblyInfo.cs (revision 611)
+++ trunk/ChaKi.NET/src/ImportWordRelation/Properties/AssemblyInfo.cs (revision 612)
@@ -12,5 +12,5 @@
1212 [assembly: AssemblyCulture("")]
1313 [assembly: ComVisible(false)]
1414 [assembly: Guid("6a95808a-d1e3-47de-bb62-7ed7a281ac0b")]
15-[assembly: AssemblyVersion("3.11.608.0")]
16-[assembly: AssemblyFileVersion("3.11.608.0")]
15+[assembly: AssemblyVersion("3.11.611.0")]
16+[assembly: AssemblyFileVersion("3.11.611.0")]
--- trunk/ChaKi.NET/src/Text2Corpus/Helpers/MecabHelper.cs (revision 611)
+++ trunk/ChaKi.NET/src/Text2Corpus/Helpers/MecabHelper.cs (revision 612)
@@ -182,7 +182,13 @@
182182 // Mecabフォルダ/dic/以下のサブフォルダのうち、dicrcを含むものをdictsにappendする.
183183 public static void AddMecabDictionaries(Dictionary<string, string> dicts)
184184 {
185- var dpaths = Directory.EnumerateDirectories(Path.Combine(Path.GetDirectoryName(MecabPath), @"..\dic"));
185+ var path = Path.GetDirectoryName(MecabPath);
186+ if (path == null)
187+ {
188+ // "Mecabが見つかりません."
189+ throw new Exception(Resources.S019);
190+ }
191+ var dpaths = Directory.EnumerateDirectories(Path.Combine(path, @"..\dic"));
186192 foreach (var dpath in dpaths)
187193 {
188194 var dname = Path.GetFileName(dpath);
--- trunk/ChaKi.NET/src/Text2Corpus/Helpers/UnidicHelper.cs (revision 611)
+++ trunk/ChaKi.NET/src/Text2Corpus/Helpers/UnidicHelper.cs (revision 612)
@@ -25,6 +25,14 @@
2525 {
2626 rkey = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\unidic_win");
2727 }
28+ if (rkey == null)
29+ {
30+ rkey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\unidic_win");
31+ }
32+ if (rkey == null)
33+ {
34+ rkey = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\unidic_win");
35+ }
2836 if (rkey != null)
2937 {
3038 string unidicloc = (string)rkey.GetValue("InstallLocation");
--- trunk/ChaKi.NET/src/Text2Corpus/Properties/AssemblyInfo.cs (revision 611)
+++ trunk/ChaKi.NET/src/Text2Corpus/Properties/AssemblyInfo.cs (revision 612)
@@ -12,5 +12,5 @@
1212 [assembly: AssemblyCulture("")]
1313 [assembly: ComVisible(false)]
1414 [assembly: Guid("a8cf8403-eb88-418f-bf54-56aeaef39268")]
15-[assembly: AssemblyVersion("3.11.608.0")]
16-[assembly: AssemblyFileVersion("3.11.608.0")]
15+[assembly: AssemblyVersion("3.11.611.0")]
16+[assembly: AssemblyFileVersion("3.11.611.0")]
--- trunk/ChaKi.NET/src/Text2Corpus/Properties/Resources.Designer.cs (revision 611)
+++ trunk/ChaKi.NET/src/Text2Corpus/Properties/Resources.Designer.cs (revision 612)
@@ -61,6 +61,16 @@
6161 }
6262
6363 /// <summary>
64+ /// (アイコン) に類似した型 System.Drawing.Icon のローカライズされたリソースを検索します。
65+ /// </summary>
66+ internal static System.Drawing.Icon ChaMame {
67+ get {
68+ object obj = ResourceManager.GetObject("ChaMame", resourceCulture);
69+ return ((System.Drawing.Icon)(obj));
70+ }
71+ }
72+
73+ /// <summary>
6474 /// File... に類似しているローカライズされた文字列を検索します。
6575 /// </summary>
6676 internal static string File {
--- trunk/ChaKi.NET/src/Text2Corpus/TextToCorpus.cs (revision 611)
+++ trunk/ChaKi.NET/src/Text2Corpus/TextToCorpus.cs (revision 612)
@@ -274,6 +274,7 @@
274274 this.comboBox4.SelectedItem = settings.MecabOutputFormat;
275275 #if CHAMAME
276276 this.Text = "ChaMame";
277+ this.Icon = Resources.ChaMame;
277278 this.label5.Enabled = true;
278279 this.comboBox4.Enabled = true;
279280 this.label6.Enabled = true;
--- trunk/ChaKi.NET/src/Timings/Properties/AssemblyInfo.cs (revision 611)
+++ trunk/ChaKi.NET/src/Timings/Properties/AssemblyInfo.cs (revision 612)
@@ -12,5 +12,5 @@
1212 [assembly: AssemblyCulture("")]
1313 [assembly: ComVisible(false)]
1414 [assembly: Guid("ff6652ed-b932-466b-944b-ce88d698979b")]
15-[assembly: AssemblyVersion("3.11.608.0")]
16-[assembly: AssemblyFileVersion("3.11.608.0")]
15+[assembly: AssemblyVersion("3.11.611.0")]
16+[assembly: AssemblyFileVersion("3.11.611.0")]
Show on old repository browser