MainWindow.h 842 Bytes
Newer Older
1 2 3
#pragma once

#include <QtWidgets/QMainWindow>
Anakin's avatar
Anakin committed
4
#include <qwidget.h>
Anakin's avatar
Anakin committed
5 6
#include <QByteArray>
#include <QStringList>
Anakin's avatar
Anakin committed
7
#include <QLabel>
8
#include "ui_MainWindow.h"
Anakin's avatar
Anakin committed
9
#include "..\Header\FileInfoWindow.h"
10

11 12
struct Material;

13 14 15 16 17 18 19 20 21 22
class MainWindow : public QMainWindow
{
	Q_OBJECT

public:
	MainWindow(QWidget *parent = Q_NULLPTR);
	~MainWindow();

private:
	Ui::MainWindowClass* ui;
23
	int m_curSeverity;
Anakin's avatar
Anakin committed
24
	void setupWidgets();
Anakin's avatar
Anakin committed
25
	QByteArray m_fileInfo;
Anakin's avatar
Anakin committed
26
	QLabel* m_output;
Anakin's avatar
Anakin committed
27
	FileInfoWindow* m_infoWindow;
Anakin's avatar
Anakin committed
28

Anakin's avatar
Anakin committed
29
private:
Anakin's avatar
Anakin committed
30 31 32
	void openFile();
	void aboutFile();
	void aboutTool();
Anakin's avatar
Anakin committed
33
	void takeScreenShot();
Anakin's avatar
Anakin committed
34

Anakin's avatar
Anakin committed
35 36 37
protected:
	virtual void resizeEvent(QResizeEvent * e) Q_DECL_OVERRIDE;

38
public slots:
Anakin's avatar
Anakin committed
39
	void printMessage(QString message, int severity);
40
	void setFileInfo(QString name, QVector<Material>* materials, int vertices, int triangle);
41

Anakin's avatar
Anakin committed
42
signals:
Anakin's avatar
Anakin committed
43
	void loadFile(QString);
44
};