Skip to content

Commit

Permalink
Fix #72
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Apr 5, 2024
1 parent abc13be commit e0de909
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
3 changes: 3 additions & 0 deletions HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@
- The theme can now be opened from the "Dictionaries" settings.
- Able to play a sound file when generation is successful, fails, or cancelled.
- 2024-XX-YY ver.5.2.3
- Added "Open app folder" item to "Advanced" settings.

# 開発履歴 (Japanese)

Expand Down Expand Up @@ -940,3 +941,5 @@
- 「辞書」設定の一部テキストを修正。
- 生成の成功時・失敗時・キャンセル時に音を鳴らせるようにした。
- 2024年XX月YY日 ver.5.2.3
- ReadMeを更新。
- 上級者向け設定に「アプリのフォルダを開く」を追加。
11 changes: 9 additions & 2 deletions XG_HiddenDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class XG_HiddenDialog
{
switch (id)
{
case psh1:
case psh1: // PAT.txtに追加。
if (codeNotify == BN_CLICKED) {
if (XgPatEdit(hwnd, TRUE)) {
// 成功メッセージ。
Expand All @@ -31,7 +31,7 @@ class XG_HiddenDialog
}
}
break;
case psh2:
case psh2: // PAT.txtから削除。
if (codeNotify == BN_CLICKED) {
if (XgPatEdit(hwnd, FALSE)) {
// 成功メッセージ。
Expand All @@ -44,6 +44,13 @@ class XG_HiddenDialog
}
}
break;
case psh3: // アプリのフォルダを開く。
if (codeNotify == BN_CLICKED) {
WCHAR szPath[MAX_PATH];
GetModuleFileNameW(NULL, szPath, _countof(szPath));
PathRemoveFileSpecW(szPath);
ShellExecuteW(hwnd, NULL, szPath, NULL, NULL, SW_SHOWNORMAL);
}
}
}

Expand Down
7 changes: 4 additions & 3 deletions lang/en_US.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1564,13 +1564,14 @@ FONT 9, "Tahoma"
PUSHBUTTON "&Theme...", psh5, 115, 175, 105, 20
}

IDD_HIDDEN DIALOG 0, 0, 215, 121
IDD_HIDDEN DIALOG 0, 0, 238, 170
CAPTION "Advanced"
STYLE DS_CENTER | DS_MODALFRAME | WS_POPUPWINDOW | WS_CAPTION
FONT 9, "Tahoma"
{
PUSHBUTTON "&Add the current pattern to PAT.txt", psh1, 15, 11, 183, 38
PUSHBUTTON "&Remove the current pattern from PAT.txt", psh2, 14, 61, 183, 38
PUSHBUTTON "&Add the current pattern to PAT.txt", psh1, 25, 10, 185, 40
PUSHBUTTON "&Remove the current pattern from PAT.txt", psh2, 25, 60, 185, 40
PUSHBUTTON "&Open app folder", psh3, 25, 110, 185, 40
}

//////////////////////////////////////////////////////////////////////////////
Expand Down
7 changes: 4 additions & 3 deletions lang/ja_JP.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1568,13 +1568,14 @@ FONT 9, "MS UI Gothic"
PUSHBUTTON "テーマ(&T)...", psh5, 115, 175, 105, 20
}

IDD_HIDDEN DIALOG 0, 0, 215, 121
IDD_HIDDEN DIALOG 0, 0, 238, 170
CAPTION "上級者向け"
STYLE DS_CENTER | DS_MODALFRAME | WS_POPUPWINDOW | WS_CAPTION
FONT 9, "MS UI Gothic"
{
PUSHBUTTON "現在の黒マスパターンをPAT.txtに追加する(&A)", psh1, 15, 11, 183, 38
PUSHBUTTON "現在の黒マスパターンをPAT.txtから削除する(&D)", psh2, 14, 61, 183, 38
PUSHBUTTON "現在の黒マスパターンをPAT.txtに追加する(&A)", psh1, 25, 10, 185, 40
PUSHBUTTON "現在の黒マスパターンをPAT.txtから削除する(&D)", psh2, 25, 60, 185, 40
PUSHBUTTON "アプリのフォルダを開く(&O)", psh3, 25, 110, 185, 40
}

//////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit e0de909

Please sign in to comment.