[Ttssh2-commit] [3627] Broadcast Commandのリストボックスにおいて、ダブルクリックによる全選択を廃止し、「SHIFT+クリック」による連続的選択をサポートした。

svnno****@sourc***** svnno****@sourc*****
2009年 9月 28日 (月) 22:49:27 JST


Revision: 3627
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3627
Author:   yutakapon
Date:     2009-09-28 22:49:27 +0900 (Mon, 28 Sep 2009)

Log Message:
-----------
Broadcast Commandのリストボックスにおいて、ダブルクリックによる全選択を廃止し、「SHIFT+クリック」による連続的選択をサポートした。

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/ja/html/about/history.html
    trunk/teraterm/teraterm/vtwin.cpp


-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2009-09-23 15:58:13 UTC (rev 3626)
+++ trunk/doc/en/html/about/history.html	2009-09-28 13:49:27 UTC (rev 3627)
@@ -30,13 +30,14 @@
 
 <h2><a name="teraterm">Tera Term</a></h2>
 
-<h3><a name="teraterm_4.64">2009.8.29 (Ver 4.64 unreleased)</a></h3>
+<h3><a name="teraterm_4.64">2009.9.28 (Ver 4.64 unreleased)</a></h3>
 <ul class="history">
   <li>Changes
     <ul>
       <li>The clickable URL color is able to be painted.</li>
       <li>When the clickable URL is enabled, the mouser cursor is not able to transform.</li>
       <li>sftp/tftp scheme can be linked in a clickable URL.</li>
+      <li>The list of open sessions in the Broadcast Command window can support the standard Windows feature of selecting the range of items. It is possible to select consecutive number of items by clicking on the first and then pressing Shift key and clicking on the last.</li>
     </ul>
   </li>
 

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2009-09-23 15:58:13 UTC (rev 3626)
+++ trunk/doc/ja/html/about/history.html	2009-09-28 13:49:27 UTC (rev 3627)
@@ -30,13 +30,14 @@
 
 <h2><a name="teraterm">Tera Term</a></h2>
 
-<h3><a name="teraterm_4.64">2009.8.29 (Ver 4.64 unreleased)</a></h3>
+<h3><a name="teraterm_4.64">2009.9.28 (Ver 4.64 unreleased)</a></h3>
 <ul class="history">
   <li>•ÏX
     <ul>
       <li>ƒNƒŠƒbƒJƒuƒ‹URL‚̐F‘®«‚ð•`‰æ‚·‚é‚悤‚É‚µ‚½B</li>
       <li>ƒNƒŠƒbƒJƒuƒ‹URL‚ª–³Œø‚̏ꍇAƒnƒCƒp[ƒŠƒ“ƒNã‚Ń}ƒEƒXƒJ[ƒ\ƒ‹‚ð•ÏŒ`‚³‚¹‚È‚¢‚悤‚É‚µ‚½B</li>
       <li>sftp/tftp ƒXƒL[ƒ€‚àƒNƒŠƒbƒJƒuƒ‹URL‚É‚È‚é‚悤‚É‚µ‚½B</li>
+      <li>Broadcast Command‚̃ŠƒXƒgƒ{ƒbƒNƒX‚É‚¨‚¢‚āAƒ_ƒuƒ‹ƒNƒŠƒbƒN‚É‚æ‚é‘S‘I‘ð‚ð”pŽ~‚µAuSHIFT+ƒNƒŠƒbƒNv‚É‚æ‚é˜A‘±“I‘I‘ð‚ðƒTƒ|[ƒg‚µ‚½B</li>
     </ul>
   </li>
 

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2009-09-23 15:58:13 UTC (rev 3626)
+++ trunk/teraterm/teraterm/vtwin.cpp	2009-09-28 13:49:27 UTC (rev 3627)
@@ -4724,36 +4724,28 @@
 					return FALSE;
 
 				case IDC_LIST:
-					// ƒŠƒXƒgƒ{ƒbƒNƒX‚ðƒ_ƒuƒ‹ƒNƒŠƒbƒN‚³‚ꂽ‚çA‘S‘I‘ð‚©‘S‘I‘ð‰ðœ‚ðs‚¤B
-					if (HIWORD(wp) == LBN_DBLCLK) {
-						int i, n, max;
-						BOOL flag;
+					// ˆê”Ê“I‚ȃAƒvƒŠƒP[ƒVƒ‡ƒ“‚Æ“¯‚¶‘€ìŠ´‚ðŽ‚½‚¹‚邽‚߁A
+					// uSHIFT+ƒNƒŠƒbƒNv‚É‚æ‚é˜A‘±“I‚È‘I‘ð‚ðƒTƒ|[ƒg‚·‚éB
+					// (2009.9.28 yutaka)
+					if (HIWORD(wp) == LBN_SELCHANGE && ShiftKey()) {
+						int i, cur, prev;
 
-						max = ListBox_GetCount(BroadcastWindowList);
-						n = 0;
-						for (i = 0 ; i < max ; i++) {
+						cur = ListBox_GetCurSel(BroadcastWindowList);
+						prev = -1;
+						for (i = cur - 1 ; i >= 0 ; i--) {
 							if (ListBox_GetSel(BroadcastWindowList, i)) {
-								n++;
+								prev = i;
+								break;
 							}
 						}
-						
-						if (max == 2) {  // ƒGƒ“ƒgƒŠ‚ª2ŒÂ‚̏ꍇ‚͏í‚É‘S‘I‘ð‚Æ‚·‚éB
-							flag = TRUE;
-
-						} else {
-							if (n >= max - 1) { // all select
-								flag = FALSE;
+						if (prev != -1) {
+							// ‚·‚Å‚É‘I‘ðÏ‚݂̉ӏŠ‚ª‚ ‚ê‚΁A‚»‚±‚©‚ç˜A‘±‘I‘ð‚·‚éB
+							for (i = prev ; i < cur ; i++) {
+								ListBox_SetSel(BroadcastWindowList, TRUE, i);
 							}
-							else {
-								flag = TRUE;
-							}
-
 						}
-
-						for (i = 0 ; i < max ; i++) {
-							ListBox_SetSel(BroadcastWindowList, flag, i);
-						}
 					}
+
 					return FALSE;
 
 				default:



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