summaryrefslogtreecommitdiffstats
path: root/src/IndentHandler.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-14 13:14:08 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-14 13:14:08 +0900
commit63d63ad52bcd74acf73002073700a06b52e63ecb (patch)
treeb63acba90386829df957281bb78639bc9f2e5b32 /src/IndentHandler.h
parent74e91ff8c198d22f07d943d96528c9c2d3eb629c (diff)
downloaduniversal-indent-gui-tqt-63d63ad52bcd74acf73002073700a06b52e63ecb.tar.gz
universal-indent-gui-tqt-63d63ad52bcd74acf73002073700a06b52e63ecb.zip
Added logic to call the indenter and update the preview
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/IndentHandler.h')
-rw-r--r--src/IndentHandler.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/IndentHandler.h b/src/IndentHandler.h
index 0d51a0a..d719fce 100644
--- a/src/IndentHandler.h
+++ b/src/IndentHandler.h
@@ -47,7 +47,7 @@ class IndentHandler : public TQWidget
~IndentHandler();
TQString generateShellScript(const TQString &configFilename);
-///-- TQString callIndenter(TQString sourceCode, TQString inputFileExtension);
+ TQString callIndenter(const TQString &sourceCode, const TQString &inputFileExtension);
bool loadConfigFile(const TQString &filePathName);
void resetToDefaultValues();
TQStringList getAvailableIndenters();
@@ -77,8 +77,8 @@ class IndentHandler : public TQWidget
void indenterProcessFinished();
private:
-///-- TQString callExecutableIndenter(TQString sourceCode, TQString inputFileExtension);
-///-- TQString callJavaScriptIndenter(TQString sourceCode);
+ TQString callExecutableIndenter(const TQString &sourceCode, const TQString &inputFileExt);
+ TQString callJavaScriptIndenter(const TQString &sourceCode);
void saveConfigFile(const TQString &filePathName, const TQString &parameterString);
void readIndentIniFile(const TQString &iniFilePath);
bool createIndenterCallString();
@@ -169,8 +169,8 @@ class IndentHandler : public TQWidget
TQString m_indenterExecutableSuffix;
bool m_indenterProcessFinished;
-///-- //TODO: This function should go into a string helper/tool class/file.
-///-- TQString encodeToHTML(const TQString &text);
+ //TODO: This function should go into a string helper/tool class/file.
+ TQString encodeToHTML(const TQString &text);
};
#endif // INDENTHANDLER_H