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

58 lines
1.1 KiB
C
Raw Normal View History

#pragma once
#include <QtWidgets/QMainWindow>
#include <QWidget>
#include "ui_MainWindow.h"
#include "FileInfoWindow.h"
2017-01-07 14:59:16 +00:00
#include <QByteArray>
#include <QLabel>
struct Material;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = Q_NULLPTR);
~MainWindow();
// attributes
private:
Ui::MainWindowClass* ui;
2017-01-07 14:59:16 +00:00
QByteArray m_fileInfo;
QLabel* m_output;
int m_curSeverity;
FileInfoWindow* m_infoWindow;
QStringList m_filters;
QStringList m_Paths;
// functions
2017-01-11 15:28:51 +00:00
private:
void setupWidgets();
void setupAssetLibrary();
void updateAssetTree(QString);
void openFileDialog();
void openFile(QString);
2017-01-11 15:28:51 +00:00
void takeScreenShot();
void aboutTool();
protected:
virtual void resizeEvent(QResizeEvent * e) Q_DECL_OVERRIDE;
// slots
public slots:
void printMessage(QString message, int severity);
void setFileInfo(QString name, QVector<Material>* materials, int vertices, int triangle);
// signals
signals:
2017-01-07 14:59:16 +00:00
void loadFile(QString);
// private slots
private slots:
void on_fileListWidget_doubleClicked(const QModelIndex &index);
void on_dirDropDownList_currentTextChanged(const QString &arg1);
};