Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

マクロの Python 対応 #1866

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sakura/sakura.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@
<ClInclude Include="..\sakura_core\macro\CMacroManagerBase.h" />
<ClInclude Include="..\sakura_core\macro\CPPA.h" />
<ClInclude Include="..\sakura_core\macro\CPPAMacroMgr.h" />
<ClInclude Include="..\sakura_core\macro\CPythonMacroManager.h" />
<ClInclude Include="..\sakura_core\macro\CSMacroMgr.h" />
<ClInclude Include="..\sakura_core\macro\CWSH.h" />
<ClInclude Include="..\sakura_core\macro\CWSHIfObj.h" />
Expand Down Expand Up @@ -707,6 +708,7 @@
<ClCompile Include="..\sakura_core\macro\CMacroManagerBase.cpp" />
<ClCompile Include="..\sakura_core\macro\CPPA.cpp" />
<ClCompile Include="..\sakura_core\macro\CPPAMacroMgr.cpp" />
<ClCompile Include="..\sakura_core\macro\CPythonMacroManager.cpp" />
<ClCompile Include="..\sakura_core\macro\CSMacroMgr.cpp" />
<ClCompile Include="..\sakura_core\macro\CWSH.cpp" />
<ClCompile Include="..\sakura_core\macro\CWSHIfObj.cpp" />
Expand Down
6 changes: 6 additions & 0 deletions sakura/sakura.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,9 @@
<ClInclude Include="..\sakura_core\view\CMiniMapView.h">
<Filter>Cpp Source Files\view</Filter>
</ClInclude>
<ClInclude Include="..\sakura_core\macro\CPythonMacroManager.h">
<Filter>Cpp Source Files\macro</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\resource\auto_scroll_center.cur">
Expand Down Expand Up @@ -2315,6 +2318,9 @@
<ClCompile Include="..\sakura_core\view\CMiniMapView.cpp">
<Filter>Cpp Source Files\view</Filter>
</ClCompile>
<ClCompile Include="..\sakura_core\macro\CPythonMacroManager.cpp">
<Filter>Cpp Source Files\macro</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Image Include="..\resource\auto_scroll_center.bmp">
Expand Down
3 changes: 2 additions & 1 deletion sakura_core/dlg/CDlgOpenFile_CommonFileDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,10 +726,11 @@ bool CDlgOpenFile_CommonFileDialog::DoModal_GetOpenFileName( WCHAR* pszPath, EFi
cFileExt.AppendExtRaw( LS(STR_DLGOPNFL_EXTNAME2), L"*.txt" );
break;
case EFITER_MACRO:
cFileExt.AppendExtRaw( L"Macros", L"*.js;*.vbs;*.ppa;*.mac" );
cFileExt.AppendExtRaw( L"Macros", L"*.js;*.vbs;*.ppa;*.py;*.mac" );
cFileExt.AppendExtRaw( L"JScript", L"*.js" );
cFileExt.AppendExtRaw( L"VBScript", L"*.vbs" );
cFileExt.AppendExtRaw( L"Pascal", L"*.ppa" );
cFileExt.AppendExtRaw( L"Python", L"*.py" );
cFileExt.AppendExtRaw( L"Key Macro", L"*.mac" );
break;
case EFITER_NONE:
Expand Down
3 changes: 2 additions & 1 deletion sakura_core/dlg/CDlgOpenFile_CommonItemDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,11 @@ bool CDlgOpenFile_CommonItemDialog::DoModal_GetOpenFileName( WCHAR* pszPath, EFi
specs.push_back(COMDLG_FILTERSPEC{strs.back().c_str(), L"*.txt"});
break;
case EFITER_MACRO:
specs.push_back(COMDLG_FILTERSPEC{L"Macros", L"*.js;*.vbs;*.ppa;*.mac"});
specs.push_back(COMDLG_FILTERSPEC{L"Macros", L"*.js;*.vbs;*.ppa;*.py;*.mac"});
specs.push_back(COMDLG_FILTERSPEC{L"JScript", L"*.js"});
specs.push_back(COMDLG_FILTERSPEC{L"VBScript", L"*.vbs"});
specs.push_back(COMDLG_FILTERSPEC{L"Pascal", L"*.ppa"});
specs.push_back(COMDLG_FILTERSPEC{L"Python", L"*.py"});
specs.push_back(COMDLG_FILTERSPEC{L"Key Macro", L"*.mac"});
break;
case EFITER_NONE:
Expand Down
Loading