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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | debugger/QT/SkDebuggerGUI.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkDebuggerGUI.h
diff --git a/debugger/QT/SkDebuggerGUI.h b/debugger/QT/SkDebuggerGUI.h
index 2ef4b0eb358a6c3c197dfa09d4d45b6abd8a41c8..823bfd674c501bf88a18e36e18bd9eb3aae4e546 100644
--- a/debugger/QT/SkDebuggerGUI.h
+++ b/debugger/QT/SkDebuggerGUI.h
@@ -19,6 +19,7 @@
#include "SkRasterWidget.h"
#include "SkDrawCommandGeometryWidget.h"
#include "SkSettingsWidget.h"
+#include <QtCore/QFileSystemWatcher>
#include <QtCore/QSignalMapper>
#include <QtCore/QVariant>
#include <QtGui/QAction>
@@ -218,6 +219,12 @@ private slots:
void toggleDirectory();
/**
+ Populates the contents of the directory widget with the skp files in the
+ current directory pointed to by fFile.
+ */
+ void populateDirectoryWidget();
+
+ /**
Filters the list widgets command visibility based on the currently
active selection.
*/
@@ -267,6 +274,8 @@ private:
QListWidget fListWidget;
QListWidget fDirectoryWidget;
+ QFileSystemWatcher fDirectoryWatcher;
+
SkDebugger fDebugger;
SkCanvasWidget fCanvasWidget;
@@ -285,7 +294,6 @@ private:
QString fPath;
SkString fFileName;
SkTDArray<bool> fSkipCommands; // has a specific command been deleted?
- bool fDirectoryWidgetActive;
QMenuBar fMenuBar;
QMenu fMenuFile;
« 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