Commit Graph

5 Commits

Author SHA1 Message Date
Andrew Rodham
4ad1b987fc Improved progress reporting in the editor
FScopedSlowTask has been refactored to better allow for nesting of slow operations. This allows us to cascade nested scopes and provide accurate feedback on slow tasks. FScopedSlowTasks now work together when nested inside sub functions. Break up long functions that contain calls to multiple nested FScopedSlowTasks with FScopedSlowTask::EnterProgressFrame().

Example Usage:
void DoSlowWork()
{
    FScopedSlowTask Progress(2.f, LOCTEXT("DoingSlowWork", "Doing Slow Work..."));
    // Optionally make this show a dialog if not already shown
    Progress.MakeDialog();

    // Indicate that we are entering a frame representing 1 unit of work
    Progress.EnterProgressFrame(1.f);

    // DoFirstThing() can follow a similar pattern of creating a scope divided into frames. These contribute to their parent's progress frame proportionately.
    DoFirstThing();

    Progress.EnterProgressFrame(1.f);
    DoSecondThing();
}

This addresses TTP#338602 - NEEDS REVIEW: Editor progress bars nearly always just show 100%, don't offer useful indication of progress

[CL 2322391 by Andrew Rodham in Main branch]
2014-10-08 04:42:34 -04:00
Mike Fricker
1f5c22cff5 SlateViewer now compiles and runs using Clang for Windows
- Fixed bad casting in "slow task" window creation code
- Also added comment about treating warnings as errors with Clang

[CL 2260828 by Mike Fricker in Main branch]
2014-08-18 10:23:54 -04:00
Ben Marsh
7aa5f3825c Move the feedback context window to the front when it's first displayed.
[CL 2077835 by Ben Marsh in Main branch]
2014-05-19 13:08:20 -04:00
Ben Marsh
25264358fd Fix updates not writing out to the log in FWindowsNativeFeedbackContext.
[CL 2073609 by Ben Marsh in Main branch]
2014-05-14 19:56:42 -04:00
Ben Marsh
45ebc11eb9 Add native feedback context for Windows, and use it to display project file generation progress in UnrealVersionSelector. Also generate project files when switching versions.
[CL 2073201 by Ben Marsh in Main branch]
2014-05-14 14:53:19 -04:00