[Ttssh2-commit] [6598] Replay again を追加

svnno****@sourc***** svnno****@sourc*****
2017年 2月 21日 (火) 13:05:58 JST


Revision: 6598
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6598
Author:   doda
Date:     2017-02-21 13:05:58 +0900 (Tue, 21 Feb 2017)
Log Message:
-----------
Replay again を追加

Modified Paths:
--------------
    trunk/TTXSamples/TTXttyrec/TTXttyplay.c
    trunk/doc/en/html/about/history.html
    trunk/doc/ja/html/about/history.html

-------------- next part --------------
Modified: trunk/TTXSamples/TTXttyrec/TTXttyplay.c
===================================================================
--- trunk/TTXSamples/TTXttyrec/TTXttyplay.c	2017-02-21 04:05:52 UTC (rev 6597)
+++ trunk/TTXSamples/TTXttyrec/TTXttyplay.c	2017-02-21 04:05:58 UTC (rev 6598)
@@ -20,6 +20,7 @@
 
 #define ORDER 6001
 #define ID_MENU_REPLAY 55302
+#define ID_MENU_AGAIN  55303
 
 #define BUFFSIZE 2000
 
@@ -42,6 +43,7 @@
 	BOOL enable;
 	BOOL ChangeTitle;
 	BOOL ReplaceHostDlg;
+	BOOL played;
 	HMENU FileMenu;
 	HMENU ControlMenu;
 	int maxwait;
@@ -107,6 +109,7 @@
 	pvar->enable = FALSE;
 	pvar->ChangeTitle = FALSE;
 	pvar->ReplaceHostDlg = FALSE;
+	pvar->played = FALSE;
 	gettimeofday(&(pvar->last), NULL);
 	pvar->wait.tv_sec = 0;
 	pvar->wait.tv_usec = 1;
@@ -315,6 +318,7 @@
 	if (pvar->enable) {
 		RestoreOLDTitle();
 		pvar->enable = FALSE;
+		pvar->played = TRUE;
 	}
 }
 
@@ -328,6 +332,9 @@
 		flag |= MF_GRAYED;
 	}
 	InsertMenu(pvar->FileMenu, ID_FILE_PRINT2, flag, ID_MENU_REPLAY, "TTY R&eplay");
+	if (pvar->played) {
+		InsertMenu(pvar->FileMenu, ID_FILE_PRINT2, flag, ID_MENU_AGAIN, "Replay again");
+	}
 	InsertMenu(pvar->FileMenu, ID_FILE_PRINT2, MF_BYCOMMAND | MF_SEPARATOR, 0, NULL);
 
 //	InsertMenu(menu, ID_HELPMENU, MF_ENABLED, ID_MENU_REPLAY, "&t");
@@ -397,6 +404,16 @@
 			}
 		}
 		return 1;
+	case ID_MENU_AGAIN:
+		if (pvar->played) {
+			// Clear Buffer
+			SendMessage(hWin, WM_COMMAND, MAKELONG(ID_EDIT_CLEARBUFFER, 0), 0);
+			pvar->played = FALSE;
+			pvar->ReplaceHostDlg = TRUE;
+			// Call New-Connection dialog
+			SendMessage(hWin, WM_COMMAND, MAKELONG(ID_FILE_NEWCONNECTION, 0), 0);
+		}
+		return 1;
 	}
 	return 0;
 }

Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2017-02-21 04:05:52 UTC (rev 6597)
+++ trunk/doc/en/html/about/history.html	2017-02-21 04:05:58 UTC (rev 6598)
@@ -53,6 +53,7 @@
   <li>Misc
     <ul>
       <li>upgraded TTSSH to <a href="#ttssh_2.80">2.80</a></li>
+      <li>upgraded TTXttyrec Plug-in to <a href="#ttyrec_1.03">1.03</a></li>
       <li>upgraded Oniguruma to 6.1.3.</li>
       <!-- li>LogMeTT, TTLEditor \x82̃C\x83\x93\x83X\x83g\x81[\x83\x89\x82̋N\x93\xAE\x95\xFB\x96@\x82\xF0\x95ύX\x82\xB5\x82\xBD\x81B</li -->
     </ul>
@@ -4539,6 +4540,11 @@
 </ul>
 
 <h2><a name="ttyrec">TTXttyrec</a></h2>
+<h3><a name="ttyrec_1.03">2017.x.xx (Ver 1.03)</a></h3>
+<ul class="history">
+  <!-- li>\x8DĐ\xB6\x8FI\x97\xB9\x8C\xE3\x81A\x8Dēx\x8DĐ\xB6\x82\xB7\x82\xE9\x88ׂ\xCC [Replay again] \x82\xF0 [File] \x83\x81\x83j\x83\x85\x81[\x82ɒlj\xC1\x82\xB7\x82\xE9\x82悤\x82ɂ\xB5\x82\xBD\x81B</li -->
+</ul>
+
 <h3><a name="ttyrec_1.02">2010.2.20 (Ver 1.02)</a></h3>
 <ul class="history">
   <li>changed the default value of "RecordStartSize" to On.</li>

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2017-02-21 04:05:52 UTC (rev 6597)
+++ trunk/doc/ja/html/about/history.html	2017-02-21 04:05:58 UTC (rev 6598)
@@ -53,6 +53,7 @@
   <li>\x82\xBB\x82̑\xBC
     <ul>
       <li><a href="#ttssh_2.80">TTSSH(2.80)</a>\x82֍\xB7\x82\xB5\x91ւ\xA6\x82\xBD\x81B</li>
+      <li><a href="#ttyrec_1.03">TTXttyrec Plugin(1.03)</a>\x82֍\xB7\x82\xB5\x91ւ\xA6\x82\xBD\x81B</li>
       <li>Oniguruma 6.1.3\x82֍\xB7\x82\xB5\x91ւ\xA6\x82\xBD</li>
       <li>LogMeTT, TTLEditor \x82̃C\x83\x93\x83X\x83g\x81[\x83\x89\x82̋N\x93\xAE\x95\xFB\x96@\x82\xF0\x95ύX\x82\xB5\x82\xBD\x81B</li>
     </ul>
@@ -4545,6 +4546,11 @@
 </ul>
 
 <h2><a name="ttyrec">TTXttyrec</a></h2>
+<h3><a name="ttyrec_1.03">2017.x.xx (Ver 1.03)</a></h3>
+<ul class="history">
+  <li>\x8DĐ\xB6\x8FI\x97\xB9\x8C\xE3\x81A\x8Dēx\x8DĐ\xB6\x82\xB7\x82\xE9\x88ׂ\xCC [Replay again] \x82\xF0 [File] \x83\x81\x83j\x83\x85\x81[\x82ɒlj\xC1\x82\xB7\x82\xE9\x82悤\x82ɂ\xB5\x82\xBD\x81B</li>
+</ul>
+
 <h3><a name="ttyrec_1.02">2010.2.20 (Ver 1.02)</a></h3>
 <ul class="history">
   <li>teraterm.ini \x82\xCC RecordStartSize \x83G\x83\x93\x83g\x83\x8A\x82̃f\x83t\x83H\x83\x8B\x83g\x82\xF0 on \x82ɕύX\x82\xB5\x82\xBD\x81B</li>



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