summaryrefslogtreecommitdiffstats
path: root/src/__TODO
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-04-08 14:41:17 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-04-08 14:41:17 +0900
commitb4d35ab97d008c3b24a109640d90dba73215631b (patch)
tree78ef92df7a05944abbbc564df9d2789e42d1220a /src/__TODO
parent191e11f6dc9f8ac42f39a8866a8f4dfb4f75433c (diff)
downloaduniversal-indent-gui-tqt-b4d35ab97d008c3b24a109640d90dba73215631b.tar.gz
universal-indent-gui-tqt-b4d35ab97d008c3b24a109640d90dba73215631b.zip
Settings for syntax highlighting, showing whitespaces and loading last open file are now saved and restored across executions
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/__TODO')
-rw-r--r--src/__TODO/UiGuiHighlighter.cpp8
-rw-r--r--src/__TODO/UiGuiHighlighter.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/__TODO/UiGuiHighlighter.cpp b/src/__TODO/UiGuiHighlighter.cpp
index cfbf299..cfb99c9 100644
--- a/src/__TODO/UiGuiHighlighter.cpp
+++ b/src/__TODO/UiGuiHighlighter.cpp
@@ -95,7 +95,7 @@ UiGuiHighlighter::UiGuiHighlighter(QsciScintilla *parent) :
SettingsPaths::getSettingsPath() + "/UiGuiSyntaxHighlightConfig.ini", TQSettings::IniFormat,
this);
- _highlightningIsOn = true;
+ _highlightingIsOn = true;
_mapHighlighternameToExtension["Bash"] = TQStringList() << "sh";
_mapHighlighternameToExtension["Batch"] = TQStringList() << "bat";
@@ -187,7 +187,7 @@ void UiGuiHighlighter::setHighlighterByAction(TQAction *highlighterAction)
*/
void UiGuiHighlighter::turnHighlightOn()
{
- _highlightningIsOn = true;
+ _highlightingIsOn = true;
_qsciEditorParent->setLexer(_lexer);
readCurrentSettings("");
}
@@ -197,7 +197,7 @@ void UiGuiHighlighter::turnHighlightOn()
*/
void UiGuiHighlighter::turnHighlightOff()
{
- _highlightningIsOn = false;
+ _highlightingIsOn = false;
_qsciEditorParent->setLexer();
_qsciEditorParent->setFont(TQFont("Monospace", 10, TQFont::Normal));
_qsciEditorParent->setMarginsFont(TQFont("Monospace", 10, TQFont::Normal));
@@ -583,7 +583,7 @@ int UiGuiHighlighter::setLexerForExtension(TQString extension)
}
// Set the _lexer for the TQScintilla widget.
- if (_highlightningIsOn)
+ if (_highlightingIsOn)
{
_qsciEditorParent->setLexer(_lexer);
}
diff --git a/src/__TODO/UiGuiHighlighter.h b/src/__TODO/UiGuiHighlighter.h
index 025219e..3dd8200 100644
--- a/src/__TODO/UiGuiHighlighter.h
+++ b/src/__TODO/UiGuiHighlighter.h
@@ -63,7 +63,7 @@ class UiGuiHighlighter : public TQObject
void setHighlighterByAction(TQAction *highlighterAction);
private:
- bool _highlightningIsOn;
+ bool _highlightingIsOn;
QsciScintilla *_qsciEditorParent;
TQMap<int, TQFont> _fontForStyles;
TQMap<int, TQColor> _colorForStyles;