svnno****@sourc*****
svnno****@sourc*****
2010年 8月 3日 (火) 09:12:14 JST
Revision: 3964 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3964 Author: maya Date: 2010-08-03 09:12:13 +0900 (Tue, 03 Aug 2010) Log Message: ----------- Duplicate session ã¡ãã¥ã¼ãç¡å¹ã«ã§ããããã«ãã Modified Paths: -------------- trunk/doc/en/html/about/history.html trunk/doc/en/html/setup/teraterm-misc.html trunk/doc/ja/html/about/history.html trunk/doc/ja/html/setup/teraterm-misc.html trunk/installer/release/TERATERM.INI trunk/teraterm/common/tttypes.h trunk/teraterm/teraterm/vtwin.cpp trunk/teraterm/ttpset/ttset.c -------------- next part -------------- Modified: trunk/doc/en/html/about/history.html =================================================================== --- trunk/doc/en/html/about/history.html 2010-08-02 09:35:03 UTC (rev 3963) +++ trunk/doc/en/html/about/history.html 2010-08-03 00:12:13 UTC (rev 3964) @@ -35,6 +35,9 @@ <li>Changes <ul> <li>added the NextShownWin and PrevShownWin of new shortcut keys in the KEYBOARD.CNF file that display a next or previous window not minimized.</li> + <li>added a new optional setting that can disable the menu for "Duplicate session". + <ul> + <li>added the <a href="../setup/teraterm-misc.html#DisableMenuDuplicateSession">DisableMenuDuplicateSession</a> in the teraterm.ini file. The default is off.</li> <li>added the "<a href="../macro/command/filetruncate.html">filetruncate</a>" macro command.</li> </ul> </li> @@ -268,7 +271,7 @@ <li>added the millisecond at the log timestamp line.</li> <li>respond for Secondary DA request only when it has no parameter or parameter 0.</li> <li>add experimental support for the motion event of mouse event notify.</li> - <li>added a new optional setting that can disable the menu for "Duplicate session". Special thanks to peterprvy. + <li>added a new optional setting that can disable the menu for "Send Break". Special thanks to peterprvy. <ul> <li>added the <a href="../setup/teraterm-misc.html#DisableMenuSendBreak">DisableMenuSendBreak</a> in the teraterm.ini file. The default is off.</li> </ul></li> Modified: trunk/doc/en/html/setup/teraterm-misc.html =================================================================== --- trunk/doc/en/html/setup/teraterm-misc.html 2010-08-02 09:35:03 UTC (rev 3963) +++ trunk/doc/en/html/setup/teraterm-misc.html 2010-08-03 00:12:13 UTC (rev 3964) @@ -139,19 +139,35 @@ <h1><a name="DisableMenuSendBreak">Disable "Send break" menu</a></h1> <p> -In order to disable "Send break" menu, change the DisableAcceleratorMenu line at [Tera Term] section of the setup file like the following: +In order to disable "Send break" menu, change the DisableMenuSendBreak line at [Tera Term] section of the setup file like the following: </p> <pre> -DisableAcceleratorMenu=on +DisableMenuSendBreak=on </pre> <pre> Default: -DisableAcceleratorMenu=off +DisableMenuSendBreak=off </pre> +<h1><a name="DisableMenuDuplicateSession">Disable "Duplicate session" menu</a></h1> + +<p> +In order to disable "Duplicate session" menu, change the DisableMenuDuplicateSession line at [Tera Term] section of the setup file like the following: +</p> + +<pre> +DisableMenuDuplicateSession=on +</pre> + +<pre> +Default: +DisableMenuDuplicateSession=off +</pre> + + <h1><a name="ClearScreenOnCloseConnection">Clear the screen when disconnected</a></h1> <p> Modified: trunk/doc/ja/html/about/history.html =================================================================== --- trunk/doc/ja/html/about/history.html 2010-08-02 09:35:03 UTC (rev 3963) +++ trunk/doc/ja/html/about/history.html 2010-08-03 00:12:13 UTC (rev 3964) @@ -35,6 +35,10 @@ <li>ÏX <ul> <li>L[{[hÝèt@CÉA/OÌŬ»³êĢȢEBhEð\¦·éV[gJbgL[ NextShownWin/PrevShownWin ðÇÁµ½B</li> + <li>j [Ì Duplicate session ð³øÉÅ«éæ¤Éµ½B + <ul> + <li>teraterm.ini É <a href="../setup/teraterm-misc.html#DisableMenuDuplicateSession">DisableMenuDuplicateSession</a> GgðÇÁµ½BftHgÍ offB</li> + </ul></li> <li>}NR}h "<a href="../macro/command/filetruncate.html">filetruncate</a>" ðÇÁµ½B</li> </ul> </li> Modified: trunk/doc/ja/html/setup/teraterm-misc.html =================================================================== --- trunk/doc/ja/html/setup/teraterm-misc.html 2010-08-02 09:35:03 UTC (rev 3963) +++ trunk/doc/ja/html/setup/teraterm-misc.html 2010-08-03 00:12:13 UTC (rev 3964) @@ -166,19 +166,35 @@ <h1><a name="DisableMenuSendBreak">j [Ì Send break ð³øÉ·é</a></h1> <p> -j [Ì "Send break" ð³øÉ·éÉÍAÝèt@CÌ [Tera Term] ZNVÌ DisableAcceleratorMenu sðȺÌæ¤ÉÏXµÄ¾³¢B +j [Ì "Send break" ð³øÉ·éÉÍAÝèt@CÌ [Tera Term] ZNVÌ DisableMenuSendBreak sðȺÌæ¤ÉÏXµÄ¾³¢B </p> <pre> -DisableAcceleratorMenu=on +DisableMenuSendBreak=on </pre> <pre> Ȫ: -DisableAcceleratorMenu=off +DisableMenuSendBreak=off </pre> +<h1><a name="DisableMenuDuplicateSession">j [Ì Duplicate session ð³øÉ·é</a></h1> + +<p> +j [Ì "Duplicate session" ð³øÉ·éÉÍAÝèt@CÌ [Tera Term] ZNVÌ DisableMenuDuplicateSession sðȺÌæ¤ÉÏXµÄ¾³¢B +</p> + +<pre> +DisableMenuDuplicateSession=on +</pre> + +<pre> +Ȫ: +DisableMenuDuplicateSession=off +</pre> + + <h1><a name="ClearScreenOnCloseConnection">ØfÉæÊðNA·é</a></h1> <p> Modified: trunk/installer/release/TERATERM.INI =================================================================== --- trunk/installer/release/TERATERM.INI 2010-08-02 09:35:03 UTC (rev 3963) +++ trunk/installer/release/TERATERM.INI 2010-08-03 00:12:13 UTC (rev 3964) @@ -67,6 +67,9 @@ ; Send break by Alt-B Accelerator key disabled DisableAcceleratorSendBreak=off +; Duplicate session Menu disabled +DisableMenuDuplicateSession=off + ; Send break Menu disabled DisableMenuSendBreak=off Modified: trunk/teraterm/common/tttypes.h =================================================================== --- trunk/teraterm/common/tttypes.h 2010-08-02 09:35:03 UTC (rev 3963) +++ trunk/teraterm/common/tttypes.h 2010-08-03 00:12:13 UTC (rev 3964) @@ -497,6 +497,7 @@ DWORD Baud; WORD LogBinary; int pureutf8; + WORD DisableMenuDuplicateSession; }; typedef struct tttset TTTSet, *PTTSet; @@ -927,6 +928,7 @@ * - At version 4.67, ttset_memfilemap was replaced with ttset_memfilemap_13. * added tttset.pureutf8. * added NextShownWin/PrevShownWin shortcut key. + * added tttset.DisableMenuDuplicateSession. * * - At version 4.66, ttset_memfilemap was replaced with ttset_memfilemap_12. * renamed tttset.Baud to Baud_. Modified: trunk/teraterm/teraterm/vtwin.cpp =================================================================== --- trunk/teraterm/teraterm/vtwin.cpp 2010-08-02 09:35:03 UTC (rev 3963) +++ trunk/teraterm/teraterm/vtwin.cpp 2010-08-03 00:12:13 UTC (rev 3964) @@ -1264,7 +1264,12 @@ EnableMenuItem(FileMenu,ID_TRANSFER,MF_BYPOSITION | MF_ENABLED); /* Transfer */ EnableMenuItem(FileMenu,ID_FILE_CHANGEDIR,MF_BYCOMMAND | MF_ENABLED); EnableMenuItem(FileMenu,ID_FILE_DISCONNECT,MF_BYCOMMAND | MF_ENABLED); - EnableMenuItem(FileMenu,ID_FILE_DUPLICATESESSION,MF_BYCOMMAND | MF_ENABLED); + if (ts.DisableMenuDuplicateSession) { + EnableMenuItem(FileMenu,ID_FILE_DUPLICATESESSION,MF_BYCOMMAND | MF_GRAYED); + } + else { + EnableMenuItem(FileMenu,ID_FILE_DUPLICATESESSION,MF_BYCOMMAND | MF_ENABLED); + } } // VKj [ðÇÁ (2004.12.5 yutaka) Modified: trunk/teraterm/ttpset/ttset.c =================================================================== --- trunk/teraterm/ttpset/ttset.c 2010-08-02 09:35:03 UTC (rev 3963) +++ trunk/teraterm/ttpset/ttset.c 2010-08-03 00:12:13 UTC (rev 3964) @@ -1298,6 +1298,10 @@ ts->DisableAcceleratorDuplicateSession = GetOnOff(Section, "DisableAcceleratorDuplicateSession", FName, FALSE); + // added DisableMenuDuplicateSession (2010.8.3 maya) + ts->DisableMenuDuplicateSession = + GetOnOff(Section, "DisableMenuDuplicateSession", FName, FALSE); + // added PasteDelayPerLine (2009.4.12 maya) ts->PasteDelayPerLine = GetPrivateProfileInt(Section, "PasteDelayPerLine", 10, FName); @@ -2306,6 +2310,10 @@ WriteOnOff(Section, "DisableAcceleratorDuplicateSession", FName, ts->DisableAcceleratorDuplicateSession); + // DisableMenuDuplicateSession + WriteOnOff(Section, "DisableMenuDuplicateSession", FName, + ts->DisableMenuDuplicateSession); + // added PasteDelayPerLine (2009.4.12 maya) WriteInt(Section, "PasteDelayPerLine", FName, ts->PasteDelayPerLine);