2021-05-24 07:25:56 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2006 Chu Xiaodong <xiaodongchu@gmail.com>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2006-08-08 15:42:12 +00:00
|
|
|
|
2008-02-08 15:22:15 +00:00
|
|
|
#ifndef _ANNOTATIONPROPERTIESDIALOG_H_
|
|
|
|
#define _ANNOTATIONPROPERTIESDIALOG_H_
|
2006-08-08 15:42:12 +00:00
|
|
|
|
2020-07-08 11:54:37 +00:00
|
|
|
#include <KPageDialog>
|
2006-08-10 06:32:03 +00:00
|
|
|
|
2006-09-17 09:27:01 +00:00
|
|
|
class QLabel;
|
2006-09-05 20:22:19 +00:00
|
|
|
class QLineEdit;
|
2006-09-12 20:21:34 +00:00
|
|
|
class AnnotationWidget;
|
2006-09-21 08:45:36 +00:00
|
|
|
|
|
|
|
namespace Okular
|
|
|
|
{
|
|
|
|
class Annotation;
|
|
|
|
class Document;
|
|
|
|
}
|
2006-09-05 20:22:19 +00:00
|
|
|
|
2006-08-08 15:42:12 +00:00
|
|
|
class AnnotsPropertiesDialog : public KPageDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2006-09-21 08:45:36 +00:00
|
|
|
AnnotsPropertiesDialog(QWidget *parent, Okular::Document *document, int docpage, Okular::Annotation *ann);
|
2019-12-18 11:51:13 +00:00
|
|
|
~AnnotsPropertiesDialog() override;
|
2006-08-08 15:42:12 +00:00
|
|
|
|
|
|
|
private:
|
2006-09-21 08:45:36 +00:00
|
|
|
Okular::Document *m_document;
|
2006-09-13 19:52:46 +00:00
|
|
|
int m_page;
|
|
|
|
bool modified;
|
2006-09-21 08:45:36 +00:00
|
|
|
Okular::Annotation *m_annot; // source annotation
|
2006-08-10 06:32:03 +00:00
|
|
|
// dialog widgets:
|
2006-08-08 15:42:12 +00:00
|
|
|
QLineEdit *AuthorEdit;
|
2006-09-12 20:21:34 +00:00
|
|
|
AnnotationWidget *m_annotWidget;
|
2006-09-17 09:27:01 +00:00
|
|
|
QLabel *m_modifyDateLabel;
|
2020-07-10 22:15:05 +00:00
|
|
|
|
2006-08-10 06:32:03 +00:00
|
|
|
void setCaptionTextbyAnnotType();
|
2006-08-08 15:42:12 +00:00
|
|
|
|
2016-07-11 17:30:31 +00:00
|
|
|
private Q_SLOTS:
|
2006-09-13 19:52:46 +00:00
|
|
|
void setModified();
|
2006-08-10 15:12:37 +00:00
|
|
|
void slotapply();
|
2006-08-08 15:42:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|