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

Side by Side Diff: debugger/QT/SkDebuggerGUI.h

Issue 1462633002: Update debugger UI to auto-refresh the directory listing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | debugger/QT/SkDebuggerGUI.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 11
12 12
13 #include "SkCanvas.h" 13 #include "SkCanvas.h"
14 #include "SkCanvasWidget.h" 14 #include "SkCanvasWidget.h"
15 #include "SkDebugger.h" 15 #include "SkDebugger.h"
16 #include "SkGLWidget.h" 16 #include "SkGLWidget.h"
17 #include "SkListWidget.h" 17 #include "SkListWidget.h"
18 #include "SkInspectorWidget.h" 18 #include "SkInspectorWidget.h"
19 #include "SkRasterWidget.h" 19 #include "SkRasterWidget.h"
20 #include "SkDrawCommandGeometryWidget.h" 20 #include "SkDrawCommandGeometryWidget.h"
21 #include "SkSettingsWidget.h" 21 #include "SkSettingsWidget.h"
22 #include <QtCore/QFileSystemWatcher>
22 #include <QtCore/QSignalMapper> 23 #include <QtCore/QSignalMapper>
23 #include <QtCore/QVariant> 24 #include <QtCore/QVariant>
24 #include <QtGui/QAction> 25 #include <QtGui/QAction>
25 #include <QtGui/QApplication> 26 #include <QtGui/QApplication>
26 #include <QtGui/QButtonGroup> 27 #include <QtGui/QButtonGroup>
27 #include <QtGui/QHBoxLayout> 28 #include <QtGui/QHBoxLayout>
28 #include <QtGui/QHeaderView> 29 #include <QtGui/QHeaderView>
29 #include <QtGui/QListView> 30 #include <QtGui/QListView>
30 #include <QtGui/QListWidget> 31 #include <QtGui/QListWidget>
31 #include <QtGui/QMainWindow> 32 #include <QtGui/QMainWindow>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 Toggles a breakpoint on the current step in the list widget. 212 Toggles a breakpoint on the current step in the list widget.
212 */ 213 */
213 void toggleBreakpoint(); 214 void toggleBreakpoint();
214 215
215 /** 216 /**
216 Toggles the visibility of the directory widget. 217 Toggles the visibility of the directory widget.
217 */ 218 */
218 void toggleDirectory(); 219 void toggleDirectory();
219 220
220 /** 221 /**
222 Populates the contents of the directory widget with the skp files in the
223 current directory pointed to by fFile.
224 */
225 void populateDirectoryWidget();
226
227 /**
221 Filters the list widgets command visibility based on the currently 228 Filters the list widgets command visibility based on the currently
222 active selection. 229 active selection.
223 */ 230 */
224 void toggleFilter(QString string); 231 void toggleFilter(QString string);
225 232
226 void updateHit(int newHit); 233 void updateHit(int newHit);
227 234
228 void updateImage(); 235 void updateImage();
229 private: 236 private:
230 QSplitter fCentralSplitter; 237 QSplitter fCentralSplitter;
(...skipping 29 matching lines...) Expand all
260 267
261 QSplitter fLeftColumnSplitter; 268 QSplitter fLeftColumnSplitter;
262 QWidget fMainAndRightColumnWidget; 269 QWidget fMainAndRightColumnWidget;
263 QVBoxLayout fMainAndRightColumnLayout; 270 QVBoxLayout fMainAndRightColumnLayout;
264 QHBoxLayout fCanvasSettingsAndImageLayout; 271 QHBoxLayout fCanvasSettingsAndImageLayout;
265 QVBoxLayout fSettingsAndImageLayout; 272 QVBoxLayout fSettingsAndImageLayout;
266 273
267 QListWidget fListWidget; 274 QListWidget fListWidget;
268 QListWidget fDirectoryWidget; 275 QListWidget fDirectoryWidget;
269 276
277 QFileSystemWatcher fDirectoryWatcher;
278
270 SkDebugger fDebugger; 279 SkDebugger fDebugger;
271 SkCanvasWidget fCanvasWidget; 280 SkCanvasWidget fCanvasWidget;
272 281
273 SkInspectorWidget fInspectorWidget; 282 SkInspectorWidget fInspectorWidget;
274 SkSettingsWidget fSettingsWidget; 283 SkSettingsWidget fSettingsWidget;
275 284
276 QFrame fViewStateFrame; 285 QFrame fViewStateFrame;
277 QVBoxLayout fViewStateFrameLayout; 286 QVBoxLayout fViewStateFrameLayout;
278 QGroupBox fViewStateGroup; 287 QGroupBox fViewStateGroup;
279 QFormLayout fViewStateLayout; 288 QFormLayout fViewStateLayout;
280 QLineEdit fCurrentCommandBox; 289 QLineEdit fCurrentCommandBox;
281 QLineEdit fCommandHitBox; 290 QLineEdit fCommandHitBox;
282 QLineEdit fZoomBox; 291 QLineEdit fZoomBox;
283 SkDrawCommandGeometryWidget fDrawCommandGeometryWidget; 292 SkDrawCommandGeometryWidget fDrawCommandGeometryWidget;
284 293
285 QString fPath; 294 QString fPath;
286 SkString fFileName; 295 SkString fFileName;
287 SkTDArray<bool> fSkipCommands; // has a specific command been deleted? 296 SkTDArray<bool> fSkipCommands; // has a specific command been deleted?
288 bool fDirectoryWidgetActive;
289 297
290 QMenuBar fMenuBar; 298 QMenuBar fMenuBar;
291 QMenu fMenuFile; 299 QMenu fMenuFile;
292 QMenu fMenuEdit; 300 QMenu fMenuEdit;
293 QMenu fMenuNavigate; 301 QMenu fMenuNavigate;
294 QMenu fMenuView; 302 QMenu fMenuView;
295 QMenu fMenuWindows; 303 QMenu fMenuWindows;
296 304
297 bool fLoading; 305 bool fLoading;
298 int fPausedRow; 306 int fPausedRow;
(...skipping 28 matching lines...) Expand all
327 Fills in the overview pane with text 335 Fills in the overview pane with text
328 */ 336 */
329 void setupOverviewText(const SkTDArray<double>* typeTimes, double totTime, i nt numRuns); 337 void setupOverviewText(const SkTDArray<double>* typeTimes, double totTime, i nt numRuns);
330 338
331 bool isPaused() const { 339 bool isPaused() const {
332 return fActionPause.isChecked(); 340 return fActionPause.isChecked();
333 } 341 }
334 }; 342 };
335 343
336 #endif // SKDEBUGGERUI_H 344 #endif // SKDEBUGGERUI_H
OLDNEW
« no previous file with comments | « no previous file | debugger/QT/SkDebuggerGUI.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698