Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Jan 16, 2025
1 parent 09bdcb5 commit 66a055e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Src/Merge.rc
Original file line number Diff line number Diff line change
Expand Up @@ -2351,8 +2351,8 @@ CAPTION "Plugins"
FONT 8, FONTNAME, 0, 0, 0x1
BEGIN
CONTROL "&Enable plugins",IDC_PLUGINS_ENABLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,7,266,10
LTEXT "Plugin &type:",IDC_STATIC,7,19,70,10
COMBOBOX IDC_PLUGIN_TYPE,80,19,205,14,CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | CBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
LTEXT "Plugin &type:",IDC_STATIC,7,21,70,10
COMBOBOX IDC_PLUGIN_TYPE,80,19,205,14,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
CONTROL "",IDC_PLUGINSLIST_LIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_ALIGNLEFT | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,7,38,456,139
LTEXT "File filters:",IDC_STATIC,7,183,70,10
COMBOBOX IDC_PLUGIN_FILEFILTERS,80,183,305,14,CBS_DROPDOWN | CBS_AUTOHSCROLL | CBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
Expand Down
6 changes: 6 additions & 0 deletions Src/PluginsListDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ BOOL PluginsListDlg::OnInitDialog()


InitList();
SetDlgItemComboBoxList(IDC_PLUGIN_TYPE, { _("Unpacker"), _("Prediffer"), _("Editor script") });
m_comboType.SetCurSel(0);
SetPlugins(0);
m_list.SetItemState(0, LVIS_SELECTED, LVIS_SELECTED);

Expand Down Expand Up @@ -210,7 +212,10 @@ void PluginsListDlg::AddPlugin(unsigned id)
return;
String errmsg;
if (internal_plugin::AddPlugin(*info, errmsg))
{
m_comboType.SetCurSel(id == ID_PLUGIN_ADD_UNPACKER ? 0 : 1);
break;
}
AfxMessageBox(errmsg.c_str(), MB_OK | MB_ICONEXCLAMATION);
}
RefreshList();
Expand Down Expand Up @@ -422,6 +427,7 @@ void PluginsListDlg::OnLVNItemChanged(NMHDR *pNMHDR, LRESULT *pResult)
*/
void PluginsListDlg::OnSelchangePluginType()
{
SetPlugins(m_comboType.GetCurSel());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Translations/WinMerge/Japanese.po
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ msgid "&Enable plugins"
msgstr "プラグインを有効にする(&E)"

msgid "Plugin &type:"
msgstr "プラグインの種類(&T)"
msgstr "プラグインの種類(&T):"

msgid "File filters:"
msgstr "ファイル フィルター:"
Expand Down

0 comments on commit 66a055e

Please sign in to comment.