aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/mdbviz/mainwindow.h
blob: 80c86b04710d8d5bd85afcc823a2a6737c703f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * 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 <memory>
#include <QMainWindow>

#include "SkDebugCanvas.h"

class QLabel;
class QListWidget;
class QMenu;


class MainWindow : public QMainWindow {
    Q_OBJECT

public:
    MainWindow();

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