66 lines
2.2 KiB
C++
66 lines
2.2 KiB
C++
#ifndef HIRESVIEWWIDGET_H
|
|
#define HIRESVIEWWIDGET_H
|
|
|
|
/*****************************************************************************
|
|
* AppleSAWS - The Apple Software Analysis WorkShop *
|
|
* Copyright (C) 2015-2021 Mark D. Long *
|
|
* *
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
* it under the terms of the GNU 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 General Public License *
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
|
*****************************************************************************/
|
|
|
|
#include "binaryfile.h"
|
|
#include "fileviewerinterface.h"
|
|
#include "hiresscreenwidget.h"
|
|
|
|
#include <QWidget>
|
|
#include <QPixmap>
|
|
#include <QByteArray>
|
|
#include <QPair>
|
|
#include <QMap>
|
|
#include <QBitArray>
|
|
#include <QAction>
|
|
#include <QMenu>
|
|
#include <QLabel>
|
|
|
|
|
|
class HiresViewWidget : public FileViewerInterface
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
|
|
explicit HiresViewWidget(QWidget *parent = 0);
|
|
virtual bool optionsMenuItems(QMenu *);
|
|
|
|
bool canPrint() const;
|
|
bool canExport() const;
|
|
|
|
public slots:
|
|
void setFile(GenericFile *file);
|
|
void setFile(BinaryFile *file);
|
|
|
|
void doPrint();
|
|
void doExport();
|
|
|
|
void handleNewOffset(quint16 offset);
|
|
|
|
private:
|
|
HiresScreenWidget *hrsw;
|
|
QLabel *m_offsetLabel;
|
|
|
|
BinaryFile *m_file;
|
|
};
|
|
|
|
|
|
#endif // HIRESVIEWWIDGET_H
|