2014-02-10 12:41:05 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef _VIEWERWINDOW_HPP_
|
|
|
|
#define _VIEWERWINDOW_HPP_
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
2014-02-10 15:34:09 +00:00
|
|
|
class ArchiveContentsWidget;
|
2014-02-10 12:41:05 +00:00
|
|
|
class ViewerWidget;
|
|
|
|
class ViewerWindow : public QMainWindow
|
|
|
|
{
|
2014-02-10 15:34:09 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2014-02-10 12:41:05 +00:00
|
|
|
ViewerWidget* viewer;
|
2014-02-10 15:34:09 +00:00
|
|
|
ArchiveContentsWidget* archivewidget;
|
2014-02-10 12:41:05 +00:00
|
|
|
public:
|
2014-02-11 05:46:29 +00:00
|
|
|
|
2014-02-10 12:41:05 +00:00
|
|
|
ViewerWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0);
|
2014-02-10 15:34:09 +00:00
|
|
|
|
|
|
|
void openArchive(const QString& name);
|
2014-02-10 16:15:22 +00:00
|
|
|
|
|
|
|
virtual void closeEvent(QCloseEvent*);
|
2014-02-11 05:46:29 +00:00
|
|
|
|
2014-02-10 15:34:09 +00:00
|
|
|
public slots:
|
|
|
|
|
|
|
|
void openArchive();
|
2014-02-11 05:46:29 +00:00
|
|
|
void updateTitle(const QString& name);
|
2014-02-10 12:41:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|