Bruno Van de Velde
06a55855a9
Let parameter detection look for widget and signal name as first unbound parameters
2017-08-30 01:17:35 +02:00
Bruno Van de Velde
1988d34f4a
New signal code did not work well with unbound parameters like 'const Type&' instead of 'Type'
2017-08-30 00:00:54 +02:00
Bruno Van de Velde
c2a6e4d043
New layout system failed to find widgets by name because they were already converted to lowercase while the search was case-sensitive
2017-08-29 19:55:34 +02:00
Bruno Van de Velde
33e8cbb339
Enable signal extension automatically when using g++ >= 7.1 and -std=c++1z or -std=c++17 is used
2017-08-29 14:58:18 +02:00
Bruno Van de Velde
e537fa8f3e
Try yet another fix for the AppVeyor.yml script which still fails when the SFML directory is cached while a new commit has been made to SFML since the cache was created
2017-08-29 00:27:30 +02:00
Bruno Van de Velde
8e87c02919
Added experimental extension to the signal system
2017-08-29 00:21:29 +02:00
Bruno Van de Velde
4bd6b662bb
Removed SignalWrapper code that was commented instead of removed earlier
2017-08-27 22:51:23 +02:00
Bruno Van de Velde
84e903c5dd
Added RangeSlider widget
2017-08-27 22:41:02 +02:00
Bruno Van de Velde
ee63f16b40
Inverted vertical slider, minimum value is now at the bottom while maximum value is on top
2017-08-27 22:15:12 +02:00
Bruno Van de Velde
cf5906e681
Removed limitation that slider maximum could not be negative
2017-08-27 18:56:54 +02:00
Bruno Van de Velde
fa3528b9e6
Allow linking TGUI in a different way than linking SFML ( closes #72 , closes #73 )
2017-08-27 11:52:50 +02:00
Bruno Van de Velde
91a0a23d6e
Added ScrollablePanel widget
2017-08-26 17:27:28 +02:00
Bruno Van de Velde
1cc892a686
Removed some unneeded 'virtual' keywords
2017-08-24 13:49:03 +02:00
Bruno Van de Velde
d1766178f1
Removed 'virtual' where there is already an 'override' keyword
2017-08-24 13:37:18 +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
d8b1d3a670
Default text in edit box was not positioned correctly with center or right alignment
2017-08-18 16:08:29 +02:00
Bruno Van de Velde
aafe909eee
Make use of ccache for the linux builds on Travis CI
2017-08-18 01:50:39 +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
553b538576
Relax texture deserialization requirements
2017-08-18 00:24:16 +02:00
Bruno Van de Velde
08b8ece4d4
Picture size should not be reset to (0,0) when changing the texture to an empty one
2017-08-18 00:15:51 +02:00
Bruno Van de Velde
7566ccc8bd
Fixed incorrect picture position after changing the texture
2017-08-18 00:15:16 +02:00
Bruno Van de Velde
42516dba8a
Added connect function to bind multiple signals at once
2017-08-18 00:12:27 +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
6284edc7c8
Example was not updated in last commit
2017-08-17 15:25:29 +02:00
Bruno Van de Velde
5f62cae07c
Got rid of SignalWrapper
2017-08-17 15:13:23 +02:00
Bruno Van de Velde
d0b052bcdd
Theme files can now specify 'smooth' option behind textures
2017-08-16 20:21:34 +02:00
Bruno Van de Velde
b37ec528a8
Fixed case where Signal class did not accept valid signal handler
2017-08-16 20:18:47 +02:00
Bruno Van de Velde
d7a0c1d7bc
ListBox (and ComboBox) did not sent an ItemSelected signal when the selected value was changed programmatically
2017-08-16 15:18:35 +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
7880b9e00f
Don't set left padding in ListBox and ComboBox by default as it affects the background of the selected item
2017-08-14 19:50:13 +02:00
Bruno Van de Velde
4f17ea26d6
Fixed ComboBox::addItem incorrectly setting the ListBox size
2017-08-14 19:48:23 +02:00
Bruno Van de Velde
999fe00a63
Added warnings to Widget documentation where the function only has effect when the widget has already been added to the parent
2017-08-08 16:28:50 +02:00
Bruno Van de Velde
0cf09ff141
One more fix to the AppVeyor script
2017-08-06 00:28:32 +02:00
Bruno Van de Velde
17743569a3
ChildWindow::setSize called Widget::setSize instead of Container::setSize, causing child widgets that used a relative size to not be updated when the child window was given a size
2017-08-01 01:02:20 +02:00
Bruno Van de Velde
314503484e
Make use of inheriting constructors in renderer classes
2017-07-31 11:18:53 +02:00
Bruno Van de Velde
402c99a131
SFML/Graphics.hpp was not being included inside TGUI.hpp
2017-07-31 00:49:28 +02:00
Bruno Van de Velde
41c39cf5a1
ChildWindow did not support a relative position
2017-07-30 20:09:15 +02:00
Bruno Van de Velde
b05b9851cd
Don't output 'font = null' in the renderer when saving widgets to a file
2017-07-30 15:20:14 +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
1b08dede74
Added parameters to ChildWindow constructor to immediately specify the title and title buttons
2017-07-30 13:57:32 +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
b35eb0ae92
Cache SFML again on AppVeyor. Build error was likely caused by fc command returning 1
2017-07-29 01:07:59 +02:00
Bruno Van de Velde
79fedb5ae3
Fixed uninitialized variable that was just introduced
2017-07-28 23:43:56 +02:00
Bruno Van de Velde
d9e9e261c4
Always build SFML on AppVeyor as I can't figure out why it sometimes fails when using the cached version
2017-07-28 23:08:23 +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
0a08bb6c3f
Made space between widgets in BoxLayoutRenderer a float instead of a Layout since a relative ratio wasn't supported anyway
2017-07-28 23:01:39 +02:00
Bruno Van de Velde
704fcb2c80
Fixed position of checkbox texture when borders were set
2017-07-28 18:58:28 +02:00
Bruno Van de Velde
0c69ca9edd
Fixed conversion warnings with visual studio
2017-07-26 01:31:53 +02:00