mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
JBIG2 file viewer
This commit is contained in:
35
JBIG2_Viewer/mainwindow.h
Normal file
35
JBIG2_Viewer/mainwindow.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
#include "pdfexception.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class MainWindow; }
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class MainWindow : public QMainWindow, public pdf::PDFRenderErrorReporter
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MainWindow(QWidget* parent = nullptr);
|
||||
virtual ~MainWindow() override;
|
||||
|
||||
virtual void reportRenderError(pdf::RenderErrorType type, QString message) override;
|
||||
|
||||
private slots:
|
||||
void on_actionAddImage_triggered();
|
||||
|
||||
void on_actionClear_triggered();
|
||||
|
||||
void on_actionAdd_JBIG2_image_triggered();
|
||||
|
||||
private:
|
||||
void addImage(QString title, QImage image);
|
||||
|
||||
Ui::MainWindow* ui;
|
||||
QString m_directory;
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
Reference in New Issue
Block a user