[Ttssh2-commit] [4918] cygterm. cfg ファイルへの保存が成功したら、メッセージダイアログを表示する。

svnno****@sourc***** svnno****@sourc*****
2012年 5月 1日 (火) 18:45:37 JST


Revision: 4918
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4918
Author:   yutakapon
Date:     2012-05-01 18:45:37 +0900 (Tue, 01 May 2012)
Log Message:
-----------
cygterm.cfg ファイルへの保存が成功したら、メッセージダイアログを表示する。
改めて、Save setupを実行する必要はないことを注意喚起する。

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/ja/html/about/history.html
    trunk/teraterm/teraterm/addsetting.cpp

-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2012-04-30 15:19:43 UTC (rev 4917)
+++ trunk/doc/en/html/about/history.html	2012-05-01 09:45:37 UTC (rev 4918)
@@ -70,6 +70,7 @@
           <li>added the <a href="../macro/command/fileunlock.html">fileunlock</a> command.</li>
         </ul></li>
       <li>added the LanguageUI entry on the <a href="..\menu\setup-general.html">General setup dialog</a>.</li>
+      <li>A message dialog is shown when the cygterm.cfg has been saved on the Cygwin tab of the <a href="../menu/setup-additional.html">Additional settings dialog</a>.</li>
     </ul>
   </li>
 

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2012-04-30 15:19:43 UTC (rev 4917)
+++ trunk/doc/ja/html/about/history.html	2012-05-01 09:45:37 UTC (rev 4918)
@@ -70,6 +70,7 @@
           <li><a href="../macro/command/fileunlock.html">fileunlock</a>\x83R\x83}\x83\x93\x83h\x82\xF0\x92lj\xC1\x82\xB5\x82\xBD\x81B</li>
         </ul></li>
       <li><a href="..\menu\setup-general.html">General setup\x83_\x83C\x83A\x83\x8D\x83O</a>\x82Ō\xBE\x8C\xEA\x83t\x83@\x83C\x83\x8B\x82\xF0\x8Ew\x92\xE8\x82ł\xAB\x82\xE9\x82悤\x82ɂ\xB5\x82\xBD\x81B</li>
+      <li><a href="../menu/setup-additional.html">Additional settings\x83_\x83C\x83A\x83\x8D\x83O</a>\x82\xCCCygwin\x83^\x83u\x82ŁA\x90ݒ\xE8\x95ۑ\xB6\x82ł\xAB\x82\xBD\x8Fꍇ\x81A\x83\x81\x83b\x83Z\x81[\x83W\x83_\x83C\x83A\x83\x8D\x83O\x82\xF0\x95\\x8E\xA6\x82\xB7\x82\xE9\x82悤\x82ɂ\xB5\x82\xBD\x81B</li>
     </ul>
   </li>
 

Modified: trunk/teraterm/teraterm/addsetting.cpp
===================================================================
--- trunk/teraterm/teraterm/addsetting.cpp	2012-04-30 15:19:43 UTC (rev 4917)
+++ trunk/teraterm/teraterm/addsetting.cpp	2012-05-01 09:45:37 UTC (rev 4918)
@@ -1312,10 +1312,11 @@
 END_MESSAGE_MAP()
 
 // CCygwinPropPageDlg \x83\x81\x83b\x83Z\x81[\x83W \x83n\x83\x93\x83h\x83\x89
+#define CYGTERM_FILE "cygterm.cfg"  // CygTerm configuration file
 
 BOOL CCygwinPropPageDlg::OnInitDialog()
 {
-	char *cfgfile = "cygterm.cfg"; // CygTerm configuration file
+	char *cfgfile = CYGTERM_FILE; // CygTerm configuration file
 	char cfg[MAX_PATH];
 	FILE *fp;
 	char buf[256], *head, *body;
@@ -1471,7 +1472,7 @@
 
 void CCygwinPropPageDlg::OnOK()
 {
-	char *cfgfile = "cygterm.cfg"; // CygTerm configuration file
+	char *cfgfile = CYGTERM_FILE; // CygTerm configuration file
 	char *tmpfile = "cygterm.tmp";
 	char cfg[MAX_PATH];
 	char tmp[MAX_PATH];
@@ -1619,6 +1620,11 @@
 			             "Can't rename CygTerm configuration file (%d).", ts.UILanguageFile);
 			_snprintf_s(buf, sizeof(buf), _TRUNCATE, ts.UIMsg, GetLastError());
 			MessageBox(buf, uimsg, MB_ICONEXCLAMATION);
+		} else {
+			// cygterm.cfg \x83t\x83@\x83C\x83\x8B\x82ւ̕ۑ\xB6\x82\xAA\x90\xAC\x8C\x{1C2D42}\xBD\x82\xE7\x81A\x83\x81\x83b\x83Z\x81[\x83W\x83_\x83C\x83A\x83\x8D\x83O\x82\xF0\x95\\x8E\xA6\x82\xB7\x82\xE9\x81B
+			// \x89\xFC\x82߂āASave setup\x82\xF0\x8E\xC0\x8Ds\x82\xB7\x82\xE9\x95K\x97v\x82͂Ȃ\xA2\x82\xB1\x82Ƃ𒍈ӊ\xAB\x8BN\x82\xB7\x82\xE9\x81B
+			// (2012.5.1 yutaka)
+			MessageBox(CYGTERM_FILE " has been saved. Do not do save setup.", "Tera Term: Notice", MB_OK | MB_ICONINFORMATION);
 		}
 	}
 



Ttssh2-commit メーリングリストの案内