1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00
openrw/rwviewer/ViewerWindow.hpp
2014-02-12 07:12:40 +00:00

42 lines
742 B
C++

#pragma once
#ifndef _VIEWERWINDOW_HPP_
#define _VIEWERWINDOW_HPP_
#include <QMainWindow>
class ModelFramesWidget;
class ArchiveContentsWidget;
class ViewerWidget;
class ViewerWindow : public QMainWindow
{
Q_OBJECT
ViewerWidget* viewer;
ArchiveContentsWidget* archivewidget;
ModelFramesWidget* frameswidget;
public:
ViewerWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0);
void openArchive(const QString& name);
virtual void showEvent(QShowEvent*);
virtual void closeEvent(QCloseEvent*);
public slots:
void openArchive();
private slots:
void openFileChanged(const QString& name);
void openRecent();
private:
QList<QAction*> recentArchives;
QAction* recentSep;
void updateRecentArchives();
};
#endif