File indexing completed on 2024-04-28 15:51:39

0001 /*
0002     SPDX-FileCopyrightText: 2006 Chu Xiaodong <xiaodongchu@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef _ANNOTATIONPROPERTIESDIALOG_H_
0008 #define _ANNOTATIONPROPERTIESDIALOG_H_
0009 
0010 #include <KPageDialog>
0011 
0012 class QLabel;
0013 class QLineEdit;
0014 class AnnotationWidget;
0015 
0016 namespace Okular
0017 {
0018 class Annotation;
0019 class Document;
0020 }
0021 
0022 class AnnotsPropertiesDialog : public KPageDialog
0023 {
0024     Q_OBJECT
0025 public:
0026     AnnotsPropertiesDialog(QWidget *parent, Okular::Document *document, int docpage, Okular::Annotation *ann);
0027     ~AnnotsPropertiesDialog() override;
0028 
0029 private:
0030     Okular::Document *m_document;
0031     int m_page;
0032     bool modified;
0033     Okular::Annotation *m_annot; // source annotation
0034     // dialog widgets:
0035     QLineEdit *AuthorEdit;
0036     AnnotationWidget *m_annotWidget;
0037     QLabel *m_modifyDateLabel;
0038 
0039     void setCaptionTextbyAnnotType();
0040 
0041 private Q_SLOTS:
0042     void setModified();
0043     void slotapply();
0044 };
0045 
0046 #endif