warzone2100/tools/qwzm/qwzm.h

64 lines
1.4 KiB
C
Raw Normal View History

/*
Copyright (C) 2008 by Warzone Resurrection Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this program. If not, see
<http://www.gnu.org/licenses/>.
*/
#ifndef QWZM_H
#define QWZM_H
#include <QApplication>
#include <QMainWindow>
#include <QtOpenGL>
#include <stdint.h>
#include <ctype.h>
#include <errno.h>
#include <math.h>
extern "C" {
#include "wzmutils.h"
}
#include "ui_qwzm.h"
/** WZM Viewer */
class QWzmViewer : public QMainWindow, private Ui::QWZM
{
Q_OBJECT
public:
QWzmViewer(QWidget *parent = 0);
~QWzmViewer();
protected slots:
void saveAs();
void save();
void open3DS();
void openWZM();
void openPIE();
void toggleWireframe();
void toggleCulling();
void toggleTeam(int index);
void tick();
void toggleAnimation();
void toggleScale();
private:
QString filename;
MODEL *psModel;
void load3DS(QString input);
void loadPIE(QString input);
};
#endif