Commit Graph

15 Commits

Author SHA1 Message Date
Max Preussner
da9d0001f2 Slate: Moved window management related code to SlateCore
[CL 2080861 by Max Preussner in Main branch]
2014-05-21 15:02:29 -04:00
Matt Kuhlenschmidt
c8048bb919 We now throttle cpu usage by ticking much slower when all windows are minimized. Added a setting (disabled by default) to also throttle when the application is not in the foreground (but could still be visible).
Fixed Slate windows drawing when minimized

[CL 2075621 by Matt Kuhlenschmidt in Main branch]
2014-05-16 11:42:50 -04:00
Jamie Dale
273df4a473 Improved the way the class wizard informs users about whether a class with be Public or Private
TTP# 332794 - EDITOR: Usability improvements for the New Class Wizard

It now displays a checkbox for Public and Private, with a tooltip explaining what each option means. If you're not using a Public/Private layout for your code, it disables these options and also displays a tooltip explaining why.

Clicking on one of these check boxes will adjust the current path to place the class either in the Public or Private folder, preserving any sub-path information correctly.

Finally, when creating a class in the Public or Classes folder, the class wizard will now automatically add the MODULENAME_API macro to the class declaration.

Also improved the button alignment used for the wizard.

ReviewedBy Thomas.Sarkanen, Max.Preussner

[CL 2072761 by Jamie Dale in Main branch]
2014-05-14 06:47:25 -04:00
Max Preussner
987584a7a6 Slate: Added ability to specify window title bar content alignment on a per-platform basis
#CodeReview: michael.trepka

[CL 2072202 by Max Preussner in Main branch]
2014-05-13 18:08:39 -04:00
Max Preussner
9576bba8c9 Slate: Added ability to specify center content alignment of window title bars
#CodeReview: michael.trepka

[CL 2071875 by Max Preussner in Main branch]
2014-05-13 14:11:25 -04:00
Nick Darnell
68a51214dc SLATE - TAttribute<FText> Tooltips are now settable post construct on SWidgets.
[CL 2068210 by Nick Darnell in Main branch]
2014-05-09 11:22:42 -04:00
Dmitry Rekman
9d8350a8c3 Minor fix.
#codereview Michael.Liebenow

[CL 2067443 by Dmitry Rekman in Main branch]
2014-05-08 17:08:13 -04:00
Dmitry Rekman
5a828ac684 Linux mouse support improvements from Darkside.
- Result of pair debugging of NickA and MichaelL.
- Introduces some really scary platform-specific #ifdef's in SWindow I am not happy about...  Reportedly going to be accounted for in Slate refactor and will cease to be platform-specific.
- Old junk nuked.

#codereview Josh.Adams, Michael.Liebenow, Nick.Atamas, Michael.Trepka

[CL 2067399 by Dmitry Rekman in Main branch]
2014-05-08 16:37:57 -04:00
Mikolaj Sieluzycki
45c031d576 #ttp 331438 UE4: PlatformMath refactor
#proj core
#branch UE4
#summary Rename Trunc, Round, Floor, Ceil to TruncToInt, RoundToInt, FloorToInt, CeilToInt. Added *ToFloat versions. Repeated for FGenericPlatformMath and all derived classes for all platforms wherever applicable. Corrected comment in Fractional and added Frac() which does HLSL-style fractional (x - floor(x)). Checked for compilation on all projects (with cooking levels wherever applicable). Didn't change Fractional to Frac, this will be done in second commit.
#codereview robert.manuszewski

[CL 2064306 by Mikolaj Sieluzycki in Main branch]
2014-05-06 06:26:25 -04:00
Michael Trepka
93d02e574c Fixed incorrect Right and Bottom values for PrimaryDisplayWorkAreaRect and VirtualDisplayRect set in FWindowsApplication::GetDisplayMetrics()
[CL 2062122 by Michael Trepka in Main branch]
2014-05-02 10:39:15 -04:00
Nick Darnell
5f1dd329b5 Slate - Removing GetCursor from SWidget, unnessesary. Adjusting doc on SSlider.
[CL 2060654 by Nick Darnell in Main branch]
2014-04-30 20:05:11 -04:00
Nick Darnell
054b9076e7 Slate/UMG - Exposing SetValue for the SSlider. Exposing GetCursor for SWidget. Adding a new UStruct EditableTextWidgetStyle.
[CL 2060305 by Nick Darnell in Main branch]
2014-04-30 15:50:15 -04:00
Max Preussner
b61978c911 SlateCore: removed obsolete debug code (also fixed non-Unity compilation in Debug)
#CodeReview: jamie.dale

[CL 2058822 by Max Preussner in Main branch]
2014-04-29 11:41:21 -04:00
Max Preussner
a60d7da515 SlateCore: fixed FTouchKeySet static member linkage; fixed spelling errors, formatting
[CL 2057407 by Max Preussner in Main branch]
2014-04-27 21:56:48 -04:00
Max Preussner
b63129a60c Slate: Refactored core Slate implementation into SlateCore module in preparation for UMG.
Other Updates:
- The WidgetReflector is now in its own module as well. It will be converted to a plug-in later.
- The Public API of both Slate and SlateCore has largely been reorganized for better discoverabilty. More cleanup work is needed.
- Added a lot of missing API documentation and fixed existing ones. More and better documentation is needed.
- Removed dead code, fixed a couple things I stubled upon, and conformed to coding guidelines (NULL vs nullptr, line breaks, etc.)

Upgrade Notes:
- The Slate Remote Server is currently disabled - will be re-enabled shortly!
- If your module previously had a module dependency to 'Slate', it now also needs a PrivateModuleDependency to 'SlateCore' in its Build.cs file.
- If your module exposes in any of its Public header files types that are now declared in SlateCore, it needs a PublicModuleDependency to 'SlateCore'
- The ToolTip property type on SWidget has changed from SToolTip to IToolTip; change local variables to TSharedPtr<IToolTip> instead of TSharedPtr<SToolTip> where needed
- IToolTip is not a widget. If you need access to the actual widget that represents the tool tip, use IToolTip::AsWidget(); If you need access to the tool tip's content, use IToolTip::GetContentWidget()

Troubleshooting:
- After syncing to this changelist you may have to clean your /Engine/Intermediate/Build/ directory and rebuild your entire project
- If in your project you are getting linker errors for unresolved types that are now declared in SlateCore, you may be missing a dependency to 'SlateCore'
- If in the Engine code you are getting linker errors for unresolved types that are now declared in SlateCore, you may need to rebuild the entire Engine

[CL 2057118 by Max Preussner in Main branch]
2014-04-26 15:07:24 -04:00