[Ttssh2-commit] [3964] Duplicate session メニューを無効にできるようにした

Back to archive index

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‚̍ŏ¬‰»‚³‚ê‚Ä‚¢‚È‚¢ƒEƒBƒ“ƒhƒE‚ð•\Ž¦‚·‚éƒVƒ‡[ƒgƒJƒbƒgƒL[ NextShownWin/PrevShownWin ‚ð’ljÁ‚µ‚½B</li>
+      <li>ƒƒjƒ…[‚Ì Duplicate session ‚𖳌ø‚É‚Å‚«‚é‚悤‚É‚µ‚½B
+        <ul>
+          <li>teraterm.ini ‚É <a href="../setup/teraterm-misc.html#DisableMenuDuplicateSession">DisableMenuDuplicateSession</a> ƒGƒ“ƒgƒŠ‚ð’ljÁ‚µ‚½BƒfƒtƒHƒ‹ƒg‚Í offB</li>
+        </ul></li>
       <li>ƒ}ƒNƒƒRƒ}ƒ“ƒh "<a href="../macro/command/filetruncate.html">filetruncate</a>" ‚ð’ljÁ‚µ‚½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] ƒZƒNƒVƒ‡ƒ“‚Ì DisableAcceleratorMenu s‚ðˆÈ‰º‚̂悤‚ɕύX‚µ‚Ä‚­‚¾‚³‚¢B
+ƒƒjƒ…[‚Ì "Send break" ‚𖳌ø‚É‚·‚é‚ɂ́AÝ’èƒtƒ@ƒCƒ‹‚Ì [Tera Term] ƒZƒNƒVƒ‡ƒ“‚Ì 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] ƒZƒNƒVƒ‡ƒ“‚Ì DisableMenuDuplicateSession s‚ðˆÈ‰º‚̂悤‚ɕύX‚µ‚Ä‚­‚¾‚³‚¢B
+</p>
+
+<pre>
+DisableMenuDuplicateSession=on
+</pre>
+
+<pre>
+È—ªŽž:
+DisableMenuDuplicateSession=off
+</pre>
+
+
 <h1><a name="ClearScreenOnCloseConnection">Ø’fŽž‚ɉæ–Ê‚ðƒNƒŠƒA‚·‚é</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);
+			}
 		}
 
 		// V‹Kƒƒjƒ…[‚ð’ljÁ (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);



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