summaryrefslogtreecommitdiffstats
path: root/src/IndentHandler.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 12:07:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 12:07:49 +0900
commit862ea634731bcc0f0b1ac38a99e7f75271ee6356 (patch)
treef34a1066aad352a0ca81a9ec8e480acba8dbf4c0 /src/IndentHandler.h
parentf9c498e23f8f1d256022c20f32e6f0f8b67d5760 (diff)
downloaduniversal-indent-gui-tqt-862ea634731bcc0f0b1ac38a99e7f75271ee6356.tar.gz
universal-indent-gui-tqt-862ea634731bcc0f0b1ac38a99e7f75271ee6356.zip
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>
Diffstat (limited to 'src/IndentHandler.h')
-rw-r--r--src/IndentHandler.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/IndentHandler.h b/src/IndentHandler.h
index 5d77214..dfeb41e 100644
--- a/src/IndentHandler.h
+++ b/src/IndentHandler.h
@@ -90,7 +90,9 @@ class IndentHandler : public TQWidget
{
TQString paramName;
TQString trueString;
+ TQString trueRegexString;
TQString falseString;
+ TQString falseRegexString;
TQCheckBox *checkBox;
};
TQValueVector<ParamBoolean> m_paramBooleans;
@@ -100,6 +102,7 @@ class IndentHandler : public TQWidget
{
TQString paramName;
TQString paramCallName;
+ TQString paramCallNameRegex;
TQCheckBox *valueEnabledChkBox;
TQLineEdit *lineEdit;
TQLabel *label;
@@ -111,6 +114,7 @@ class IndentHandler : public TQWidget
{
TQString paramName;
TQString paramCallName;
+ TQString paramCallNameRegex;
TQCheckBox *valueEnabledChkBox;
TQSpinBox *spinBox;
TQLabel *label;
@@ -121,11 +125,11 @@ class IndentHandler : public TQWidget
struct ParamMultiple
{
TQString paramName;
- TQString paramCallName;
TQCheckBox *valueEnabledChkBox;
TQComboBox *comboBox;
TQStringList choicesStrings;
- TQStringList choicesStringsReadable;
+ TQStringList choicesRegexStrings;
+ TQStringList choicesReadableStrings;
};
TQValueVector<ParamMultiple> m_paramMultiples;
@@ -162,7 +166,6 @@ class IndentHandler : public TQWidget
TQString m_indenterExecutableCallString;
TQString m_indenterExecutableSuffix;
bool m_indenterProcessFinished;
- bool m_useRegex;
//TODO: This function should go into a string helper/tool class/file.
TQString encodeToHTML(const TQString &text);