OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SKDEBUGGERUI_H | 9 #ifndef SKDEBUGGERUI_H |
10 #define SKDEBUGGERUI_H | 10 #define SKDEBUGGERUI_H |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 Clears the breakpoint state off of all commands marked as breakpoints. | 97 Clears the breakpoint state off of all commands marked as breakpoints. |
98 */ | 98 */ |
99 void actionClearBreakpoints(); | 99 void actionClearBreakpoints(); |
100 | 100 |
101 /** | 101 /** |
102 Clears the deleted state off of all commands marked as deleted. | 102 Clears the deleted state off of all commands marked as deleted. |
103 */ | 103 */ |
104 void actionClearDeletes(); | 104 void actionClearDeletes(); |
105 | 105 |
106 /** | 106 /** |
107 Applies a visible filter to all drawing commands other than the previous
. | |
108 */ | |
109 void actionCommandFilter(); | |
110 | |
111 /** | |
112 Closes the application. | 107 Closes the application. |
113 */ | 108 */ |
114 void actionClose(); | 109 void actionClose(); |
115 | 110 |
116 /** | 111 /** |
117 Deletes the command in question. | 112 Deletes the command in question. |
118 */ | 113 */ |
119 void actionDelete(); | 114 void actionDelete(); |
120 | 115 |
121 #if SK_SUPPORT_GPU | 116 #if SK_SUPPORT_GPU |
122 /** | 117 /** |
123 Updates the visibility of the GL canvas widget and sample count of the G
L surface. | 118 Updates the visibility of the GL canvas widget and sample count of the G
L surface. |
124 */ | 119 */ |
125 void actionGLWidget(); | 120 void actionGLSettingsChanged(); |
126 #endif | 121 #endif |
127 | 122 |
128 /** | 123 /** |
129 Toggles the visibility of the inspector widget. | 124 Toggles the visibility of the inspector widget. |
130 */ | 125 */ |
131 void actionInspector(); | 126 void actionInspector(); |
132 | 127 |
133 /** | 128 /** |
134 Plays from the current step to the next breakpoint if it exists, otherwi
se | 129 Plays from the current step to the next breakpoint if it exists, otherwi
se |
135 executes all remaining draw commands. | 130 executes all remaining draw commands. |
136 */ | 131 */ |
137 void actionPlay(); | 132 void actionPlay(); |
138 | 133 |
139 /** | 134 /** |
140 Toggles the visibility of the raster canvas widget. | 135 Sets the visibility of the raster canvas widget according to the setting
s widget. |
141 */ | 136 */ |
142 void actionRasterWidget(bool isToggled); | 137 void actionRasterSettingsChanged(); |
143 | 138 |
144 /** | 139 /** |
145 Toggles the the overdraw visualization on and off | 140 Sets the visualization settings according to the settings widget. |
146 */ | 141 */ |
147 void actionOverdrawVizWidget(bool isToggled); | 142 void actionVisualizationsChanged(); |
148 | |
149 /** | |
150 Toggles the the mega visualization on and off | |
151 */ | |
152 void actionMegaVizWidget(bool isToggled); | |
153 | |
154 /** | |
155 Toggles using path ops to simplify the clip stack | |
156 */ | |
157 void actionPathOpsWidget(bool ); | |
158 | 143 |
159 /** | 144 /** |
160 Applies the new texture filter override | 145 Applies the new texture filter override |
161 */ | 146 */ |
162 void actionTextureFilter(); | 147 void actionTextureFilter(); |
163 | 148 |
164 /** | 149 /** |
165 Rewinds from the current step back to the start of the commands. | 150 Rewinds from the current step back to the start of the commands. |
166 */ | 151 */ |
167 void actionRewind(); | 152 void actionRewind(); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 Toggles the visibility of the directory widget. | 227 Toggles the visibility of the directory widget. |
243 */ | 228 */ |
244 void toggleDirectory(); | 229 void toggleDirectory(); |
245 | 230 |
246 /** | 231 /** |
247 Filters the list widgets command visibility based on the currently | 232 Filters the list widgets command visibility based on the currently |
248 active selection. | 233 active selection. |
249 */ | 234 */ |
250 void toggleFilter(QString string); | 235 void toggleFilter(QString string); |
251 | 236 |
| 237 void updateCommand(int newCommand); |
| 238 void updateHit(int newHit); |
252 private: | 239 private: |
253 QSplitter fCentralSplitter; | 240 QSplitter fCentralSplitter; |
254 QStatusBar fStatusBar; | 241 QStatusBar fStatusBar; |
255 QToolBar fToolBar; | 242 QToolBar fToolBar; |
256 | 243 |
257 QAction fActionOpen; | 244 QAction fActionOpen; |
258 QAction fActionBreakpoint; | 245 QAction fActionBreakpoint; |
259 QAction fActionToggleIndexStyle; | 246 QAction fActionToggleIndexStyle; |
260 QAction fActionProfile; | 247 QAction fActionProfile; |
261 QAction fActionCancel; | 248 QAction fActionCancel; |
(...skipping 29 matching lines...) Expand all Loading... |
291 | 278 |
292 QListWidget fListWidget; | 279 QListWidget fListWidget; |
293 QListWidget fDirectoryWidget; | 280 QListWidget fDirectoryWidget; |
294 | 281 |
295 SkDebugger fDebugger; | 282 SkDebugger fDebugger; |
296 SkCanvasWidget fCanvasWidget; | 283 SkCanvasWidget fCanvasWidget; |
297 SkImageWidget fImageWidget; | 284 SkImageWidget fImageWidget; |
298 SkInspectorWidget fInspectorWidget; | 285 SkInspectorWidget fInspectorWidget; |
299 SkSettingsWidget fSettingsWidget; | 286 SkSettingsWidget fSettingsWidget; |
300 | 287 |
| 288 QFrame fViewStateFrame; |
| 289 QVBoxLayout fViewStateFrameLayout; |
| 290 QGroupBox fViewStateGroup; |
| 291 QFormLayout fViewStateLayout; |
| 292 QLineEdit fCurrentCommandBox; |
| 293 QLineEdit fCommandHitBox; |
| 294 QLineEdit fZoomBox; |
| 295 |
301 QString fPath; | 296 QString fPath; |
302 SkString fFileName; | 297 SkString fFileName; |
303 SkTDArray<bool> fSkipCommands; // has a specific command been deleted? | 298 SkTDArray<bool> fSkipCommands; // has a specific command been deleted? |
304 bool fDirectoryWidgetActive; | 299 bool fDirectoryWidgetActive; |
305 | 300 |
306 QMenuBar fMenuBar; | 301 QMenuBar fMenuBar; |
307 QMenu fMenuFile; | 302 QMenu fMenuFile; |
308 QMenu fMenuEdit; | 303 QMenu fMenuEdit; |
309 QMenu fMenuNavigate; | 304 QMenu fMenuNavigate; |
310 QMenu fMenuView; | 305 QMenu fMenuView; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 /** | 351 /** |
357 Render the supplied picture several times tracking the time consumed | 352 Render the supplied picture several times tracking the time consumed |
358 by each command. | 353 by each command. |
359 */ | 354 */ |
360 void run(const SkPicture* pict, | 355 void run(const SkPicture* pict, |
361 sk_tools::PictureRenderer* renderer, | 356 sk_tools::PictureRenderer* renderer, |
362 int repeats); | 357 int repeats); |
363 }; | 358 }; |
364 | 359 |
365 #endif // SKDEBUGGERUI_H | 360 #endif // SKDEBUGGERUI_H |
OLD | NEW |