SWBF2-Classic-Msh-Viewer/QtMeshViewer/Header/MainWindow.h

38 lines
644 B
C
Raw Normal View History

#pragma once
#include <QtWidgets/QMainWindow>
2017-01-07 14:59:16 +00:00
#include <QByteArray>
#include <QStringList>
#include "ui_MainWindow.h"
struct Material;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = Q_NULLPTR);
~MainWindow();
private:
Ui::MainWindowClass* ui;
int m_curSeverity;
2017-01-05 15:04:51 +00:00
void setupWidgets();
2017-01-07 14:59:16 +00:00
QByteArray m_fileInfo;
2017-01-05 15:04:51 +00:00
2017-01-11 15:28:51 +00:00
private:
void openFile();
void aboutFile();
void aboutTool();
2017-01-11 15:28:51 +00:00
void takeScreenShot();
public slots:
void printMessage(QString message, int severity);
void setFileInfo(QString name, QVector<Material>* materials, int vertices, int triangle);
signals:
2017-01-07 14:59:16 +00:00
void loadFile(QString);
};