Revision: 8749 https://osdn.net/projects/ttssh2/scm/svn/commits/8749 Author: zmatsuo Date: 2020-04-26 23:35:29 +0900 (Sun, 26 Apr 2020) Log Message: ----------- 設定を別ファイルに分離した - setting.h Modified Paths: -------------- trunk/teraterm/teraterm/debug_pp.cpp trunk/teraterm/teraterm/unicode_test.h trunk/teraterm/teraterm/vtwin.cpp Added Paths: ----------- trunk/teraterm/teraterm/setting.h -------------- next part -------------- Modified: trunk/teraterm/teraterm/debug_pp.cpp =================================================================== --- trunk/teraterm/teraterm/debug_pp.cpp 2020-04-26 14:35:19 UTC (rev 8748) +++ trunk/teraterm/teraterm/debug_pp.cpp 2020-04-26 14:35:29 UTC (rev 8749) @@ -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: trunk/teraterm/teraterm/setting.h =================================================================== --- trunk/teraterm/teraterm/setting.h (rev 0) +++ trunk/teraterm/teraterm/setting.h 2020-04-26 14:35:29 UTC (rev 8749) @@ -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: trunk/teraterm/teraterm/unicode_test.h =================================================================== --- trunk/teraterm/teraterm/unicode_test.h 2020-04-26 14:35:19 UTC (rev 8748) +++ trunk/teraterm/teraterm/unicode_test.h 2020-04-26 14:35:29 UTC (rev 8749) @@ -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: trunk/teraterm/teraterm/vtwin.cpp =================================================================== --- trunk/teraterm/teraterm/vtwin.cpp 2020-04-26 14:35:19 UTC (rev 8748) +++ trunk/teraterm/teraterm/vtwin.cpp 2020-04-26 14:35:29 UTC (rev 8749) @@ -94,6 +94,7 @@ #include "layer_for_unicode.h" #include "sendmem.h" #include "sendfiledlg.h" +#include "setting.h" #include "initguid.h" //#include "Usbiodef.h"