Commit Graph

187 Commits (fb7033a7a4a29c9a7daf7eb495f7bdd2b0b1f140)

Author SHA1 Message Date
Bruno Van de Velde 756f8e3540 Widgets in HorizontalLayout and VerticalLayout can be given ratios again to determine their size and individual spaces can be added between widgets 2017-09-12 23:34:11 +02:00
Bruno Van de Velde a772efd878 Let CI build the on Android as well
[skip appveyor]
2017-09-10 00:39:03 +02:00
Bruno Van de Velde 7b22bb4de0 Added IgnoreMouseEvents property to Picture and Label so that they can be placed in front of other widgets while the widgets behind the picture/label still receives the mouse events 2017-09-05 23:28:21 +02:00
Bruno Van de Velde af77406789 Moved Texture property from Picture to PictureRenderer, together with the IgnoreTransparentParts property (previously called FullyClickable) 2017-09-05 23:26:51 +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 444e6c1a91 Updated catch.hpp from v1.5.6 to v2.0.0-develop.3 2017-08-31 17:48:00 +02:00
Bruno Van de Velde d8bf087373 Fixed errors and warnings from Clang 3.6. The minimum required clang version has been reduced from 3.7 to 3.6. 2017-08-30 22:08:16 +02:00
Bruno Van de Velde 3911530e4e disconnect function no longer requires the signal name + disconnectAll function which works on all signals has been added 2017-08-30 19:35:24 +02:00
Bruno Van de Velde 54ecc78714 Use connect function instead of directly accessing the signal object which will be deprecated in the future 2017-08-30 18:51:21 +02:00
Bruno Van de Velde 84e903c5dd Added RangeSlider widget 2017-08-27 22:41:02 +02:00
Bruno Van de Velde 91a0a23d6e Added ScrollablePanel widget 2017-08-26 17:27:28 +02:00
Bruno Van de Velde cd47a6ea43 AbsoluteOrRelativeValue tests weren't being build 2017-08-24 11:50:45 +02:00
Bruno Van de Velde b0766a619a Rewrote the layout system again
This combines the best features of the last 2 implementations, which were extremely different with the last one focusing on being easy but having dropped several features.

You can still use percentages to refer to the size of the parent:
  widget->setPosition({"20%", "10%"});

But binding widgets has been introduced again so that you can e.g. easily center the widget:
  widget->setPosition("(parent.size - size) / 2");
2017-08-24 11:44:38 +02:00
Bruno Van de Velde 87d0e9e538 Reduced downloaded dependencies on Travis CI 2017-08-18 19:27:04 +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 5f62cae07c Got rid of SignalWrapper 2017-08-17 15:13:23 +02:00
Bruno Van de Velde d0c66e9fb8 Added read-only property to EditBox 2017-08-15 22:40:15 +02:00
Bruno Van de Velde 4e1ff679ef Layouts can now be constructed from expressions containing plus/minus symbols and terms that can be both relative and absolute 2017-07-30 14:08:12 +02:00
Bruno Van de Velde 32d302c77f No longer using valgrind on Travis CI 2017-07-29 14:23:35 +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 d89648d4c1 Grid, HorizontalLayout, HorizontalWrap and VerticalLayout can now be saved to and loaded from a file 2017-07-25 18:54:59 +02:00
Bruno Van de Velde be0b4266e8 Added tests for recent changes to the callback system 2017-07-11 15:26:53 +02:00
Bruno Van de Velde 8d9e05cef5 Test with SFML 2.3 on macOS to make certain the version remains supported 2017-07-10 23:51:10 +02:00
Bruno Van de Velde 9cf0360776 Updated signal system to still allow custom arguments to be passed in 2017-07-10 22:56:27 +02:00
Bruno Van de Velde b337773de2 Rewrote callback system 2017-07-10 13:29:36 +02:00
Bruno Van de Velde 0723d3fc82 Added tests for HorizontalWrap 2017-07-05 16:37:57 +02:00
Bruno Van de Velde c5bf34bf9b Updated tests for different behavior of mouse events 2017-07-05 15:12:24 +02:00
Bruno Van de Velde 2a1c473982 BoxLayout now uses new layouts 2017-07-05 00:20:04 +02:00
Bruno Van de Velde ec1591c29c Outline can now be relative to the widget size 2017-07-02 17:29:44 +02:00
Bruno Van de Velde 3ded1ceca2 Removed the line that was hanging the build 2017-06-29 22:32:39 +02:00
Bruno Van de Velde c9f2e74f08 Make DejaVuSans the built-in font, to support many special characters without needing an external font 2017-06-29 18:35:54 +02:00
Bruno Van de Velde a7c3bcf0ae Added a few minor tests 2017-06-29 18:05:02 +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 3fae08dc5f Rewrite the core of the layout system 2017-06-29 13:29:05 +02:00
Bruno Van de Velde 4b3ba9dfb3 Use unique_ptr instead of shared_ptr to store the sf::Image used by textures 2017-06-29 11:38:44 +02:00
Bruno Van de Velde 262ca80ba6 Use SFML 2.4.0 again for the linux tests 2017-03-29 22:31:45 +02:00
Bruno Van de Velde e058a1c6fc Reduced minimum SFML version from 2.4.0 to 2.3.0 2017-03-29 18:25:32 +02:00
Bruno Van de Velde faf04e0d97 Simplify get function by always performing a recursive search when none of the direct child widgets matches the name 2017-03-25 01:15:25 +01:00
Bruno Van de Velde 4e73f9ab99 Fixed double to float conversion warnings in tests 2017-03-12 15:17:04 +01:00
Bruno Van de Velde 063a926cd1 Fixed clipping when the viewport was changed 2017-03-12 02:30:36 +01:00
Bruno Van de Velde 3525140a92 Split Panel widget into Group, RadioButtonGroup and Panel 2017-02-21 02:14:42 +01:00
Bruno Van de Velde 08ee7439fc Added extra test for serializing TextStyle 2017-02-15 21:34:05 +01:00
Bruno Van de Velde 79b170bc36 Added test for drawing Panel 2017-02-15 20:15:23 +01:00
Bruno Van de Velde 7994ada3fe Test drawing a Canvas widget 2017-02-15 20:01:01 +01:00
Bruno Van de Velde cce9642b3f Test functions of Color class 2017-02-15 20:00:41 +01:00
Bruno Van de Velde 5ff46d3bed Added draw tests from Picture, Button and EditBox 2017-02-13 02:01:20 +01:00
Bruno Van de Velde d9b9ec5c66 Draw tests do not work on Travis but they do on Appveyor, so conditionally disable them 2017-02-10 02:36:46 +01:00
Bruno Van de Velde e8d7448f32 Draw test was still in comments 2017-02-10 01:28:44 +01:00
Bruno Van de Velde 290d8b3835 Tests did no longer build 2017-02-10 01:22:37 +01:00