Commit Graph

338 Commits (master)

Author SHA1 Message Date
Bruno Van de Velde 290d8b3835 Tests did no longer build 2017-02-10 01:22:37 +01:00
Bruno Van de Velde 192ed169c4 Trying to test drawing code of Label 2017-02-10 00:37:21 +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 4d665f62f8 Added some minor test cases 2017-01-22 01:31:13 +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 de5849d4a9 Added setInvertedMenuDirection to MenuBar to open the menus above the bar instead of below 2016-12-23 18:22:55 +01:00
Bruno Van de Velde 6a89d0c68d Fixed tests for change in addMenuItem function 2016-12-12 19:10:49 +01:00
Bruno Van de Velde cabce9164f The position of the view of the gui is no longer stored in GuiContainer
This change was made because ComboBox would open its list at the wrong location when the center of the view was not the center of the window.
2016-11-22 16:46:37 +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 8170a4e229 Several minor changes that were changed while developing TGUI.Net 2016-10-05 15:10:21 +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 58a0787299 Added missing headers 2016-09-16 01:45:46 +02:00
Bruno Van de Velde ba4f11647e Tests are apparently not executed from test directory so patch path was still incorrect 2016-09-15 15:59:55 +02:00
Bruno Van de Velde b782f7fb3f Warnings in VS2015 still not fixed 2016-09-15 15:52:11 +02:00
Bruno Van de Velde bb8959cb01 Travis CI build still failing
- GCC patch was in wrong directory
- Xcode7 image does not include cmake like default osx image
- Script still tried to build  32-bit SFML which is no longer supported
2016-09-15 15:47:22 +02:00
Bruno Van de Velde 8e95f6eaeb Ignore some VS warnings coming from the tests
These warnings can't be fixed in the current signal system that
interntionally relies on casting
2016-09-15 15:12:05 +02:00
Bruno Van de Velde 5a6824e823 Travis CI should use Xcode 7 to build TGUI 0.8-dev 2016-09-15 15:05:19 +02:00
Bruno Van de Velde c754915e8c Patch SFML on Travis CI to work around gcc bug in gcc 4.9 and gcc 5 2016-09-15 13:53:24 +02:00
Bruno Van de Velde abdbf5eeae Slightly reduce included headers by only including SFML headers where needed instead of always including SFML/Graphics.hpp 2016-09-15 02:48:45 +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 047daf2f2a Enable cross-platform CI on 0.8 branch 2016-09-14 20:54:25 +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 39b0ec2bda Patch box layouts for new renderer 2016-09-14 15:09:56 +02:00
Bruno Van de Velde 2a55ec0fe5 Added more tests for Grid 2016-09-14 01:37:26 +02:00
Bruno Van de Velde 5818e5ebdc Enable ToolTip functionality again + implemented loading and saving of tool tips 2016-09-13 19:41:48 +02:00
Bruno Van de Velde c0b2c6fdda MessageBox now uses new renderer 2016-09-13 16:50:46 +02:00
Bruno Van de Velde 7b6a439bb7 Added more tests for ChildWindow 2016-09-12 02:04:55 +02:00
Bruno Van de Velde 6aacbdb06a Ported ChildWindow to new renderer 2016-09-12 01:09:13 +02:00
Bruno Van de Velde 7499d3d4b7 Internal mouse event functions now take a sf::Vector2f instead of 2 float parameters 2016-09-08 15:30:41 +02:00
Bruno Van de Velde d237a08416 Get 100% test coverage on Renderers folder 2016-09-08 00:41:47 +02:00
Bruno Van de Velde 12024725af Updated TextBox for new renderer 2016-09-07 23:37:49 +02:00
Bruno Van de Velde 4199fd59be Tabs widget now uses new renderer 2016-09-04 01:45:46 +02:00
Bruno Van de Velde 1e0255d076 Updated MenuBar to new renderer 2016-09-02 01:47:03 +02:00
Bruno Van de Velde 91660444f4 ChatBox now uses the new renderer 2016-08-30 14:55:23 +02:00
Bruno Van de Velde 46e5867679 Mouse events now have the position of the widget subtracted before the event is passed to the widget 2016-08-28 00:31:25 +02:00
Bruno Van de Velde 08249e5ee8 Ported knob widget to new renderer 2016-08-27 23:19:14 +02:00
Bruno Van de Velde d596a1d002 Added Text class to handle the text instead of letting widgets use the Label class 2016-08-26 18:04:11 +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 e712082ac3 Implemented recent 0.7 changes in 0.8 2016-08-20 19:48:19 +02:00
Bruno Van de Velde e6acc8b9f9 Improvements in ChildWindow code 2016-08-20 19:02:10 +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 b02d2af79c Ported Scrollbar to new rendering system 2016-08-07 00:43:11 +02:00
Bruno Van de Velde f8598bdf09 Slider now also uses the new renderer 2016-08-02 01:29:42 +02:00
Bruno Van de Velde dc5a7a71fa Updated SpinButton code to use new renderer 2016-07-28 16:06:13 +02:00
Bruno Van de Velde a3c0856d6e Let ProgressBar use the new renderer system 2016-07-23 19:32:13 +02:00
Bruno Van de Velde fa8ec3804f Improved tests 2016-07-17 20:19:30 +02:00
Bruno Van de Velde b28b72e755 Adapted RadioButton and CheckBox to new renderer system 2016-07-17 19:33:14 +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 b484d0a321 Added codecov configuration file 2016-06-30 18:38:41 +02:00
Bruno Van de Velde 7f0118e985 Updated catch.hpp file to the latest version 2016-06-30 16:25:46 +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 09ea888e79 Added test for saving and loading invisible and disabled widgets 2016-03-18 19:18:38 +01:00
Bruno Van de Velde e1bfb672c8 Update copyright dates 2016-03-17 16:12:06 +01:00
Bruno Van de Velde 0bed6596f3 Added mouse event test to rewritten widgets and key press event to Button 2016-03-17 10:25:39 +01:00
Bruno Van de Velde 86064b7d25 Added tests for Button 2016-03-17 08:21:45 +01:00
Bruno Van de Velde 9c6e571836 Ported Button (without tests) 2016-03-16 17:08:30 +01:00
Bruno Van de Velde 1248df491c Tested events in Label and Panel 2016-03-11 00:03:09 +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 d8349af8e9 Travis build should fail when tests fail 2016-03-03 07:35:03 +01:00
Bruno Van de Velde d9c1cc3e3c Added Panel and activated most core tests (code is currently not working yet) 2016-03-02 19:52:40 +01:00
Bruno Van de Velde 73d6dc44d9 Borders are now inside Label 2016-03-01 23:56:44 +01:00
Bruno Van de Velde a3ff9616fa Disable extra testing for WIP branch and only run partial unit tests 2016-03-01 20:31:21 +01:00
Bruno Van de Velde 7087e0e1f0 Started rewrite for 0.7-beta 2016-03-01 20:02:44 +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 b5c1a67df1 Added vertical alignment in Label 2016-01-30 13:48:52 +01:00
Bruno Van de Velde 36ead7c4b7 Fixed issue with wrong line being removed in ChatBox when LineLimit is set and NewLinesBelowOthers=false 2016-01-29 15:06:54 +01:00
Bruno Van de Velde 2b5066c8e2 Added new ChatBox propery to widget files 2016-01-29 13:39:47 +01:00
Bruno Van de Velde 8c44a759dd Serialize widget names in widget file (fixes #55) 2016-01-25 19:33:03 +01:00
Bruno Van de Velde 71f3b260ee Fixed issue with negative layout values (fixes #54) 2016-01-22 15:14:57 +01:00
Bruno Van de Velde 70bab283d4 Added tests for few untested lines TextureManager 2016-01-22 00:24:33 +01:00
Bruno Van de Velde 40bcadb65a Let Travis print messages about cached SFML in a color 2016-01-21 18:38:50 +01:00
Bruno Van de Velde 1854dd1530 Added even more tests for Layout to get 100% coverage in Layout.cpp 2016-01-21 18:02:51 +01:00
Bruno Van de Velde 61ef2268fe Split Travis CI linux build in two separate builds 2016-01-21 16:42:10 +01:00
Bruno Van de Velde 0c14a5c04b Fixed some extreme situations in layout string 2016-01-21 13:58:29 +01:00
Bruno Van de Velde a103a68365 Fixed bug in layouts when using comparison operator in string (fixes #51) 2016-01-20 13:22:19 +01:00
Bruno Van de Velde bdf459f574 Replaced setNumbersOnly by more advanced setInputValidator function in EditBox 2016-01-15 18:42:35 +01:00
Bruno Van de Velde 79ca4b4056 Update the widget loader and saver to include the Label alignment 2016-01-09 23:49:07 +01:00
Bruno Van de Velde a862028605 Added CaretWidth to EditBox renderer 2016-01-08 12:33:49 +01:00
Bruno Van de Velde 843f602a4e Added a built-in default font 2016-01-04 20:10:16 +01:00
Bruno Van de Velde 29a29a0feb Added tests for Color class 2015-12-28 02:21:33 +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 dea305b324 If starting a second animation of the same type then cancel the first one 2015-12-26 16:56:21 +01:00
Bruno Van de Velde 4fb5fb94f4 Let all show animations take borders into account 2015-12-24 14:12:52 +01:00
Bruno Van de Velde 7fd30b4d90 Added getRatio and getFixedSize to BoxLayout 2015-12-13 23:01:48 +01:00
Bruno Van de Velde 52159eccdd Handle connect function being called with an empty string 2015-12-13 18:44:05 +01:00
Bruno Van de Velde 9a37885d61 Save widgets with transparency in tests 2015-12-05 22:45:41 +01:00
Bruno Van de Velde fd36c951f7 Added more tests for ChatBox 2015-12-05 19:46:44 +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 e90575df81 Fixed return value of connect function (fixes #49) 2015-12-03 15:59:06 +01:00
Bruno Van de Velde d125c391ad Added another animation test 2015-11-27 15:25:50 +01:00
Bruno Van de Velde d1a2b204f6 Added tests for Container 2015-11-25 20:38:08 +01:00
Bruno Van de Velde 21e093e457 Added tests for moveToFront and moveToBack 2015-11-25 20:22:38 +01:00
Bruno Van de Velde ed00dfc166 Added test for calling uncheckRadioButtons function 2015-11-25 19:25:44 +01:00
Bruno Van de Velde 4dd36e44f3 Added tests for showWithEffect and hideWithEffect 2015-11-24 18:47:52 +01:00
Bruno Van de Velde d307f2f79d Added tests for copying widgets 2015-11-20 10:05:38 +01:00
Bruno Van de Velde 1eeafd46f5 Added 'Bug Fixes' section to tests 2015-11-13 23:01:25 +01:00
Bruno Van de Velde 430e43dc00 Test case depended on uninitialized variables 2015-11-10 17:36:49 +01:00
Bruno Van de Velde 4a44bbe538 Added test case for issue #43 2015-11-10 15:13:48 +01:00
Bruno Van de Velde 5fc5d995e3 Try to get rid of annoying XRandR warning on Travis CI 2015-11-08 00:15:38 +01:00
Bruno Van de Velde ffa1863812 Travis build should not fail when codecov script fails 2015-11-04 14:39:48 +01:00
Bruno Van de Velde 75f3480f27 Added tests for loading/saving widget with layouts from/to file 2015-10-24 13:21:02 +02:00
Bruno Van de Velde 696ef6f7fc Set parent to nullptr when widget is removed from parent 2015-10-18 15:26:09 +02:00
Bruno Van de Velde ad3f7adb76 Added test for setParent function 2015-10-18 15:20:55 +02:00
Bruno Van de Velde 1ca87f192a Fixed loading and saving containers from widget files 2015-10-05 14:08:39 +02:00
Bruno Van de Velde b481d3a3f3 Add Panel to theme files which can set its background color 2015-10-03 00:12:55 +02: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 81aadee17c Replace setTransparency with superior setOpacity function 2015-09-09 23:56:10 +02:00
Bruno Van de Velde ee6301cbed Fixed tests for ToolTip 2015-09-08 16:12:02 +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 9f911666df Fixed issues with gcov in travis script 2015-09-06 16:31:19 +02:00
Bruno Van de Velde b19549ced3 Added codecov to testing 2015-09-06 13:27:17 +02:00
Bruno Van de Velde 1d52e92ae5 Make Travis CI build for both Linux and Mac OS X 2015-09-05 23:48:10 +02:00
Bruno Van de Velde 6034517c9b Comments starting with # did not work properly in theme files 2015-08-29 20:42:37 +02:00
Bruno Van de Velde 6596efb487 Solved problems with renaming of CheckBox and ToolTip 2015-08-19 19:40:19 +02:00
Bruno Van de Velde 39a615cd99 Fixed memory leak in tests due to circular smart pointers 2015-08-15 16:52:14 +02:00
Bruno Van de Velde 07fc50337e Comment test to examine strange behavior later 2015-08-15 03:00:58 +02:00
Bruno Van de Velde 558862fda5 Use TGUI_IMPORT_LAYOUT_BIND_FUNCTIONS again instead of TGUI_IMPORT_LAYOUTS 2015-08-15 01:48:26 +02:00
Bruno Van de Velde d751238ad0 Make callback system detect the underlying type of std::bind arguments 2015-08-14 18:35:35 +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 114106ea70 Adapted remaining widgets to new loading system 2015-08-12 13:45:37 +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 79352118ef Finished new layout system 2015-07-27 16:14:28 +02:00
Bruno Van de Velde 807d3e28c3 More unit tests for new code 2015-07-27 16:11:33 +02:00
Bruno Van de Velde aa5d0f1745 Added tests for layout + let CI build examples and run tests 2015-07-19 18:20:11 +02:00