[Ttssh2-commit] [8396] [File] メニューに [Pause Logging] / [Stop Logging] を追加

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 11月 23日 (土) 00:14:51 JST


Revision: 8396
          https://osdn.net/projects/ttssh2/scm/svn/commits/8396
Author:   doda
Date:     2019-11-23 00:14:50 +0900 (Sat, 23 Nov 2019)
Log Message:
-----------
[File] メニューに [Pause Logging] / [Stop Logging] を追加

Ticket: #39062

問題:
  ログ取得中にログを一時中断したり終了する場合、[Show Log Dialog] 等で
  一度ログダイアログを表示する必要が有り、手間がかかる。

対処:
  [File] メニューに [Pause Logging] / [Stop Logging] を追加した。

Ticket Links:
------------
    https://osdn.net/projects/ttssh2/tracker/detail/39062

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/en/html/menu/file.html
    trunk/doc/ja/html/about/history.html
    trunk/doc/ja/html/menu/file.html
    trunk/installer/release/lang/English.lng
    trunk/installer/release/lang/French.lng
    trunk/installer/release/lang/German.lng
    trunk/installer/release/lang/Japanese.lng
    trunk/installer/release/lang/Korean.lng
    trunk/installer/release/lang/Russian.lng
    trunk/installer/release/lang/Simplified Chinese.lng
    trunk/installer/release/lang/Traditional Chinese.lng
    trunk/teraterm/common/tt_res.h
    trunk/teraterm/teraterm/ttermpro.rc
    trunk/teraterm/teraterm/vtwin.cpp
    trunk/teraterm/teraterm/vtwin.h

-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/doc/en/html/about/history.html	2019-11-22 15:14:50 UTC (rev 8396)
@@ -48,6 +48,7 @@
           <li>Added the <a href="../menu/setup-additional.html#ed3">"Accept clearing scroll buffer from remote"</a> setting on the <a href="../menu/setup-additional.html#TabControlSequence">Control Sequence tab</a> of the <a href="../menu/setup-additional.html">Additional settings dialog</a>. The default value is off.</li>
         </ul></li>
 	<li>Added <a href="../commandline/teraterm.html#osc52">/OSC52=</a> commandline option for change the <a href="../menu/setup-additional.html#ClipboardAccessFromRemote">"Clipboard access from remote"</a> setting.</li>
+      <li>Added the <a href="../menu/file.html#PauseLog">[Pause Logging]</a> and the <a href="../menu/file.html#StopLog">[Stop Logging]</a> menu into the <a href="../menu/file.html">[File]</a> menu.</li>
 
       <li>Serial port connection
         <ul>

Modified: trunk/doc/en/html/menu/file.html
===================================================================
--- trunk/doc/en/html/menu/file.html	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/doc/en/html/menu/file.html	2019-11-22 15:14:50 UTC (rev 8396)
@@ -27,6 +27,11 @@
         Logs received characters to a file.
       </dd>
 
+      <dt id="PauseLog">Pause Logging</dt>
+      <dd>
+        Pause logging.
+      </dd>
+
       <dt>Comment to Log...</dt>
       <dd>
         Adds comment to the log file.
@@ -43,6 +48,11 @@
         Displays the log dialog.
       </dd>
 
