2017-09-01 16:17:03 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2017-09-05 19:10:12 +00:00
|
|
|
#include <memory>
|
2017-09-01 16:17:03 +00:00
|
|
|
#include <QMainWindow>
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "tools/mdbviz/Model.h"
|
2017-09-05 19:10:12 +00:00
|
|
|
|
2017-09-01 16:17:03 +00:00
|
|
|
class QLabel;
|
2017-09-05 19:10:12 +00:00
|
|
|
class QMenu;
|
2017-09-06 21:17:44 +00:00
|
|
|
class QTreeWidget;
|
|
|
|
class QTreeWidgetItem;
|
2017-09-05 19:10:12 +00:00
|
|
|
|
2017-09-01 16:17:03 +00:00
|
|
|
|
|
|
|
class MainWindow : public QMainWindow {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MainWindow();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void openFile();
|
2017-09-05 19:10:12 +00:00
|
|
|
void about();
|
2017-09-06 21:17:44 +00:00
|
|
|
void onCurrentItemChanged(QTreeWidgetItem* cur, QTreeWidgetItem* prev);
|
2017-09-01 16:17:03 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void loadFile(const QString &fileName);
|
2019-08-22 20:19:24 +00:00
|
|
|
void setupOpsTaskWidget();
|
2017-09-06 17:07:21 +00:00
|
|
|
void presentCurrentRenderState();
|
|
|
|
|
2017-09-01 16:17:03 +00:00
|
|
|
|
|
|
|
void createActions();
|
|
|
|
void createStatusBar();
|
2017-09-05 19:10:12 +00:00
|
|
|
void createDockWindows();
|
|
|
|
|
2017-09-01 16:17:03 +00:00
|
|
|
void readSettings();
|
|
|
|
void writeSettings();
|
|
|
|
|
|
|
|
QImage fImage;
|
|
|
|
QLabel* fImageLabel;
|
2017-09-05 19:10:12 +00:00
|
|
|
|
2019-08-22 20:19:24 +00:00
|
|
|
QTreeWidget* fOpsTaskWidget;
|
2017-09-05 19:10:12 +00:00
|
|
|
|
|
|
|
QMenu* fViewMenu;
|
|
|
|
|
2017-09-06 17:07:21 +00:00
|
|
|
Model fModel;
|
2017-09-01 16:17:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|