2016-12-24 16:03:37 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include <QtWidgets/QMainWindow>
|
2017-01-28 16:54:36 +01:00
|
|
|
#include <QWidget>
|
|
|
|
|
#include "ui_MainWindow.h"
|
|
|
|
|
#include "FileInfoWindow.h"
|
2017-01-07 15:59:16 +01:00
|
|
|
#include <QByteArray>
|
2017-01-16 14:24:30 +01:00
|
|
|
#include <QLabel>
|
2017-01-28 16:54:36 +01:00
|
|
|
|
2017-01-15 12:26:15 +01:00
|
|
|
struct Material;
|
|
|
|
|
|
2016-12-24 16:03:37 +01:00
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
MainWindow(QWidget *parent = Q_NULLPTR);
|
|
|
|
|
~MainWindow();
|
|
|
|
|
|
2017-01-28 16:54:36 +01:00
|
|
|
// attributes
|
2016-12-24 16:03:37 +01:00
|
|
|
private:
|
|
|
|
|
Ui::MainWindowClass* ui;
|
2017-01-28 16:54:36 +01:00
|
|
|
|
2017-01-07 15:59:16 +01:00
|
|
|
QByteArray m_fileInfo;
|
2017-01-16 14:24:30 +01:00
|
|
|
QLabel* m_output;
|
2017-01-28 16:54:36 +01:00
|
|
|
int m_curSeverity;
|
|
|
|
|
|
2017-01-16 15:41:37 +01:00
|
|
|
FileInfoWindow* m_infoWindow;
|
2017-06-17 15:42:43 +02:00
|
|
|
QStringList m_filters;
|
2017-06-18 06:15:23 -05:00
|
|
|
QStringList m_Paths;
|
2016-12-31 16:18:35 +01:00
|
|
|
|
2017-01-28 16:54:36 +01:00
|
|
|
// functions
|
2017-01-11 16:28:51 +01:00
|
|
|
private:
|
2017-01-28 16:54:36 +01:00
|
|
|
void setupWidgets();
|
2017-06-17 15:42:43 +02:00
|
|
|
void setupAssetLibrary();
|
|
|
|
|
void updateAssetTree(QString);
|
|
|
|
|
void openFileDialog();
|
|
|
|
|
void openFile(QString);
|
2017-01-11 16:28:51 +01:00
|
|
|
void takeScreenShot();
|
2017-01-28 16:54:36 +01:00
|
|
|
void aboutTool();
|
2016-12-31 16:18:35 +01:00
|
|
|
|
2017-01-16 14:24:30 +01:00
|
|
|
protected:
|
|
|
|
|
virtual void resizeEvent(QResizeEvent * e) Q_DECL_OVERRIDE;
|
|
|
|
|
|
2017-01-28 16:54:36 +01:00
|
|
|
// slots
|
2017-01-04 14:35:27 +01:00
|
|
|
public slots:
|
2017-01-05 14:46:01 +01:00
|
|
|
void printMessage(QString message, int severity);
|
2017-01-15 12:26:15 +01:00
|
|
|
void setFileInfo(QString name, QVector<Material>* materials, int vertices, int triangle);
|
2017-01-04 14:35:27 +01:00
|
|
|
|
2017-01-28 16:54:36 +01:00
|
|
|
// signals
|
add exe icon,
signal-slot for openFile,
resetView on openFile,
cleanup when open a new file,
triangulate quad poly now correctly, more not working, bug from previous version,
next:
fix 5,6,.. triangulation,
triClothMan, IC Helmet, still buggy,
2017-01-02 12:21:32 +01:00
|
|
|
signals:
|
2017-01-07 15:59:16 +01:00
|
|
|
void loadFile(QString);
|
2017-05-30 21:37:17 -05:00
|
|
|
|
|
|
|
|
// private slots
|
|
|
|
|
private slots:
|
2017-06-18 06:15:23 -05:00
|
|
|
void on_fileListWidget_doubleClicked(const QModelIndex &index);
|
2017-05-31 03:10:30 -05:00
|
|
|
void on_dirDropDownList_currentTextChanged(const QString &arg1);
|
2016-12-24 16:03:37 +01:00
|
|
|
};
|