Skip to content

Commit

Permalink
Fix [編集]ソート関連のモック作成
Browse files Browse the repository at this point in the history
  • Loading branch information
niki committed Oct 10, 2024
1 parent b8d8708 commit b856197
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
4 changes: 4 additions & 0 deletions sakura_core/env/CShareData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,14 @@ bool CShareData::InitShareData()
sEdit.m_bConvertEOLPaste = false; /* 改行コードを変換して貼り付ける */ // 2009.02.28 salarm
sEdit.m_bEnableExtEol = false;
sEdit.m_bBoxSelectLock = true;
//sEdit.m_bVistaStyleFileDialog = true;

sEdit.m_bNotOverWriteCRLF = FALSE; /* 改行は上書きしない */
sEdit.m_bOverWriteFixMode = false; // 文字幅に合わせてスペースを詰める

sEdit.m_bSortCaseSensitive = false;
sEdit.m_bSortHiraKanaSensitive = true;

sEdit.m_bOverWriteBoxDelete = false;
sEdit.m_eOpenDialogDir = OPENDIALOGDIR_CUR;
auto_strcpy(sEdit.m_OpenDialogSelDir, _T("%Personal%\\"));
Expand Down
4 changes: 3 additions & 1 deletion sakura_core/env/CShareData_IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,9 @@ void CShareData_IO::ShareData_IO_Common( CDataProfile& cProfile )
cProfile.IOProfileData( pszSecName, LTEXT("bNotOverWriteCRLF") , common.m_sEdit.m_bNotOverWriteCRLF );/* 改行は上書きしない */
cProfile.IOProfileData( pszSecName, LTEXT("bOverWriteFixMode") , common.m_sEdit.m_bOverWriteFixMode );// 文字幅に合わせてスペースを詰める
cProfile.IOProfileData( pszSecName, LTEXT("bOverWriteBoxDelete") , common.m_sEdit.m_bOverWriteBoxDelete );
cProfile.IOProfileData( pszSecName, LTEXT("bAutoCloseDlgFind") , common.m_sSearch.m_bAutoCloseDlgFind );/* 検索ダイアログを自動的に閉じる */
cProfile.IOProfileData(pszSecName, LTEXT("bSortCaseSensitive") ,common.m_sEdit.m_bSortCaseSensitive);
cProfile.IOProfileData(pszSecName, LTEXT("bSortHiraKanaSensitive") ,common.m_sEdit.m_bSortHiraKanaSensitive);
cProfile.IOProfileData(pszSecName, LTEXT("bAutoCloseDlgFind") ,common.m_sSearch.m_bAutoCloseDlgFind); /* 検索ダイアログを自動的に閉じる */
cProfile.IOProfileData( pszSecName, LTEXT("bAutoCloseDlgFuncList") , common.m_sOutline.m_bAutoCloseDlgFuncList );/* アウトライン ダイアログを自動的に閉じる */
cProfile.IOProfileData( pszSecName, LTEXT("bAutoCloseDlgReplace") , common.m_sSearch.m_bAutoCloseDlgReplace );/* 置換 ダイアログを自動的に閉じる */
cProfile.IOProfileData( pszSecName, LTEXT("bAutoColmnPaste") , common.m_sEdit.m_bAutoColumnPaste );/* 矩形コピーのテキストは常に矩形貼り付け */ // 2013.5.23 aroka iniファイルのtypo未修正
Expand Down
3 changes: 3 additions & 0 deletions sakura_core/env/CommonSetting.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ struct CommonSetting_Edit
bool m_bOverWriteFixMode; //!< 文字幅に合わせてスペースを詰める
bool m_bOverWriteBoxDelete; //!< 上書きモードでの矩形入力で選択範囲を削除する

bool m_bSortCaseSensitive;
bool m_bSortHiraKanaSensitive;

//クリッカブルURL
BOOL m_bJumpSingleClickURL; //!< URLのシングルクリックでJump $$$未使用
BOOL m_bSelectClickedURL; //!< URLがクリックされたら選択するか
Expand Down
6 changes: 6 additions & 0 deletions sakura_core/prop/CPropComEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ void CPropEdit::SetData( HWND hwndDlg )
// 矩形入力で選択範囲を削除する
CheckDlgButtonBool( hwndDlg, IDC_CHECK_bOverWriteBoxDelete, m_Common.m_sEdit.m_bOverWriteBoxDelete );

CheckDlgButtonBool(hwndDlg, IDC_CHECK_bSortCaseSensitive, m_Common.m_sEdit.m_bSortCaseSensitive);
CheckDlgButtonBool(hwndDlg, IDC_CHECK_bSortHiraKanaSensitive, m_Common.m_sEdit.m_bSortHiraKanaSensitive);

// URLがクリックされたら選択するか */ // 2007.02.11 genta このページへ移動
::CheckDlgButton( hwndDlg, IDC_CHECK_bSelectClickedURL, m_Common.m_sEdit.m_bSelectClickedURL );

Expand Down Expand Up @@ -261,6 +264,9 @@ int CPropEdit::GetData( HWND hwndDlg )
// 文字幅に合わせてスペースを詰める
m_Common.m_sEdit.m_bOverWriteFixMode = IsDlgButtonCheckedBool( hwndDlg, IDC_CHECK_bOverWriteFixMode );

m_Common.m_sEdit.m_bSortCaseSensitive = ::IsDlgButtonChecked(hwndDlg, IDC_CHECK_bSortCaseSensitive);
m_Common.m_sEdit.m_bSortHiraKanaSensitive = ::IsDlgButtonChecked(hwndDlg, IDC_CHECK_bSortHiraKanaSensitive);

// 矩形入力で選択範囲を削除する
m_Common.m_sEdit.m_bOverWriteBoxDelete = IsDlgButtonCheckedBool( hwndDlg, IDC_CHECK_bOverWriteBoxDelete );

Expand Down
2 changes: 2 additions & 0 deletions sakura_core/sakura_rc.h
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,8 @@
#define IDC_EDIT_FILEOPENDIR 1630
#define IDC_BUTTON_FILEOPENDIR 1631
#define IDC_CHECK_bOverWriteFixMode 1632
#define IDC_CHECK_bSortCaseSensitive 1728
#define IDC_CHECK_bSortHiraKanaSensitive 1729
#define IDC_STATIC_MOZI 1633
#define IDC_BUTTON_TYPEFONT 1634
#define IDC_CHECK_USETYPEFONT 1635
Expand Down
11 changes: 7 additions & 4 deletions sakura_core/sakura_rc.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1825,10 +1825,13 @@ BEGIN
CONTROL "��`���͂őI��͈͂��폜����(&G)",
IDC_CHECK_bOverWriteBoxDelete,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
8,175,143,10
GROUPBOX "�\�[�g",IDC_STATIC,3,200,149,32,WS_GROUP
CONTROL "Case-sensitive",
IDC_CHECK_bSelectClickedURL,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
8,162,143,10
GROUPBOX "�\�[�g",IDC_STATIC,3,200,149,40,WS_GROUP
CONTROL "�p�啶���Ə���������ʂ���",
IDC_CHECK_bSelectClickedURL,"Button",BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,
8,213,143,10
CONTROL "�Ђ炪�ȂƃJ�^�J�i����ʂ���",
IDC_CHECK_bSelectClickedURL,"Button",BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,
8,226,143,10
GROUPBOX "�N���b�J�u��URL",IDC_STATIC,156,3,131,35,WS_GROUP
CONTROL "�N���b�N��&URL��I������",
IDC_CHECK_bSelectClickedURL,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
Expand Down

0 comments on commit b856197

Please sign in to comment.