aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/mdbviz/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-09-01 12:17:03 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-05 13:57:44 +0000
commita6d2d708d7ca980b41cc2fefcb4a2916212b3960 (patch)
treef42983f5e003579da4b87fdf1dff46faa607bd2e /tools/mdbviz/mainwindow.h
parentb34b62692e518fb80aab1f7199f54c92a5de405f (diff)
Add gn plumbing for mdbviz tool
Change-Id: I06e6b63c2742da069f48ff5d7defafc63a485af7 Reviewed-on: https://skia-review.googlesource.com/41842 Reviewed-by: Mike Klein <mtklein@google.com> 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.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/mdbviz/mainwindow.h b/tools/mdbviz/mainwindow.h
new file mode 100644
index 0000000000..9aa9fcfda1
--- /dev/null
+++ b/tools/mdbviz/mainwindow.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2017 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef MainWindow_DEFINED
+#define MainWindow_DEFINED
+
+#include <QMainWindow>
+
+class QLabel;
+
+class MainWindow : public QMainWindow {
+ Q_OBJECT
+
+public:
+ MainWindow();
+
+private slots:
+ void openFile();
+
+private:
+ void loadFile(const QString &fileName);
+
+ void createActions();
+ void createStatusBar();
+ void readSettings();
+ void writeSettings();
+
+ QImage fImage;
+ QLabel* fImageLabel;
+};
+
+#endif