[Ttssh2-commit] [4480] ジャンプリスのの ( 不 ) 使用の設定を、ホスト履歴の設定から分離。

svnno****@sourc***** svnno****@sourc*****
2011年 6月 6日 (月) 09:55:49 JST


Revision: 4480
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4480
Author:   doda
Date:     2011-06-06 09:55:49 +0900 (Mon, 06 Jun 2011)

Log Message:
-----------
ジャンプリスのの(不)使用の設定を、ホスト履歴の設定から分離。

Modified Paths:
--------------
    trunk/teraterm/common/tttypes.h
    trunk/teraterm/teraterm/vtwin.cpp
    trunk/teraterm/ttpset/ttset.c


-------------- next part --------------
Modified: trunk/teraterm/common/tttypes.h
===================================================================
--- trunk/teraterm/common/tttypes.h	2011-06-01 14:53:36 UTC (rev 4479)
+++ trunk/teraterm/common/tttypes.h	2011-06-06 00:55:49 UTC (rev 4480)
@@ -507,6 +507,7 @@
 	WORD DisableMenuNewConnection;
 	char TerminalUID[9];
 	WORD ConfirmChangePasteCR;
+	WORD JumpList;
 };
 
 typedef struct tttset TTTSet, *PTTSet;
@@ -949,6 +950,9 @@
  * Increment the number of this macro value
  * when you change TMap or member of TMap.
  *
+ * - At version 4.70, ttset_memfilemap was replaced with ttset_memfilemap_16.
+ *   added tttset.JumpList.
+ *
  * - At version 4.69, ttset_memfilemap was replaced with ttset_memfilemap_15.
  *   added tttset.TerminalUID.
  *   added tttset.ConfirmChangePasteCR.
@@ -1044,4 +1048,4 @@
  *   added tttset.VTCompatTab.
  */
 
-#define TT_FILEMAPNAME "ttset_memfilemap_15"
+#define TT_FILEMAPNAME "ttset_memfilemap_16"

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2011-06-01 14:53:36 UTC (rev 4479)
+++ trunk/teraterm/teraterm/vtwin.cpp	2011-06-06 00:55:49 UTC (rev 4480)
@@ -3374,12 +3374,13 @@
 	}
 
 	if ((*GetHostName)(HVTWin,&GetHNRec)) {
-		if ((GetHNRec.PortType==IdTCPIP) &&
-		    (ts.HistoryList>0) &&
-		    LoadTTSET()) {
-
-			(*AddHostToList)(ts.SetupFName,GetHNRec.HostName);
-			add_session_to_jumplist(GetHNRec.HostName, GetHNRec.SetupFN);
+		if ((GetHNRec.PortType==IdTCPIP) && LoadTTSET()) {
+			if (ts.HistoryList) {
+				(*AddHostToList)(ts.SetupFName,GetHNRec.HostName);
+			}
+			if (ts.JumpList) {
+				add_session_to_jumplist(GetHNRec.HostName, GetHNRec.SetupFN);
+			}
 			FreeTTSET();
 		}
 

Modified: trunk/teraterm/ttpset/ttset.c
===================================================================
--- trunk/teraterm/ttpset/ttset.c	2011-06-01 14:53:36 UTC (rev 4479)
+++ trunk/teraterm/ttpset/ttset.c	2011-06-06 00:55:49 UTC (rev 4480)
@@ -1415,6 +1415,9 @@
 	// Confirm PasteCR
 	ts->ConfirmChangePasteCR = GetOnOff(Section, "ConfirmChangePasteCR", FName, TRUE);
 
+	// Jump List
+	ts->JumpList = GetOnOff(Section, "JumpList", FName, TRUE);
+
 	// Use invalid DECRPSS (for testing)
 	if (GetOnOff(Section, "UseInvalidDECRQSSResponse", FName, FALSE))
 		ts->TermFlag |= TF_INVALIDDECRPSS;
@@ -2461,6 +2464,9 @@
 
 	// Confirm PasteCR
 	WriteOnOff(Section, "ConfirmChangePasteCR", FName, ts->ConfirmChangePasteCR);
+
+	// Confirm PasteCR
+	WriteOnOff(Section, "JumpList", FName, ts->JumpList);
 }
 
 #define VTEditor "VT editor keypad"



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