/*
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
.
*/
#ifndef QWZM_H
#define QWZM_H
#include
#include
#include
#include
#include
#include
#include
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 toggleWireframe();
void toggleCulling();
void toggleTeam(int index);
void tick();
void toggleAnimation();
void toggleScale();
private:
QString filename;
MODEL *psModel;
void load3DS(QString input);
};
#endif