[Ttssh2-commit] [3667] URLUnderlineの設定をAdditional Settingsダイアログに追加。

svnno****@sourc***** svnno****@sourc*****
2009年 10月 28日 (水) 20:42:00 JST


Revision: 3667
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3667
Author:   doda
Date:     2009-10-28 20:42:00 +0900 (Wed, 28 Oct 2009)

Log Message:
-----------
URLUnderlineの設定をAdditional Settingsダイアログに追加。

Modified Paths:
--------------
    trunk/installer/release/lang/English.lng
    trunk/installer/release/lang/German.lng
    trunk/installer/release/lang/Japanese.lng
    trunk/teraterm/common/tt_res.h
    trunk/teraterm/teraterm/addsetting.cpp
    trunk/teraterm/teraterm/ttermpro.rc


-------------- next part --------------
Modified: trunk/installer/release/lang/English.lng
===================================================================
--- trunk/installer/release/lang/English.lng	2009-10-28 09:44:14 UTC (rev 3666)
+++ trunk/installer/release/lang/English.lng	2009-10-28 11:42:00 UTC (rev 3667)
@@ -185,6 +185,7 @@
 DLG_TAB_VISUAL_REVERSE=Enable Re&verse attribute color
 DLG_TAB_VISUAL_URL=Enable &URL attribute color
 DLG_TAB_VISUAL_ANSI=Enable A&NSI color
+DLG_TAB_VISUAL_URLUL=Underline URL string
 
 DLG_TAB_LOG_EDITOR=View Log &Editor
 DLG_TAB_LOG_FILENAME=Default Log &File Name(strftime format)

Modified: trunk/installer/release/lang/German.lng
===================================================================
--- trunk/installer/release/lang/German.lng	2009-10-28 09:44:14 UTC (rev 3666)
+++ trunk/installer/release/lang/German.lng	2009-10-28 11:42:00 UTC (rev 3667)
@@ -184,6 +184,7 @@
 DLG_TAB_VISUAL_REVERSE=Enable Re&verse attribute color
 DLG_TAB_VISUAL_URL=Enable &URL attribute color
 DLG_TAB_VISUAL_ANSI=Enable A&NSI color
+DLG_TAB_VISUAL_URLUL=Un&derline URL string
 
 DLG_TAB_LOG_EDITOR=&Auswahl Editor
 DLG_TAB_LOG_FILENAME=&Standardprotokoll Name

