From 98eada369aa50115e677a1b337662fee9f0ca011 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sat, 24 Nov 2018 10:48:34 +0100 Subject: debug log viewer, X backends --- src/GraphicObjects/ScrollingObject.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GraphicObjects/ScrollingObject.cs') diff --git a/src/GraphicObjects/ScrollingObject.cs b/src/GraphicObjects/ScrollingObject.cs index de4b2113..43343c59 100644 --- a/src/GraphicObjects/ScrollingObject.cs +++ b/src/GraphicObjects/ScrollingObject.cs @@ -149,13 +149,13 @@ namespace Crow public override void onMouseWheel (object sender, MouseWheelEventArgs e) { base.onMouseWheel (sender, e); - if (IFace.Keyboard.IsKeyDown (Key.ShiftLeft)) + if (IFace.Keyboard.Shift) ScrollX += e.Delta * MouseWheelSpeed; else ScrollY -= e.Delta * MouseWheelSpeed; } /// Process scrolling with arrow keys, home and end keys. - public override void onKeyDown (object sender, KeyboardKeyEventArgs e) + public override void onKeyDown (object sender, KeyEventArgs e) { base.onKeyDown (sender, e); -- cgit v1.3.1-4-g156e From f30bf0d4cc96f160b29a89216326030f083ee509 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sat, 24 Nov 2018 13:09:19 +0100 Subject: debug log view --- Tests/BasicTests.cs | 2 +- Tests/test.style | 4 +- Tests/ui/dbgLog.crow | 2 +- src/GraphicObjects/GraphicObject.cs | 21 ++++++++-- src/GraphicObjects/ScrollingObject.cs | 2 +- src/debug/DbgLogViewer.cs | 79 +++++++++++++++++++++++++++++------ 6 files changed, 89 insertions(+), 21 deletions(-) (limited to 'src/GraphicObjects/ScrollingObject.cs') diff --git a/Tests/BasicTests.cs b/Tests/BasicTests.cs index 732edbc3..4f9fd128 100644 --- a/Tests/BasicTests.cs +++ b/Tests/BasicTests.cs @@ -24,7 +24,7 @@ namespace tests //app.AddWidget (@"Interfaces/Divers/colorPicker.crow").DataSource = app; //app.AddWidget ("Interfaces/Divers/perfMeasures.crow").DataSource = app; app.AddWidget ("#Tests.ui.dbgLog.crow").DataSource = app; - + while (true) { #if MEASURE_TIME foreach (PerformanceMeasure m in app.PerfMeasures) diff --git a/Tests/test.style b/Tests/test.style index 434f8042..14acbbdf 100644 --- a/Tests/test.style +++ b/Tests/test.style @@ -33,8 +33,8 @@ labPerfVal{ Width = "50%"; } DbgLogViewer{ - Background = "WhiteSmoke"; + Background = "Onyx"; Font = "mono, 8"; - Foreground = "Jet"; + Foreground = "LightGrey"; Focusable = "true"; } diff --git a/Tests/ui/dbgLog.crow b/Tests/ui/dbgLog.crow index 09cc2eb2..d0735082 100755 --- a/Tests/ui/dbgLog.crow +++ b/Tests/ui/dbgLog.crow @@ -7,7 +7,7 @@