aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/mdbviz/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-09-05 15:10:12 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-06 01:02:22 +0000
commit5fccf9d8017ab8c288548ab566cf78e698ac721f (patch)
tree2f62cf3b43c11664317215f14ca3918027730a22 /tools/mdbviz/mainwindow.h
parentbc534f6888b17958e80c848d88fa4fe7a3d3ea04 (diff)
[MDBViz] Add tear off windows for the op list & main canvas window
Change-Id: I4086a17eafecccaf0bac34c850c249a5e4efc719 Reviewed-on: https://skia-review.googlesource.com/42524 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tools/mdbviz/mainwindow.h')
-rw-r--r--tools/mdbviz/mainwindow.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/mdbviz/mainwindow.h b/tools/mdbviz/mainwindow.h
index 9aa9fcfda1..80c86b0471 100644
--- a/tools/mdbviz/mainwindow.h
+++ b/tools/mdbviz/mainwindow.h
@@ -8,9 +8,15 @@
#ifndef MainWindow_DEFINED
#define MainWindow_DEFINED
+#include <memory>
#include <QMainWindow>
+#include "SkDebugCanvas.h"
+
class QLabel;
+class QListWidget;
+class QMenu;
+
class MainWindow : public QMainWindow {
Q_OBJECT
@@ -20,17 +26,27 @@ public:
private slots:
void openFile();
+ void about();
private:
void loadFile(const QString &fileName);
+ void setupOpListWidget();
void createActions();
void createStatusBar();
+ void createDockWindows();
+
void readSettings();
void writeSettings();
QImage fImage;
QLabel* fImageLabel;
+
+ QListWidget* fOpListWidget;
+
+ QMenu* fViewMenu;
+
+ std::unique_ptr<SkDebugCanvas> fDebugCanvas;
};
#endif