Commit Graph

108 Commits

Author SHA1 Message Date
Martín Lucas Golini
8da1235387 UILinearLayout now uses all pixels unit (for coordinates and sizes).
Some minor improvements in UITableView and UITreeView.
2020-07-26 16:03:10 -03:00
Martín Lucas Golini
dce9f1c285 Improvements and fixes for FileSystemModel, ProjectDirectoryTree, FileInfo and more. 2020-07-26 15:08:11 -03:00
Martín Lucas Golini
3da95eb5f7 Implemented UITableView.
Added project locate file in ecode (still needs work).
Several fixes and improvements.
2020-07-26 03:02:01 -03:00
Martín Lucas Golini
4dca6ad955 Minor fixes. 2020-07-24 23:19:51 -03:00
Martín Lucas Golini
31d2d3041b UITreeView performance improvement (and fix). 2020-07-24 01:28:01 -03:00
Martín Lucas Golini
54d520dba6 UITreeView improvements.
Added Drawable::getPixelsSize.
Improved UIPushButton.
2020-07-23 01:40:14 -03:00
Martín Lucas Golini
ad4e4b5367 Minor improvements to UITreeView and related views.
Also improved UISplitter.
Improved side panel in ecode.
2020-07-20 00:34:40 -03:00
Martín Lucas Golini
08caa0070d TreeView in ecode and more fixes and improvements for the abstract views, treeview and models. 2020-07-19 01:35:20 -03:00
Martín Lucas Golini
b6f2106f06 Renamed FileSystem::dirPathAddSlashAtEnd to FileSystem::dirAddSlashAtEnd.
Added FileInfo.
2020-07-12 01:27:33 -03:00
Martín Lucas Golini
2116c93494 Minor fixes in Code Editor.
Fixed old typo (collumn -> column).
2020-07-04 04:44:31 -03:00
Martín Lucas Golini
af6cce87cb TextDocument::remove optimization.
UILinearLayout fixed WrapContent with padding.
UITextEdit fixed font color.
Code Editor:
Change pixel density from the UI.
Display current line-collumn and document line count.
2020-07-03 05:47:31 -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
92a89abb65 Fixes and improvements for the windows build. 2020-07-02 16:47:19 -03:00
Martín Lucas Golini
f07acb13a0 Added auto-complete toggle and some minor improvements to the Code Editor. 2020-07-02 05:06:07 -03:00
Martín Lucas Golini
916e7b42ce Added "Enable Color Picker" and "Enable Color Preview" (also implemented it on UICodeEditor) to the Code Editor. 2020-07-01 23:42:57 -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
eefbb37f4d Added Input::waitEvent().
Minor fixes.
2020-06-28 20:16:01 -03:00
Martín Lucas Golini
f3c5b07d41 Minor fixes. 2020-06-27 19:12:48 -03:00
Martín Lucas Golini
2b5454b041 Small fix in the syntax tokenizer.
Fix in the key events received by the UICodeEditor.
Reimplemented TextDocument::insert to improve performance.
Dragged Tab relative position fix.
Removed incorrect KeyDown event.
Minor UI tweaks.
2020-06-27 06:54:22 -03:00
Martín Lucas Golini
d10ead9bba Improved key bindings support in the Code Editor, and some mino fixes.
Renamed LuaPatternMatcher to LuaPattern.
2020-06-26 19:48:08 -03:00
Martín Lucas Golini
60a7a28b28 Added support for range based searches in the TextDocument and Code Editor.
Total refactor of the Code Editor.
Many many minor changes and fixes, still needs more testing.
2020-06-26 06:32:33 -03:00
Martín Lucas Golini
71f974b7e8 Added FileSystem::getRealPath (build not tested for VC).
Minor improvements to UIFileDialog.
Fixed close key on UIFileDialog and UIMessageBox.
2020-06-25 03:37:16 -03:00
Martín Lucas Golini
f880a32a02 More improvements to the Code Editor. 2020-06-25 02:18:08 -03:00
Martín Lucas Golini
c5b0f0d845 Code Editor now saves the configuration and allows to configure most relevant stuff from the menus. 2020-06-24 22:37:46 -03:00
Martín Lucas Golini
c92e048021 Minor optimizations for the StyleSheetParser.
Added more menus for the Code Editor.
Code Editor now saves the basic configuration.
Renamed NodeMessage::Click to NodeMessage::MouseClick and NodeMessage::DoubleClick to NodeMessage::MouseDoubleClick to maintain consistency.
Optimized String::split.
And also some other minor improvements.
2020-06-24 16:42:19 -03:00
Martín Lucas Golini
e0a34bec5a Improved and simplified how the menus and sub-menus interact and behave.
Fixed code editor find and replace editor focus.
2020-06-23 05:33:07 -03:00
Martín Lucas Golini
78e28ccd83 UICodeEditor now acts as a client. A TextDocument can be consumed by any number of clients.
This enables the possibility of editing the same file in several splits and tabs at the same time in the code editor.
2020-06-22 02:29:05 -03:00
Martín Lucas Golini
17bc4d4a6d Added support for text styling in syntax color schemes, you can now: bold, italic, underline, strikethrough and shadow texts. 2020-06-22 01:17:28 -03:00
Martín Lucas Golini
a9a866e5df Minor changes to the code editor and text document:
Add command to comment selected lines.
Option to trim trailing white spaces.
Option to ensure new line at end of file option.
Option to allow to select line endings type.
2020-06-21 22:43:21 -03:00
Martín Lucas Golini
5a7ffbf0f5 Improved DPI awareness on Windows.
Minor fix in Code Editor.
Fixed Code Editor build with mingw32.
2020-06-21 00:47:41 -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
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
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
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
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
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