|
|
@ -2151,7 +2151,18 @@ void NppParameters::feedGUIParameters(TiXmlNode *node)
|
|
|
|
if (element->Attribute("autoCAction", &i))
|
|
|
|
if (element->Attribute("autoCAction", &i))
|
|
|
|
_nppGUI._autocStatus = (NppGUI::AutocStatus)i;
|
|
|
|
_nppGUI._autocStatus = (NppGUI::AutocStatus)i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (!strcmp(nm, "sessionExt"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
TiXmlNode *n = childNode->FirstChild();
|
|
|
|
|
|
|
|
if (n)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
val = n->Value();
|
|
|
|
|
|
|
|
if (val)
|
|
|
|
|
|
|
|
_nppGUI._definedSessionExt = val;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void NppParameters::feedScintillaParam(bool whichOne, TiXmlNode *node)
|
|
|
|
void NppParameters::feedScintillaParam(bool whichOne, TiXmlNode *node)
|
|
|
@ -2424,6 +2435,7 @@ void NppParameters::writeGUIParams()
|
|
|
|
bool URLExist = false;
|
|
|
|
bool URLExist = false;
|
|
|
|
bool globalOverrideExist = false;
|
|
|
|
bool globalOverrideExist = false;
|
|
|
|
bool autocExist = false;
|
|
|
|
bool autocExist = false;
|
|
|
|
|
|
|
|
bool sessionExtExist = false;
|
|
|
|
|
|
|
|
|
|
|
|
TiXmlNode *dockingParamNode = NULL;
|
|
|
|
TiXmlNode *dockingParamNode = NULL;
|
|
|
|
|
|
|
|
|
|
|
@ -2606,12 +2618,20 @@ void NppParameters::writeGUIParams()
|
|
|
|
pStr = _nppGUI._globalOverride.enableUnderLine?"yes":"no";
|
|
|
|
pStr = _nppGUI._globalOverride.enableUnderLine?"yes":"no";
|
|
|
|
element->SetAttribute("underline", pStr);
|
|
|
|
element->SetAttribute("underline", pStr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (!strcmp(nm, "auto-completion"))
|
|
|
|
if (!strcmp(nm, "auto-completion"))
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
autocExist = true;
|
|
|
|
autocExist = true;
|
|
|
|
element->SetAttribute("autoCAction", _nppGUI._autocStatus);
|
|
|
|
element->SetAttribute("autoCAction", _nppGUI._autocStatus);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (!strcmp(nm, "sessionExt"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
sessionExtExist = true;
|
|
|
|
|
|
|
|
TiXmlNode *n = childNode->FirstChild();
|
|
|
|
|
|
|
|
if (n)
|
|
|
|
|
|
|
|
n->SetValue(_nppGUI._definedSessionExt.c_str());
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
childNode->InsertEndChild(TiXmlText(_nppGUI._definedSessionExt.c_str()));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!autoDetectionExist)
|
|
|
|
if (!autoDetectionExist)
|
|
|
@ -2656,6 +2676,7 @@ void NppParameters::writeGUIParams()
|
|
|
|
GUIConfigElement->SetAttribute("name", "langsExcluded");
|
|
|
|
GUIConfigElement->SetAttribute("name", "langsExcluded");
|
|
|
|
writeExcludedLangList(GUIConfigElement);
|
|
|
|
writeExcludedLangList(GUIConfigElement);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!printSettingExist)
|
|
|
|
if (!printSettingExist)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TiXmlElement *GUIConfigElement = (GUIRoot->InsertEndChild(TiXmlElement("GUIConfig")))->ToElement();
|
|
|
|
TiXmlElement *GUIConfigElement = (GUIRoot->InsertEndChild(TiXmlElement("GUIConfig")))->ToElement();
|
|
|
@ -2724,6 +2745,15 @@ void NppParameters::writeGUIParams()
|
|
|
|
// Rase tout
|
|
|
|
// Rase tout
|
|
|
|
GUIRoot->RemoveChild(dockingParamNode);
|
|
|
|
GUIRoot->RemoveChild(dockingParamNode);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!sessionExtExist)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//const char *pStr = bVal?"yes":"no";
|
|
|
|
|
|
|
|
TiXmlElement *GUIConfigElement = (GUIRoot->InsertEndChild(TiXmlElement("GUIConfig")))->ToElement();
|
|
|
|
|
|
|
|
GUIConfigElement->SetAttribute("name", "sessionExt");
|
|
|
|
|
|
|
|
GUIConfigElement->InsertEndChild(TiXmlText(_nppGUI._definedSessionExt.c_str()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
insertDockingParamNode(GUIRoot);
|
|
|
|
insertDockingParamNode(GUIRoot);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|