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

48 lines
836 B
C++
Raw Normal View History

2014-02-10 13:41:05 +01:00
#pragma once
#ifndef _VIEWERWINDOW_HPP_
#define _VIEWERWINDOW_HPP_
#include <QMainWindow>
2014-02-12 07:42:07 +01:00
class ModelFramesWidget;
2014-02-10 16:34:09 +01:00
class ArchiveContentsWidget;
2014-03-01 12:19:33 +01:00
class AnimationListWidget;
2014-02-10 13:41:05 +01:00
class ViewerWidget;
2014-03-01 12:19:33 +01:00
2014-02-10 13:41:05 +01:00
class ViewerWindow : public QMainWindow
{
2014-02-10 16:34:09 +01:00
Q_OBJECT
2014-02-10 13:41:05 +01:00
ViewerWidget* viewer;
2014-02-10 16:34:09 +01:00
ArchiveContentsWidget* archivewidget;
2014-02-12 07:42:07 +01:00
ModelFramesWidget* frameswidget;
2014-03-01 12:19:33 +01:00
AnimationListWidget* animationswidget;
2014-02-10 13:41:05 +01:00
public:
2014-02-11 15:41:46 +01:00
2014-02-10 13:41:05 +01:00
ViewerWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0);
2014-02-10 16:34:09 +01:00
void openArchive(const QString& name);
2014-02-10 17:15:22 +01:00
2014-02-12 08:12:40 +01:00
virtual void showEvent(QShowEvent*);
2014-02-10 17:15:22 +01:00
virtual void closeEvent(QCloseEvent*);
2014-02-11 06:46:29 +01:00
2014-02-10 16:34:09 +01:00
public slots:
void openArchive();
2014-02-11 15:41:46 +01:00
2014-03-01 12:19:33 +01:00
void openAnimations();
2014-02-11 15:41:46 +01:00
private slots:
2014-02-12 07:42:07 +01:00
void openFileChanged(const QString& name);
2014-02-11 15:41:46 +01:00
void openRecent();
private:
QList<QAction*> recentArchives;
QAction* recentSep;
void updateRecentArchives();
2014-02-10 13:41:05 +01:00
};
2014-03-01 12:19:33 +01:00
#endif