Skip to content

Commit

Permalink
引数追加の取り消し。
Browse files Browse the repository at this point in the history
除外ファイル&除外フォルダのために引数を追加する想定で変更したコードを元に戻す。
機能追加の内容はGrepダイアログのコード内で吸収して、他コードへの影響を出さないようにする。
  • Loading branch information
berryzplus committed Jan 19, 2019
1 parent f4b9f2f commit ce3603f
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 27 deletions.
2 changes: 0 additions & 2 deletions sakura_core/CGrepAgent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ DWORD CGrepAgent::DoGrep(
const CNativeW* pcmGrepReplace,
const CNativeT* pcmGrepFile,
const CNativeT* pcmGrepFolder,
const CNativeT* pcmExcludeFile,
const CNativeT* pcmExcludeFolder,
bool bGrepCurFolder,
BOOL bGrepSubFolder,
bool bGrepStdout,
Expand Down
2 changes: 0 additions & 2 deletions sakura_core/CGrepAgent.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ class CGrepAgent : public CDocListenerEx{
const CNativeW* pcmGrepReplace,
const CNativeT* pcmGrepFile,
const CNativeT* pcmGrepFolder,
const CNativeT* pcmExcludeFile,
const CNativeT* pcmExcludeFolder,
bool bGrepCurFolder,
BOOL bGrepSubFolder,
bool bGrepStdout,
Expand Down
2 changes: 0 additions & 2 deletions sakura_core/_main/CCommandLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ struct GrepInfo {
CNativeW cmGrepRep; //!< 置換キー
CNativeT cmGrepFile; //!< 検索対象ファイル
CNativeT cmGrepFolder; //!< 検索対象フォルダ
CNativeT cmExcludeFile; //!< 除外対象ファイル
CNativeT cmExcludeFolder; //!< 除外対象フォルダ
SSearchOption sGrepSearchOption; //!< 検索オプション
bool bGrepCurFolder; //!< カレントディレクトリを維持
bool bGrepStdout; //!< 標準出力モード
Expand Down
7 changes: 0 additions & 7 deletions sakura_core/_main/CControlTray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,13 @@ void CControlTray::DoGrepCreateWindow(HINSTANCE hinst, HWND msgParent, CDlgGrep&
CNativeW cmWork1;
CNativeT cmWork2;
CNativeT cmWork3;
CNativeT cmWorkExcludeFile;
CNativeT cmWorkExcludeFolder;
cmWork1.SetString( cDlgGrep.m_strText.c_str() );
cmWork2.SetString( cDlgGrep.m_szFile );
cmWork3.SetString( cDlgGrep.m_szFolder );

cmWorkExcludeFile.SetString(cDlgGrep.m_szExcludeFile);
cmWorkExcludeFolder.SetString(cDlgGrep.m_szExcludeFolder);

cmWork1.Replace( L"\"", L"\"\"" );
cmWork2.Replace( _T("\""), _T("\"\"") );
cmWork3.Replace( _T("\""), _T("\"\"") );
cmWorkExcludeFile.Replace( _T("\""), _T("\"\""));
cmWorkExcludeFolder.Replace(_T("\""), _T("\"\""));

// -GREPMODE -GKEY="1" -GFILE="*.*;*.c;*.h" -GFOLDER="c:\" -GCODE=0 -GOPT=S
CNativeT cCmdLine;
Expand Down
2 changes: 0 additions & 2 deletions sakura_core/_main/CNormalProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,6 @@ bool CNormalProcess::InitializeProcess()
&gi.cmGrepRep,
&gi.cmGrepFile,
&gi.cmGrepFolder,
&gi.cmExcludeFile,
&gi.cmExcludeFolder,
gi.bGrepCurFolder,
gi.bGrepSubFolder,
gi.bGrepStdout,
Expand Down
12 changes: 0 additions & 12 deletions sakura_core/cmd/CViewCommander_Grep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,9 @@ void CViewCommander::Command_GREP( void )
CNativeT cmWork2;
CNativeT cmWork3;
CNativeW cmWork4;
CNativeT cmWorkExcludeFile;
CNativeT cmWorkExcludeFolder;
cmWork1.SetString( GetEditWindow()->m_cDlgGrep.m_strText.c_str() );
cmWork2.SetString( GetEditWindow()->m_cDlgGrep.m_szFile );
cmWork3.SetString( GetEditWindow()->m_cDlgGrep.m_szFolder );
cmWorkExcludeFile.SetString(GetEditWindow()->m_cDlgGrep.m_szExcludeFile);
cmWorkExcludeFolder.SetString(GetEditWindow()->m_cDlgGrep.m_szExcludeFolder);

/* 今のEditViewにGrep結果を表示する。
Grepモードのとき、または未編集で無題かつアウトプットでない場合。
Expand Down Expand Up @@ -95,8 +91,6 @@ void CViewCommander::Command_GREP( void )
&cmWork4,
&cmWork2,
&cmWork3,
&cmWorkExcludeFile,
&cmWorkExcludeFolder,
false,
GetEditWindow()->m_cDlgGrep.m_bSubFolder,
false,
Expand Down Expand Up @@ -166,16 +160,12 @@ void CViewCommander::Command_GREP_REPLACE( void )
CNativeT cmWork2;
CNativeT cmWork3;
CNativeW cmWork4;
CNativeT cmWorkExcludeFile;
CNativeT cmWorkExcludeFolder;

CDlgGrepReplace& cDlgGrepRep = GetEditWindow()->m_cDlgGrepReplace;
cmWork1.SetString( cDlgGrepRep.m_strText.c_str() );
cmWork2.SetString( cDlgGrepRep.m_szFile );
cmWork3.SetString( cDlgGrepRep.m_szFolder );
cmWork4.SetString( cDlgGrepRep.m_strText2.c_str() );
cmWorkExcludeFile.SetString(cDlgGrepRep.m_szExcludeFile);
cmWorkExcludeFolder.SetString(cDlgGrepRep.m_szExcludeFolder);

/* 今のEditViewにGrep結果を表示する。
Grepモードのとき、または未編集で無題かつアウトプットでない場合。
Expand All @@ -195,8 +185,6 @@ void CViewCommander::Command_GREP_REPLACE( void )
&cmWork4,
&cmWork2,
&cmWork3,
&cmWorkExcludeFile,
&cmWorkExcludeFolder,
false,
cDlgGrepRep.m_bSubFolder,
false, // Stdout
Expand Down

0 comments on commit ce3603f

Please sign in to comment.