Make the text direction of search result window follow the direction of main edit zone
and the text direction of function list always LTR.
This commit is contained in:
parent
db4a6f5ec6
commit
edaa67db28
|
@ -6672,10 +6672,8 @@ void Notepad_plus::launchFunctionList()
|
||||||
_pFuncList = new FunctionListPanel();
|
_pFuncList = new FunctionListPanel();
|
||||||
_pFuncList->init(_pPublicInterface->getHinst(), _pPublicInterface->getHSelf(), &_pEditView);
|
_pFuncList->init(_pPublicInterface->getHinst(), _pPublicInterface->getHSelf(), &_pEditView);
|
||||||
|
|
||||||
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker();
|
|
||||||
bool isRTL = pNativeSpeaker->isRTL();
|
|
||||||
tTbData data = {0};
|
tTbData data = {0};
|
||||||
_pFuncList->create(&data, isRTL);
|
_pFuncList->create(&data);
|
||||||
|
|
||||||
::SendMessage(_pPublicInterface->getHSelf(), NPPM_MODELESSDIALOG, MODELESSDIALOGREMOVE, reinterpret_cast<LPARAM>(_pFuncList->getHSelf()));
|
::SendMessage(_pPublicInterface->getHSelf(), NPPM_MODELESSDIALOG, MODELESSDIALOGREMOVE, reinterpret_cast<LPARAM>(_pFuncList->getHSelf()));
|
||||||
// define the default docking behaviour
|
// define the default docking behaviour
|
||||||
|
@ -6687,7 +6685,7 @@ void Notepad_plus::launchFunctionList()
|
||||||
// in this case is DOCKABLE_DEMO_INDEX
|
// in this case is DOCKABLE_DEMO_INDEX
|
||||||
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
|
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
|
||||||
data.dlgID = IDM_VIEW_FUNC_LIST;
|
data.dlgID = IDM_VIEW_FUNC_LIST;
|
||||||
|
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker();
|
||||||
generic_string title_temp = pNativeSpeaker->getAttrNameStr(FL_PANELTITLE, FL_FUCTIONLISTROOTNODE, "PanelTitle");
|
generic_string title_temp = pNativeSpeaker->getAttrNameStr(FL_PANELTITLE, FL_FUCTIONLISTROOTNODE, "PanelTitle");
|
||||||
|
|
||||||
static TCHAR title[32];
|
static TCHAR title[32];
|
||||||
|
|
|
@ -2360,11 +2360,8 @@ void FindReplaceDlg::findAllIn(InWhat op)
|
||||||
_pFinder->init(_hInst, (*_ppEditView)->getHParent(), _ppEditView);
|
_pFinder->init(_hInst, (*_ppEditView)->getHParent(), _ppEditView);
|
||||||
_pFinder->setVolatiled(false);
|
_pFinder->setVolatiled(false);
|
||||||
|
|
||||||
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker();
|
bool isRTL = (*_ppEditView)->isTextDirectionRTL();
|
||||||
bool isRTL = pNativeSpeaker->isRTL();
|
|
||||||
|
|
||||||
tTbData data = {0};
|
tTbData data = {0};
|
||||||
|
|
||||||
_pFinder->create(&data, isRTL);
|
_pFinder->create(&data, isRTL);
|
||||||
::SendMessage(_hParent, NPPM_MODELESSDIALOG, MODELESSDIALOGREMOVE, reinterpret_cast<LPARAM>(_pFinder->getHSelf()));
|
::SendMessage(_hParent, NPPM_MODELESSDIALOG, MODELESSDIALOGREMOVE, reinterpret_cast<LPARAM>(_pFinder->getHSelf()));
|
||||||
// define the default docking behaviour
|
// define the default docking behaviour
|
||||||
|
@ -2378,6 +2375,7 @@ void FindReplaceDlg::findAllIn(InWhat op)
|
||||||
// in this case is DOCKABLE_DEMO_INDEX
|
// in this case is DOCKABLE_DEMO_INDEX
|
||||||
data.dlgID = 0;
|
data.dlgID = 0;
|
||||||
|
|
||||||
|
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker();
|
||||||
generic_string text = pNativeSpeaker->getLocalizedStrFromID("find-result-caption", TEXT(""));
|
generic_string text = pNativeSpeaker->getLocalizedStrFromID("find-result-caption", TEXT(""));
|
||||||
|
|
||||||
if (!text.empty())
|
if (!text.empty())
|
||||||
|
|
Loading…
Reference in New Issue