+      <dt id="StopLog">Stop Logging</dt>
+      <dd>
+        Stop logging and closes the log file.
+      </dd>
+
       <dt><a href="file-sendfile.html">Send file...</a></dt>
       <dd>
         Sends a file to the host.

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/doc/ja/html/about/history.html	2019-11-22 15:14:50 UTC (rev 8396)
@@ -48,6 +48,7 @@
 	  <li><a href="../menu/setup-additional.html">Additional settings\x83_\x83C\x83A\x83\x8D\x83O</a>\x82\xCC<a href="../menu/setup-additional.html#TabControlSequence">Control Sequence\x83^\x83u</a>\x82\xC9<a href="../menu/setup-additional.html#ed3">\x81u\x83\x8A\x83\x82\x81[\x83g\x82\xA9\x82\xE7\x82̃X\x83N\x83\x8D\x81[\x83\x8B\x83o\x83b\x83t\x83@\x8F\xC1\x8B\x8E\x82\xF0\x8E󂯓\xFC\x82\xEA\x82\xE9\x81v</a>\x82\xF0\x92lj\xC1\x82\xB5\x82\xBD\x81B\x83f\x83t\x83H\x83\x8B\x83g\x82\xCDoff\x81B</li>
         </ul></li>
 	<li><a href="../menu/setup-additional.html#ClipboardAccessFromRemote">\x81u\x83\x8A\x83\x82\x81[\x83g\x82\xA9\x82\xE7\x82̃N\x83\x8A\x83b\x83v\x83{\x81[\x83h\x83A\x83N\x83Z\x83X\x81v</a>\x90ݒ\xE8\x82\xF0\x95ύX\x82\xB7\x82\xE9\x88ׂ̃R\x83}\x83\x93\x83h\x83\x89\x83C\x83\x93\x83I\x83v\x83V\x83\x87\x83\x93\x82Ƃ\xB5\x82\xC4<a href="../commandline/teraterm.html#osc52">/OSC52=</a>\x82\xF0\x92lj\xC1\x82\xB5\x82\xBD\x81B</li>
+      <li><a href="../menu/file.html">[File]</a> \x83\x81\x83j\x83\x85\x81[\x82\xC9 <a href="../menu/file.html#PauseLog">[Pause Logging]</a> / <a href="../menu/file.html#StopLog">[Stop Logging]</a> \x82\xF0\x92lj\xC1\x82\xB5\x82\xBD\x81B</li>
 
       <li>\x83V\x83\x8A\x83A\x83\x8B\x83|\x81[\x83g\x90ڑ\xB1
         <ul>

Modified: trunk/doc/ja/html/menu/file.html
===================================================================
--- trunk/doc/ja/html/menu/file.html	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/doc/ja/html/menu/file.html	2019-11-22 15:14:50 UTC (rev 8396)
@@ -27,6 +27,11 @@
         \x8E\xF3\x90M\x82\xB3\x82\xEA\x82镶\x8E\x9A\x82\xF0\x83t\x83@\x83C\x83\x8B\x82ɏ\x91\x82\xAB\x8D\x9E\x82݂܂\xB7\x81B
       </dd>
 
+      <dt id="PauseLog">Pause Logging</dt>
+      <dd>
+        \x83\x8D\x83O\x82̋L\x98^\x82\xF0\x88ꎞ\x92\x86\x92f\x82\xB5\x82܂\xB7\x81B
+      </dt>
+
       <dt>Comment to Log...</dt>
       <dd>
         \x83\x8D\x83O\x83t\x83@\x83C\x83\x8B\x82փR\x83\x81\x83\x93\x83g\x82\xF0\x92lj\xC1\x82\xB7\x82邱\x82Ƃ\xAA\x82ł\xAB\x82܂\xB7\x81B
@@ -43,6 +48,11 @@
         \x83\x8D\x83O\x83_\x83C\x83A\x83\x8D\x83O\x82\xF0\x95\\x8E\xA6\x82\xB5\x82܂\xB7\x81B
       </dd>
 
+      <dt id="StopLog">Stop Logging</dt>
+      <dd>
+        \x83\x8D\x83O\x82̋L\x98^\x82\xF0\x8FI\x97\xB9\x82\xB5\x82܂\xB7\x81B
+      </dt>
+
       <dt><a href="file-sendfile.html">Send file...</a></dt>
       <dd>
         \x83t\x83@\x83C\x83\x8B\x82𑗐M\x82\xB5\x82܂\xB7\x81B

Modified: trunk/installer/release/lang/English.lng
===================================================================
--- trunk/installer/release/lang/English.lng	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/installer/release/lang/English.lng	2019-11-22 15:14:50 UTC (rev 8396)
@@ -1,4 +1,4 @@
-; Updated by TeraTerm Project (2019-09-11)
+; Updated by TeraTerm Project (2019-11-22)
 
 [Tera Term]
 DLG_SYSTEM_FONT=System,14,0
@@ -9,9 +9,11 @@
 MENU_FILE_DUPLICATE=D&uplicate session\tAlt+D
 MENU_FILE_GYGWIN=Cy&gwin connection\tAlt+G
 MENU_FILE_LOG=&Log...
+MENU_FILE_PAUSELOG=Pause Logg&ing
 MENU_FILE_COMMENTLOG=C&omment to Log...
 MENU_FILE_VIEWLOG=&View Log
 MENU_FILE_SHOWLOGDIALOG=Sho&w Log dialog...
+MENU_FILE_STOPLOG=Stop Logging (&Q)
 MENU_FILE_SENDFILE=&Send file...
 MENU_FILE_CHANGEDIR=&Change directory...
 MENU_FILE_REPLAYLOG=&Replay Log...

Modified: trunk/installer/release/lang/French.lng
===================================================================
--- trunk/installer/release/lang/French.lng	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/installer/release/lang/French.lng	2019-11-22 15:14:50 UTC (rev 8396)
@@ -1,4 +1,4 @@
-; Updated by TeraTerm Project (2019-09-11)
+; Updated by TeraTerm Project (2019-11-22)
 ; Last translated (French language) by Francois MOCQ (2010-07-21)
 
 [Tera Term]
@@ -10,9 +10,11 @@
 MENU_FILE_DUPLICATE=D&upliquer la session\tAlt+D
 MENU_FILE_GYGWIN=Connexion Cy&gwin\tAlt+G
 MENU_FILE_LOG=&Journal...
+MENU_FILE_PAUSELOG=Pause Logg&ing
 MENU_FILE_COMMENTLOG=Ajouter un C&ommentaire au Journal...
 MENU_FILE_VIEWLOG=&Voir le Journal
 MENU_FILE_SHOWLOGDIALOG=Boite de dialogue du Journal...
+MENU_FILE_STOPLOG=Stop Logging (&Q)
 MENU_FILE_SENDFILE=&Envoyer un fichier...
 MENU_FILE_CHANGEDIR=&Changer de dossier...
 MENU_FILE_REPLAYLOG=&Reafficher le journal...

Modified: trunk/installer/release/lang/German.lng
===================================================================
--- trunk/installer/release/lang/German.lng	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/installer/release/lang/German.lng	2019-11-22 15:14:50 UTC (rev 8396)
@@ -1,4 +1,4 @@
-; Updated by TeraTerm Project (2019-09-11)
+; Updated by TeraTerm Project (2019-11-22)
 ; Last translated (German language) by Frederik Schwarzer (2010-05-17)
 
 [Tera Term]
@@ -10,9 +10,11 @@
 MENU_FILE_DUPLICATE=&Verbindung duplizieren\tAlt+D
 MENU_FILE_GYGWIN=&Cygwin-Verbindung\tAlt+G
 MENU_FILE_LOG=&Log...
+MENU_FILE_PAUSELOG=Pause Logg&ing
 MENU_FILE_COMMENTLOG=&Kommentar zum Log
 MENU_FILE_VIEWLOG=Log ansehen
 MENU_FILE_SHOWLOGDIALOG=Sho&w Log dialog...
+MENU_FILE_STOPLOG=Stop Logging (&Q)
 MENU_FILE_SENDFILE=Datei &senden
 MENU_FILE_CHANGEDIR=&Verzeichnis wechseln
 MENU_FILE_REPLAYLOG=&Log abspielen

Modified: trunk/installer/release/lang/Japanese.lng
===================================================================
--- trunk/installer/release/lang/Japanese.lng	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/installer/release/lang/Japanese.lng	2019-11-22 15:14:50 UTC (rev 8396)
@@ -1,4 +1,4 @@
-; Updated by TeraTerm Project (2019-09-11)
+; Updated by TeraTerm Project (2019-11-22)
 
 [Tera Term]
 DLG_SYSTEM_FONT=\x82l\x82r \x82o\x83S\x83V\x83b\x83N,12,128
@@ -9,9 +9,11 @@
 MENU_FILE_DUPLICATE=\x83Z\x83b\x83V\x83\x87\x83\x93\x82̕\xA1\x90\xBB(&U)\tAlt+D
 MENU_FILE_GYGWIN=Cygwin\x90ڑ\xB1(&G)\tAlt+G
 MENU_FILE_LOG=\x83\x8D\x83O(&L)...
+MENU_FILE_PAUSELOG=\x83\x8D\x83O\x82𒆒f(&I)
 MENU_FILE_COMMENTLOG=\x83\x8D\x83O\x82ɃR\x83\x81\x83\x93\x83g\x82\xF0\x95t\x89\xC1(&O)...
 MENU_FILE_VIEWLOG=\x83\x8D\x83O\x82\xF0\x95\\x8E\xA6(&V)
 MENU_FILE_SHOWLOGDIALOG=\x83\x8D\x83O\x83_\x83C\x83A\x83\x8D\x83O\x82\xF0\x95\\x8E\xA6(&W)...
+MENU_FILE_STOPLOG=\x83\x8D\x83O\x82\xF0\x8FI\x97\xB9(&Q)
 MENU_FILE_SENDFILE=\x83t\x83@\x83C\x83\x8B\x91\x97\x90M(&S)...
 MENU_FILE_CHANGEDIR=\x83f\x83B\x83\x8C\x83N\x83g\x83\x8A\x82\xF0\x95ύX(&C)...
 MENU_FILE_REPLAYLOG=\x83\x8D\x83O\x82\xF0\x8DĐ\xB6(&R)...

Modified: trunk/installer/release/lang/Korean.lng
===================================================================
--- trunk/installer/release/lang/Korean.lng	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/installer/release/lang/Korean.lng	2019-11-22 15:14:50 UTC (rev 8396)
@@ -1,4 +1,4 @@
-; Updated by TeraTerm Project (2019-09-11)
+; Updated by TeraTerm Project (2019-11-22)
 ; Last translated (Korean language) by Daehong Kim (2013-07-25)
 
 [Tera Term]
@@ -10,9 +10,11 @@
 MENU_FILE_DUPLICATE=\xBC\xBC\xBC\xC7 \xBA\xB9\xBB\xE7(&U)\tAlt+D
 MENU_FILE_GYGWIN=Cygwin \xBF\xAC\xB0\xE1(&G)\tAlt+G
 MENU_FILE_LOG=\xB7α\xD7(&L)...
+MENU_FILE_PAUSELOG=Pause Logg&ing
 MENU_FILE_COMMENTLOG=\xB7α\xD7 \xC1ּ\xAE(&O)...
 MENU_FILE_VIEWLOG=\xB7α\xD7 \xBA\xB8\xB1\xE2(&V)
 MENU_FILE_SHOWLOGDIALOG=\xB7α\xD7 \xB4\xD9\xC0̾\xF3\xB7α\xD7(&W)...
+MENU_FILE_STOPLOG=Stop Logging (&Q)
 MENU_FILE_SENDFILE=\xC6\xC4\xC0\xCF \xBA\xB8\xB3\xBB\xB1\xE2(&S)...
 MENU_FILE_CHANGEDIR=\xC6\xFA\xB4\xF5 \xBA\xAF\xB0\xE6(&C)...
 MENU_FILE_REPLAYLOG=\xB7α\xD7 \xC0\xE7\xBD\xC7\xC7\xE0(&R)...

Modified: trunk/installer/release/lang/Russian.lng
===================================================================
--- trunk/installer/release/lang/Russian.lng	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/installer/release/lang/Russian.lng	2019-11-22 15:14:50 UTC (rev 8396)
@@ -1,4 +1,4 @@
-; Updated by TeraTerm Project (2019-09-11)
+; Updated by TeraTerm Project (2019-11-22)
 ; Last translated (Russian language) by Ryumik Sergey (2017-07-19)
 
 [Tera Term]
@@ -10,9 +10,11 @@
 MENU_FILE_DUPLICATE=&\xCF\xEE\xE2\xF2\xEE\xF0\xED\xE0\xFF \xF1\xE5\xF1\xF1\xE8\xFF\tAlt+D
 MENU_FILE_GYGWIN=Cy&gwin \xF1\xEE\xE5\xE4\xE8\xED\xE5\xED\xE8\xE5\tAlt+G
 MENU_FILE_LOG=&\xCB\xEE\xE3...
+MENU_FILE_PAUSELOG=Pause Logg&ing
 MENU_FILE_COMMENTLOG=&\xCA\xEE\xEC\xEC\xE5\xED\xF2\xE0\xF0\xE8\xE8 \xEA \xEB\xEE\xE3\xF3...
 MENU_FILE_VIEWLOG=&\xCF\xF0\xEE\xF1\xEC\xEE\xF2\xF0\xE5\xF2\xFC \xEB\xEE\xE3
 MENU_FILE_SHOWLOGDIALOG=&\xCF\xEE\xEA\xE0\xE7\xE0\xF2\xFC \xE4\xE8\xE0\xEB\xEE\xE3...
+MENU_FILE_STOPLOG=Stop Logging (&Q)
 MENU_FILE_SENDFILE=&\xCF\xE5\xF0\xE5\xE4\xE0\xF2\xFC \xF4\xE0\xE9\xEB...
 MENU_FILE_CHANGEDIR=&\xC8\xE7\xEC\xE5\xED\xE8\xF2\xFC \xEF\xF3\xF2\xFC...
 MENU_FILE_REPLAYLOG=&\xC2\xEE\xF1\xEF\xF0\xEE\xE8\xE7\xE2\xE5\xF1\xF2\xE8 \xEB\xEE\xE3...

Modified: trunk/installer/release/lang/Simplified Chinese.lng
===================================================================
--- trunk/installer/release/lang/Simplified Chinese.lng	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/installer/release/lang/Simplified Chinese.lng	2019-11-22 15:14:50 UTC (rev 8396)
@@ -1,4 +1,4 @@
-; Updated by TeraTerm Project (2019-09-11)
+; Updated by TeraTerm Project (2019-11-22)
 ; Last translated (Simplified Chinese language) by LiShaohui (2017-04-11)
 
 [Tera Term]
@@ -10,9 +10,11 @@
 MENU_FILE_DUPLICATE=\xB8\xB4\xD6ƻỰ(&U)\tAlt+D
 MENU_FILE_GYGWIN=Cygwin\xC1\xAC\xBD\xD3(&G)\tAlt+G
 MENU_FILE_LOG=\xC8\xD5־(&L)...
+MENU_FILE_PAUSELOG=Pause Logg&ing
 MENU_FILE_COMMENTLOG=ע\xCA\xCD\xC8\xD5־(&O)...
 MENU_FILE_VIEWLOG=\xB2鿴\xC8\xD5־(&V)
 MENU_FILE_SHOWLOGDIALOG=\xCF\xD4ʾ\xC8\xD5־\xB6Ի\xB0\xBF\xF2(&W)...
+MENU_FILE_STOPLOG=Stop Logging (&Q)
 MENU_FILE_SENDFILE=\xB7\xA2\xCB\xCD\xCEļ\xFE(&S)...
 MENU_FILE_CHANGEDIR=\xB8\xFC\xB8\xC4Ŀ¼(&C)...
 MENU_FILE_REPLAYLOG=\xD6ز\xA5\xC8\xD5־(&R)...

Modified: trunk/installer/release/lang/Traditional Chinese.lng
===================================================================
--- trunk/installer/release/lang/Traditional Chinese.lng	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/installer/release/lang/Traditional Chinese.lng	2019-11-22 15:14:50 UTC (rev 8396)
@@ -1,4 +1,4 @@
-; Updated by TeraTerm Project (2019-09-11)
+; Updated by TeraTerm Project (2019-11-22)
 ; Last translated (Traditional Chinese language) by kikiqqp (2014-09-20)
 
 [Tera Term]
@@ -10,9 +10,11 @@
 MENU_FILE_DUPLICATE=\xBDƻs\xB5\xF8\xB5\xA1(&U)\tAlt+D
 MENU_FILE_GYGWIN=Cygwin\xB3s\xBDu(&G)\tAlt+G
 MENU_FILE_LOG=\xA4\xE9\xBBx(&L)...
+MENU_FILE_PAUSELOG=Pause Logg&ing
 MENU_FILE_COMMENTLOG=\xB5\xF9\xC4\xC0\xA4\xE9\xBBx(&O)...
 MENU_FILE_VIEWLOG=\xACd\xACݤ\xE9\xBBx(&V)
 MENU_FILE_SHOWLOGDIALOG=\xC5\xE3\xA5ܤ\xE9\xBBx\xB9\xEF\xB8ܮ\xD8(&W)...
+MENU_FILE_STOPLOG=Stop Logging (&Q)
 MENU_FILE_SENDFILE=\xB5o\xB0e\xA4\xE5\xA5\xF3(&S)...
 MENU_FILE_CHANGEDIR=\xA7\xF3\xA7\xEF\xA5ؿ\xFD(&C)...
 MENU_FILE_REPLAYLOG=\xAD\xAB\xBC\xBD\xA4\xE9\xBBx(&R)...

Modified: trunk/teraterm/common/tt_res.h
===================================================================
--- trunk/teraterm/common/tt_res.h	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/teraterm/common/tt_res.h	2019-11-22 15:14:50 UTC (rev 8396)
@@ -259,6 +259,8 @@
 #define ID_FILE_COMMENTTOLOG            50121
 #define ID_FILE_VIEWLOG                 50122
 #define ID_FILE_SHOWLOGDIALOG           50123
+#define ID_FILE_PAUSELOG                50124
+#define ID_FILE_STOPLOG                 50125
 #define ID_FILE_SENDFILE                50130
 #define ID_FILE_KERMITRCV               50141
 #define ID_FILE_KERMITGET               50142

Modified: trunk/teraterm/teraterm/ttermpro.rc
===================================================================
--- trunk/teraterm/teraterm/ttermpro.rc	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/teraterm/teraterm/ttermpro.rc	2019-11-22 15:14:50 UTC (rev 8396)
@@ -517,9 +517,11 @@
         MENUITEM "Cy&gwin connection\tAlt+G",   ID_FILE_CYGWINCONNECTION
         MENUITEM SEPARATOR
         MENUITEM "&Log...",                     ID_FILE_LOG
+        MENUITEM "Pause Logg&ing",              ID_FILE_PAUSELOG
         MENUITEM "C&omment to Log...",          ID_FILE_COMMENTTOLOG
         MENUITEM "&View Log",                   ID_FILE_VIEWLOG
         MENUITEM "Sho&w Log dialog...",         ID_FILE_SHOWLOGDIALOG
+        MENUITEM "Stop Logging (&Q)",           ID_FILE_STOPLOG
         MENUITEM "&Send file...",               ID_FILE_SENDFILE
         POPUP "&Transfer"
         BEGIN

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/teraterm/teraterm/vtwin.cpp	2019-11-22 15:14:50 UTC (rev 8396)
@@ -1117,6 +1117,12 @@
 	GetMenuString(FileMenu, ID_FILE_SHOWLOGDIALOG, uimsg, sizeof(uimsg), MF_BYCOMMAND);
 	get_lang_msg("MENU_FILE_SHOWLOGDIALOG", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
 	ModifyMenu(FileMenu, ID_FILE_SHOWLOGDIALOG, MF_BYCOMMAND, ID_FILE_SHOWLOGDIALOG, ts.UIMsg);
+	GetMenuString(FileMenu, ID_FILE_PAUSELOG, uimsg, sizeof(uimsg), MF_BYCOMMAND);
+	get_lang_msg("MENU_FILE_PAUSELOG", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
+	ModifyMenu(FileMenu, ID_FILE_PAUSELOG, MF_BYCOMMAND, ID_FILE_PAUSELOG, ts.UIMsg);
+	GetMenuString(FileMenu, ID_FILE_STOPLOG, uimsg, sizeof(uimsg), MF_BYCOMMAND);
+	get_lang_msg("MENU_FILE_STOPLOG", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
+	ModifyMenu(FileMenu, ID_FILE_STOPLOG, MF_BYCOMMAND, ID_FILE_STOPLOG, ts.UIMsg);
 	GetMenuString(FileMenu, ID_FILE_SENDFILE, uimsg, sizeof(uimsg), MF_BYCOMMAND);
 	get_lang_msg("MENU_FILE_SENDFILE", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
 	ModifyMenu(FileMenu, ID_FILE_SENDFILE, MF_BYCOMMAND, ID_FILE_SENDFILE, ts.UIMsg);
@@ -1144,9 +1150,9 @@
 	get_lang_msg("MENU_FILE_EXITALL", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
 	ModifyMenu(FileMenu, ID_FILE_EXITALL, MF_BYCOMMAND, ID_FILE_EXITALL, ts.UIMsg);
 
-	GetMenuString(FileMenu, 9, uimsg, sizeof(uimsg), MF_BYPOSITION);
+	GetMenuString(FileMenu, 11, uimsg, sizeof(uimsg), MF_BYPOSITION);
 	get_lang_msg("MENU_TRANS", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
-	ModifyMenu(FileMenu, 9, MF_BYPOSITION, 9, ts.UIMsg);
+	ModifyMenu(FileMenu, 11, MF_BYPOSITION, 11, ts.UIMsg);
 
 	GetMenuString(FileMenu, ID_FILE_KERMITRCV, uimsg, sizeof(uimsg), MF_BYCOMMAND);
 	get_lang_msg("MENU_TRANS_KERMIT_RCV", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
@@ -1383,11 +1389,23 @@
 			EnableMenuItem(FileMenu,ID_FILE_COMMENTTOLOG, MF_BYCOMMAND | MF_ENABLED);
 			EnableMenuItem(FileMenu,ID_FILE_VIEWLOG, MF_BYCOMMAND | MF_ENABLED);
 			EnableMenuItem(FileMenu,ID_FILE_SHOWLOGDIALOG, MF_BYCOMMAND | MF_ENABLED);
+			EnableMenuItem(FileMenu,ID_FILE_PAUSELOG, MF_BYCOMMAND | MF_ENABLED);
+			EnableMenuItem(FileMenu,ID_FILE_STOPLOG, MF_BYCOMMAND | MF_ENABLED);
+			if (cv.FilePause & OpLog) {
+				CheckMenuItem(FileMenu,ID_FILE_PAUSELOG, MF_BYCOMMAND | MF_CHECKED);
+			}
+			else {
+				CheckMenuItem(FileMenu,ID_FILE_PAUSELOG, MF_BYCOMMAND | MF_UNCHECKED);
+			}
 		} else {
 			EnableMenuItem(FileMenu,ID_FILE_LOG,MF_BYCOMMAND | MF_ENABLED);
 			EnableMenuItem(FileMenu,ID_FILE_COMMENTTOLOG, MF_BYCOMMAND | MF_GRAYED);
 			EnableMenuItem(FileMenu,ID_FILE_VIEWLOG, MF_BYCOMMAND | MF_GRAYED);
 			EnableMenuItem(FileMenu,ID_FILE_SHOWLOGDIALOG, MF_BYCOMMAND | MF_GRAYED);
+			EnableMenuItem(FileMenu,ID_FILE_PAUSELOG, MF_BYCOMMAND | MF_GRAYED);
+			EnableMenuItem(FileMenu,ID_FILE_STOPLOG, MF_BYCOMMAND | MF_GRAYED);
+
+			CheckMenuItem(FileMenu,ID_FILE_PAUSELOG, MF_BYCOMMAND | MF_UNCHECKED);
 		}
 
 	}
@@ -4219,7 +4237,18 @@
 	ShowFTDlg(OpLog);
 }
 
+// \x83\x8D\x83O\x8E擾\x82𒆒f/\x8DĊJ\x82\xB7\x82\xE9
+void CVTWindow::OnPauseLog()
+{
+	FLogChangeButton(!(cv.FilePause & OpLog));
+}
 
+// \x83\x8D\x83O\x8E擾\x82\xF0\x8FI\x97\xB9\x82\xB7\x82\xE9
+void CVTWindow::OnStopLog()
+{
+	FileTransEnd(OpLog);
+}
+
 // \x83\x8D\x83O\x82̍Đ\xB6 (2006.12.13 yutaka)
 void CVTWindow::OnReplayLog()
 {
@@ -6556,6 +6585,8 @@
 		case ID_FILE_COMMENTTOLOG: OnCommentToLog(); break;
 		case ID_FILE_VIEWLOG: OnViewLog(); break;
 		case ID_FILE_SHOWLOGDIALOG: OnShowLogDialog(); break;
+		case ID_FILE_PAUSELOG: OnPauseLog(); break;
+		case ID_FILE_STOPLOG: OnStopLog(); break;
 		case ID_FILE_REPLAYLOG: OnReplayLog(); break;
 		case ID_FILE_SENDFILE: OnFileSend(); break;
 		case ID_FILE_KERMITRCV: OnFileKermitRcv(); break;

Modified: trunk/teraterm/teraterm/vtwin.h
===================================================================
--- trunk/teraterm/teraterm/vtwin.h	2019-11-22 15:14:44 UTC (rev 8395)
+++ trunk/teraterm/teraterm/vtwin.h	2019-11-22 15:14:50 UTC (rev 8396)
@@ -159,6 +159,8 @@
 	void OnCommentToLog();
 	void OnViewLog();
 	void OnShowLogDialog();
+	void OnPauseLog();
+	void OnStopLog();
 	void OnReplayLog();
 	void OnExternalSetup();
 	void OnFileSend();


Ttssh2-commit メーリングリストの案内
Back to archive index