You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
936 B
57 lines
936 B
4 months ago
|
/*
|
||
|
* 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 QMenu;
|
||
|
class QTreeWidget;
|
||
|
class QTreeWidgetItem;
|
||
|
|
||
|
|
||
|
class MainWindow : public QMainWindow {
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
MainWindow();
|
||
|
|
||
|
private slots:
|
||
|
void openFile();
|
||
|
void about();
|
||
|
void onCurrentItemChanged(QTreeWidgetItem* cur, QTreeWidgetItem* prev);
|
||
|
|
||
|
private:
|
||
|
void loadFile(const QString &fileName);
|
||
|
void setupOpListWidget();
|
||
|
void presentCurrentRenderState();
|
||
|
|
||
|
|
||
|
void createActions();
|
||
|
void createStatusBar();
|
||
|
void createDockWindows();
|
||
|
|
||
|
void readSettings();
|
||
|
void writeSettings();
|
||
|
|
||
|
QImage fImage;
|
||
|
QLabel* fImageLabel;
|
||
|
|
||
|
QTreeWidget* fOpListWidget;
|
||
|
|
||
|
QMenu* fViewMenu;
|
||
|
|
||
|
Model fModel;
|
||
|
};
|
||
|
|
||
|
#endif
|