Commit Graph

1507 Commits

Author SHA1 Message Date
and3md 17d4995e98 Improved grid measure. 2017-08-19 15:38:53 +02:00
and3md 1bba303cc3 Fix grid scroll pos on startup, extend scroll area on options (fullRowOnTop, fullColumnOnLeft). 2017-08-19 15:37:29 +02:00
Vadim Lopatin 1673b3103e Merge pull request #405 from Superbelko/feature-propertymeta
Added basic widget's property metadata info
2017-08-18 13:53:28 +03:00
lemming-life 17c2f93cb6 Added search string in StringListWidget when KeyAction is Text 2017-08-16 20:12:38 -06:00
lemming-life 89c8191d45 Added find word in StringListWidget 2017-08-16 20:05:57 -06:00
and3md 8a7245ba24 Fix setting layoutWidth/layoutHeight in points. 2017-08-16 22:20:25 +02:00
and3md 5bd0ea1d10 Ignore percent layout size if there is only one widget. 2017-08-16 20:43:18 +02:00
and3md 9d8e314eac Fix #404, percent layout values implemented in V/H layout.
Only one widget with percent value allowed per layout.
2017-08-16 20:33:10 +02:00
V. Khmelevskiy 0bae4ec7bf Merge branch 'master' of https://github.com/buggins/dlangui into feature-propertymeta 2017-08-16 19:30:08 +07:00
V. Khmelevskiy c99b3976f2 Added basic property metadata generation, and extended dmledit example to demonstrate it. 2017-08-16 19:20:29 +07:00
Vadim Lopatin 40b267d6c2 implement renaming of tabs 2017-08-15 17:21:18 +03:00
Vadim Lopatin 075708fae3 Merge branch 'master' of github.com:buggins/dlangui 2017-08-14 10:10:28 +03:00
Vadim Lopatin 598d53abae fix #403 2017-08-14 10:09:05 +03:00
Vadim Lopatin e58f2a1abe fix #403 2017-08-14 10:05:55 +03:00
and3md f18002d732 Impemented window activity support and remove/apply focus when window activity change. 2017-08-11 22:21:17 +02:00
Tomoya Tanjo cc7879c7cd Enclose WinMain with unittest else block 2017-08-11 22:26:09 +09:00
and3md f735e5cea8 Fix window freeze after hide modal window (X11, Windows platforms). 2017-08-10 16:51:48 +02:00
Vadim Lopatin 993b6fd091 fix instance counter debug message 2017-08-10 17:29:38 +03:00
Vadim Lopatin 43ae1fd608 support fullscreen window creation on Win32 - #393 2017-08-08 12:53:17 +03:00
Vadim Lopatin 2ab32a5ecf fix #399 2017-08-08 10:31:17 +03:00
and3md 85ae6ebfb5 X11 Modal window support (solution based on windows code). 2017-08-04 22:05:17 +02:00
and3md 7b545992d4 File format tabs to spaces (coding style) 2017-08-04 21:43:18 +02:00
and3md 2cfbc27956 Full windowState support for X11. 2017-08-04 21:33:05 +02:00
Vadim Lopatin 1b6714b22b Merge pull request #397 from and3md/center_childs
Ability to center child windows on parent, other fixes
2017-08-04 11:59:19 +03:00
and3md fc770b5552 Fix build on X11, console and android. 2017-08-02 21:15:07 +02:00
and3md 1259ee92b4 Windows: Ability to center child window on show, handle window state change. 2017-08-02 19:47:00 +02:00
and3md aa7403462f Ability to center child window on show, some fixes in window state support. 2017-08-02 19:44:11 +02:00
and3md 7271cbe4b3 Ability to center child windows, handleWindowStateChange() improvments. 2017-08-02 19:40:32 +02:00
and3md 2cde7065f5 Remove unused imports. 2017-08-02 19:36:15 +02:00
Vadim Lopatin 58f03df242 Merge pull request #392 from shiche/translations
Russian translations improvment
2017-07-29 20:31:30 +03:00
Vitaly Livshic 7ae1bf8491 UIString from raw strings 2017-07-29 08:23:05 +03:00
Vitaly Livshic 3faaaacda8 Invalid translations fix 2017-07-24 21:26:31 +03:00
Vitaly Livshic 1091123c5c Russian translations improvment 2017-07-22 10:32:17 +03:00
and3md 3af97996ca showMessageBox() example fix. 2017-07-21 13:43:09 +02:00
and3md fb53e6f55c FileDialogFlag.ConfirmOverwrite flag support. 2017-07-21 13:42:07 +02:00
and3md bb539a4cd1 Removed not needed log. 2017-07-18 17:21:44 +02:00
and3md e2803a9abb Add charts module to package.d 2017-07-18 15:33:31 +02:00
and3md c6d6abc8dd New charts module with SimpleBarChart. 2017-07-18 15:33:21 +02:00
and3md 3fa0ed5c00 SimpleTextFormatter - add draw version with alignment 2017-07-18 15:31:40 +02:00
and3md 3816e39155 Add font change handler. 2017-07-18 15:31:18 +02:00
Denis Feklushkin c250ebdd6f external platforms support, some comments added, console compilation fix 2017-07-18 07:39:14 +07:00
and3md e8f7d2ded4 Fix dialogs to be compatible with new window size/content managment. 2017-06-29 20:30:43 +02:00
and3md c8ebb6bd68 Fix setWindowState() on windows, change resize behavior to be compatible with SDL. 2017-06-29 20:22:54 +02:00
and3md ab1ddc7529 Add MeasureWindow flag to Window helps if you want window with scrollbars but first measure content size. 2017-06-29 20:19:49 +02:00
and3md 2bebff9404 Restore window on SDL resets size and pos to values from window create on linux. 2017-06-29 20:17:03 +02:00
and3md f458c4d9d0 Grid: ability to set how many columns/rows get to measure widget size. 2017-06-29 20:15:17 +02:00
and3md 932430ffc2 Show popup need window update. 2017-06-26 19:26:41 +02:00
Vadim Lopatin 10bb4b4537 Merge pull request #380 from John-Colvin/patch-3
fix taking address of std{out,err} for dmd 2.075.0-b1
2017-06-26 18:17:41 +03:00
John Colvin 80daed61a0 fix taking address of std{out,err} for dmd 2.075.0-b1 2017-06-26 15:50:45 +01:00
and3md 9c0eaec5af Accidental _OPENGL_ENABLED value change. 2017-06-25 18:39:42 +02:00
and3md 3dc4d6679a Full implemented scrollbars events. 2017-06-25 17:10:52 +02:00
and3md df9346920e Fix theme change crash on X11. 2017-06-25 15:46:51 +02:00
and3md baec5e04b4 Support window resize/add scrollbars when content is too big on win32. 2017-06-25 15:45:14 +02:00
and3md b2676e83c2 Fix theme change when window scrollbar visible. 2017-06-25 15:35:48 +02:00
and3md 774a33aae4 Support window resize/add scrollbars when content is too big on X11. 2017-06-25 14:39:34 +02:00
and3md 27c8e70f5b Implemented window resize/add scrollbars when content is too big. Temporarily works only on SDL. 2017-06-25 14:14:03 +02:00
and3md 6980a9b2e3 Set LineEdit measured size to "aaaaa" size and EditBox to "aaaaa/naaaaa". 2017-06-25 13:56:37 +02:00
and3md 110fc9122e Change the way how some widgets are measured, minimumVisibleContentSize() for widgets which content can be bigger than widget size. 2017-06-25 13:53:23 +02:00
Vadim Lopatin 4c1e97c952 optimize dminer example; fix win32 opengl support; enable wireframe mode for drawing of meshes 2017-06-23 15:47:02 +03:00
and3md 8edcc9a1e7 Setting new items array must reset _selectedItemIndex to -1. 2017-06-21 17:45:00 +02:00
and3md 8ec1c3cad1 Fix ComboBox setting items #375 2017-06-20 20:51:48 +02:00
Vadim Lopatin 6f4a9636a0 update Rect docs - right/bottom information 2017-06-14 08:50:53 +03:00
Vadim Lopatin 8bcfb8dcdd #373 2017-06-13 11:57:08 +03:00
Vadim Lopatin 22d5bad2a9 #373 2017-06-13 11:45:51 +03:00
Vadim Lopatin 4f30af7e76 fix build error 2017-06-13 11:17:54 +03:00
Vadim Lopatin 61eb06cffc try to fix build error union initialization 2017-06-13 11:09:28 +03:00
and3md 98bb79ed59 SDL: Fixes to windowRect, remove not needed redraw after SDL_WINDOWEVENT_RESIZED 2017-06-11 06:37:47 +02:00
Vadim Lopatin 775a62da1c Merge pull request #370 from FreeSlave/x11_set_clipboard_selection
Support for setting clipboard selection to share with other applications on X11
2017-06-10 09:42:43 +03:00
Vadim Lopatin 84ee32c100 Merge pull request #369 from g4z3r/gl
old GL API fixes
2017-06-10 09:42:27 +03:00
Roman Chistokhodov d8fd35a111 Support for setting clipboard selection to share with other applications 2017-06-08 19:17:28 +03:00
gazer 3d4bf61bb8 GL_INVALID_OPERATION quickfix 2017-06-08 18:14:05 +03:00
gazer b07a6d54a7 old API fixes 2017-06-08 15:59:12 +03:00
Vadim Lopatin 47615966db Merge pull request #368 from FreeSlave/x11_additions
X11 loop cleanup, less redraws. Support for non-resizable windows, mi…
2017-06-08 08:52:30 +03:00
Roman Chistokhodov 9657e80f04 X11 loop cleanup, less redraws. Support for non-resizable windows, minimize, maximize and restore on X11. Add minimize, maximize and restore buttons to example1 2017-06-08 03:54:08 +03:00
gazer 1ca3ea4b27 get rid from 'Non-zero DrawBuf instance count when exiting: 1' message 2017-06-08 02:22:15 +03:00
gazer 4b7fa25579 getting legacy GL to work 2017-06-07 23:33:16 +03:00
gazer 167e129f00 platform fixes 2017-06-07 21:52:27 +03:00
Roman Chistokhodov 8ffbf625d5 Set utf window titles in X11 2017-06-07 15:54:29 +03:00
Vadim Lopatin 60ea89fb45 fix file dialog file and folder icons - close #326 2017-06-07 10:56:07 +03:00
Vadim Lopatin 950c0c26cb Merge pull request #365 from g4z3r/gl
GL optimizations
2017-06-06 09:16:14 +03:00
Vadim Lopatin d0636ffe1a deprecation of UIString constructors 2017-06-06 09:14:33 +03:00
gazer 2dcababb65 draw non-scaled textures with linear filtration to significantly decrease batches count 2017-06-05 21:24:13 +03:00
gazer 6970eb3120 delete unnecessary line shader program 2017-06-05 19:55:36 +03:00
Vadim Lopatin 03e66d9c3d #361 - fromRaw overload 2017-06-05 12:31:36 +03:00
Vadim Lopatin 77125ff563 Merge pull request #359 from g4z3r/gl
new batching implementation
2017-06-05 12:25:41 +03:00
Vadim Lopatin d25610bcfc Merge pull request #364 from FreeSlave/x11
Fix x11 version build. Temporarily build without opengl. Implement wi…
2017-06-05 12:24:27 +03:00
Vadim Lopatin 302777f951 Merge pull request #363 from FreeSlave/spawn_in_file_manager
Create dlangui.core.filemanager module and put showInFileManager ther…
2017-06-05 12:24:13 +03:00
Roman Chistokhodov bd6ed46cb2 Fix x11 version build. Temporarily build without opengl. Implement windowIcon setting for x11. Handling WM_DELETE_WINDOW event 2017-06-03 22:04:39 +03:00
Roman Chistokhodov e1e5a10619 Fix crash when listDirectory can't access parent path. Add listDirectory overload with more sane interface, deprecate the old one. Fix FilePathPanelItem directory selection. Show error message box when FileDialog can't access directory 2017-06-03 04:23:52 +03:00
Roman Chistokhodov e7e31cfac3 Create dlangui.core.filemanager module and put showInFileManager there. Remove code duplication in platform code 2017-06-03 03:14:54 +03:00
Vadim Lopatin 4819442938 Merge pull request #360 from and3md/lxde_fix
Unnecessary restore modal childs after window exposed event - fixes #355
2017-06-02 10:34:55 +03:00
Vadim Lopatin bed5921bb6 UIString static construction - issue #361 2017-06-02 10:29:49 +03:00
and3md 6d16875de9 SDL: unnecessary restore modal childs after SDL_WINDOWEVENT_EXPOSED fixes #355 2017-06-01 20:02:47 +02:00
gazer 1d08185329 some D idioms 2017-05-31 18:28:40 +03:00
gazer e288e6fd40 new batching implementation 2017-05-31 11:57:55 +03:00
Vadim Lopatin c1a990c0e2 fix #358 2017-05-30 11:50:05 +03:00
Vadim Lopatin 34172b8a31 Merge pull request #351 from and3md/listwidget_measure_fix
Excessive item measure in ListWidget onDraw() - maybe related to #347
2017-05-22 10:29:23 +03:00
Vadim Lopatin 3c9e21e9f8 Merge pull request #350 from and3md/mouse_move_always_redraw_fix
Fix mouse move always redraw - related to #347
2017-05-22 10:29:03 +03:00
Vadim Lopatin 1791a03c09 Merge pull request #349 from and3md/groupbox_fix
GroupBox include margins to caption pos, improved images
2017-05-22 10:28:48 +03:00
and3md 484e3769ce Excessive item measure in ListWidget onDraw(), related to #347 2017-05-21 12:22:04 +02:00
and3md 65845759a2 SwitchButton set _needDraw to false after draw, fix always redraw after events, related to #347 2017-05-21 12:11:58 +02:00
and3md 707d8da799 SDL app use update() after events, fix always redraw when mouse move, related to #347 2017-05-21 12:11:50 +02:00
and3md e74c5b5f4b Fix group box caption pos - margins was not included. 2017-05-20 13:05:16 +02:00
and3md 2c087347d8 Fix SDL app on windows. 2017-05-15 19:04:32 +02:00
Vadim Lopatin 83072c5254 fix build error - toUTF8 import - for SDL app 2017-05-12 11:11:00 +03:00
Vadim Lopatin f5b00be79c fix toUTF8 deprecation 2017-05-12 10:54:58 +03:00
Vadim Lopatin 90f6967dda Merge pull request #346 from and3md/dialog_display_mode
Add dialog display mode to easy configure dialogs should be displayed as popup or window
2017-05-10 13:40:25 +03:00
Vadim Lopatin ea14972f2e Merge pull request #344 from and3md/filedlg_fix
Fix FileDialog for saving in non-existing filenames issue #321
2017-05-10 13:40:03 +03:00
and3md c8fe905e99 Add DialogdisplayMode to easy configure dialogs should be displayed as popup or window. 2017-05-08 19:23:43 +02:00
and3md 8eb9737be5 Fix FileDialog for saving in non-existing filenames issue #321 2017-05-06 22:27:29 +02:00
and3md e90f0f33a6 Fix deprecation warnings about handleWindowStateChange() visibility. 2017-05-06 18:16:17 +02:00
and3md 36f3fa5382 Make sure that calling handleWindowStateChange() is necessary. 2017-05-06 18:16:08 +02:00
and3md 373f51bd45 SDL: Fix window freeze when child modal fomr is created but not showed. 2017-05-06 18:15:58 +02:00
and3md f623ddc06a SDL: Set window state on create. 2017-05-06 18:15:52 +02:00
and3md 627e3cb11b SDL: State was handled twice first in setWindowState() second in event loop. Update window size and pos in event loop. 2017-05-06 18:15:45 +02:00
Vadim Lopatin ae1af989c9 fix x86_64 build error 2017-05-04 17:00:45 +03:00
Vadim Lopatin 10602abf3c CSS parser, initial version 2017-05-04 16:18:47 +03:00
and3md 411f2d82e1 SDL_WINDOWEVENT_EXPOSED - window invalidate() is needed on windows in VirtualBox. 2017-05-02 19:09:12 +02:00
and3md fedb1c8c58 Fix SDL renderer creation for VirtualBox and old graphics cards. 2017-05-02 19:02:23 +02:00
Vadim Lopatin 3c72624f52 Merge pull request #341 from and3md/fix_window_close
Fix window close in SDL
2017-05-02 11:24:36 +03:00
and3md a8db8a6e5a SDL_DestroyWindow() was called twice. First in close window code, second on window destructor. 2017-04-29 17:42:09 +02:00
and3md 9184303b05 SDL platform windows close code changed from variable to SDL event. Fixes multiple windows closing. 2017-04-29 17:41:41 +02:00
and3md 14c99be69c SDL: strongly improved modal behavior. Window state handled correctly. 2017-04-29 17:16:47 +02:00
and3md 076b2a44e7 Changed long to ptrdiff_t fix 32bit build 2017-04-29 17:15:43 +02:00
and3md 2677025486 Implemented modal windows behavior in SDL. 2017-04-29 17:15:02 +02:00
igor84 fa31fa2600 Added multi selection to string grid and filedlg, issue #23 2017-04-23 21:47:53 +02:00
Vadim Lopatin 29465b3bd2 Merge pull request #336 from and3md/sdl_set_window_state
Implemented setWindowState for SDL issue #258
2017-04-11 10:18:40 +03:00
and3md c8bc160e58 Better pos/resize code in SDL setWindowState() 2017-04-08 14:30:01 +02:00
and3md 73944287ad _widgetToDestroy should be private, enlarged documentation 2017-04-08 13:43:32 +02:00
and3md 71789a55b3 Implemented setWindowState for SDL issue #258 (based on windows platform code) 2017-04-06 20:19:37 +02:00
and3md a99064eb03 Change name safeWidgetDestroy() and SaveDestroyEvent to more accurate queueWidgetDestroy() and QueueDestroyEvent 2017-04-06 19:41:45 +02:00
and3md 4459a5f60d Ability to safe destroy widget later by event. 2017-04-06 19:41:18 +02:00
Vadim Lopatin 2433db588a Merge pull request #334 from and3md/radio_button_check_fix
Fixed checking radio button from code.
2017-04-03 05:06:29 +03:00
Vadim Lopatin 517cfa8133 Merge pull request #333 from and3md/multiline_text_widget_fix
Fix MultilineTextWidget measure. Possible fix #100.
2017-04-03 05:06:18 +03:00
Vadim Lopatin e7c75214de Merge pull request #332 from and3md/insert_child
Added insertChild() to Widget and WidgetGroup.
2017-04-03 05:05:47 +03:00
Vadim Lopatin 4d273a9b68 Merge pull request #331 from and3md/scroolbox_fix
Fix scrollbox sliders update issues (fix #192)
2017-04-03 05:05:37 +03:00
Vadim Lopatin 494606652e Merge pull request #330 from and3md/master
Fix selection combobox list when changing selected item from code.
2017-04-03 05:05:27 +03:00
Vadim Lopatin 9427a8fe75 Merge pull request #328 from TheGag96/master
Improved the file dialog path selection again
2017-04-03 05:04:56 +03:00
and3md fa2cddad34 Change try..finally to more compact scope(exit) 2017-03-23 18:18:17 +01:00
and3md e68496897e Reverted accidentally commit "Uncomented requestLayout() in scrollbar fix scrollbox sliders update issues" from this branch 2017-03-23 18:01:42 +01:00
and3md cd1cc7c1f6 Fixed checking radio button from code. 2017-03-22 20:13:34 +01:00
and3md d7ecab0963 Fix MultilineTextWidget measure. Possible fix #100. 2017-03-22 19:34:26 +01:00
and3md d61751f256 Added insertChild() to Widget and WidgetGroup. 2017-03-21 20:22:38 +01:00
and3md 19e5d49ca7 Uncomented requestLayout() in scrollbar fix scrollbox sliders update issues
Possible fix  #192.
2017-03-21 19:58:32 +01:00
and3md 3bb823901f Uncomented requestLayout() in scrollbar fix scrollbox sliders update issues
Possible fix  #192.
2017-03-21 19:09:01 +01:00
and3md 767aa4bdbe Fixed double item selection on combo list when changing selected item from code. 2017-03-21 18:12:42 +01:00
TheGag96 2f72f5950a Small fix for selecting directories 2017-02-11 17:21:26 -06:00
TheGag96 8eacdfd2c0 Improved 2017-02-11 16:59:46 -06:00
Vadim Lopatin 23ff14f8e8 update action handling 2017-02-10 15:01:54 +03:00
TheGag96 f8341f67a5 Remove stray comment (possibly from older version?) 2017-01-14 23:04:28 -06:00