Commit Graph

51 Commits

Author SHA1 Message Date
Jaroslaw Palczynski
0e294aaa73 TArray::FindMatch deprecation as it does the same as TArray::IndexOfByPredicate.
#codereview Robert.Manuszewski, Nick.Atamas

[CL 2314177 by Jaroslaw Palczynski in Main branch]
2014-09-30 11:35:57 -04:00
Jaroslaw Surowiec
4f5daf9c89 Profiler - Removed unused code
[CL 2314057 by Jaroslaw Surowiec in Main branch]
2014-09-30 06:15:17 -04:00
Jaroslaw Surowiec
7a346bb52b Profiler - Removed unused code
[CL 2313076 by Jaroslaw Surowiec in Main branch]
2014-09-29 12:55:45 -04:00
Jaroslaw Palczynski
65ba5d456f TArray documentation and a coupld of methods deprecation.
Changes mostly in Array.h. The changes in other files are only renames for deprecated functions.

[CL 2312616 by Jaroslaw Palczynski in Main branch]
2014-09-29 04:23:44 -04:00
Wes Hunt
69cbf8177d Implement GetTypeHash(FVector4) for use in hashing functiond (and GetTypeHash(FLineaerColor) to get around ambiguities that introduced).
* Doing so exposed an ambiguity in GetTypeHash(FLinearColor) because previously it was relying on an implicit conversion to FColor. Once an overload for FVector4 was provided, it became ambiguous because there is ALSO an implicit conversion to FVector4!
* Resolved this by implementing GetTypeHash(FLinearColor) directly instead of relying on implicit conversion to FColor.
* This exposed a situation where SDataGraph inlined a local definition of GetTypehash(FLinearColor), and was now in conflict with the real, global one.
  * This was a nono in the first place because depending on how UBT decided to combine cpp files, this could CHANGE THE MEANING of GetTypeHash(FLinearColor)!!!
  * Turns out that the function was completely unused in that file anyway, so never needed to be added in the first place.Thus, I removed it.
  * Arguably, the implementation in SDataGraph is better, but I left the old way so as not to change the meaning of any existing serialized hashes of colors that might be in data files.
#codereview:rob.manuszewski,Jaroslaw.Surowiec

[CL 2302959 by Wes Hunt in Main branch]
2014-09-18 16:43:05 -04:00
Chris Gagnon
e9fc0ada9d Removed Whitespace from usernames.
Added new buttons on the lauch profile results screen ( rerun, and cancel without closing).
Fixed possible crash when trying to populate a non existant profiler window.
#codereview matt.kuhlenschmidt

[CL 2295572 by Chris Gagnon in Main branch]
2014-09-12 16:57:10 -04:00
Jaroslaw Palczynski
eb49618ff2 Fix stat id redundant creation.
Change stat id creation to static declarations.

