|
|
@ -1754,6 +1754,10 @@ void NppParameters::feedGUIParameters(TiXmlNode *node) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!strcmp(val, "yes")) |
|
|
|
if (!strcmp(val, "yes")) |
|
|
|
_nppGUI._tabStatus |= TAB_CLOSEBUTTON; |
|
|
|
_nppGUI._tabStatus |= TAB_CLOSEBUTTON; |
|
|
|
|
|
|
|
else if (!strcmp(val, "no")) |
|
|
|
|
|
|
|
_nppGUI._tabStatus |= 0; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
isFailed = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
val = element->Attribute("doubleClick2Close"); |
|
|
|
val = element->Attribute("doubleClick2Close"); |
|
|
@ -1761,9 +1765,37 @@ void NppParameters::feedGUIParameters(TiXmlNode *node) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!strcmp(val, "yes")) |
|
|
|
if (!strcmp(val, "yes")) |
|
|
|
_nppGUI._tabStatus |= TAB_DBCLK2CLOSE; |
|
|
|
_nppGUI._tabStatus |= TAB_DBCLK2CLOSE; |
|
|
|
|
|
|
|
else if (!strcmp(val, "no")) |
|
|
|
|
|
|
|
_nppGUI._tabStatus |= 0; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
isFailed = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
val = element->Attribute("vertical"); |
|
|
|
|
|
|
|
if (val) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (!strcmp(val, "yes")) |
|
|
|
|
|
|
|
_nppGUI._tabStatus |= TAB_VERTICAL; |
|
|
|
|
|
|
|
else if (!strcmp(val, "no")) |
|
|
|
|
|
|
|
_nppGUI._tabStatus |= 0; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
isFailed = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val = element->Attribute("multiLine"); |
|
|
|
|
|
|
|
if (val) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (!strcmp(val, "yes")) |
|
|
|
|
|
|
|
_nppGUI._tabStatus |= TAB_MULTILINE; |
|
|
|
|
|
|
|
else if (!strcmp(val, "no")) |
|
|
|
|
|
|
|
_nppGUI._tabStatus |= 0; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
isFailed = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (isFailed) |
|
|
|
if (isFailed) |
|
|
|
_nppGUI._tabStatus = oldValue; |
|
|
|
_nppGUI._tabStatus = oldValue; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else if (!strcmp(nm, "Auto-detection")) |
|
|
|
else if (!strcmp(nm, "Auto-detection")) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -2610,6 +2642,13 @@ bool NppParameters::writeGUIParams() |
|
|
|
|
|
|
|
|
|
|
|
pStr = (_nppGUI._tabStatus & TAB_DBCLK2CLOSE)?"yes":"no"; |
|
|
|
pStr = (_nppGUI._tabStatus & TAB_DBCLK2CLOSE)?"yes":"no"; |
|
|
|
element->SetAttribute("doubleClick2Close", pStr); |
|
|
|
element->SetAttribute("doubleClick2Close", pStr); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pStr = (_nppGUI._tabStatus & TAB_VERTICAL)?"yes":"no"; |
|
|
|
|
|
|
|
element->SetAttribute("vertical", pStr);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pStr = (_nppGUI._tabStatus & TAB_MULTILINE)?"yes":"no"; |
|
|
|
|
|
|
|
element->SetAttribute("multiLine", pStr); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else if (!strcmp(nm, "ScintillaViewsSplitter")) |
|
|
|
else if (!strcmp(nm, "ScintillaViewsSplitter")) |
|
|
|
{ |
|
|
|
{ |
|
|
|