skia2/debugger/QT
kkinnunen 41c79cc0ff 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.

Review URL: https://codereview.chromium.org/829933002
2014-12-30 22:49:58 -08:00
..
Icons Added Reload icon 2012-11-19 18:25:09 +00:00
qrc_SkIcons.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkCanvasWidget.cpp Support MSAA in the picture debugger 2013-08-02 13:59:50 +00:00
SkCanvasWidget.h Support MSAA in the picture debugger 2013-08-02 13:59:50 +00:00
SkDebuggerGUI.cpp debugger: Make settings widget resizeable 2014-12-30 22:49:58 -08:00
SkDebuggerGUI.h debugger: Make settings widget resizeable 2014-12-30 22:49:58 -08:00
SkGLWidget.cpp Avoid leaking render targets in debugger 2014-12-22 06:06:41 -08:00
SkGLWidget.h Avoid leaking render targets in debugger 2014-12-22 06:06:41 -08:00
SkIcons.qrc clt debugger 2012-06-29 14:21:22 +00:00
SkImageWidget.cpp Hide fields in SkImageInfo 2014-09-03 11:54:58 -07:00
SkImageWidget.h Sanitizing source files in Housekeeper-Nightly 2013-06-07 07:01:06 +00:00
SkInspectorWidget.cpp This adds a checkbox to the debugger to allow seeing the effect pathops has on the clip. A new tab shows the C code that the pathops generate. 2014-05-19 13:53:10 +00:00
SkInspectorWidget.h This adds a checkbox to the debugger to allow seeing the effect pathops has on the clip. A new tab shows the C code that the pathops generate. 2014-05-19 13:53:10 +00:00
SkListWidget.cpp Debugger improvements 2014-03-25 23:31:33 +00:00
SkListWidget.h Debugger improvements 2014-03-25 23:31:33 +00:00
SkRasterWidget.cpp Make debugger raster window background black 2014-12-22 05:56:45 -08:00
SkRasterWidget.h Get debugger compiling in NoGPU config 2013-08-29 13:22:28 +00:00
SkSettingsWidget.cpp debugger: Make settings widget resizeable 2014-12-30 22:49:58 -08:00
SkSettingsWidget.h debugger: Make settings widget resizeable 2014-12-30 22:49:58 -08:00