Commit Graph

50 Commits (master)

Author SHA1 Message Date
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 bf87c0af10 Updated the copyright year to 2019 2019-01-21 19:31:21 +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 2a66090eab Fixed float warnings in tests 2018-09-26 19:51:24 +02:00
Bruno Van de Velde 11c5ee05ae Updated copyright to 2018 2018-03-22 19:57:45 +01:00
Bruno Van de Velde 3e0a2dcd11 Added a method to Theme to get the filename used to load it 2017-11-05 22:08:29 +01:00
Bruno Van de Velde 6c3bf91137 Perform a Unity build (combining all source files into large file) by default 2017-11-01 13:19:47 +01:00
Bruno Van de Velde 9e2e1ed52d 🔨 Make more use of SFML encapsulating classes 2017-10-16 19:31:40 +02:00
Bruno Van de Velde b2b8c1fb46 💥 Theme and Renderer implementations were changed to allow a default theme to be set 2017-09-22 23:31:09 +02:00
Bruno Van de Velde 6926f29dea Added bool type to ObjectConverter, Serializer and Deserializer 2017-09-05 20:25:21 +02:00
Bruno Van de Velde c74a262629 Updated tests for new texture deserializer code 2017-08-18 00:32:21 +02:00
Bruno Van de Velde a5784fb254 Removed smooth and filename parameters from Picture and make them available through the Texture class 2017-08-17 16:18:02 +02:00
Bruno Van de Velde 0f13ba5b1f Added draw tests for CheckBox and RadioButton + added some other tests 2017-07-28 23:03:58 +02:00
Bruno Van de Velde f68dd6af12 Turned all IO-related shared pointers to unique pointers 2017-06-29 16:54:11 +02:00
Bruno Van de Velde 08ee7439fc Added extra test for serializing TextStyle 2017-02-15 21:34:05 +01:00
Bruno Van de Velde cad70def6d Let tests use a font that can be used for drawing 2017-02-10 00:35:24 +01:00
Bruno Van de Velde 2e9eca5f6a Updated copyright header to 2017 2017-01-20 20:06:07 +01:00
Bruno Van de Velde 2538870e01 Improved renderer
- Cache renderer properties to reduce overhead of constantly polling the value
- Renderer classes now have a constructor taking the RendererData, no widget is thus required anymore to adapt the RendererData
- Widgets are now also notified when a renderer property is gone (and the value gets reset to default)
2017-01-18 01:02:18 +01:00
Bruno Van de Velde 908ef194aa Fixed shared texture issue by splitting the Texture class into a Texture and a Sprite class 2016-10-16 18:09:36 +02:00
Bruno Van de Velde 5b1afd4dc5 Fixed tests to represent new behavior 2016-09-17 01:43:34 +02:00
Bruno Van de Velde 899fdfb2de Updated code to fix errors and warnings on CI
- g++ 4.7 is no longer supported by TGUI 0.8, now using g++ 4.9
- valgrind was used by the script but not installed
- Fixed several errors for lines that VS2013 didn't support
- Fixed warnings in Any class about duplicate copy constructors
- Fixed some other minor warnings from VS2015
2016-09-14 21:43:22 +02:00
Bruno Van de Velde 06b8d3b919 Added a static 'create' function to all widgets which is now the intended way to construct a widget 2016-09-14 20:11:20 +02:00
Bruno Van de Velde 8123cff3ee ComboBox now uses the new renderer 2016-08-25 16:31:12 +02:00
Bruno Van de Velde 18e3cf48a5 Ported ListBox to new renderer + implement the stuff required to get that working 2016-08-20 18:42:18 +02:00
Bruno Van de Velde 10f42770f1 Replaced ':' by '=' in theme and widget files 2016-08-07 00:55:00 +02:00
Bruno Van de Velde c43cbc61eb Mostly stuff related to the renderers 2016-07-11 00:01:18 +02:00
Bruno Van de Velde 238abc8e00 Ported EditBox to new rendering system + implemented changes that were made in 0.7 in the meantime 2016-06-30 16:12:43 +02:00
Bruno Van de Velde e1bfb672c8 Update copyright dates 2016-03-17 16:12:06 +01:00
Bruno Van de Velde d67eb46155 Added tests for mouse events in ClickableWidget and Picture 2016-03-10 20:42:19 +01:00
Bruno Van de Velde 91c4bd2560 Also test widget move constructors and assignment operators 2016-03-10 08:14:37 +01:00
Bruno Van de Velde 71491bdc73 DataIO, Serializer and Deserializer classes should have 100% coverage 2016-03-10 07:44:05 +01:00
Bruno Van de Velde fae17dcacc Put parsing whitespace and comments in macro where code was identical 2016-03-09 01:15:20 +01:00
Bruno Van de Velde f4a1e2e04a Added extensive tests for DataIO class 2016-03-08 23:19:59 +01:00
Bruno Van de Velde 55c0c86449 Fixed conditional jump on uninitialized value warnings reported by valgrind 2016-03-08 10:05:16 +01:00
Bruno Van de Velde b924c7a930 Activate remaining tests (except those for specific widgets) 2016-03-03 17:23:46 +01:00
Bruno Van de Velde 01341a42c5 Few changes to Texture class, the isTransparentPixel is now full implemented and extensively tested 2016-02-07 23:31:55 +01:00
Bruno Van de Velde abf957d70a Allow colors to be passed as strings 2015-12-28 02:01:49 +01:00
Bruno Van de Velde e4624ed54d Theme->load should not overwrite a property set with setProperty 2015-12-05 01:01:47 +01:00
Bruno Van de Velde 63ad618513 Fixed mistake in theme test 2015-12-04 01:26:16 +01:00
Bruno Van de Velde eeb71b7ee8 Added clone function to Theme 2015-12-04 01:03:19 +01:00
Bruno Van de Velde e4f3abb560 Added HorizontalLayout and VerticalLayout tests 2015-09-19 13:58:48 +02:00
Bruno Van de Velde b9d1590102 Improved internal text rendering and made some other changes
List of changes:
- Text auto sizing was improved
- Every widget now has a font and a setFont function. The setTextFont
and setGlobalFont functions were removed.
- You can now set a custom text size in ListBox
- ListBox now has an auto scroll option to move the scrollbar down when
a new item is added (enabled by default)
- setTexture functions were added to Picture to change the image after
it was loaded
- HorizontalLayout and VerticalLayout can now decently handle widgets
with borders
- All widgets with borders now correctly implement getFullSize
- Fixed loading MessageBox from a theme file
- Fixed positioning of LoadingBar front image from Black theme
- Added new tests
2015-09-19 13:18:07 +02:00
Bruno Van de Velde ffe014140c Improved testing code coverage in loading part 2015-09-06 23:18:49 +02:00
Bruno Van de Velde 07790c878d Fixed warnings when building tests with VS2015 (which can't compile the tests anyway due to lack of SFINAE support) 2015-08-13 00:16:20 +02:00
Bruno Van de Velde 8b9d663091 Fixed some issues discovered by testing on mac 2015-08-12 18:06:34 +02:00
Bruno Van de Velde 3b86dad760 Added support for serialized class names in theme and widget files 2015-08-07 23:19:16 +02:00
Bruno Van de Velde 18d39be52c Added support for comments in theme and widget files 2015-08-07 22:42:59 +02:00
Bruno Van de Velde 445c805c09 Ported more widgets to new loading system 2015-08-07 14:03:22 +02:00
Bruno Van de Velde 807d3e28c3 More unit tests for new code 2015-07-27 16:11:33 +02:00