Bruno Van de Velde
f93a3d4bf0
🆕 Width of scrollbars in ScrollablePanel can now be changed
2017-10-21 11:18:31 +02:00
Bruno Van de Velde
d85429c268
🪲 ScrollablePanel now keeps track of child widget positions and sizes when the content size depends on the child widgets. The content size is thus correct now even when the widget is changed (or initialized) after being added to the ScrollablePanel.
2017-10-20 23:10:58 +02:00
Bruno Van de Velde
5df573041c
Temorary use SFML 2.4 instead of the github version to test on Windows since the github version is currently not supported until the release of SFML 2.5
2017-10-20 19:15:16 +02:00
Bruno Van de Velde
626d247135
🆕 Made double-click time configurable and use system setting on Windows by default
2017-10-20 18:53:36 +02:00
Bruno Van de Velde
6336177f52
🪲 New clipping code did not work with nested widgets
2017-10-19 19:56:15 +02:00
Bruno Van de Velde
d130c58bb8
🪲 Grid did not set its size when auto-sizing
2017-10-18 20:06:56 +02:00
Bruno Van de Velde
2835dcdbf4
🪲 Operators were not inline and thus caused linking errors when constexpr was not supported by the compiler
2017-10-16 19:53:25 +02:00
Bruno Van de Velde
39cc00d2ae
✏️ Fixed typo that caused compile error on Android
2017-10-16 19:51:28 +02: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
3a32da8632
💚 New test did not compile with Visual Studio
2017-10-15 13:35:21 +02:00
Bruno Van de Velde
de7a76b7d1
🔨 Rewrote clipping code to use views and viewports instead of glScissor (which no longer worked in combination with the latest SFML version)
2017-10-15 11:55:10 +02:00
Bruno Van de Velde
1e3c9989a0
✨ Moved loading code from WidgetLoader into the Widget itself and added a WidgetFactory class which creates the widget on which the load function is called
2017-10-13 22:52:38 +02:00
Bruno Van de Velde
cab3324b11
✨ The few runtime warnings can now be disabled at with a compile flag
2017-10-12 19:49:09 +02:00
Bruno Van de Velde
44a1cc33a3
✨ Moved saving code from WidgetSaver class to the widget itself, which allows the internal state to be saved.
...
For example, a button previously saved the TextSize which was visible on the screen. If TextSize was 0 internally, it would no longer be 0 after saving and loading it.
The button would still look the same, but when scaling it the text would remain at a fixed size. The auto-sizing text can now be properly saved.
Several small bug fixes got included in this commit, including one breaking change. The getMenus from MenuBar now returns a vector of pairs instead of a map. This was
done to preserve the order of the menus.
2017-10-11 19:59:43 +02:00
Bruno Van de Velde
3d3a887ad5
🔧 Don't search for libjpeg when using SFML 2.5
2017-10-08 19:20:40 +02:00
Bruno Van de Velde
c707f6cdc2
🆕 Saving to file now keeps relation between widgets and renderers (by saving shared renders outside of the widget)
2017-10-08 15:20:39 +02:00
Bruno Van de Velde
d63d8e00c4
✏️ BoxLayoutRatios loader parsed Ratios as string instead of number
2017-10-08 15:18:50 +02:00
Bruno Van de Velde
2cb40b3188
✨ Renderers can now be stored separately in widget files, allowing widgets to share a mutual renderer
2017-10-07 19:56:26 +02:00
Bruno Van de Velde
c101b49cd5
🪲 The caret of a TextBox should not move when adding a newline at the start of a line that only exists due to word-wrap
2017-10-07 15:56:40 +02:00
Bruno Van de Velde
495626ca38
✅ Added KeyPressed and TextEntered tests for TextBox
2017-10-07 11:53:54 +02:00
Bruno Van de Velde
d1dcfbc33a
🪲 Text could still be typed in TextBox when no scrollbar was present and the TextBox was full
2017-10-07 11:53:22 +02:00
Bruno Van de Velde
317a31ac39
🪲 When text is selected in TextBox, left and right arrows should just move to side of selection
2017-10-06 23:40:01 +02:00
Bruno Van de Velde
0f9e59c826
🪲 TextBox::getSelectedText sometimes contained newlines that were not in the original text (they where added internally for word wrapping)
2017-10-06 19:44:23 +02:00
Bruno Van de Velde
a6ca360704
✅ Added draw tests for ChildWindow and Knob + test drawing MenuBar with textures + test drawing TextBox with selected text
2017-10-04 20:02:35 +02:00
Bruno Van de Velde
5f40cf3ae6
✨ EditBox and TextBox should always set a caret width, even when a default theme is used that doesn't specify one
2017-10-04 18:51:53 +02:00
Bruno Van de Velde
309cd144d6
✅ Added draw tests for MenuBar, RangeSlider, Tabs and TextBox
2017-10-02 19:57:40 +02:00
Bruno Van de Velde
d5c2bc18ef
🪲 RangeSlider thumb did not display correctly when borders were set while using textures
2017-10-02 19:49:42 +02:00
Bruno Van de Velde
d28d05f8d8
🚧 Gui Builder crashed when trying to load file that did not exist
2017-09-30 19:28:10 +02:00
Bruno Van de Velde
75dbf6dede
✅ Test scrollbar property of ScrollablePanelRenderer
2017-09-30 19:26:44 +02:00
Bruno Van de Velde
846a4ce648
🔧 Added gui-builder executable to .gitignore
2017-09-29 14:37:21 +02:00
Bruno Van de Velde
d2b52dbe26
✅ Added draw tests for SpinButton, ProgressBar, Slider and Scrollbar
2017-09-29 14:33:47 +02:00
Bruno Van de Velde
24afbde057
🪲 Slider thumb did not display correctly when borders were set while using textures
2017-09-28 23:06:41 +02:00
Bruno Van de Velde
dd19e78a4a
✅ Draw tests should use a valid mouse position, even if position isn't checked
2017-09-28 16:13:02 +02:00
Bruno Van de Velde
86fd9dffbd
💥 VerticalScroll in SpinButton is now automatically determined based on the size
2017-09-28 15:58:40 +02:00
Kurt Slagle
d7362005ba
Change use of std::not1 and std::ptr_fun to use lambdas ( #77 )
...
Change use of std::not1 and std::mem_fun to lambdas due to c++17 deprecations (closes #75 )
2017-09-27 19:56:57 +02:00
Bruno Van de Velde
e3b2eb65bc
🪲 Removing selected item in ListBox could cause a crash ( fixes #76 )
2017-09-27 11:43:00 +02:00
Bruno Van de Velde
854880016f
👷 Gui Builder executable had dependencies to dlls
2017-09-26 16:58:19 +02:00
Bruno Van de Velde
149eb6dee7
🏁 Fixed gui-builder crash on exit on Windows
2017-09-26 16:57:11 +02:00
Bruno Van de Velde
4044431701
🏁 Code didn't compile with VS2015 Update 2 anymore
2017-09-26 15:31:54 +02:00
Bruno Van de Velde
215c5da5f7
👷 Build gui-builder on CI
2017-09-26 01:06:21 +02:00
Bruno Van de Velde
4d3afcacb1
🆕 Added minimal Gui Builder ( closes #45 )
2017-09-25 18:38:59 +02:00
Bruno Van de Velde
f031469bbb
📚 Added link to SFML website in readme
2017-09-25 18:04:32 +02:00
Bruno Van de Velde
5585e6acb7
👌 Fixed some conversion warnings
2017-09-25 16:57:54 +02:00
Bruno Van de Velde
743cf6819d
💄 Changed BackgrounColorDown of buttons in White theme to provide visual feedback that the click occurred
2017-09-24 14:00:25 +02:00
Bruno Van de Velde
87b2c872d6
🔧 Minor change in generated docs
2017-09-24 01:38:06 +02:00
Bruno Van de Velde
4d51472523
✨ Also save/load ExpandDirection from ComboBox to text file
2017-09-23 15:24:02 +02:00
Bruno Van de Velde
635517e1c3
✅ Added tests for TextSize and ExpandDirection in ComboBox
2017-09-23 14:59:41 +02:00
Bruno Van de Velde
a223933ab7
💥 Replaced ArrowUp and ArrowDown in ComboBox by a single Arrow property
2017-09-23 14:40:58 +02:00
Bruno Van de Velde
3388c98a79
🆕 Added ExpandDirection to ComboBox to allow the list to open above the ComboBox
2017-09-23 00:56:11 +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