-
-
Notifications
You must be signed in to change notification settings - Fork 57
Support TEXTINCLUDE 1 for loading and saving RC files #337
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
Conversation
- Add GetTextInclude1HeaderFile() helper function to extract header file path from TEXTINCLUDE 1 data - Modify DoLoadRC() to use TEXTINCLUDE 1 value when loading resource.h - Update DoWriteRC() to preserve TEXTINCLUDE 1 header file name when saving RC files - Add test case with custom header file name in TEXTINCLUDE 1 Co-authored-by: katahiromz <2107452+katahiromz@users.noreply.github.com>
- Add comment explaining write-protect marker "< " convention from Visual C++ - Improve comment for res2/res1 selection logic with TN035 reference - Use !res2.empty() instead of res2.size() for clearer condition Co-authored-by: katahiromz <2107452+katahiromz@users.noreply.github.com>
|
@copilot RC保存先にcustom resource headerがなければ、コピーするかどうか英語で尋ねてください。コピーを選択したらコピーしてください。 |
When saving an RC file with a custom header (from TEXTINCLUDE 1) to a new location, the editor now checks if the header file exists at the destination. If not, it prompts the user in English to copy the file. - Added IDS_COPYHEADERFILE string resource for the copy prompt - Modified DoWriteRC() to detect missing custom header files - Shows Yes/No dialog asking to copy the header file - Reports error if copy operation fails Co-authored-by: katahiromz <2107452+katahiromz@users.noreply.github.com>
Added in commit 72a896a. When saving an RC file with a custom header from TEXTINCLUDE 1 to a new location, the editor now prompts: "The header file '%s' does not exist at the destination. Do you want to copy it?" If the user selects Yes, the file is copied. If the copy fails, an error is shown. |
|
@copilot IDS_COPYHEADERFILEを他の言語にも追加してください。翻訳しなくてもいいです。 |
Added the English string "The header file '%s' does not exist at the destination. Do you want to copy it?" to all 14 language RC files. Co-authored-by: katahiromz <2107452+katahiromz@users.noreply.github.com>
Implementation Summary
Changes Made:
GetTextInclude1HeaderFile(): New helper function to extract header file path from TEXTINCLUDE 1 data
DoLoadRC(): Modified to use TEXTINCLUDE 1 value when loading resource.h
DoWriteRC(): Updated to preserve TEXTINCLUDE 1 header file name when saving RC files
#includedirectiveTextInclude1Test: New test case with
custom_resource.hto verify TEXTINCLUDE 1 handlingLocalization: Added IDS_COPYHEADERFILE string to all 15 language files
Fixes #301
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.