Commit Graph

338 Commits (master)

Author SHA1 Message Date
Bruno Van de Velde 49699ad521 Added focusable property to Widget 2019-05-24 18:01:29 +02:00
Bruno Van de Velde fef92953c4 Added SelectionChanged signal to TextBox (#97) 2019-05-11 18:26:26 +02:00
Bruno Van de Velde 1a77e0ec60 Added getSelectionStart and getSelectionEnd function to TextBox (#97) 2019-05-11 11:13:28 +02:00
Bruno Van de Velde 81e7428e39 Tests should not define TGUI_REMOVE_DEPRECATED_CODE. The define may only be used when the TGUI library was compiled with the same option. 2019-05-04 15:55:12 +02:00
Bruno Van de Velde 8e897bf235 Added mousePressed and mouseReleased functions to Widget that get called for any mouse button (closes #96) 2019-05-04 15:54:05 +02:00
Bruno Van de Velde 86be352070 Explicitly use Ubuntu Xenial on Travis CI [appveyor skip] 2019-04-15 19:36:05 +02:00
Bruno Van de Velde 9af18a15ef Fixed some warnings 2019-04-06 11:52:55 +02:00
Bruno Van de Velde 208477fb3e Added + and - operators to Outline 2019-03-29 18:54:51 +01:00
Bruno Van de Velde aeb48fd15a Selecting item in TreeView could go wrong if some items were collapsed 2019-03-27 12:26:39 +01:00
Bruno Van de Velde 8da47fd75e Added function to layout class to check if it contains a constant 2019-03-26 10:22:26 +01:00
Bruno Van de Velde f66f8a5e45 Don't put quotes around simple strings when serializing strings 2019-03-24 13:51:27 +01:00
Bruno Van de Velde 0e9c18299a Added support for typing tabs in TextBox (only when tab usage is disabled in Gui, by default pressing tab focuses the next widget) 2019-03-21 20:03:08 +01:00
Bruno Van de Velde 76509db5e0 Loading widget from file failed when min or max was used in layout strings 2019-03-18 22:39:05 +01:00
Bruno Van de Velde 1cdc86aa50 Various minor changes 2019-03-18 19:54:41 +01:00
Bruno Van de Velde 9f791c6dd7 Added ChangeItemOnScroll property to ComboBox 2019-03-16 14:00:41 +01:00
Bruno Van de Velde d143e4dda8 Only let ComboBox send the ItemSelected event when the mouse is released 2019-03-13 19:36:56 +01:00
Bruno Van de Velde 822fa05179 Added default text to ComboBox which is displayed when no item is selected 2019-03-10 19:35:15 +01:00
Bruno Van de Velde 854dc949d0 Added minimal SVG support 2019-03-09 15:10:00 +01:00
Bruno Van de Velde 8ac25b8044 Label didn't ignore events after ignoreMouseEvents was called 2019-03-06 22:32:31 +01:00
Bruno Van de Velde 932f710eaf ChildWindow can now have a different border color in focused state 2019-03-02 15:52:39 +01:00
Bruno Van de Velde a773065783 Return false from EditBox::setInputValidator when regex is invalid 2019-03-02 14:08:12 +01:00
Bruno Van de Velde f6812a2e96 Added right click signal to ListView 2019-02-27 20:13:05 +01:00
Bruno Van de Velde 55376855c6 Added changeItem and changeSubItem to ListView 2019-02-27 19:42:56 +01:00
Bruno Van de Velde dfd4c259b3 Added setSelectedText function to TextBox 2019-02-27 19:18:48 +01:00
Bruno Van de Velde 588b876b63 Added addMultipleItems to ListView 2019-02-26 20:29:50 +01:00
Bruno Van de Velde d97519d4f7 GuiBuilder: window to change properties of type Outline 2019-02-24 11:31:28 +01:00
Bruno Van de Velde aa5a366835 Added tests for new signals 2019-02-23 10:36:18 +01:00
Bruno Van de Velde c81797bc89 Added 'Automatic' as new ExpandDirection in ComboBox 2019-02-17 16:52:00 +01:00
Bruno Van de Velde a97cb59b8d No longer deprecate ScrollablePanel::getScrollbarWidth since it is needed to find the width when the renderer property is 0 2019-02-16 22:50:39 +01:00
Bruno Van de Velde e8f2981c88 Added min and max functions to layouts again 2019-02-16 19:04:46 +01:00
Bruno Van de Velde b86f93577d Added extra functionality to ListView
- Added horizontal grid lines to ListView
- Added option to ListView to expand the last column to fill the remaining space
- Allow a separator between the header and contents in a ListView
- Split separator in ListView into separator and vertical grid line
2019-02-14 22:16:19 +01:00
Bruno Van de Velde 9c89d57ff0 Build the gui builder by default 2019-02-04 18:59:37 +01:00
Bruno Van de Velde 649755d069 Items in ListView can now have icons 2019-01-27 18:51:46 +01:00
Bruno Van de Velde 07b0af452d Added tests for Listview and fixed issues uncovered while writing the tests 2019-01-27 11:16:47 +01:00
Bruno Van de Velde 5afd3e379d Added setColor function to Texture 2019-01-25 22:28:49 +01:00
Bruno Van de Velde ed76bc702e Added option to display suffix in EditBox (closes #91) 2019-01-23 18:50:19 +01:00
Bruno Van de Velde bf87c0af10 Updated the copyright year to 2019 2019-01-21 19:31:21 +01:00
Bruno Van de Velde 54e72fbdcf ListView widget added (closes #83) 2019-01-21 19:25:03 +01:00
Bruno Van de Velde ebdb38c4fe Install gui-builder to '${TGUI_MISC_INSTALL_PREFIX}/gui-builder' folder (closes #93) 2019-01-21 19:12:03 +01:00
Bruno Van de Velde 5a56f6ac41 It is now also possible to unset colors when loading them from a string 2019-01-19 20:11:41 +01:00
Bruno Van de Velde ddee46bc3b Widget file parser failed to parse a value with a slash in it (unless the value had quotes around it) 2019-01-19 19:19:57 +01:00
Bruno Van de Velde 786e752541 Save ReadOnly property of EditBox and SelectedItemIndex from ListBox and ComboBox to widget file 2019-01-16 20:14:21 +01:00
Bruno Van de Velde d679a0a0c4 Added propery to widget renderer to set an opacity for the disabled state 2019-01-10 19:48:38 +01:00
Bruno Van de Velde 6383e6e787 Added tests for drawing scrollbars in TextBox 2019-01-01 16:16:35 +01:00
Bruno Van de Velde d4a427f5a5 Make use of Policy struct in Scrollbar class instead of letting each widget have their own ScrollbarPolicy struct 2019-01-01 15:59:40 +01:00
Bruno Van de Velde 13f2627e12 Sprites lost their transparency when resized 2018-12-29 19:19:25 +01:00
Bruno Van de Velde 0a877935f7 Remove deprecated code from code coverage 2018-12-29 18:03:25 +01:00
Bruno Van de Velde 10a02dbd8f Labels can now have a scrollbar (disabled by default for backwards compatibility) 2018-12-22 18:38:18 +01:00
Bruno Van de Velde 6f17490849 Deprecated setScrollarWidth/getScrollbarWidth in ScrollablePanel as this property is also provided through the renderer 2018-12-21 13:08:58 +01:00
Bruno Van de Velde 1597cfecc1 TreeView resources weren't copied to tests folder 2018-12-15 10:50:14 +01:00