blob: 59e7b98c387845a14269dfe9ec917f8532b5ac5a [file] [log] [blame]
/*
* 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 "Model.h"
class QLabel;
class QListWidget;
class QMenu;
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow();
private slots:
void openFile();
void about();
void onCurrentRowChanged(int currentRow);
private:
void loadFile(const QString &fileName);
void setupOpListWidget();
void presentCurrentRenderState();
void createActions();
void createStatusBar();
void createDockWindows();
void readSettings();
void writeSettings();
QImage fImage;
QLabel* fImageLabel;
QListWidget* fOpListWidget;
QMenu* fViewMenu;
Model fModel;
};
#endif