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
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
0742cd0231
Added method to Grid to figure out which cells contain widgets
2017-07-25 15:29:51 +02:00
Bruno Van de Velde
3448947c73
Copy function of layout widgets was not static
2017-07-25 15:28:26 +02:00
Bruno Van de Velde
23832f78e9
Changed auto-sizing in Grid
2017-07-24 20:03:53 +02:00
Bruno Van de Velde
099c972bf4
Added move constructors and move assignment operators where there were only copy functions
2017-07-24 19:57:26 +02:00
Bruno Van de Velde
19c11ce25d
Initialized member of Clipping to prevent valgrind warnings
2017-07-24 19:53:08 +02:00
Bruno Van de Velde
9347d17232
Changed errorlevel check in AppVeyor script
2017-07-22 00:19:42 +02:00
Bruno Van de Velde
0a54bca136
Tabs can now have a minimum tab width when they are auto-sizing based on the text ( closes #42 )
2017-07-21 23:55:59 +02:00
Bruno Van de Velde
83e1869c3d
Colors in Tab can now be different during hover state
2017-07-21 22:57:11 +02:00
Bruno Van de Velde
51e2826138
Implemented Tab::setSize to give the tabs an equal width and fill the provided size
2017-07-21 18:56:34 +02:00