Martín Lucas Golini
597125bf0a
Minor clean up and improvements for UICodeEditor and TextDocument.
2020-05-29 00:11:59 -03:00
Martín Lucas Golini
f876de6d53
Include <string> in the new class (MSVC is complaining).
2020-05-28 19:07:44 -03:00
Martín Lucas Golini
d6861d117b
Include <string> in the new class (MSVC is complaining).
2020-05-28 19:07:00 -03:00
Martín Lucas Golini
2550e6a52f
Added KeyBindings class.
...
UICodeEditor now uses the KeyBindings class.
2020-05-28 18:52:19 -03:00
Martín Lucas Golini
85aa2a3a32
Modernized the Input class, added support for scancodes (still need to test a little bit more).
...
Improved SyntaxColorScheme.
Some minor improvements here and there.
2020-05-28 06:00:49 -03:00
Martín Lucas Golini
3304fb5f31
Improved the SyntaxColorScheme configuration.
...
Also a minor fix in the breeze theme.
2020-05-28 02:32:47 -03:00
Martín Lucas Golini
ed289b5ec6
More improvements to the text document and code editor.
...
The current working directory is not forced anymore (except for Android), since it can cause some troubles in certain situations.
2020-05-27 05:28:35 -03:00
Martín Lucas Golini
2de37d3a45
More improvements to the UICodeEditor and TextDocument.
...
Improved the SyntaxHighligther.
2020-05-26 05:48:22 -03:00
Martín Lucas Golini
c79cae664a
Fixed a huge memory leak in VertexBufferVBO provoked by and error in UIBorderDrawable.
...
Improved cursor up/down movement.
Minor clean up in TextDocument.
2020-05-26 02:20:56 -03:00
Martín Lucas Golini
cd4684a148
Minor fixes.
...
Bumped SDL version for VC build.
2020-05-25 19:15:06 -03:00
Martín Lucas Golini
71e9775824
Windows build fixes.
2020-05-25 16:52:11 -03:00
Martín Lucas Golini
84c40649c8
Removed rx-cpp since it's problematic. Added System::LuaPatternMatcher in replacement. This should fix the Windows and macOS builds.
...
Fixed UISceneNode size, now it's set in pixels instead of dp to allow to always be the same size as the window.
Fixed styles and layouts not updating in time before calling draw.
Fixed a double delete crash when using UIDropDownList and UIWinMenu.
Now UI elements can be dragged even if the mouse cursor goes out of the window limits.
UIScrollBar slider now can be dragged also from the horizontal edges that are not part of the button slider (this allows to scroll from the edge for example in maximized windows).
Fixed TextDocument on emscripten.
Disabled fullscreen window minimizing on focus loss (SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS).
2020-05-25 05:18:38 -03:00
Martín Lucas Golini
04e59e0042
Merge branch 'dev-textdocument' into develop
2020-05-24 06:16:49 -03:00
Martín Lucas Golini
472edd7e41
Added vertical scrollbar to the UICodeEditor.
...
Some minor fixes.
2020-05-24 06:14:54 -03:00
Martín Lucas Golini
2c05f3f579
Added CodeEditor project to be able to test comfortably the UICodeEditor and the TextDocument.
...
Renamed Window::setCaption to Window::setTitle.
Several fixes in TextDocument.
2020-05-24 04:14:52 -03:00
Martín Lucas Golini
94a2e4a0c3
Syntax Highlighting working.
...
Some minor refactor.
2020-05-23 23:41:06 -03:00
Martín Lucas Golini
d95f2d8944
Syntax Highlighting WIP.
2020-05-23 06:17:56 -03:00
Martín Lucas Golini
67b163d515
More fixes and improvements to the UICodeEditor. Added optional display of line numbers.
2020-05-22 17:25:24 -03:00
Martín Lucas Golini
3e4d9bb67f
UICodeEditor minor improvements.
2020-05-22 05:53:30 -03:00
Martín Lucas Golini
825626a9d2
Several fixes and improvements in TextDocument and UICodeEditor.
...
TextDocument now supports undo/redo (still testing, may have some bugs).
2020-05-22 04:36:17 -03:00
Martín Lucas Golini
c462e9e7c9
Some fixes and improvements to the TextDocument and UICodeEditor classes.
2020-05-21 20:41:41 -03:00
Martín Lucas Golini
1f91f612de
More editor improvements. Also changed the editor name, now is UICodeEditor.
2020-05-21 02:31:34 -03:00
Martín Lucas Golini
18847a5974
More WIP on the code editor.
2020-05-20 19:37:21 -03:00
Martín Lucas Golini
098c882a8d
Added UICodeEditor, currently is a WIP.
...
Improvements in TextDocument.
2020-05-20 05:59:46 -03:00
Martín Lucas Golini
67a5e25cf2
TextDocument WIP.
2020-05-18 04:01:25 -03:00
Martín Lucas Golini
a9fb27f31d
Minor fixes on Text and TextEdit.
2020-05-12 16:43:22 -03:00
Martín Lucas Golini
0b1fdab9e6
String class fixes.
2020-05-11 03:06:52 -03:00
Martín Lucas Golini
730d0ff30b
Avoid creating a VertexBuffer for UIBackgroundDrawables with no radius.
...
EventDispatcher: Double click is only valid if the second click is near the first one.
Added Input events for file drop and text drop.
InputTextBuffer allows to paste over selected text.
2020-05-10 05:42:12 -03:00
Martín Lucas Golini
9a093fc775
This should fix windows build.
2020-05-10 03:30:44 -03:00
Martín Lucas Golini
fe78c75e04
Merge pull request #3 from SpartanJ/dev-layouts-fixes
...
Layouts fixes and performance improvements. Plus some general fixes.
2020-05-10 01:31:57 -03:00
Martín Lucas Golini
9b7ab4e891
Some minor fixes in URI and http_request demo.
...
Fixed a crash in UIDropDownList.
Some fixes in all UILayouts.
2020-05-10 01:00:50 -03:00
Martín Lucas Golini
d2a90dfb28
Fixed layout invalidation when the invalidated layout does not have a inmediate parent layout.
2020-05-09 00:18:49 -03:00
Martín Lucas Golini
86053153b3
Refactorized ResourceManager.
...
Fixes for dirty layouts updates.
Fixed CSS animations issues.
Minor layouts refactor and fixes (WIP).
2020-05-08 04:11:41 -03:00
Martín Lucas Golini
e35efc7012
Fixed base container class.
2020-05-04 05:37:15 -03:00
Martín Lucas Golini
909088b46d
Layout improvements WIP.
2020-05-04 04:52:36 -03:00
Martín Lucas Golini
87e3d64b63
Added renamed Display::getPixelDensity() to Display::getPixelDensitySize() and now Display::getPixelDensity() returns the float value of the pixel density.
...
Moved the global test to tests/test_all.
Added a ui_perf_test used to test specific performance issues in the UI.
Fixed the element/widget inline style (now respects the specificity).
Some optimizations in UIListBox.
2020-05-03 03:39:31 -03:00
Martín Lucas Golini
16db174e48
API changes:
...
LayoutSizeRule is now SizePolicy.
LayoutPositionRule is now PositionPolicy.
get/setLayoutSizeRules is now get/setLayoutSizePolicy.
get/setLayoutPositionRule is now get/setLayoutPositionPolicy.
Added Engine::isThreaded().
Minor emscripten fix.
Added emscripten-fs.html, a simple script loader to test the build emscripten demos.
2020-05-02 23:15:47 -03:00
Martín Lucas Golini
0207180e0e
Fixes in UITextEdit.
...
Some minor performance improvements in the PropertyDefinition class.
Breeze theme improvements.
And some other minor changes.
2020-04-29 03:37:05 -03:00
Martín Lucas Golini
21d952c18b
min-width, min-height, max-width and max-height fixes.
...
UITooltip in debug mode fixes.
Improved breeze theme.
2020-04-27 04:45:49 -03:00
Martín Lucas Golini
e066eb510e
Some minor optimizations.
2020-04-26 20:39:42 -03:00
Martín Lucas Golini
45b4f0d208
This should fix the build on Windows and macOS.
2020-04-26 13:50:48 -03:00
Martín Lucas Golini
59f07ac3d8
Implemented element definition and style sheet styles cache. These improve the performance of the CSS style reload and states changes.
...
Several fixes:
UITextInput hint fixes.
UITextInputPassword aligment fixes.
UISlider fixes.
2020-04-26 05:24:43 -03:00
Martín Lucas Golini
c893e05cde
Several fixes.
2020-04-26 04:56:50 -03:00
Martín Lucas Golini
3ff44da4af
Minor changes.
2020-04-26 01:04:39 -03:00
Martín Lucas Golini
397d96d7d7
Fixed input hints and input password text alignment.
2020-04-26 00:03:15 -03:00
Martín Lucas Golini
54783714f1
Change default theme in eetest
2020-04-25 00:34:32 -03:00
Martín Lucas Golini
f9053c0d61
Several fixes.
2020-04-25 00:31:02 -03:00
Martín Lucas Golini
85d71836bb
Fixed apply vars in UIStyle.
2020-04-23 09:39:02 -03:00
Martín Lucas Golini
a8b38a371a
ElementDefinition cache WIP.
2020-04-23 02:06:20 -03:00
Martín Lucas Golini
0c2e7e1c62
Fixed InputTextBuffer.
2020-04-22 22:20:56 -03:00