Commit Graph

27 Commits

Author SHA1 Message Date
Dmitriy Dyomin
ed69c79ff7 Device output log window, currently implemented only for Android. Hidden under editor experimental settings
#jira UEMOB-39
#codereview Jack.Porter

[CL 2710794 by Dmitriy Dyomin in Main branch]
2015-09-30 03:39:09 -04:00
Nick Darnell
bdf5f2ba5f Editor - Now handling previewkeydown in the console command entry widget to prevent navigation and handle key up/down events and tab events correctly as expected for entering autocompeleted console commands.
[CL 2541781 by Nick Darnell in Main branch]
2015-05-07 17:53:02 -04:00
Jamie Dale
8319693489 Made the output log cursor grey so it's easier to see
[CL 2472924 by Jamie Dale in Main branch]
2015-03-09 15:56:34 -04:00
Jamie Dale
a569f6b356 Fixed code relying on SLATE_TEXT_ATTRIBUTE for STextBlock.
UETOOL-213 - Minimize Slate FString -> FText conversion (remove SLATE_TEXT_ATTRIBUTE)

This fixes any editor/engine specific code that was passing text to Slate as FString rather than FText.

[CL 2399803 by Jamie Dale in Main branch]
2015-01-07 09:52:40 -05:00
Dan Hertzka
c042ddcb94 ---- Merging with SlateDev branch ----
Introduces the concept of "Active Ticking" to allow Slate to go to sleep when there is no need to update the UI.

While asleep, Slate will skip the Tick & Paint pass for that frame entirely.
- There are TWO ways to "wake" Slate and cause a Tick/Paint pass:
    1. Provide some sort of input (mouse movement, clicks, and key presses). Slate will always tick when the user is active.
        - Therefore, if the logic in a given widget's Tick is only relevant in response to user action, there is no need to register an active tick.
    2. Register an Active Tick. Currently this is an all-or-nothing situation, so if a single active tick needs to execute, all of Slate will be ticked.

- The purpose of an Active Tick is to allow a widget to "drive" Slate and guarantee a Tick/Paint pass in the absence of any user action.
    - Examples include animation, async operations that update periodically, progress updates, loading bars, etc.

- An empty active tick is registered for viewports when they are real-time, so game project widgets are unaffected by this change and should continue to work as before.

- An Active Tick is registered by creating an FWidgetActiveTickDelegate and passing it to SWidget::RegisterActiveTick()
    - There are THREE ways to unregister an active tick:
        1. Return EActiveTickReturnType::StopTicking from the active tick function
        2. Pass the FActiveTickHandle returned by RegisterActiveTick() to SWidget::UnregisterActiveTick()
        3. Destroy the widget responsible for the active tick

- Sleeping is currently disabled, can be enabled with Slate.AllowSlateToSleep cvar
- There is currently a little buffer time during which Slate continues to tick following any input. Long-term, this is planned to be removed.
    - The duration of the buffer can be adjusted using Slate.SleepBufferPostInput cvar (defaults to 1.0f)

- The FCurveSequence API has been updated to work with the active tick system
    - Playing a curve sequence now requires that you pass the widget being animated by the sequence
    - The active tick will automatically be registered on behalf of the widget and unregister when the sequence is complete
    - GetLerpLooping() has been removed. Instead, pass true as the second param to Play() to indicate that the animation will loop. This causes the active tick to be registered indefinitely until paused or jumped to the start/end.

[CL 2391669 by Dan Hertzka in Main branch]
2014-12-17 16:07:57 -05:00
Richard TalbotWatkin
ada57983a2 Fixed issue with output log sometimes not auto-scrolling to bottom.
#jira UE-6669 - Editor: Output Log window sometimes doesn't auto-scroll-to-bottom

[CL 2390839 by Richard TalbotWatkin in Main branch]
2014-12-17 02:15:54 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Jamie Dale
7775242a93 Fixed output log performance degradation as new text was added
UETOOL-129 - Investigate SOutputLog performance degradation

FTextLayout::AddLine was causing a re-flow of the entire document when a new line was added. This change makes it only flow the line that is being added (providing the rest of the layout is already up-to-date).

ReviewedBy Justin.Sargent

[CL 2363200 by Jamie Dale in Main branch]
2014-11-18 06:25:21 -05:00
Michael Noland
6e79b18ad4 Editor: Fix crash during shutdown with log timestamps
[CL 2357800 by Michael Noland in Main branch]
2014-11-12 20:01:49 -05:00
Mikolaj Sieluzycki
462bb3edc1 Prepare cpp files for header cleanup.
#codereview Robert.Manuszewski

