mirror of
https://github.com/markdavidlong/AppleSAWS.git
synced 2024-09-16 18:54:54 +00:00
42 lines
868 B
C++
42 lines
868 B
C++
#ifndef FILEVIEWERINTERFACE_H
|
|
#define FILEVIEWERINTERFACE_H
|
|
|
|
#include <QWidget>
|
|
#include <QString>
|
|
#include <QPrinter>
|
|
#include <QPrintDialog>
|
|
#include <QFileDialog>
|
|
#include <QStandardPaths>
|
|
#include <QMessageBox>
|
|
|
|
class GenericFile;
|
|
class QMenu;
|
|
|
|
class FileViewerInterface : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
FileViewerInterface(QWidget *parent = Q_NULLPTR) : QWidget(parent) { setFont(QFont("courier")); }
|
|
|
|
virtual bool optionsMenuItems(QMenu *) = 0;
|
|
|
|
virtual bool canPrint() const { return false; }
|
|
virtual bool canExport() const { return false; }
|
|
|
|
QString title() const { return m_title; }
|
|
|
|
public slots:
|
|
virtual void setFile(GenericFile *file) = 0;
|
|
|
|
virtual void doPrint() { }
|
|
virtual void doExport() { }
|
|
|
|
signals:
|
|
|
|
protected:
|
|
QString m_title;
|
|
};
|
|
|
|
#endif // FILEVIEWERINTERFACE_H
|