mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 11:22:45 +01:00
53 lines
880 B
C++
53 lines
880 B
C++
#pragma once
|
|
#ifndef _VIEWERWINDOW_HPP_
|
|
#define _VIEWERWINDOW_HPP_
|
|
#include <QMainWindow>
|
|
|
|
class ModelFramesWidget;
|
|
class ItemListWidget;
|
|
class AnimationListWidget;
|
|
class ViewerWidget;
|
|
|
|
class ViewerWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
ViewerWidget* viewer;
|
|
ItemListWidget* itemsWidget;
|
|
ModelFramesWidget* frameswidget;
|
|
AnimationListWidget* animationswidget;
|
|
public:
|
|
|
|
ViewerWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0);
|
|
|
|
/**
|
|
* @brief openGame Loads a game's dat file.
|
|
* @param datFile
|
|
*/
|
|
void openGame(const QString& datFile);
|
|
|
|
virtual void showEvent(QShowEvent*);
|
|
|
|
virtual void closeEvent(QCloseEvent*);
|
|
|
|
public slots:
|
|
|
|
void openAnimations();
|
|
|
|
void loadGame();
|
|
|
|
void loadGame( const QString& path );
|
|
|
|
private slots:
|
|
|
|
void openRecent();
|
|
|
|
private:
|
|
|
|
QList<QAction*> recentGames;
|
|
QAction* recentSep;
|
|
void updateRecentGames();
|
|
};
|
|
|
|
#endif
|