Commit Graph

1754 Commits

Author SHA1 Message Date
and3md 0048cf482b Possibility to add popup menu to any widget. 2018-03-08 19:09:06 +01:00
and3md 4e345e1ceb Fix setting default filename in FileDialog. 2018-02-06 13:50:51 +01:00
Vadim Lopatin 0bff4c9778
Merge pull request #549 from and3md/clipboard_sdl
Normalize end of line characters when get text from clipboard in SDL
2018-02-04 12:38:44 +03:00
and3md e4606278f2 Normalize end of line characters when get text from clipboard in SDL 2018-02-03 19:40:08 +01:00
and3md 28611c82a7 Possibility to override cursor type for entire window. 2018-02-03 16:46:49 +01:00
Vadim Lopatin 31a342d700
Merge pull request #540 from dayllenger/master
Optimize vertex data adding with Appender, remove some deprecations
2018-02-01 08:46:26 +03:00
Vadim Lopatin d9736cf3f6
Merge pull request #544 from and3md/sdl_fixes2
Small SDL fixes
2018-01-29 08:10:48 +03:00
Vadim Lopatin 978790b8f3
Merge pull request #543 from and3md/fix_no_opengl
Allow disable OpenGL when you choose backend.
2018-01-29 08:10:39 +03:00
dayllenger 66468a2167 use appender also for batches 2018-01-28 18:40:27 +03:00
and3md aecc6ba7f9 Do not import OpenGL when its disabled. 2018-01-27 18:21:18 +01:00
and3md 31bf002515 sdlUpdateScreenDPI() should return false when DPI override is set. 2018-01-27 18:21:09 +01:00
and3md e7ec03d084 Allow disable OpenGL when you choose backend. 2018-01-27 17:46:57 +01:00
and3md ba3844941e Ability to change min visible text in edit. 2018-01-27 17:37:33 +01:00
dayllenger 430027cd78 use Appender for GL queue buffer 2018-01-26 01:11:32 +03:00
James Johnson cfff2982e8 Moved back to EditBox 2018-01-12 12:00:38 -05:00
James Johnson 435c10c662 Added comments, renamed variable 2018-01-12 11:14:57 -05:00
James Johnson f40ae806da Whitespace marks 2018-01-12 09:47:43 -05:00
James Johnson 87f4a8a918 Small additions from previous implementation 2018-01-12 09:10:29 -05:00
James Johnson 278ecc75eb Word wrap mouse offset 2018-01-12 08:09:37 -05:00
James Johnson d2caa2a1a7 EnsureCaretVisible for word wrap 2018-01-12 07:17:09 -05:00
James Johnson 3463fec39d Made function for filling rect in word wrap 2018-01-11 19:55:28 -05:00
James Johnson d28eab7e9d highlightLineRange implemented like last 2018-01-11 18:22:39 -05:00
James Johnson 71931c8e43 Basic implementation for highlighting text selection in word wrap 2018-01-11 17:41:18 -05:00
James Johnson 422517aff4 Caret movement 2018-01-11 13:02:13 -05:00
James Johnson bd721d590e Improved efficiency a bit 2018-01-11 12:40:32 -05:00
James Johnson bc40bbf561 Removed some redundant parts from findWrapLine 2018-01-11 12:37:20 -05:00
James Johnson 83a2f2ef5c Changed accumulation to work for both points and widths 2018-01-11 11:56:00 -05:00
James Johnson ce39c13e31 Don't horizontal scroll in word wrap mode 2018-01-11 11:36:38 -05:00
James Johnson 7c500bd57a drawExtendedArea 2018-01-11 11:26:21 -05:00
James Johnson e58538de60 Improved caret offset, put placeholder linespan into place 2018-01-11 10:10:33 -05:00
James Johnson d39fadd1d0 CaretRect in progress 2018-01-11 09:59:15 -05:00
James Johnson 72187063bd findWrapLine and getSpan added into the mix 2018-01-11 09:38:35 -05:00
James Johnson ad6d547812 Even better, scrolling 2018-01-11 09:19:02 -05:00
James Johnson 64dab5989e Working now 2018-01-11 08:55:00 -05:00
James Johnson 761a7bc821 Sort of working 2018-01-11 08:50:59 -05:00
James Johnson 8df39f232b Set need rewrap true by default 2018-01-11 08:23:07 -05:00
James Johnson 05a8dd7bdc Using WrapPoint[] 2018-01-11 08:20:01 -05:00
James Johnson e56d3c4df3 Version 2 starting implementation 2018-01-11 08:07:56 -05:00
Vadim Lopatin 29aa9ab6c2
Merge pull request #524 from and3md/text_fixes
Fixes for TextWidget/MultilineTextWidget
2017-11-30 11:41:05 +03:00
and3md bfd373a368 TextWidget/MultilineTextWidget: _measureSaver should also check maxLines 2017-11-29 10:44:12 +01:00
and3md b8c669f9d9 TextWidget/MultilineTextWidget fix multiline when maxWidth is set. 2017-11-29 10:33:01 +01:00
Doado a8b7e07be7 Removed typo in filedlg.d log message 2017-11-28 10:37:28 +00:00
and3md bfb5aea2b5 Fixed font attributes in ImageTextWidget and derived classes. 2017-11-18 20:05:23 +01:00
Vadim Lopatin 429db1b52f
Merge pull request #516 from and3md/logwidget_style
Add style for LogWidget
2017-11-14 18:16:13 +03:00
Denis Feklushkin 9cbac64292 external config flags removed, users should add it to external configs 2017-11-14 16:07:06 +07:00
and3md 0c1af2b7b3 Add style for LogWidget. 2017-11-12 18:43:39 +01:00
Denis Feklushkin 9292783204 orientation const added 2017-11-12 20:45:13 +07:00
Denis Feklushkin 391d9959b3 dirty fix for #510 2017-11-10 13:14:01 +07:00
Denis Feklushkin d63cb402e3 Widget: prevents using text() without override 2017-11-08 14:11:52 +07:00
Denis Feklushkin 1a76d96452 InputBox: access to _text fix 2017-11-08 14:02:40 +07:00
Denis Feklushkin bd4e4a1ff6 Widget.text() is const 2017-11-07 17:09:05 +07:00
vennos5 565d0ab133 make glsupport.d compile with ldc2 2017-11-06 22:08:00 +02:00
Vadim Lopatin f707ce3e83
Merge pull request #505 from denizzzka/const_adding
Const adding, bulk 2
2017-11-05 19:21:18 +03:00
Denis Feklushkin 380762c8bf windowCaption() const added 2017-11-03 14:07:11 +07:00
Denis Feklushkin 61a30cee60 mainWidget() inout added 2017-11-03 13:55:46 +07:00
and3md d0aba02426 FileDialog: add FILE_DIALOG_GRID style to simplify change only FileDialog grid font. 2017-10-31 19:11:35 +01:00
Denis Feklushkin 925224fdf8 class Button text() const 2017-10-27 15:21:15 +07:00
Denis Feklushkin 6db5d2cece childCount() const 2017-10-26 22:05:37 +07:00
Denis Feklushkin 9c85ab7deb child(int) works with const widget objects too 2017-10-26 22:00:51 +07:00
Denis Feklushkin ead1cff962 const added 2017-10-26 20:44:02 +07:00
Vadim Lopatin fcb5565f4c Merge pull request #497 from denizzzka/again_adding_WIDGET_STYLE_CONSOLE
Separates BACKEND_CONSOLE flag and console-style widgets flag, second attempt
2017-10-24 19:56:07 +03:00
Denis Feklushkin 02d8833cda ldc build fix-2 2017-10-22 15:51:41 +07:00
Denis Feklushkin 0984376266 ldc build fix 2017-10-22 14:22:55 +07:00
Denis Feklushkin 3a97a60ee8 Merge branch 'master' of https://github.com/buggins/dlangui into again_adding_WIDGET_STYLE_CONSOLE 2017-10-20 06:35:57 +07:00
Denis Feklushkin 0ab9eb8821 drawChar is abstract 2017-10-20 06:35:45 +07:00
Vadim Lopatin 62ceed2870 drawbuf pixel storage optimizations - don't use GC: #499 2017-10-19 14:21:25 +03:00
dayllenger c074007ad2 CalcSaver template, optimize TextWidget measure 2017-10-18 11:16:28 +03:00
dayllenger 1c940fcc8e optimize FrameLayout: do not layout when frame is invisible 2017-10-18 11:15:58 +03:00
Vadim Lopatin 4a547d94e7 add dragon curve example to dub.json 2017-10-18 10:36:58 +03:00
Denis Feklushkin fe53b78ba3 types.d from upstream 2017-10-18 07:07:36 +07:00
Denis Feklushkin da5b87c418 BACKEND_CONSOLE -> WIDGET_STYLE_CONSOLE 2017-10-18 07:01:43 +07:00
Denis Feklushkin 773211e349 enum flag added, excludedSourceFiles changed 2017-10-18 06:47:22 +07:00
Denis Feklushkin 4955435346 Merge branch 'master' of https://github.com/buggins/dlangui 2017-10-18 06:40:36 +07:00
Vadim Lopatin 0348baf11b Merge pull request #494 from dayllenger/resources
DrawableCache refactoring
2017-10-17 18:48:08 +03:00
Vadim Lopatin 40a2908eee trying to resolve issue with DMD out of memory - optimize metadata generation #425 2017-10-17 17:15:34 +03:00
Denis Feklushkin e1f0c4b0da Merge branch 'master' of https://github.com/buggins/dlangui 2017-10-17 13:02:31 +07:00
dayllenger 4b0d2f0ef0 DrawableCache refactoring 2017-10-16 15:11:16 +03:00
Vadim Lopatin 30d2bab54b Merge branch 'master' of github.com:buggins/dlangui 2017-10-16 13:28:10 +03:00
Vadim Lopatin 29ff80b049 Merge pull request #492 from dayllenger/shadows
Box shadows
2017-10-16 13:27:45 +03:00
Vadim Lopatin d8333126f6 fix console build #493 2017-10-16 13:26:29 +03:00
dayllenger 2b74271c31 draw box shadows as nine-patch; fix style's child states 2017-10-16 12:21:57 +03:00
dayllenger 18d30eb8a6 gaussian blur for ColorDrawBuf 2017-10-16 12:21:53 +03:00
gazer 5310d958b7 very basic BoxShadowDrawable 2017-10-16 12:21:18 +03:00
gazer fe0e86d58b add prefix to drawable inner names for borders and box shadows 2017-10-16 12:06:06 +03:00
gazer bb4c7b0a02 box shadow property in Style 2017-10-16 12:05:09 +03:00
dayllenger 1672b644cd optimization: memoize textSize and convertColors functions 2017-10-16 11:33:33 +03:00
dayllenger 47610bb9f4 small code edits 2017-10-16 11:33:33 +03:00
Vadim Lopatin c9186ead05 Merge pull request #484 from dayllenger/work
Borders for widgets, 'border' style property
2017-10-16 11:23:24 +03:00
Vadim Lopatin 80a2cd9eca Merge pull request #488 from denizzzka/console_CI_
Adds console build to Travis CI
2017-10-16 11:22:24 +03:00
Vadim Lopatin 32cb4e03e1 Merge pull request #486 from FreeSlave/x11_classhint
Add class hint for x11 window
2017-10-16 11:21:46 +03:00
Vadim Lopatin e977a246b0 Merge pull request #485 from FreeSlave/x11_iconify
Use XIconifyWindow instead of sending the event to programmatically m…
2017-10-16 11:21:29 +03:00
Vadim Lopatin 8a3684ccea Merge pull request #483 from FreeSlave/standardicons
Icon Providers for Windows and Freedesktop
2017-10-16 11:21:16 +03:00
dayllenger ecf2c1791a fix segfault because of _nullDrawable 2017-10-14 23:08:06 +03:00
Denis Feklushkin ba26ecd980 Travis CI: console linking fix, right way 2017-10-14 18:08:38 +07:00
Denis Feklushkin 1c561ddbd0 Travis CI: console linking fix 2017-10-14 13:17:28 +07:00
Denis Feklushkin 51c0637ae4 External backends: enum flags config added 2017-10-13 12:08:32 +07:00
gazer b8f8f97634 sanitize incoming border property 2017-10-13 07:59:45 +03:00
Roman Chistokhodov c3aa8637a4 Add class hint for x11 window 2017-10-12 23:19:50 +03:00
Roman Chistokhodov ba962b88bb Use XIconifyWindow instead of sending the event to programmatically minimize window 2017-10-12 22:51:41 +03:00
gazer 0f0bbe4f53 get borders from drawables' cache 2017-10-12 21:42:34 +03:00
gazer 8a5152c5c2 CombinedDrawable - work with solid fill background too 2017-10-12 20:56:54 +03:00
gazer e8f11036c9 borders for widgets - initial working implementation 2017-10-12 20:16:48 +03:00
Roman Chistokhodov 137cb927f6 Fix for Windows 2017-10-12 19:20:59 +03:00
Roman Chistokhodov b2bcb79621 Add icon provider class. Add 3rdparty dependencies for freedesktop. Add 'Icons' tab to example1 2017-10-12 18:09:47 +03:00
Vadim Lopatin 2c6da55e63 merge 2017-10-12 15:55:43 +03:00
Vadim Lopatin e928aae901 console mode - Ctrl+C handler - #480 2017-10-12 15:54:43 +03:00
Vadim Lopatin a5bbe95521 Merge pull request #482 from dayllenger/work
Linear gradients - done software rasterization
2017-10-12 13:16:47 +03:00
gazer b5eb939a46 linear gradients - implemented for software rasterizer 2017-10-12 12:31:19 +03:00
Vadim Lopatin cc85663ac3 add more logs to identify #480 root cause; trying to fix 2017-10-12 12:29:33 +03:00
Vadim Lopatin da4285e697 add more logs to identify #480 root cause 2017-10-12 12:22:47 +03:00
Vadim Lopatin 7698df5c3e add more logs to identify #480 root cause 2017-10-12 12:20:36 +03:00
gazer 970c24f759 linear gradient - the angle 2017-10-12 04:32:58 +03:00
gazer d6d12f337b two colors blending fix 2017-10-12 04:31:45 +03:00
gazer a03f8cf22e linear gradients - GL implementation, vertical only 2017-10-12 02:09:44 +03:00
gazer 955d241fac linear gradients - parsing 2017-10-12 01:44:21 +03:00
Vadim Lopatin 3f01fb3702 DMD profiling on windows workaround 2017-10-09 09:34:13 +03:00
Vadim Lopatin 132bfd8c2a Merge branch 'master' of github.com:buggins/dlangui 2017-10-09 09:33:21 +03:00
Vadim Lopatin 09b5f729a2 DMD profiling on windows workaround 2017-10-09 09:32:39 +03:00
Vadim Lopatin 04bd183342 Merge pull request #478 from FreeSlave/x11_mouse_wheel
Recognize mouse wheel events on x11. Fix #476
2017-10-09 09:29:36 +03:00
Vadim Lopatin 7da6b5482e Merge pull request #477 from FreeSlave/x11_refactor_eventloop
Avoid code duplication when processing x11 events. Add redraw events …
2017-10-09 09:29:26 +03:00
Vadim Lopatin ab0c10d069 Merge pull request #475 from and3md/expand_size
ExpandSize flag - another #466 fix
2017-10-09 09:29:15 +03:00
Roman Chistokhodov 27b875a4a7 Recognize mouse wheel events on x11. Fix #476 2017-10-07 23:02:06 +03:00
Roman Chistokhodov 5fb0a14945 Avoid code duplication when processing x11 events. Add redraw events for x11 (similarly to sdl2 redraw events), simplify event loop. Remove sleep and use select timeout instead 2017-10-07 22:39:12 +03:00
and3md 4c6cc85481 X11: Fix convertMouseFlags() should fix #474 2017-10-07 20:32:27 +02:00
and3md fd6940c184 X11: convertMouseButton() Button2 is middle, Button3 is Right in xlib. 2017-10-07 19:42:11 +02:00
and3md c999873d60 X11: Window.show() - flush display after resize (do not show resize steps). 2017-10-07 17:17:28 +02:00
and3md 903aba9c5a X11: Redesigned hasModalWindowsAbove(), fixed crash after close second window. 2017-10-07 17:00:59 +02:00
and3md c3879d2dae Changed default window resize algorithm to show scrollbars. 2017-10-07 15:18:51 +02:00
and3md f453a4fe89 ExpandSize flag - ability to make window bigger when construct size is smaller than min main widget size. 2017-10-07 14:49:44 +02:00
and3md 23913e73f3 Updated comment about linux (Cinnamon) window placement bug. 2017-10-07 12:13:38 +02:00
Vadim Lopatin 3d0805fc1f fix DSFML configuration build - close #472 2017-10-06 10:21:12 +03:00
Vadim Lopatin 782ca5f46d fix clipboard paste operation - normalize line endings - close #473 2017-10-05 14:05:08 +03:00
Roman Chistokhodov 9030e8a1c7 X11 getClipboardText implementation 2017-10-02 19:48:10 +03:00
Vadim Lopatin c41db7af76 Merge pull request #470 from FreeSlave/borderless_window
Borderless window
2017-10-01 20:22:57 +03:00
Roman Chistokhodov 0289d17625 Implement WindowFlag.Borderless for Windows 2017-10-01 16:07:35 +03:00
Roman Chistokhodov f8136c627d Add support for borderless (undecorated) window on sdl2 and x11 platforms 2017-10-01 05:23:45 +03:00
Roman Chistokhodov b0aeb03a3c Avoid zombies processes on linux with showInFileManager when phobos has Config.detached 2017-10-01 04:14:09 +03:00
and3md 5584362bd8 WindowOrContentResizeMode.resizeWindow should only expand window size. 2017-09-30 07:47:21 +02:00
Vadim Lopatin 54955069de allow to override detected screen DPI - #463 2017-09-29 09:56:54 +03:00
Vadim Lopatin 5ab50e327f fix console mode build - close #465 2017-09-28 13:09:58 +03:00
Vadim Lopatin 24b3b5ed61 update breakpoint mark display in editors; disable window scrollbars by default; update version 2017-09-28 12:28:30 +03:00
Vadim Lopatin 6dd1791490 fix and optimization for monospace fonts - additional fix for #464 2017-09-28 11:00:33 +03:00
Vadim Lopatin 7ba34614bd freetype fonts support enhancement, fix #464 2017-09-28 10:29:26 +03:00
Vadim Lopatin e60be3ec1b fix build failure for x64 - close #462 2017-09-27 18:44:29 +03:00
Vadim Lopatin d24b699a11 correct font metrics - #461 2017-09-27 14:57:00 +03:00
Vadim Lopatin e990cb10cb improve freetype fonts support - #461 2017-09-27 14:52:29 +03:00
Vadim Lopatin 51cf849a1f more freetype fonts for windows - #461 2017-09-27 14:21:47 +03:00
Vadim Lopatin d41e8fc55b fix crash on theme change #460 2017-09-27 09:53:01 +03:00
Vadim Lopatin a11b1ef8fb implement default popup menu for EditLine - close #459 2017-09-26 17:27:10 +03:00
Vadim Lopatin ecf3f1cc56 allow to show editor state in status bar panel - close #451; for implementing of buggins/dlangide#282 2017-09-26 16:37:42 +03:00