2016-12-24 15:03:37 +00:00
|
|
|
#pragma once
|
|
|
|
#include <QtWidgets/QMainWindow>
|
2017-01-28 15:54:36 +00:00
|
|
|
#include <QWidget>
|
|
|
|
#include "ui_MainWindow.h"
|
|
|
|
#include "FileInfoWindow.h"
|
2017-01-07 14:59:16 +00:00
|
|
|
#include <QByteArray>
|
2017-01-16 13:24:30 +00:00
|
|
|
#include <QLabel>
|
2017-01-28 15:54:36 +00:00
|
|
|
|
2017-01-15 11:26:15 +00:00
|
|
|
struct Material;
|
|
|
|
|
2016-12-24 15:03:37 +00:00
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MainWindow(QWidget *parent = Q_NULLPTR);
|
|
|
|
~MainWindow();
|
|
|
|
|
2017-01-28 15:54:36 +00:00
|
|
|
// attributes
|
2016-12-24 15:03:37 +00:00
|
|
|
private:
|
|
|
|
Ui::MainWindowClass* ui;
|
2017-01-28 15:54:36 +00:00
|
|
|
|
2017-01-07 14:59:16 +00:00
|
|
|
QByteArray m_fileInfo;
|
2017-01-16 13:24:30 +00:00
|
|
|
QLabel* m_output;
|
2017-01-28 15:54:36 +00:00
|
|
|
int m_curSeverity;
|
|
|
|
|
2017-01-16 14:41:37 +00:00
|
|
|
FileInfoWindow* m_infoWindow;
|
2017-06-17 13:42:43 +00:00
|
|
|
QStringList m_filters;
|
2016-12-31 15:18:35 +00:00
|
|
|
|
2017-01-28 15:54:36 +00:00
|
|
|
// functions
|
2017-01-11 15:28:51 +00:00
|
|
|
private:
|
2017-01-28 15:54:36 +00:00
|
|
|
void setupWidgets();
|
2017-06-17 13:42:43 +00:00
|
|
|
void updateAssetTree(QString);
|
|
|
|
void openFileDialog();
|
|
|
|
void openFile(QString);
|
2017-01-11 15:28:51 +00:00
|
|
|
void takeScreenShot();
|
2017-01-28 15:54:36 +00:00
|
|
|
void aboutTool();
|
2016-12-31 15:18:35 +00:00
|
|
|
|
2017-01-16 13:24:30 +00:00
|
|
|
protected:
|
|
|
|
virtual void resizeEvent(QResizeEvent * e) Q_DECL_OVERRIDE;
|
|
|
|
|
2017-01-28 15:54:36 +00:00
|
|
|
// slots
|
2017-01-04 13:35:27 +00:00
|
|
|
public slots:
|
2017-01-05 13:46:01 +00:00
|
|
|
void printMessage(QString message, int severity);
|
2017-01-15 11:26:15 +00:00
|
|
|
void setFileInfo(QString name, QVector<Material>* materials, int vertices, int triangle);
|
2017-01-04 13:35:27 +00:00
|
|
|
|
2017-05-31 02:37:17 +00:00
|
|
|
// private slots
|
|
|
|
private slots:
|
2017-06-20 09:41:10 +00:00
|
|
|
void setupAssetLibrary();
|
2017-06-20 09:58:03 +00:00
|
|
|
void on_fileTreeWidget_doubleClicked();
|
2017-05-31 08:10:30 +00:00
|
|
|
void on_dirDropDownList_currentTextChanged(const QString &arg1);
|
2017-06-20 09:41:10 +00:00
|
|
|
|
|
|
|
// signals
|
|
|
|
signals:
|
|
|
|
void loadFile(QString);
|
2016-12-24 15:03:37 +00:00
|
|
|
};
|