Add support for both regex and non regex in uigui_uncrustify.ini and fix bug in parameter handling logic which had broken universal-indent-gui-tqt functionality

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 11 months ago
parent f9c498e23f
commit 862ea63473
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

File diff suppressed because it is too large Load Diff

@ -597,89 +597,65 @@ bool IndentHandler::loadConfigFile(const TQString &filePathName)
// Search for name of each boolean parameter and set its value if found. // Search for name of each boolean parameter and set its value if found.
for (const ParamBoolean &pBoolean : m_paramBooleans) for (const ParamBoolean &pBoolean : m_paramBooleans)
{ {
// boolean value that will be assigned to the checkbox bool found = false;
bool paramValue = false; bool paramValue = false;
paramValue = m_indenterSettings->value(pBoolean.paramName + "/ValueDefault").toBool();
// first search for the longer parameter string // try regex matching first
// the true parameter string is longer than the false string if (!pBoolean.trueRegexString.isEmpty() && !pBoolean.falseRegexString.isEmpty())
if (pBoolean.trueString.length() > pBoolean.falseString.length())
{ {
int index = -1; // search for the longer parameter string first
// search for the true string if (pBoolean.trueRegexString.length() > pBoolean.falseRegexString.length())
if (m_useRegex)
{
index = cfgFileData.find(TQRegExp(pBoolean.trueString), 0);
}
else
{
index = cfgFileData.find(pBoolean.trueString, 0, false);
}
// if true string found set the parameter value to true
if (index != -1)
{
paramValue = true;
}
// if true string not found, search for false string
else
{ {
if (m_useRegex) if (cfgFileData.find(TQRegExp(pBoolean.trueRegexString), 0) != -1)
{ {
index = cfgFileData.find(TQRegExp(pBoolean.falseString), 0); paramValue = true;
found = true;
} }
else else if (cfgFileData.find(TQRegExp(pBoolean.falseRegexString), 0) != -1)
{ {
index = cfgFileData.find(pBoolean.falseString, 0, false); paramValue = false;
found = true;
} }
// if false string found set the parameter value to false }
if (index != -1) else
{
if (cfgFileData.find(TQRegExp(pBoolean.falseRegexString), 0) != -1)
{ {
paramValue = false; paramValue = false;
found = true;
} }
// neither true nor false parameter found so use default value else if (cfgFileData.find(TQRegExp(pBoolean.trueRegexString), 0) != -1)
else
{ {
paramValue = m_indenterSettings->value(pBoolean.paramName + "/ValueDefault").toBool(); paramValue = true;
found = true;
} }
} }
} }
// the false parameter string is longer than the true string // try standard search if regex search failed
else if (!found)
{ {
// search for the false string // search for the longer parameter string first
int index = -1; if (pBoolean.trueString.length() > pBoolean.falseString.length())
if (m_useRegex)
{
index = cfgFileData.find(TQRegExp(pBoolean.falseString), 0);
}
else
{
index = cfgFileData.find(pBoolean.falseString, 0, false);
}
// if false string found set the parameter value to false
if (index != -1)
{ {
paramValue = false; if (cfgFileData.find(pBoolean.trueString, 0, false) != -1)
}
// if false string not found, search for true string
else
{
if (m_useRegex)
{ {
index = cfgFileData.find(TQRegExp(pBoolean.trueString), 0); paramValue = true;
} }
else else if (cfgFileData.find(pBoolean.falseString, 0, false) != -1)
{ {
index = cfgFileData.find(pBoolean.trueString, 0, false); paramValue = false;
} }
// if true string found set the parameter value to true }
if (index != -1) else
{
if (cfgFileData.find(pBoolean.falseString, 0, false) != -1)
{ {
paramValue = true; paramValue = false;
} }
// neither true nor false parameter found so use default value else if (cfgFileData.find(pBoolean.trueString, 0, false) != -1)
else
{ {
paramValue = m_indenterSettings->value(pBoolean.paramName + "/ValueDefault").toBool(); paramValue = true;
} }
} }
} }
@ -689,108 +665,108 @@ bool IndentHandler::loadConfigFile(const TQString &filePathName)
// Search for name of each numeric parameter and set the value found behind it. // Search for name of each numeric parameter and set the value found behind it.
for(const ParamNumeric &pNumeric : m_paramNumerics) for(const ParamNumeric &pNumeric : m_paramNumerics)
{ {
TQRegExp pRegEx(pNumeric.paramCallName); int paramValue = m_indenterSettings->value(pNumeric.paramName + "/ValueDefault").toInt();
int index = -1; bool found = false;
if (m_useRegex) // try regex matching first
{ if (!pNumeric.paramCallNameRegex.isEmpty())
index = pRegEx.search(cfgFileData);
}
else
{
index = cfgFileData.find(pNumeric.paramCallName, 0);
}
// parameter was found in config file
if (index != -1)
{ {
// set index after the parameter name, so in front of the number TQRegExp pRegEx(pNumeric.paramCallNameRegex);
if (m_useRegex) int index = pRegEx.search(cfgFileData);
if (index != -1)
{ {
index += pRegEx.matchedLength(); index += pRegEx.matchedLength();
int crPos = endParamRegex.search(cfgFileData, index + 1);
if (crPos != -1)
{
found = true;
paramValue = cfgFileData.mid(index, crPos - index).toInt();
}
} }
else }
{
index += pNumeric.paramCallName.length();
}
// Find the end of the parameter by searching for set config file parameter ending. Most of // try standard search if regex search failed
// time this is a carriage return. if (!found)
int crPos = index + 1; {
if (m_useRegex) int index = cfgFileData.find(pNumeric.paramCallName, 0);
{ if (index != -1)
crPos = endParamRegex.search(cfgFileData, index + 1);
}
else
{ {
crPos = cfgFileData.find(m_cfgFileParameterEnding, index + 1); index += pNumeric.paramCallName.length();
int crPos = cfgFileData.find(m_cfgFileParameterEnding, index + 1);
if (crPos != -1)
{
found = true;
paramValue = cfgFileData.mid(index, crPos - index).toInt();
}
} }
// get the number and convert it to int
int paramValue = cfgFileData.mid(index, crPos - index).toInt(nullptr);
// disable the signal-slot connection. Otherwise signal is emmitted each time when value is
// set
TQObject::disconnect(pNumeric.spinBox, SIGNAL(valueChanged(int)), this,
SLOT(handleChangedIndenterSettings()));
pNumeric.spinBox->setValue(paramValue);
pNumeric.valueEnabledChkBox->setChecked(true);
TQObject::connect(pNumeric.spinBox, SIGNAL(valueChanged(int)), this,
SLOT(handleChangedIndenterSettings()));
}
// parameter was not found in config file
else
{
int defaultValue = m_indenterSettings->value(pNumeric.paramName + "/ValueDefault").toInt();
pNumeric.spinBox->setValue(defaultValue);
pNumeric.valueEnabledChkBox->setChecked(false);
} }
// Disconnect and reconnect the signal, otherwise it is emitted each time the value is set
disconnect(pNumeric.spinBox, SIGNAL(valueChanged(int)),
this, SLOT(handleChangedIndenterSettings()));
pNumeric.spinBox->setValue(paramValue);
pNumeric.valueEnabledChkBox->setChecked(found);
connect(pNumeric.spinBox, SIGNAL(valueChanged(int)),
this, SLOT(handleChangedIndenterSettings()));
} }
// Search for name of each string parameter and set it. // Search for name of each string parameter and set it.
for (const ParamString &pString : m_paramStrings) for (const ParamString &pString : m_paramStrings)
{ {
// The number of the found values for this parameter name. TQString paramValueStr = TQString::null;
int numberOfValues = 0; int numberOfValues = 0; // The number of the found values for this parameter name.
// try regex matching first
TQRegExp pRegEx(pString.paramCallName); if (!pString.paramCallNameRegex.isEmpty())
int index = -1;
if (m_useRegex)
{ {
index = pRegEx.search(cfgFileData); TQRegExp pRegEx(pString.paramCallNameRegex);
} int index = pRegEx.search(cfgFileData);
else if (index != -1)
{
index = cfgFileData.find(pString.paramCallName, 0, false);
}
// If parameter was found in config file
if (index != -1)
{
TQString paramValueStr = TQString::null;
while (index != -1)
{ {
numberOfValues++; while (index != -1)
// Set index after the parameter name, so it points to the front of the string value.
if (m_useRegex)
{ {
numberOfValues++;
index += pRegEx.matchedLength(); index += pRegEx.matchedLength();
} int crPos = stringRegex.search(cfgFileData, index);
else crPos += stringRegex.matchedLength();
{
index += pString.paramCallName.length();
}
// Find the end of the parameter by searching for set config file parameter ending. Most of // Get the string and remember it.
// time this is a carriage return. TQString paramStrVal = TQString::null;
int crPos = index; if ((crPos - index) >= 2)
if (m_useRegex) {
{ // Remove leading and trailing quotes
crPos = stringRegex.search(cfgFileData, index); paramStrVal = TQString(cfgFileData.mid(index + 1, crPos - index - 2));
}
if (numberOfValues < 2)
{
paramValueStr = paramStrVal;
}
else
{
// If the same parameter is set multiple times, concatenate the strings dvivided by a |.
paramValueStr = paramValueStr + "|" + paramStrVal;
}
// Ignore till end of line because there could a comment
// after the string itself in the configuration file
crPos = endParamRegex.search(cfgFileData, crPos);
crPos += stringRegex.matchedLength(); crPos += stringRegex.matchedLength();
// Get next value for this setting, if one exists.
index = pRegEx.search(cfgFileData, crPos);
} }
else }
{ }
crPos = cfgFileData.find(m_cfgFileParameterEnding, index);
} // try standard search if regex search failed
if (numberOfValues == 0)
{
int index = cfgFileData.find(pString.paramCallName, 0, false);
while (index != -1)
{
numberOfValues++;
index += pString.paramCallName.length();
int crPos = cfgFileData.find(m_cfgFileParameterEnding, index);
// Get the string and remember it. // Get the string and remember it.
TQString paramStrVal = TQString::null; TQString paramStrVal = TQString::null;
@ -803,78 +779,65 @@ bool IndentHandler::loadConfigFile(const TQString &filePathName)
{ {
paramValueStr = paramStrVal; paramValueStr = paramStrVal;
} }
// If the same parameter has been set multiple times, concatenate the strings dvivided by a
// |.
else else
{ {
// If the same parameter is set multiple times, concatenate the strings dvivided by a |.
paramValueStr = paramValueStr + "|" + paramStrVal; paramValueStr = paramValueStr + "|" + paramStrVal;
} }
// Ignore till end of line if regex are used (this because there could a comment
// after the string itself in the configuration file
if (m_useRegex)
{
crPos = endParamRegex.search(cfgFileData, crPos);
crPos += stringRegex.matchedLength();
}
// Get next value for this setting, if one exists. // Get next value for this setting, if one exists.
if (m_useRegex) index = cfgFileData.find(pString.paramCallName, crPos, false);
{
index = pRegEx.search(cfgFileData, crPos);
}
else
{
index = cfgFileData.find(pString.paramCallName, crPos, false);
}
} }
// Set the text for the line edit.
pString.lineEdit->setText(paramValueStr);
pString.valueEnabledChkBox->setChecked(true);
} }
// Parameter was not found in config file
else // Set the text for the line edit.
if (numberOfValues == 0)
{ {
pString.lineEdit->setText(m_indenterSettings->value(pString.paramName + paramValueStr = m_indenterSettings->value(pString.paramName + "/ValueDefault").toString();
"/ValueDefault").toString());
pString.valueEnabledChkBox->setChecked(false);
} }
pString.lineEdit->setText(paramValueStr);
pString.valueEnabledChkBox->setChecked(numberOfValues != 0);
} }
// search for name of each multiple choice parameter and set it // search for name of each multiple choice parameter and set it
for (const ParamMultiple &pMultiple : m_paramMultiples) for (const ParamMultiple &pMultiple : m_paramMultiples)
{ {
int i = 0; bool found = false;
int index = -1;
// search for all parameter names of the multiple choice list // try regex matching first
// if one is found, set it and leave the while loop for (int i = 0; i < pMultiple.choicesRegexStrings.count(); ++i)
while (i < pMultiple.choicesStrings.count() && index == -1)
{ {
index = cfgFileData.find(pMultiple.choicesStrings[i], 0, false); int index = cfgFileData.find(TQRegExp(pMultiple.choicesRegexStrings[i]), 0);
if (m_useRegex)
{
index = cfgFileData.find(TQRegExp(pMultiple.choicesStrings[i]), 0);
}
else
{
index = cfgFileData.find(pMultiple.choicesStrings[i], 0, false);
}
if (index != -1) if (index != -1)
{ {
pMultiple.comboBox->setCurrentItem(i); pMultiple.comboBox->setCurrentItem(i);
pMultiple.valueEnabledChkBox->setChecked(true); found = true;
break;
}
}
// try standard search
if (!found)
{
for (int i = 0; i < pMultiple.choicesStrings.count(); ++i)
{
int index = cfgFileData.find(pMultiple.choicesStrings[i], 0, false);
if (index != -1)
{
pMultiple.comboBox->setCurrentItem(i);
found = true;
break;
}
} }
i++;
} }
// parameter was not set in config file, so use default value // parameter was not set in config file, so use default value
if (index == -1) if (!found)
{ {
int defaultValue = m_indenterSettings->value(pMultiple.paramName + "/ValueDefault").toInt(); int defaultValue = m_indenterSettings->value(pMultiple.paramName + "/ValueDefault").toInt();
pMultiple.comboBox->setCurrentItem(defaultValue); pMultiple.comboBox->setCurrentItem(defaultValue);
pMultiple.valueEnabledChkBox->setChecked(false);
} }
pMultiple.valueEnabledChkBox->setChecked(found);
} }
return true; return true;
@ -976,14 +939,6 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
m_outputFileName = m_indenterSettings->value("header/outputFileName").toString(); m_outputFileName = m_indenterSettings->value("header/outputFileName").toString();
m_fileTypes = m_indenterSettings->value("header/fileTypes").toString(); m_fileTypes = m_indenterSettings->value("header/fileTypes").toString();
m_fileTypes.replace('|', " "); m_fileTypes.replace('|', " ");
if (m_indenterSettings->value("header/useRegex").toString() == "true")
{
m_useRegex = true;
}
else
{
m_useRegex = false;
}
// read the categories names which are separated by "|" // read the categories names which are separated by "|"
TQString categoriesStr = m_indenterSettings->value("header/categories").toString(); TQString categoriesStr = m_indenterSettings->value("header/categories").toString();
@ -1044,10 +999,6 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
// edit type is numeric so create a spinbox with label // edit type is numeric so create a spinbox with label
if (editType == "numeric") if (editType == "numeric")
{ {
// read the parameter name as it is used at the command line or in its config file
TQString parameterCallName =
m_indenterSettings->value(indenterParameter + "/CallName").toString();
// create checkbox which enables or disables the parameter // create checkbox which enables or disables the parameter
TQCheckBox *chkBox = new TQCheckBox(m_indenterParameterCategoryPages.at(category).widget); TQCheckBox *chkBox = new TQCheckBox(m_indenterParameterCategoryPages.at(category).widget);
chkBox->setChecked(m_indenterSettings->value(indenterParameter + "/Enabled").toBool()); chkBox->setChecked(m_indenterSettings->value(indenterParameter + "/Enabled").toBool());
@ -1102,7 +1053,10 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
// remember parameter name and reference to its spinbox // remember parameter name and reference to its spinbox
ParamNumeric paramNumeric; ParamNumeric paramNumeric;
paramNumeric.paramName = indenterParameter; paramNumeric.paramName = indenterParameter;
paramNumeric.paramCallName = parameterCallName; paramNumeric.paramCallName = m_indenterSettings->value(indenterParameter +
"/CallName").toString();
paramNumeric.paramCallNameRegex = m_indenterSettings->value(indenterParameter +
"/CallNameRegex").toString();
paramNumeric.spinBox = spinBox; paramNumeric.spinBox = spinBox;
paramNumeric.label = label; paramNumeric.label = label;
paramNumeric.valueEnabledChkBox = chkBox; paramNumeric.valueEnabledChkBox = chkBox;
@ -1136,6 +1090,10 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
m_indenterSettings->value(indenterParameter + "/TrueFalse").toString()); m_indenterSettings->value(indenterParameter + "/TrueFalse").toString());
paramBoolean.trueString = trueFalseStrings[0]; paramBoolean.trueString = trueFalseStrings[0];
paramBoolean.falseString = trueFalseStrings[1]; paramBoolean.falseString = trueFalseStrings[1];
TQStringList trueFalseRegexStrings = TQStringList::split("|",
m_indenterSettings->value(indenterParameter + "/TrueFalseRegex").toString());
paramBoolean.trueRegexString = trueFalseRegexStrings[0];
paramBoolean.falseRegexString = trueFalseRegexStrings[1];
paramBoolean.checkBox->setChecked(m_indenterSettings->value(paramBoolean.paramName + paramBoolean.checkBox->setChecked(m_indenterSettings->value(paramBoolean.paramName +
"/ValueDefault").toBool()); "/ValueDefault").toBool());
m_paramBooleans.append(paramBoolean); m_paramBooleans.append(paramBoolean);
@ -1145,10 +1103,6 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
// edit type is numeric so create a line edit with label // edit type is numeric so create a line edit with label
else if (editType == "string") else if (editType == "string")
{ {
// read the parameter name as it is used at the command line or in its config file
TQString parameterCallName =
m_indenterSettings->value(indenterParameter + "/CallName").toString();
// create check box which enables or disables the parameter // create check box which enables or disables the parameter
TQCheckBox *chkBox = new TQCheckBox(m_indenterParameterCategoryPages.at(category).widget); TQCheckBox *chkBox = new TQCheckBox(m_indenterParameterCategoryPages.at(category).widget);
chkBox->setChecked(m_indenterSettings->value(indenterParameter + "/Enabled").toBool()); chkBox->setChecked(m_indenterSettings->value(indenterParameter + "/Enabled").toBool());
@ -1188,7 +1142,10 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
// remember parameter name and reference to its line edit // remember parameter name and reference to its line edit
ParamString paramString; ParamString paramString;
paramString.paramName = indenterParameter; paramString.paramName = indenterParameter;
paramString.paramCallName = parameterCallName; paramString.paramCallName = m_indenterSettings->value(indenterParameter +
"/CallName").toString();
paramString.paramCallNameRegex = m_indenterSettings->value(indenterParameter +
"/CallNameRegex").toString();
paramString.lineEdit = lineEdit; paramString.lineEdit = lineEdit;
paramString.label = label; paramString.label = label;
paramString.valueEnabledChkBox = chkBox; paramString.valueEnabledChkBox = chkBox;
@ -1203,10 +1160,6 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
// edit type is multiple so create a combobox with label // edit type is multiple so create a combobox with label
else if (editType == "multiple") else if (editType == "multiple")
{ {
// read the parameter name as it is used at the command line or in its config file
TQString parameterCallName =
m_indenterSettings->value(indenterParameter + "/CallName").toString();
// create checkbox which enables or disables the parameter // create checkbox which enables or disables the parameter
TQCheckBox *chkBox = new TQCheckBox(m_indenterParameterCategoryPages.at(category).widget); TQCheckBox *chkBox = new TQCheckBox(m_indenterParameterCategoryPages.at(category).widget);
chkBox->setChecked(m_indenterSettings->value(indenterParameter + "/Enabled").toBool()); chkBox->setChecked(m_indenterSettings->value(indenterParameter + "/Enabled").toBool());
@ -1218,15 +1171,21 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
TQComboBox *comboBox = new TQComboBox(m_indenterParameterCategoryPages.at(category).widget); TQComboBox *comboBox = new TQComboBox(m_indenterParameterCategoryPages.at(category).widget);
TQStringList choicesStrings = TQStringList::split("|", TQStringList choicesStrings = TQStringList::split("|",
m_indenterSettings->value(indenterParameter + "/Choices").toString()); m_indenterSettings->value(indenterParameter + "/Choices").toString());
TQStringList choicesStringsReadable = TQStringList::split("|", TQStringList choicesRegexStrings = TQStringList::split("|",
m_indenterSettings->value(indenterParameter + "/ChoicesRegex").toString());
TQStringList choicesReadableStrings = TQStringList::split("|",
m_indenterSettings->value(indenterParameter + "/ChoicesReadable").toString(), true); m_indenterSettings->value(indenterParameter + "/ChoicesReadable").toString(), true);
if (choicesStringsReadable.isEmpty()) if (!choicesReadableStrings.isEmpty())
{ {
comboBox->insertStringList(choicesStrings); comboBox->insertStringList(choicesReadableStrings);
}
else if (!choicesRegexStrings.isEmpty())
{
comboBox->insertStringList(choicesRegexStrings);
} }
else else
{ {
comboBox->insertStringList(choicesStringsReadable); comboBox->insertStringList(choicesStrings);
} }
TQString paramToolTip = m_indenterSettings->value(indenterParameter + "/Description").toString(); TQString paramToolTip = m_indenterSettings->value(indenterParameter + "/Description").toString();
TQToolTip::add(comboBox, paramToolTip); TQToolTip::add(comboBox, paramToolTip);
@ -1244,11 +1203,11 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
// remember parameter name and reference to its lineedit // remember parameter name and reference to its lineedit
ParamMultiple paramMultiple; ParamMultiple paramMultiple;
paramMultiple.paramName = indenterParameter; paramMultiple.paramName = indenterParameter;
paramMultiple.paramCallName = parameterCallName;
paramMultiple.comboBox = comboBox; paramMultiple.comboBox = comboBox;
paramMultiple.choicesStrings = choicesStrings; paramMultiple.choicesStrings = choicesStrings;
paramMultiple.choicesStringsReadable = choicesStringsReadable; paramMultiple.choicesRegexStrings = choicesRegexStrings;
paramMultiple.valueEnabledChkBox = chkBox; paramMultiple.choicesReadableStrings = choicesReadableStrings;
paramMultiple.valueEnabledChkBox = chkBox;
paramMultiple.comboBox->setCurrentItem(m_indenterSettings->value(paramMultiple.paramName + paramMultiple.comboBox->setCurrentItem(m_indenterSettings->value(paramMultiple.paramName +
"/ValueDefault").toInt()); "/ValueDefault").toInt());
m_paramMultiples.append(paramMultiple); m_paramMultiples.append(paramMultiple);

@ -90,7 +90,9 @@ class IndentHandler : public TQWidget
{ {
TQString paramName; TQString paramName;
TQString trueString; TQString trueString;
TQString trueRegexString;
TQString falseString; TQString falseString;
TQString falseRegexString;
TQCheckBox *checkBox; TQCheckBox *checkBox;
}; };
TQValueVector<ParamBoolean> m_paramBooleans; TQValueVector<ParamBoolean> m_paramBooleans;
@ -100,6 +102,7 @@ class IndentHandler : public TQWidget
{ {
TQString paramName; TQString paramName;
TQString paramCallName; TQString paramCallName;
TQString paramCallNameRegex;
TQCheckBox *valueEnabledChkBox; TQCheckBox *valueEnabledChkBox;
TQLineEdit *lineEdit; TQLineEdit *lineEdit;
TQLabel *label; TQLabel *label;
@ -111,6 +114,7 @@ class IndentHandler : public TQWidget
{ {
TQString paramName; TQString paramName;
TQString paramCallName; TQString paramCallName;
TQString paramCallNameRegex;
TQCheckBox *valueEnabledChkBox; TQCheckBox *valueEnabledChkBox;
TQSpinBox *spinBox; TQSpinBox *spinBox;
TQLabel *label; TQLabel *label;
@ -121,11 +125,11 @@ class IndentHandler : public TQWidget
struct ParamMultiple struct ParamMultiple
{ {
TQString paramName; TQString paramName;
TQString paramCallName;
TQCheckBox *valueEnabledChkBox; TQCheckBox *valueEnabledChkBox;
TQComboBox *comboBox; TQComboBox *comboBox;
TQStringList choicesStrings; TQStringList choicesStrings;
TQStringList choicesStringsReadable; TQStringList choicesRegexStrings;
TQStringList choicesReadableStrings;
}; };
TQValueVector<ParamMultiple> m_paramMultiples; TQValueVector<ParamMultiple> m_paramMultiples;
@ -162,7 +166,6 @@ class IndentHandler : public TQWidget
TQString m_indenterExecutableCallString; TQString m_indenterExecutableCallString;
TQString m_indenterExecutableSuffix; TQString m_indenterExecutableSuffix;
bool m_indenterProcessFinished; bool m_indenterProcessFinished;
bool m_useRegex;
//TODO: This function should go into a string helper/tool class/file. //TODO: This function should go into a string helper/tool class/file.
TQString encodeToHTML(const TQString &text); TQString encodeToHTML(const TQString &text);

Loading…
Cancel
Save