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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 signals: | 72 signals: |
73 void commandChanged(int command); | 73 void commandChanged(int command); |
74 | 74 |
75 private slots: | 75 private slots: |
76 /** | 76 /** |
77 Toggles breakpoint view in the list widget. | 77 Toggles breakpoint view in the list widget. |
78 */ | 78 */ |
79 void actionBreakpoints(); | 79 void actionBreakpoints(); |
80 | 80 |
81 /** | 81 /** |
| 82 Toggles between count and offset style of command indexing in GUI |
| 83 */ |
| 84 void actionToggleIndexStyle(); |
| 85 |
| 86 /** |
82 Profile the commands | 87 Profile the commands |
83 */ | 88 */ |
84 void actionProfile(); | 89 void actionProfile(); |
85 | 90 |
86 /** | 91 /** |
87 Cancels the command filter in the list widget. | 92 Cancels the command filter in the list widget. |
88 */ | 93 */ |
89 void actionCancel(); | 94 void actionCancel(); |
90 | 95 |
91 /** | 96 /** |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 */ | 244 */ |
240 void toggleFilter(QString string); | 245 void toggleFilter(QString string); |
241 | 246 |
242 private: | 247 private: |
243 QSplitter fCentralSplitter; | 248 QSplitter fCentralSplitter; |
244 QStatusBar fStatusBar; | 249 QStatusBar fStatusBar; |
245 QToolBar fToolBar; | 250 QToolBar fToolBar; |
246 | 251 |
247 QAction fActionOpen; | 252 QAction fActionOpen; |
248 QAction fActionBreakpoint; | 253 QAction fActionBreakpoint; |
| 254 QAction fActionToggleIndexStyle; |
249 QAction fActionProfile; | 255 QAction fActionProfile; |
250 QAction fActionCancel; | 256 QAction fActionCancel; |
251 QAction fActionClearBreakpoints; | 257 QAction fActionClearBreakpoints; |
252 QAction fActionClearDeletes; | 258 QAction fActionClearDeletes; |
253 QAction fActionClose; | 259 QAction fActionClose; |
254 QAction fActionCreateBreakpoint; | 260 QAction fActionCreateBreakpoint; |
255 QAction fActionDelete; | 261 QAction fActionDelete; |
256 QAction fActionDirectory; | 262 QAction fActionDirectory; |
257 QAction fActionGoToLine; | 263 QAction fActionGoToLine; |
258 QAction fActionInspector; | 264 QAction fActionInspector; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 bool fDirectoryWidgetActive; | 299 bool fDirectoryWidgetActive; |
294 | 300 |
295 QMenuBar fMenuBar; | 301 QMenuBar fMenuBar; |
296 QMenu fMenuFile; | 302 QMenu fMenuFile; |
297 QMenu fMenuEdit; | 303 QMenu fMenuEdit; |
298 QMenu fMenuNavigate; | 304 QMenu fMenuNavigate; |
299 QMenu fMenuView; | 305 QMenu fMenuView; |
300 QMenu fMenuWindows; | 306 QMenu fMenuWindows; |
301 | 307 |
302 bool fBreakpointsActivated; | 308 bool fBreakpointsActivated; |
| 309 bool fIndexStyleToggle; |
303 bool fDeletesActivated; | 310 bool fDeletesActivated; |
304 bool fPause; | 311 bool fPause; |
305 bool fLoading; | 312 bool fLoading; |
306 int fPausedRow; | 313 int fPausedRow; |
307 | 314 |
308 /** | 315 /** |
309 Creates the entire UI. | 316 Creates the entire UI. |
310 */ | 317 */ |
311 void setupUi(QMainWindow *SkDebuggerGUI); | 318 void setupUi(QMainWindow *SkDebuggerGUI); |
312 | 319 |
313 /** | 320 /** |
314 Pipes a QString in with the location of the filename, proceeds to updati
ng | 321 Pipes a QString in with the location of the filename, proceeds to updati
ng |
315 the listwidget, combowidget and inspectorwidget. | 322 the listwidget, combowidget and inspectorwidget. |
316 */ | 323 */ |
317 void loadPicture(const SkString& fileName); | 324 void loadPicture(const SkString& fileName); |
318 | 325 |
319 /** | 326 /** |
320 Creates a picture of the current canvas. | 327 Creates a picture of the current canvas. |
321 */ | 328 */ |
322 void saveToFile(const SkString& filename); | 329 void saveToFile(const SkString& filename); |
323 | 330 |
324 /** | 331 /** |
325 Populates the list widget with the vector of strings passed in. | 332 Populates the list widget with the vector of strings passed in. |
326 */ | 333 */ |
327 void setupListWidget(SkTArray<SkString>* command); | 334 void setupListWidget(SkTArray<SkString>* commands, SkTDArray<size_t>* offset
s); |
328 | 335 |
329 /** | 336 /** |
330 Populates the combo box widget with the vector of strings passed in. | 337 Populates the combo box widget with the vector of strings passed in. |
331 */ | 338 */ |
332 void setupComboBox(SkTArray<SkString>* command); | 339 void setupComboBox(SkTArray<SkString>* command); |
333 | 340 |
334 /** | 341 /** |
335 Fills in the overview pane with text | 342 Fills in the overview pane with text |
336 */ | 343 */ |
337 void setupOverviewText(const SkTDArray<double>* typeTimes, double totTime, i
nt numRuns); | 344 void setupOverviewText(const SkTDArray<double>* typeTimes, double totTime, i
nt numRuns); |
338 | 345 |
339 /** | 346 /** |
340 Render the supplied picture several times tracking the time consumed | 347 Render the supplied picture several times tracking the time consumed |
341 by each command. | 348 by each command. |
342 */ | 349 */ |
343 void run(SkTimedPicture* pict, | 350 void run(SkTimedPicture* pict, |
344 sk_tools::PictureRenderer* renderer, | 351 sk_tools::PictureRenderer* renderer, |
345 int repeats); | 352 int repeats); |
346 }; | 353 }; |
347 | 354 |
348 #endif // SKDEBUGGERUI_H | 355 #endif // SKDEBUGGERUI_H |
OLD | NEW |