mirror of
https://github.com/markdavidlong/AppleSAWS.git
synced 2024-06-01 11:42:08 +00:00
37 lines
665 B
C++
37 lines
665 B
C++
#ifndef FILEVIEWERINTERFACE_H
|
|
#define FILEVIEWERINTERFACE_H
|
|
|
|
#include <QWidget>
|
|
#include <QString>
|
|
|
|
class GenericFile;
|
|
class QMenu;
|
|
|
|
class FileViewerInterface : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
FileViewerInterface(QWidget *parent = Q_NULLPTR) : QWidget(parent) { }
|
|
|
|
virtual QMenu *optionsMenuItems() const { return Q_NULLPTR; }
|
|
|
|
bool canPrint() const { return false; }
|
|
|
|
public slots:
|
|
virtual void activate();
|
|
virtual void setFile(GenericFile *file) = 0;
|
|
|
|
void doPrint() { }
|
|
QString title() const { return m_title; }
|
|
|
|
signals:
|
|
void setTitle(QString title);
|
|
|
|
protected:
|
|
QString m_title;
|
|
};
|
|
|
|
|
|
#endif // FILEVIEWERINTERFACE_H
|