diff options
Diffstat (limited to 'src/infowidget/infowidget.h')
-rw-r--r-- | src/infowidget/infowidget.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/infowidget/infowidget.h b/src/infowidget/infowidget.h new file mode 100644 index 0000000..d419901 --- /dev/null +++ b/src/infowidget/infowidget.h @@ -0,0 +1,35 @@ +#ifndef CPDF_INFOWIDGET_H +#define CPDF_INFOWIDGET_H + +#include <QWidget> + +namespace Ui { + class InfoForm; +} + +class InfoForm : public QWidget +{ + Q_OBJECT + +public: + enum Metadata { + Title, + Subject, + Author, + Creator, + CreationDate, + ModificationDate, + Producer + }; + + explicit InfoForm(QWidget *parent = nullptr); + ~InfoForm(); + +public slots: + void setMetadata(Metadata which, const QString &value); + +private: + Ui::InfoForm *ui = nullptr; +}; + +#endif // CPDF_INFOWIDGET_H |