Modified: trunk/installer/release/lang/Japanese.lng
===================================================================
--- trunk/installer/release/lang/Japanese.lng	2009-10-28 09:44:14 UTC (rev 3666)
+++ trunk/installer/release/lang/Japanese.lng	2009-10-28 11:42:00 UTC (rev 3667)
@@ -185,6 +185,7 @@
 DLG_TAB_VISUAL_REVERSE=”½“]‘®«F‚ð—LŒø‚É‚·‚é(&V)
 DLG_TAB_VISUAL_URL=URL‘®«F‚ð—LŒø‚É‚·‚é(&U)
 DLG_TAB_VISUAL_ANSI=ANSIƒJƒ‰[‚ð—LŒø‚É‚·‚é(&N)
+DLG_TAB_VISUAL_URLUL=URL•¶Žš—ñ‚ɉºü‚ð•t‰Á‚·‚é(&D)
 
 DLG_TAB_LOG_EDITOR=ƒƒO•\Ž¦—pƒGƒfƒBƒ^(&E)
 DLG_TAB_LOG_FILENAME=•W€ƒƒOƒtƒ@ƒCƒ‹–¼(strftimeƒtƒH[ƒ}ƒbƒg‰Â) (&F)

Modified: trunk/teraterm/common/tt_res.h
===================================================================
--- trunk/teraterm/common/tt_res.h	2009-10-28 09:44:14 UTC (rev 3666)
+++ trunk/teraterm/common/tt_res.h	2009-10-28 11:42:00 UTC (rev 3667)
@@ -95,6 +95,7 @@
 #define IDC_ENABLE_URL_COLOR            1072
 #define IDC_ENABLE_ANSI_COLOR           1073
 #define IDC_DISABLE_PASTE_MBUTTON       1074
+#define IDC_URL_UNDERLINE               1075
 #define IDD_PRNABORTDLG                 2100
 #define IDD_FILETRANSDLG                2200
 #define IDC_TRANSFNAME                  2201

Modified: trunk/teraterm/teraterm/addsetting.cpp
===================================================================
--- trunk/teraterm/teraterm/addsetting.cpp	2009-10-28 09:44:14 UTC (rev 3666)
+++ trunk/teraterm/teraterm/addsetting.cpp	2009-10-28 11:42:00 UTC (rev 3667)
@@ -550,6 +550,7 @@
 		SendDlgItemMessage(IDC_ENABLE_ATTR_COLOR_REVERSE, WM_SETFONT, (WPARAM)DlgVisualFont, MAKELPARAM(TRUE,0));
 		SendDlgItemMessage(IDC_ENABLE_URL_COLOR, WM_SETFONT, (WPARAM)DlgVisualFont, MAKELPARAM(TRUE,0));
 		SendDlgItemMessage(IDC_ENABLE_ANSI_COLOR, WM_SETFONT, (WPARAM)DlgVisualFont, MAKELPARAM(TRUE,0));
+		SendDlgItemMessage(IDC_URL_UNDERLINE, WM_SETFONT, (WPARAM)DlgVisualFont, MAKELPARAM(TRUE,0));
 	}
 	else {
 		DlgVisualFont = NULL;
@@ -588,6 +589,9 @@
 	GetDlgItemText(IDC_ENABLE_ANSI_COLOR, uimsg, sizeof(uimsg));
 	get_lang_msg("DLG_TAB_VISUAL_ANSI", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
 	SetDlgItemText(IDC_ENABLE_ANSI_COLOR, ts.UIMsg);
+	GetDlgItemText(IDC_URL_UNDERLINE, uimsg, sizeof(uimsg));
+	get_lang_msg("DLG_TAB_VISUAL_URLUL", ts.UIMsg, sizeof(ts.UIMsg), uimsg, ts.UILanguageFile);
+	SetDlgItemText(IDC_URL_UNDERLINE, ts.UIMsg);
 
 	// (1)AlphaBlend
 	_snprintf_s(buf, sizeof(buf), _TRUNCATE, "%d", ts.AlphaBlend);
@@ -637,6 +641,10 @@
 	btn = (CButton *)GetDlgItem(IDC_ENABLE_ANSI_COLOR);
 	btn->SetCheck((ts.ColorFlag&CF_ANSICOLOR) != 0);
 
+	// (10)URL Underline
+	btn = (CButton *)GetDlgItem(IDC_URL_UNDERLINE);
+	btn->SetCheck((ts.FontFlag&FF_URLUNDERLINE) != 0);
+
 	// ƒ_ƒCƒAƒƒO‚ɃtƒH[ƒJƒX‚ð“–‚Ä‚é 
 	::SetFocus(::GetDlgItem(GetSafeHwnd(), IDC_ALPHA_BLEND));
 
@@ -820,6 +828,12 @@
 		ts.ColorFlag ^= CF_ANSICOLOR;
 	}
 
+	// (10) URL Underline
+	btn = (CButton *)GetDlgItem(IDC_URL_UNDERLINE);
+	if (((ts.FontFlag & FF_URLUNDERLINE) != 0) != btn->GetCheck()) {
+		ts.FontFlag ^= FF_URLUNDERLINE;
+	}
+
 	// 2006/03/11 by 337 : Alpha’l‚à‘¦Žž•ÏX
 	// Layered‘‹‚É‚È‚Á‚Ä‚¢‚È‚¢ê‡‚ÍŒø‰Ê‚ª–³‚¢
 	if (ts.EtermLookfeel.BGUseAlphaBlendAPI) {

Modified: trunk/teraterm/teraterm/ttermpro.rc
===================================================================
--- trunk/teraterm/teraterm/ttermpro.rc	2009-10-28 09:44:14 UTC (rev 3666)
+++ trunk/teraterm/teraterm/ttermpro.rc	2009-10-28 11:42:00 UTC (rev 3667)
@@ -119,10 +119,10 @@
     LTEXT           "&AlphaBlend",IDC_ALPHABLEND,10,10,43,8
     EDITTEXT        IDC_ALPHA_BLEND,58,8,28,12,ES_AUTOHSCROLL | ES_NUMBER
     CONTROL         "&Eterm lookfeel",IDC_ETERM_LOOKFEEL,"Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,116,8,72,12
-    RTEXT           "&MouseCursor",IDC_MOUSE,8,42,70,8
-    LISTBOX         IDC_MOUSE_CURSOR,82,30,48,35,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
+    RTEXT           "&MouseCursor",IDC_MOUSE,8,37,70,8
+    LISTBOX         IDC_MOUSE_CURSOR,82,25,48,35,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
     LTEXT           "ANSI color",IDC_ANSICOLOR,10,66,43,8
-    LISTBOX         IDC_ANSI_COLOR,10,80,28,48,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
+    LISTBOX         IDC_ANSI_COLOR,10,78,28,51,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
     LTEXT           "&Red",IDC_RED,45,81,22,8
     EDITTEXT        IDC_COLOR_RED,69,79,15,14,ES_AUTOHSCROLL | ES_NUMBER
     LTEXT           "&Green",IDC_GREEN,45,98,22,8
@@ -131,14 +131,15 @@
     EDITTEXT        IDC_COLOR_BLUE,69,113,15,14,ES_AUTOHSCROLL | ES_NUMBER
     LTEXT           "SAMPLE",IDC_SAMPLE_COLOR,90,98,25,8
     CONTROL         "Enable B&old attribute color",IDC_ENABLE_ATTR_COLOR_BOLD,
-                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,78,105,12
+                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,68,105,12
     CONTROL         "Enable B&link attribute color",IDC_ENABLE_ATTR_COLOR_BLINK,
-                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,90,105,12
+                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,80,105,12
     CONTROL         "Enable Re&verse attribute color",IDC_ENABLE_ATTR_COLOR_REVERSE,
-                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,102,105,12
+                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,92,105,12
     CONTROL         "Enable &URL attribute color",IDC_ENABLE_URL_COLOR,
-                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,114,105,12
-    CONTROL         "Enable A&NSI color",IDC_ENABLE_ANSI_COLOR,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,126,105,12
+                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,104,105,12
+    CONTROL         "Enable A&NSI color",IDC_ENABLE_ANSI_COLOR,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,116,105,12
+    CONTROL         "Un&derline URL string",IDC_URL_UNDERLINE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,128,105,12
 END
 
 IDD_TABSHEET_LOG DIALOGEX 0, 0, 242, 148



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