Commit Graph

1453 Commits

Author SHA1 Message Date
Martín Lucas Golini
086ee4e776 Fix windows build. 2020-06-20 13:13:22 -03:00
Martín Lucas Golini
7c22a09567 Improved white space rendering in UICodeEditor. 2020-06-20 05:02:07 -03:00
Martín Lucas Golini
2a500e56b9 Implemented UIIconTeme and UIIconThemeManager, now the icon searches are using these new classes. 2020-06-19 04:58:00 -03:00
Martín Lucas Golini
d50861625e Added Graphics::GlyphDrawable.
Some minor refactor in Graphics::Texture.
2020-06-18 19:56:54 -03:00
Martín Lucas Golini
6885e34572 Added support to move Tabs from one UITabWidget to another using the onDrop API. 2020-06-18 05:33:21 -03:00
Martín Lucas Golini
d904cea482 Implemented UINode::onDrop API.
Replaced/renamed all references to nodes and widgets that referred to them as "control".
2020-06-18 04:07:04 -03:00
Martín Lucas Golini
7de3420a9f Minor change in the syntax tokenizer to support "^" from the patterns.
Added diff file support.
Added UIMenuRadioButton.
Added support to shortcut/keybinding text display in UIMenuItem.
Improved UIMenuBar and UITouchDraggableWidget.
2020-06-18 02:56:27 -03:00
Martín Lucas Golini
abc47067a4 Minor code editor fixes.
Improved touch dragging.
Minor API change in UIMenu::add*.
Updated the README.md.
Added TODO.md (to keep track on the things I want to improve/implement).
2020-06-17 03:49:12 -03:00
Martín Lucas Golini
4f6e73b0a5 UITextEdit now extends from UICodeEditor.
Added support for horizontal scrollbar on UICodeEditor and by extension UITextEdit.
Renamed String::toStr to String::toString.
2020-06-16 04:26:46 -03:00
Martín Lucas Golini
be45572341 Minor improvements. 2020-06-15 19:28:52 -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
271b0dc92a Several opacity fixes on drawables. 2020-06-14 18:40:32 -03:00
Martín Lucas Golini
b9c0a44395 Minor fixes in syntax definitions.
Minor fixes in breeze theme.
Allow to set the pixel density in the code editor.
2020-06-14 05:33:26 -03:00
Martín Lucas Golini
85d3886fc0 Improvements to the code editor (added save/save as and more).
Added FileSystem::fileCanWrite.
Syntax Definition now can guess the language based on its header.
Added more syntax definitons.
Fixed borders alpha.
2020-06-14 05:00:14 -03:00
Martín Lucas Golini
82f4fc1656 Renamed UICommonDialog to UIFileDialog. 2020-06-11 14:15:30 -03:00
Martín Lucas Golini
9c4f24c3cb Added Window::hasFocus(), Window::hasInputFocus() and Window::hasMouseFocus().
Fixed an issue when widgets were created during an layout update.
Some minor improvements to the Code Editor.
2020-06-10 04:12:08 -03:00
Martín Lucas Golini
bd9170baee Added color picking capability in the UICodeEditor.
Some minor improvements to the code editor.
Some minor fixes.
2020-06-08 05:25:57 -03:00
Martín Lucas Golini
3c218237e1 Code Editor fixes. 2020-06-07 18:17:07 -03:00
Martín Lucas Golini
0f2b726662 Added find/replace to the code editor.
General clean up on Scene::Node.
Several minor fixes related to the keyboard navigation.
2020-06-07 06:06:32 -03:00
Martín Lucas Golini
b953c7d3c1 Added switch between splits (prev/next) in Code Editor.
Added highlight to matching brackets in UICodeEditor.
Added selection match highlight in UICodeEditor.
Improved text selection when selecting tabs (\t) in UICodeEditor.
Added load color schemes from config files.
Added loadFromMemory and loadFromPack to TextDocument.
Added color schemes to the Code Editor.
2020-06-06 05:41:23 -03:00
Martín Lucas Golini
7cf61df709 Added DisplayManager::disableBypassCompositor and DisplayManager::enableBypassCompositor() (by default SDL bypass the compositor, it's great for games, but not for applications).
Tabs now can optionally not destroy the contained node.
2020-06-05 23:54:53 -03:00
Martín Lucas Golini
30ed5bfe40 Fixed tab click focus to focus on the owned widget.
Improved tab dragging.
2020-06-05 15:45:58 -03:00
Martín Lucas Golini
c408491633 Minor refactor and UISplitter improvements.
Improved dragging.
UITab now supports close button and proper close control (user can deny the close request).
UITabWidget now allows to rearrange the tabs in the tab bar.
2020-06-05 04:52:33 -03:00
Martín Lucas Golini
951d7b2e7e Renamed UITabWidget "TabContainer" to "TabBar".
Added UITabWidget::set/getHideWhenNotNeeded to hide the TabBar if only 1 tab is available.
UIStyle now restricts the animations in the first onStateChange received (sin there's no previous state to animate from).
Added UISplitter::swap.
Critical fix in Node::setParent.
Added Node::findByType.
Fixed Code Editor splitting.
Minor improvements in Code Editor.
2020-06-04 19:00:58 -03:00
Martín Lucas Golini
601354f3b3 Minor improvements in the code editor. 2020-06-03 03:06:26 -03:00
Martín Lucas Golini
aeedc65db6 Improved the Code Editor, now supports tabs and split views (WIP).
Several general fixes.
2020-06-02 22:21:07 -03:00
Martín Lucas Golini
56f79a6dfd UISplitter WIP. 2020-06-01 05:30:16 -03:00
Martín Lucas Golini
98b879422b Added ini / conf file format syntax definition. 2020-05-31 05:21:24 -03:00
Martín Lucas Golini
4b2f431630 Minor clean up and fixes. 2020-05-30 23:21:11 -03:00
Martín Lucas Golini
e45c813e53 Renamed UIWinMenu to UIMenuBar. 2020-05-30 21:03:25 -03:00
Martín Lucas Golini
3ea6ab392c Reimplemented TextDocument::load* and save*, now uses IOStream (also fixes some issues with line endings).
String class now uses char32_t as base type, to be compatible with std::u32string.
Some minor refactor: replaced Uint32 type in hashes in favor of String::HashType. Replaced Uint32 type in keycodes in favor of Keycode.
Changed String::hash(String) from CRC32 to std::hash<std::u32string> (many times faster).
And more random refactors and small features in the code editor.
2020-05-30 05:57:27 -03:00
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
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
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