Commit Graph

268 Commits

Author SHA1 Message Date
Martín Lucas Golini
44259a1bba ecode: Added support for auto-reload and auto-detect file changes from open documents.
eepp: Several fixes and improvements.
2020-11-25 23:48:55 -03:00
Martín Lucas Golini
fcd68131e3 Added UIStackWidget.
Added UIMultiModelView.
Some minor fixes for UIAbstractView and derivatives.
ecode:
Added shortcut to switch visibility of the side panel.
Changing mono font now does not require to restart the application.
2020-11-15 03:20:09 -03:00
Martín Lucas Golini
763683a818 Added Log levels support. 2020-08-31 01:36:12 -03:00
Martín Lucas Golini
2c9e58763b Fixed FileInfo::isHidden.
clang formated files.
2020-08-18 01:24:49 -03:00
Martín Lucas Golini
1250fc9972 Added UIListView.
UIFileDialog now uses UIListView.
UITreeView/UITableView/UIListView allow selecting row by writing its name.
Styling fixes.
2020-08-18 00:35:01 -03:00
Martín Lucas Golini
a5a55481dc Very minor improvements to the table header column icon. 2020-08-17 01:29:50 -03:00
Martín Lucas Golini
3c28535d7a Added UIIcon and UIGlyphIcon. Icons refactor WIP. 2020-08-10 01:54:02 -03:00
Martín Lucas Golini
d6e9f49197 Added Boyer-Moore-Horspool fast string search algorithm to String.
Improved project search performance by using the BMH algorithm.
2020-08-09 00:28:46 -03:00
Martín Lucas Golini
fe1efd15c2 Some minor refactor for the UI Models code. 2020-07-18 01:40:56 -03:00
Martín Lucas Golini
f23c37d9c8 Merge branch 'develop' into dev-treeview 2020-07-04 20:25:26 -03:00
Martín Lucas Golini
1e0324be3a WIP. 2020-07-04 03:04:44 -03:00
Martín Lucas Golini
94b225b33d Minor fixes and changes for the Code Editor. 2020-07-02 20:22:23 -03:00
Martín Lucas Golini
b916517fd1 Added basic module support for the UICodeEditor.
Code Editor auto-complete support WIP.
2020-07-01 05:28:24 -03:00
Martín Lucas Golini
651039b0e8 Redesigning UITextInput and all the derivatives to use TextDocument. 2020-06-15 01:44:29 -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
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
2de37d3a45 More improvements to the UICodeEditor and TextDocument.
Improved the SyntaxHighligther.
2020-05-26 05:48:22 -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
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
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
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
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
fa20d393cd Several performance improvements.
Added events: Node::onIdChange, UIWidget::onClassChange, UIWidget::onTagChange.
UIItemContainer is now a widget (required for CSS).
Fixes in UIListBox and UITable.
CSS::StyleSheetStyle is now stored as a shared pointer.
Fixes in UICheckBox, UIRadioButton, UISlider, UIScrollBar, UITab, UIWinMenu, and more.
Better debug tooltips (now shows padding and margin).
Fix in UISceneNode::loadLayoutNodes, ensures that the current SceneNode is the one that it's loading.
2020-04-16 05:31:43 -03:00
Martín Lucas Golini
9a43551b6b More CSS specification clean up and improvements.
UIPushButton refactorization.
Fixed crash on tooltip close.
And several minor changes to adapt the CSS specification changes into the widgets.
2020-04-04 02:43:19 -03:00
Martín Lucas Golini
a3afe7a8e2 Added em and rem units support.
Fixed a bug in tooltips.
2020-03-25 03:19:56 -03:00
Martín Lucas Golini
3921f81ced Added border-radius support.
Added alias support for shorthands.
Added BorderType::Outline.
Added support for background/foreground masks.
Fixes to the border rendering.
Several fixes and clean up.
2020-03-13 05:10:53 -03:00
Martín Lucas Golini
359685cb6f Added UIBackgroundDrawable. WIP CSS Borders. 2020-03-10 03:57:49 -03:00
Martín Lucas Golini
312f02105f CSS Borders WIP (not working yet). 2020-03-09 15:12:43 -03:00
Martín Lucas Golini
04c407077f Several improvements in the CSS Animations.
UITabWidget now acts as a draw invalidator, skipping the draw invalidation if the element invalidating is not visible in the current tab.
premake5 file now supports different architectures.
Updated README.md and docs.
Minor fixes in UIColorPicker.
Updated SOIL2 and efsw.
Added LICENSE file.
2020-02-25 01:15:27 -03:00
Martín Lucas Golini
73e9489f81 InputEvents improvements and some minor fixes and optimizations. 2020-02-19 02:07:03 -03:00
Martín Lucas Golini
48d0f06b2b Started implementation of CSS Animations, WIP. 2020-02-18 03:58:58 -03:00
Martín Lucas Golini
c2e0d867fd Added support for multiple background-image and foreground-image.
Added support for structural pseudo class :not().
2020-02-17 04:06:47 -03:00
Martín Lucas Golini
9d32e29ffb Added TexturePacker console tool and updated to a new version of the Texture Atlas format.
More premake5 project refactor.
Fixed some Stysheet Properties types and fixed some StyleSheetProperty transitions.
2020-01-19 17:17:09 -03:00
Martín Lucas Golini
57c31ffcb4 Code clean up and some minor fixes.
premake5 is being reworked, might fail in some situations.
2020-01-18 19:40:27 -03:00
Martín Lucas Golini
9880829fc5 Migrated to Github (remove hg stuffs, added git submodules).
Fixed compilation (SoundFileReaderFlac needed some updateds).
Updated README.md.
2020-01-13 04:19:37 -03:00
Martín Lucas Golini
f60d4c183e clang-formated all project source files.
Improved documentation.

--HG--
branch : dev
2020-01-10 04:39:46 -03:00
Martín Lucas Golini
6b13111d19 General enums refactor. This will break the API for several things.
The idea is that this enums should never be used by code from now on, and
always use the XML+CSS features.

--HG--
branch : dev
2019-12-15 17:21:39 -03:00
Martín Lucas Golini
a856357047 Fixed Action::removeEventListener.
--HG--
branch : dev
2019-12-12 03:13:06 -03:00
Martín Lucas Golini
f20f4beba4 More progress.
--HG--
branch : dev-css-refactor
2019-11-28 21:32:56 -03:00
Martín Lucas Golini
ad08beb76f Experimental refactor in progress.
--HG--
branch : dev-css-refactor
2019-11-28 01:22:15 -03:00
Martín Lucas Golini
c1d586eaf9 Reworking input implementation (might have some bugs).
Minor bug fixes.

--HG--
branch : dev
2019-11-07 17:34:44 -03:00
Martín Lucas Golini
bb30c62fab Removed support for SFML2 module (mantaining this backend does not make any sense at this point).
Removed custom Platform implementations for windows and cursor control (control is taken by the SDL2 backend).
And some clean up.

--HG--
branch : dev
2019-10-06 02:49:41 -03:00
Martín Lucas Golini
82116c4323 Minor clean up.
--HG--
branch : dev
2019-09-30 18:40:23 -03:00