[CL 2281174 by Jaroslaw Palczynski in Main branch]
2014-09-02 05:19:25 -04:00
Ben Marsh
e9f8b8d3a1 Fixup multiline comments that are meant to be documentation. Need to start with /** for doxygen to parse them.
[CL 2265840 by Ben Marsh in Main branch]
2014-08-21 08:33:39 -04:00
Steve Robb
57dd5d7493 New ENUM_CLASS_FLAGS macro for declaring all of the bitwise operators needed for a bitflags enum.
Fixed CONSTEXPR definitions.
Converted EFontImportFlags to an enum class in order to test this feature.

#codereview robert.manuszewski,john.barrett

[CL 2254804 by Steve Robb in Main branch]
2014-08-13 12:53:47 -04:00
Michael Trepka
3293117f09 More fixes for Clang warnings
[CL 2238624 by Michael Trepka in Main branch]
2014-07-31 15:43:08 -04:00
Jaroslaw Surowiec
01e63dc6a4 Profiler - Fixed FPSChart
#codereview Robert.Manuszewski

[CL 2234399 by Jaroslaw Surowiec in Main branch]
2014-07-28 09:29:18 -04:00
Andrew Brown
0014d5ea64 Added analytics reporting to the profiler
#ttp 340626 - FIXIF: EDITOR: ANALYTICS: Profiler Usage Event

#branch UE4

#added Added analytics for tracking how long the profiler has been used for

#note It may have been possible to just use HasMouseCapture in the Tick, however this returns false if the tab isn't 'active' yet - so wouldn't count the time when a use is hovering over the window, mulling over their options.

[CL 2229948 by Andrew Brown in Main branch]
2014-07-24 10:55:05 -04:00
Nick Atamas
978a62ee0f Slate Hittesting 2.0 : Hittesting no longer bound to logical widget hierarchy.
Merged from usr/Nick.Atamas/UE4_SlateDev => /UE4

[CL 2228155 by Nick Atamas in Main branch]
2014-07-23 08:23:21 -04:00
Michael Trepka
f4438a0e55 Separate Control and Command keys on Mac; some editor shortcuts remapped to use Ctrl to free Cmd for Mac-specific shortcuts (Cmd+W, Cmd+M and Cmd+H)
[CL 2225709 by Michael Trepka in Main branch]
2014-07-21 13:10:16 -04:00
Andrew Brown
97baebcdae Asset View now supports secondary sorting
#UDN: Feature suggestion; Content browser can sort by a second column

#branch UE4

#change
Added two new images for secondary sort ascending and descending.
(Updated styles where needed).

Added new enum EColumnSortPriority: currently only lists Primary and Secondary, but can easily accommodate more*.
(FOnSortModeChanged was modified to also have the priority as a param, fixedup existing usage).

SHeaderRow now also has a SortPriority attribute to specify the SortMode order
(Defaults to Primary if unused).

Modified TUniquePtr so that assigning one from another worked correctly.
(Reviewed by Steve Robb).

SAssetView is the only table that has been modified, so far, to take advantage of the secondary sort. SetMajorityAssetType has been updated to correctly filter out all those sorts which are no longer relevant and bump the priority of the remaining sorts to fill in the ægapsÆ made by non-longer-relevant ones.

FAssetViewSortManager has been overhauled to take SortPriority into consideration when sortingà
Firstly, duplicate comparison structs were removed in favour of single structs which have æascendingÆ as a paramà any remaining duplicate code was removed in favour of an inherited usage. The base struct has an array of æfurther methodsÆ to employ in the result of a tie. Should a tie occur the ænextÆ comparison is done, and so on until itÆs not a tie or we run out of comparisons to perform.*
The manager defaults to having no secondary sort, so it relies on the interface thatÆs using it to provide it.
Whenever a column is assign the code makes sure that itÆs not already assigned to another column and corrects the order to take this into account.

Fixed a bug in FCompareFAssetItemByTagNumericalAscending comparing A with A (instead of B).
Various optimizations to the sort to descrease times

*The only places æSecondaryÆ is referred to in code is in GetSortingBrush (so it can display the correct icon for the sort), and OnTitleClicked (so it can set to correct sort based on input). The sorting code itself has no concept as to a secondary sort, it can support any number of sorting levels so if in future a tertiary (or more) is added, it is only these two function which should need updating as the sort will automatically accommodate it.

reviewed by Thomas.Sarkanen, Bob.Tellez

[CL 2119201 by Andrew Brown in Main branch]
2014-06-27 04:30:08 -04:00
Jaroslaw Palczynski
3a35a8dd0e Deprecate and remove checkAtCompileTime.
#ttp 337754
#codereview Robert.Manuszewski

[CL 2106862 by Jaroslaw Palczynski in Main branch]
2014-06-16 08:04:54 -04:00
Jaroslaw Palczynski
ebce413232 UE4 Refactoring. Changed OVERRIDE and FINAL macros to keywords override and final.
[CL 2104397 by Jaroslaw Palczynski in Main branch]
2014-06-13 06:14:46 -04:00
Max Preussner
3aece47882 Docs: Removed file comments and added missing code documentation
Please note that file comments had no purpose in nearly all cases and just added visual clutter. The two files that had meaningful file comments had their comments moved into the corresponding classes. There are still hundreds of file comments left in other files that will be removed over time.

Also cleaned up some random stuff along the way:
- relative paths to public headers within the same module are no longer necessary (automatically discovered by UBT now)
- header guards are deprecated, use #pragma once instead (all compilers support it now)
- space between multiple template brackets is no longer required (all compilers support >> now)
- NULL to nullptr, OVERRIDE to override
- spelling errors, whitespace, line breaks

[CL 2104067 by Max Preussner in Main branch]
2014-06-12 23:22:18 -04:00
Dmitry Rekman
5b887fb484 Linux: more changes for the editor.
From PR #140,  contributed by sbc100 and #ue4linux community.

[CL 2096299 by Dmitry Rekman in Main branch]
2014-06-05 17:11:45 -04:00
Jaroslaw Surowiec
78dcc42455 Stats - Stats files are now compressed, ratio for regular stats 30%, for raw stats 16%, misc code refactor and improvements
#codereview Robert.Manuszewski

[CL 2096003 by Jaroslaw Surowiec in Main branch]
2014-06-05 16:40:42 -04:00
Jaroslaw Surowiec
f9c258916c Profiler - Fixed an issue introduced by the recent shadow variable fixes
[CL 2095932 by Jaroslaw Surowiec in Main branch]
2014-06-05 12:16:37 -04:00
Jaroslaw Surowiec
7c6488776e Profiler - Disabled capture button because current implementation in the profiler service is not thread-safe
[CL 2095889 by Jaroslaw Surowiec in Main branch]
2014-06-05 12:15:47 -04:00
Marc Audy
83dcc2fe11 Shadow variable fixes
[CL 2094759 by Marc Audy in Main branch]
2014-06-04 15:11:29 -04:00
Jaroslaw Surowiec
59f4990063 Profiler - Raw stats files should use stored SecondsPerCycle, instead of the current one
[CL 2072221 by Jaroslaw Surowiec in Main branch]
2014-05-13 18:13:41 -04:00
Jaroslaw Surowiec
0b76f74d4a Profiler - Fixed a crash that may happen when loading a large stats file
[CL 2072085 by Jaroslaw Surowiec in Main branch]
2014-05-13 17:46:17 -04:00