[CL 2356890 by Mikolaj Sieluzycki in Main branch]
2014-11-12 05:28:51 -05:00
Michael Noland
897c2880b4 Editor: Fix Clang error with ? of dissimilar types
[CL 2355272 by Michael Noland in Main branch]
2014-11-10 18:29:57 -05:00
Michael Noland
6d2b7ff428 Editor: Add LogTimestampMode editor config setting to control how timestamps are displayed in the output log (still defaults to None)
[CL 2354931 by Michael Noland in Main branch]
2014-11-10 15:13:41 -05:00
Jamie Dale
588dfdfcf0 Removed some redundant focus switching code from the output log
This was causing the focus to ultimately switch back to the widget that was already focused, however it was also causing IMEs to lose their current context. This force focus isn't needed, as the suggestions list is already set to not take focus when it's spawned.

[CL 2350270 by Jamie Dale in Main branch]
2014-11-05 13:12:41 -05:00
Chris Gagnon
0e6d657c3d Refactor to unify keyboard and controller input and focus.
Native controller navigation support.

[CL 2345039 by Chris Gagnon in Main branch]
2014-10-30 12:29:36 -04:00
Matt Kuhlenschmidt
b2d573aa0d Fix crash typing in the output log when a PIE window is open
[CL 2344902 by Matt Kuhlenschmidt in Main branch]
2014-10-30 10:18:39 -04:00
Jamie Dale
7dfea2d544 Fixed a crash when the TSF IME API tried to get the selected text from SOutputLog
FOutputLogTextLayoutMarshaller::GetText wasn't implemented, so it was always returning an empty string. I've implemented this and verified that it doesn't cause any performance issues for the output log.

I had to change SMultiLineEditableText::LoadText to only do that when it was bound to a delegate, as that was causing a hitch while the output log was updated when you gave it focus.

I also fixed giving the output log focus sometimes jumping to the top of the log (SMultiLineEditableText::OnKeyboardFocusReceived needed the same fix as SMultiLineEditableText::OnKeyboardFocusLost to prevent the cursor jumping into focus).

ReviewedBy Justin.Sargent

[CL 2308259 by Jamie Dale in Main branch]
2014-09-24 09:59:43 -04:00
Jamie Dale
22f0534844 Removed Tick() from SOutputLog
It wasn't actually needed as we're able to perform the scroll immediately in all cases we need to, rather than wait until the next Tick().

#codereview Max.Preussner

[CL 2306688 by Jamie Dale in Main branch]
2014-09-23 06:03:13 -04:00
Jamie Dale
6da78431f0 Some usability improvements for the output log
1) The selected text colour is now easier on the eyes
2) The output log will always scroll to the end when you enter a command
3) The output log will now correctly scroll to the bottom when it is first opened (it forces the scrollbars to always visible to avoid the horizontal scrollbar being able to move the vertical scrollbar up slightly from the bottom of the log)

ReviewedBy Andrew.Rodham

[CL 2305438 by Jamie Dale in Main branch]
2014-09-22 09:46:08 -04:00
Jamie Dale
57f0bee6b0 Fixed auto-scrolling not working after clearing the output log
ReviewedBy Rob.Jones

[CL 2298082 by Jamie Dale in Main branch]
2014-09-15 09:30:39 -04:00
Jamie Dale
80b7d7a258 Converted SOutputLog to use a multiline editable text control to show its log output
This is using a custom text marshaller to efficiently convert an FLogMessage into something understood by the FTextLayout.

ReviewedBy Justin.Sargent

[CL 2297960 by Jamie Dale in Main branch]
2014-09-15 07:10:02 -04:00
Matt Kuhlenschmidt
a75d1ba1c6 Console can be opened anywhere in the editor by pressing tilde (~). This is shortcut is rebindable.
[CL 2284536 by Matt Kuhlenschmidt in Main branch]
2014-09-04 10:49:55 -04:00
Matt Kuhlenschmidt
e16c656e93 Some tweaks to minimize horizontal scrollbar artifacts in the output log.
[CL 2267403 by Matt Kuhlenschmidt in Main branch]
2014-08-22 10:04:10 -04:00
Matt Kuhlenschmidt
b8c7941fe3 Added horizontal scrolling to the output log.
[CL 2258783 by Matt Kuhlenschmidt in Main branch]
2014-08-15 22:45:05 -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
UnrealBot
db494a6e69 Engine source (Main branch up to CL 2037954) 2014-04-02 18:09:23 -04:00