[Ttssh2-commit] [8728] 設定を別ファイルに分離した

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2020年 4月 14日 (火) 00:21:05 JST


Revision: 8728
          https://osdn.net/projects/ttssh2/scm/svn/commits/8728
Author:   zmatsuo
Date:     2020-04-14 00:21:05 +0900 (Tue, 14 Apr 2020)
Log Message:
-----------
設定を別ファイルに分離した

- setting.h

Modified Paths:
--------------
    branches/unicode_buf_2/teraterm/teraterm/debug_pp.cpp
    branches/unicode_buf_2/teraterm/teraterm/unicode_test.h
    branches/unicode_buf_2/teraterm/teraterm/vtwin.cpp

Added Paths:
-----------
    branches/unicode_buf_2/teraterm/teraterm/setting.h

-------------- next part --------------
Modified: branches/unicode_buf_2/teraterm/teraterm/debug_pp.cpp
===================================================================
--- branches/unicode_buf_2/teraterm/teraterm/debug_pp.cpp	2020-04-13 15:20:55 UTC (rev 8727)
+++ branches/unicode_buf_2/teraterm/teraterm/debug_pp.cpp	2020-04-13 15:21:05 UTC (rev 8728)
@@ -37,6 +37,7 @@
 #include "unicode_test.h"
 #include "dlglib.h"
 #include "compat_win.h"
+#include "setting.h"
 
 CDebugPropPage::CDebugPropPage(HINSTANCE inst, TTCPropertySheet *sheet)
 	: TTCPropertyPage(inst, IDD_TABSHEET_DEBUG, sheet)

Added: branches/unicode_buf_2/teraterm/teraterm/setting.h
===================================================================
--- branches/unicode_buf_2/teraterm/teraterm/setting.h	                        (rev 0)
+++ branches/unicode_buf_2/teraterm/teraterm/setting.h	2020-04-13 15:21:05 UTC (rev 8728)
@@ -0,0 +1,49 @@
+/*
+ * (C) 2020 TeraTerm Project
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#ifdef __cplusplus
+
+class CUnicodeDebugParam
+{
+public:
+	BOOL CodePopupEnable;
+	WORD CodePopupKey1;
+	WORD CodePopupKey2;
+	CUnicodeDebugParam()
+	{
+		CodePopupEnable = TRUE;
+		CodePopupKey1 = VK_CONTROL;
+		CodePopupKey2 = VK_CONTROL;
+	}
+};
+
+extern CUnicodeDebugParam UnicodeDebugParam;
+
+#endif

Modified: branches/unicode_buf_2/teraterm/teraterm/unicode_test.h
===================================================================
--- branches/unicode_buf_2/teraterm/teraterm/unicode_test.h	2020-04-13 15:20:55 UTC (rev 8727)
+++ branches/unicode_buf_2/teraterm/teraterm/unicode_test.h	2020-04-13 15:21:05 UTC (rev 8728)
@@ -14,23 +14,3 @@
 #define UNICODE_API				1	// UNICODE API\x82\xF0\x8B\x96\x89\xC2
 #define	UNICODE_DEBUG			1	// \x83f\x83o\x83O\x97p\x8B@\x94\enable
 #define	UNICODE_DEBUG_CARET_OFF	0	// \x83J\x81[\x83\\x83\x8B\x93_\x96Ōn\x82\xF0\x8E~\x82߂\xE9\x83f\x83o\x83O\x97p
-
-#ifdef __cplusplus
-
-class CUnicodeDebugParam
-{
-public:
-	BOOL CodePopupEnable;
-	WORD CodePopupKey1;
-	WORD CodePopupKey2;
-	CUnicodeDebugParam()
-	{
-		CodePopupEnable = FALSE;
-		CodePopupKey1 = VK_CONTROL;
-		CodePopupKey2 = VK_CONTROL;
-	}
-};
-
-extern CUnicodeDebugParam UnicodeDebugParam;
-
-#endif

Modified: branches/unicode_buf_2/teraterm/teraterm/vtwin.cpp
===================================================================
--- branches/unicode_buf_2/teraterm/teraterm/vtwin.cpp	2020-04-13 15:20:55 UTC (rev 8727)
+++ branches/unicode_buf_2/teraterm/teraterm/vtwin.cpp	2020-04-13 15:21:05 UTC (rev 8728)
@@ -94,6 +94,7 @@
 #include "layer_for_unicode.h"
 #include "sendmem.h"
 #include "sendfiledlg.h"
+#include "setting.h"
 
 #include "initguid.h"
 //#include "Usbiodef.h"


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