Refactor in LineWrap operations enums and structs, moved everything into linewrap.hpp.

Revisiting some old code, the Map Editor, many things are not properly layouted, I might fix it later, for the moment a few minor fixes.
Fix build output and app output highlighting.
Fix isStopSelChar used in UITextInput for text selection (double click).
This commit is contained in:
Martín Lucas Golini
2026-01-21 00:03:01 -03:00
parent 46f13af278
commit faedaa43f4
17 changed files with 256 additions and 225 deletions
@@ -158,9 +158,10 @@ void StatusBuildOutputController::runBuild( const std::string& buildName,
patterns.emplace_back(
SyntaxPattern( { "%d%d%d%d%-%d%d%-%d%d%s%d%d%:%d%d%:%d%d%:[^\n]+" }, "notice" ) );
SyntaxDefinition synDef( "custom_build", {}, std::move( patterns ) );
auto syntaxDef = std::make_shared<SyntaxDefinition>( "custom_build", std::vector<std::string>{},
std::move( patterns ) );
mBuildOutput->getDocument().setSyntaxDefinition( synDef );
mBuildOutput->getDocument().setSyntaxDefinition( syntaxDef );
mBuildOutput->getVScrollBar()->setValue( 1.f );
mBuildOutput->getDocument().getHighlighter()->setMaxTokenizationLength( 2048 );
mBuildOutput->setLineWrapMode( LineWrapMode::Word );