Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Issue 829933002: debugger: Make settings widget resizeable (Closed)

Created:
5 years, 11 months ago by Kimmo Kinnunen
Modified:
5 years, 11 months ago
Reviewers:
robertphillips
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

debugger: Make settings widget resizeable The settings widget was laid out by hand, eg. the widths of most elements were hardcoded. This prevented it from being laid out by the Qt widget system. This in turn prevents the widget from shrinking to its optimal size. This in turn causes cascading effect where the geometry of many of the UI widgets has to be hard-coded. This in turn prevents proper resizing of the UI. Make Qt layout the settings widget by following changes: a) Group settings in QGroupBox groups instead of hand-written layouts and labels hardcoded in certain places. b) Remove "Expanding" size policy from settings widget. The widget calculates its own size based on the widgets inside. Thus "Preferred" is the correct policy to use, as expanding the widget will not bring any new content visible. c) Remove maximum width 250 from Settings widget d) Make "canvas settings and image layout", eg. the horizontal layout holding the settings widget divide the space between the picture and settings like so: settings uses up only as much as it needs (stretch factor 0), while picture uses up everything else (stretch factor 1). In order to do a) reasonably, reorganize the UI and the code a bit: a1) Rename settings group "visual filter" to "Visualizations". a2) Make "visual filter: on/off" combo box a checkbox in "Visualizations". a3) Move "Mega viz" setting checkbox from "raster" (or "render targets") section to "Visualizations" a4) Move "PathOps" setting checkbox from "raster" to "Visualizations" a5) Make Raster and GL checkboxes use QGroupBox checkbox feature a6) Move "current command", "command hitbox" and "zoom level" from "Settings" widget to part of "Inspector" concept. These pieces of information are now visualized as their own box in the right-hand bar, below settings. a7) Do not expose settings user selects through the UI widgets state that record the user interacts with. Instead, expose it as state of the "settings widget". Thus settings widget provides "raster settings changed" signal, which the client hook to and then query the state through the object API. This makes the full window a bit shorter. This commit is part of work that tries to make the debugger window to be a bit more resizeable, so that it would fit 1900x1200 screen. Committed: https://skia.googlesource.com/skia/+/41c79cc0ff3003ef77cb48590f7887221856f941

Patch Set 1 #

Total comments: 2

Patch Set 2 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -314 lines) Patch
M debugger/QT/SkDebuggerGUI.h View 5 chunks +15 lines, -20 lines 0 comments Download
M debugger/QT/SkDebuggerGUI.cpp View 1 11 chunks +64 lines, -45 lines 0 comments Download
M debugger/QT/SkSettingsWidget.h View 3 chunks +30 lines, -66 lines 0 comments Download
M debugger/QT/SkSettingsWidget.cpp View 1 chunk +43 lines, -183 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Kimmo Kinnunen
debugger doesn't fit my screen...
5 years, 11 months ago (2014-12-30 12:17:17 UTC) #2
robertphillips
lgtm + nit https://codereview.chromium.org/829933002/diff/1/debugger/QT/SkDebuggerGUI.cpp File debugger/QT/SkDebuggerGUI.cpp (right): https://codereview.chromium.org/829933002/diff/1/debugger/QT/SkDebuggerGUI.cpp#newcode307 debugger/QT/SkDebuggerGUI.cpp:307: void SkDebuggerGUI::actionRasterSettingsChanged() { new line here ...
5 years, 11 months ago (2014-12-30 17:09:33 UTC) #3
Kimmo Kinnunen
Also reverted the changes related to the command geometry window https://codereview.chromium.org/829933002/diff/1/debugger/QT/SkDebuggerGUI.cpp File debugger/QT/SkDebuggerGUI.cpp (right): https://codereview.chromium.org/829933002/diff/1/debugger/QT/SkDebuggerGUI.cpp#newcode307 ...
5 years, 11 months ago (2014-12-31 06:25:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/829933002/20001
5 years, 11 months ago (2014-12-31 06:41:26 UTC) #6
commit-bot: I haz the power
5 years, 11 months ago (2014-12-31 06:50:02 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/41c79cc0ff3003ef77cb48590f7887221856f941

Powered by Google App Engine
This is Rietveld 408576698