2006-09-12 20:21:34 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2006 by Pino Toscano <pino@kde.org> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _ANNOTATIONWIDGETS_H_
|
|
|
|
#define _ANNOTATIONWIDGETS_H_
|
|
|
|
|
2006-09-13 17:28:32 +00:00
|
|
|
#include <qwidget.h>
|
|
|
|
|
2006-09-12 20:21:34 +00:00
|
|
|
#include "core/annotations.h"
|
|
|
|
|
2006-11-19 00:46:01 +00:00
|
|
|
class QCheckBox;
|
2006-09-13 17:28:32 +00:00
|
|
|
class QComboBox;
|
2006-09-16 14:58:32 +00:00
|
|
|
class QDoubleSpinBox;
|
2006-09-12 20:21:34 +00:00
|
|
|
class QLabel;
|
|
|
|
class QWidget;
|
2006-11-19 00:46:01 +00:00
|
|
|
class KColorButton;
|
2014-10-06 05:41:26 +00:00
|
|
|
class QSpinBox;
|
2006-12-23 18:37:04 +00:00
|
|
|
class KFontRequester;
|
2006-09-12 20:21:34 +00:00
|
|
|
class AnnotationWidget;
|
|
|
|
|
2006-09-13 17:28:32 +00:00
|
|
|
class PixmapPreviewSelector
|
|
|
|
: public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-03-02 19:09:32 +00:00
|
|
|
explicit PixmapPreviewSelector( QWidget * parent = nullptr );
|
2006-09-13 17:28:32 +00:00
|
|
|
virtual ~PixmapPreviewSelector();
|
|
|
|
|
|
|
|
void setIcon( const QString& icon );
|
|
|
|
QString icon() const;
|
|
|
|
|
2006-09-14 10:36:15 +00:00
|
|
|
void addItem( const QString& item, const QString& id );
|
2006-09-13 17:28:32 +00:00
|
|
|
|
|
|
|
void setPreviewSize( int size );
|
|
|
|
int previewSize() const;
|
|
|
|
|
2007-09-04 18:21:33 +00:00
|
|
|
void setEditable( bool editable );
|
|
|
|
|
2016-07-11 17:30:31 +00:00
|
|
|
Q_SIGNALS:
|
2006-09-13 17:28:32 +00:00
|
|
|
void iconChanged( const QString& );
|
|
|
|
|
2016-07-11 17:30:31 +00:00
|
|
|
private Q_SLOTS:
|
2006-09-13 17:28:32 +00:00
|
|
|
void iconComboChanged( const QString& icon );
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_icon;
|
|
|
|
QLabel * m_iconLabel;
|
|
|
|
QComboBox * m_comboItems;
|
|
|
|
int m_previewSize;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-09-12 20:21:34 +00:00
|
|
|
/**
|
|
|
|
* A factory to create AnnotationWidget's.
|
|
|
|
*/
|
|
|
|
class AnnotationWidgetFactory
|
|
|
|
{
|
|
|
|
public:
|
2006-09-21 08:45:36 +00:00
|
|
|
static AnnotationWidget * widgetFor( Okular::Annotation * ann );
|
2006-09-12 20:21:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class AnnotationWidget
|
|
|
|
: public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-09-01 08:25:57 +00:00
|
|
|
explicit AnnotationWidget( Okular::Annotation * ann );
|
2006-09-12 20:21:34 +00:00
|
|
|
virtual ~AnnotationWidget();
|
|
|
|
|
2006-09-21 08:45:36 +00:00
|
|
|
virtual Okular::Annotation::SubType annotationType() const;
|
2006-09-12 20:21:34 +00:00
|
|
|
|
2012-07-26 17:16:13 +00:00
|
|
|
QWidget * appearanceWidget();
|
2008-04-18 21:37:41 +00:00
|
|
|
QWidget * extraWidget();
|
2006-09-12 20:21:34 +00:00
|
|
|
|
2012-07-26 17:16:13 +00:00
|
|
|
virtual void applyChanges();
|
2006-09-12 20:21:34 +00:00
|
|
|
|
2016-07-11 17:30:31 +00:00
|
|
|
Q_SIGNALS:
|
2006-09-13 19:52:46 +00:00
|
|
|
void dataChanged();
|
|
|
|
|
2006-09-12 20:21:34 +00:00
|
|
|
protected:
|
2012-07-26 17:16:13 +00:00
|
|
|
QWidget * createAppearanceWidget();
|
2006-09-12 20:21:34 +00:00
|
|
|
|
2012-07-26 17:16:13 +00:00
|
|
|
virtual QWidget * createStyleWidget();
|
2008-04-18 21:37:41 +00:00
|
|
|
virtual QWidget * createExtraWidget();
|
2008-04-18 20:34:35 +00:00
|
|
|
|
Add typewriter annotation tool
Summary:
Typewriter is originally specified by the PDF reference as special FreeText annotation, where Intent=FreeTextTypewriter. It features opaque letters on transparent background, so that users can fill non interactive forms. Herewith typewriter is implemented natively for PDF, and there's also an Okular specific implementation for other document types. The added tool reuses the inline note UI.
This work was done during GSoC 2018. See https://community.kde.org/GSoC/2018/StatusReports/DileepSankhla for details.
FEATURE: 353401
Test Plan:
- okularpartrc is generated (if not yet existing) with typewriter as 10th tool
- typewriter tool is also available in Annotation Tools -> Add, Typ "Typewriter"
- selecting the tool and left click into document opens inline note input dialog
- finishing creates an annotation similar to inline note, but with transparent background
- saving into PDF results in /Subtype FreeText /IT /FreeTextTypeWriter
- saving typewriter into archive stores color with alpha channel = 0x00
- opening annotated archive works, if archive was created with old Okular, and opened in patched Okular
- opening annotated archive works, if archive was created with patched Okular, and opened in old Okular
Reviewers: sander
Reviewed By: sander
Subscribers: ngraham, sander, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D15204
2018-09-21 20:10:04 +00:00
|
|
|
private:
|
|
|
|
virtual bool hasColorButton() const { return true; }
|
|
|
|
virtual bool hasOpacityBox() const { return true; }
|
|
|
|
|
2006-09-21 08:45:36 +00:00
|
|
|
Okular::Annotation * m_ann;
|
Add typewriter annotation tool
Summary:
Typewriter is originally specified by the PDF reference as special FreeText annotation, where Intent=FreeTextTypewriter. It features opaque letters on transparent background, so that users can fill non interactive forms. Herewith typewriter is implemented natively for PDF, and there's also an Okular specific implementation for other document types. The added tool reuses the inline note UI.
This work was done during GSoC 2018. See https://community.kde.org/GSoC/2018/StatusReports/DileepSankhla for details.
FEATURE: 353401
Test Plan:
- okularpartrc is generated (if not yet existing) with typewriter as 10th tool
- typewriter tool is also available in Annotation Tools -> Add, Typ "Typewriter"
- selecting the tool and left click into document opens inline note input dialog
- finishing creates an annotation similar to inline note, but with transparent background
- saving into PDF results in /Subtype FreeText /IT /FreeTextTypeWriter
- saving typewriter into archive stores color with alpha channel = 0x00
- opening annotated archive works, if archive was created with old Okular, and opened in patched Okular
- opening annotated archive works, if archive was created with patched Okular, and opened in old Okular
Reviewers: sander
Reviewed By: sander
Subscribers: ngraham, sander, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D15204
2018-09-21 20:10:04 +00:00
|
|
|
QWidget * m_appearanceWidget { nullptr };
|
|
|
|
QWidget * m_extraWidget { nullptr };
|
|
|
|
KColorButton *m_colorBn { nullptr };
|
|
|
|
QSpinBox *m_opacity { nullptr };
|
2006-09-12 20:21:34 +00:00
|
|
|
};
|
|
|
|
|
Add typewriter annotation tool
Summary:
Typewriter is originally specified by the PDF reference as special FreeText annotation, where Intent=FreeTextTypewriter. It features opaque letters on transparent background, so that users can fill non interactive forms. Herewith typewriter is implemented natively for PDF, and there's also an Okular specific implementation for other document types. The added tool reuses the inline note UI.
This work was done during GSoC 2018. See https://community.kde.org/GSoC/2018/StatusReports/DileepSankhla for details.
FEATURE: 353401
Test Plan:
- okularpartrc is generated (if not yet existing) with typewriter as 10th tool
- typewriter tool is also available in Annotation Tools -> Add, Typ "Typewriter"
- selecting the tool and left click into document opens inline note input dialog
- finishing creates an annotation similar to inline note, but with transparent background
- saving into PDF results in /Subtype FreeText /IT /FreeTextTypeWriter
- saving typewriter into archive stores color with alpha channel = 0x00
- opening annotated archive works, if archive was created with old Okular, and opened in patched Okular
- opening annotated archive works, if archive was created with patched Okular, and opened in old Okular
Reviewers: sander
Reviewed By: sander
Subscribers: ngraham, sander, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D15204
2018-09-21 20:10:04 +00:00
|
|
|
class QVBoxLayout;
|
|
|
|
class QGridLayout;
|
|
|
|
|
2006-09-13 18:19:22 +00:00
|
|
|
class TextAnnotationWidget
|
|
|
|
: public AnnotationWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-08-18 13:27:20 +00:00
|
|
|
explicit TextAnnotationWidget( Okular::Annotation * ann );
|
2006-09-13 18:19:22 +00:00
|
|
|
|
2017-03-02 19:39:24 +00:00
|
|
|
void applyChanges() override;
|
2006-09-13 18:19:22 +00:00
|
|
|
|
2008-04-18 20:34:35 +00:00
|
|
|
protected:
|
2017-03-02 19:39:24 +00:00
|
|
|
QWidget * createStyleWidget() override;
|
2008-04-18 20:34:35 +00:00
|
|
|
|
2006-09-13 18:19:22 +00:00
|
|
|
private:
|
Add typewriter annotation tool
Summary:
Typewriter is originally specified by the PDF reference as special FreeText annotation, where Intent=FreeTextTypewriter. It features opaque letters on transparent background, so that users can fill non interactive forms. Herewith typewriter is implemented natively for PDF, and there's also an Okular specific implementation for other document types. The added tool reuses the inline note UI.
This work was done during GSoC 2018. See https://community.kde.org/GSoC/2018/StatusReports/DileepSankhla for details.
FEATURE: 353401
Test Plan:
- okularpartrc is generated (if not yet existing) with typewriter as 10th tool
- typewriter tool is also available in Annotation Tools -> Add, Typ "Typewriter"
- selecting the tool and left click into document opens inline note input dialog
- finishing creates an annotation similar to inline note, but with transparent background
- saving into PDF results in /Subtype FreeText /IT /FreeTextTypeWriter
- saving typewriter into archive stores color with alpha channel = 0x00
- opening annotated archive works, if archive was created with old Okular, and opened in patched Okular
- opening annotated archive works, if archive was created with patched Okular, and opened in old Okular
Reviewers: sander
Reviewed By: sander
Subscribers: ngraham, sander, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D15204
2018-09-21 20:10:04 +00:00
|
|
|
virtual bool hasColorButton() const override;
|
|
|
|
virtual bool hasOpacityBox() const override;
|
|
|
|
|
|
|
|
void createPopupNoteStyleUi( QWidget * widget, QVBoxLayout * layout );
|
|
|
|
void createInlineNoteStyleUi( QWidget * widget, QVBoxLayout * layout );
|
|
|
|
void createTypewriterStyleUi( QWidget * widget, QVBoxLayout * layout );
|
|
|
|
void addPixmapSelector( QWidget * widget, QLayout * layout );
|
|
|
|
void addFontRequester( QWidget * widget, QGridLayout * layout );
|
2018-10-03 14:31:40 +00:00
|
|
|
void addTextColorButton( QWidget * widget, QGridLayout * layout );
|
Add typewriter annotation tool
Summary:
Typewriter is originally specified by the PDF reference as special FreeText annotation, where Intent=FreeTextTypewriter. It features opaque letters on transparent background, so that users can fill non interactive forms. Herewith typewriter is implemented natively for PDF, and there's also an Okular specific implementation for other document types. The added tool reuses the inline note UI.
This work was done during GSoC 2018. See https://community.kde.org/GSoC/2018/StatusReports/DileepSankhla for details.
FEATURE: 353401
Test Plan:
- okularpartrc is generated (if not yet existing) with typewriter as 10th tool
- typewriter tool is also available in Annotation Tools -> Add, Typ "Typewriter"
- selecting the tool and left click into document opens inline note input dialog
- finishing creates an annotation similar to inline note, but with transparent background
- saving into PDF results in /Subtype FreeText /IT /FreeTextTypeWriter
- saving typewriter into archive stores color with alpha channel = 0x00
- opening annotated archive works, if archive was created with old Okular, and opened in patched Okular
- opening annotated archive works, if archive was created with patched Okular, and opened in old Okular
Reviewers: sander
Reviewed By: sander
Subscribers: ngraham, sander, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D15204
2018-09-21 20:10:04 +00:00
|
|
|
void addTextAlignComboBox( QWidget * widget, QGridLayout * layout );
|
|
|
|
void addWidthSpinBox( QWidget * widget, QGridLayout * layout );
|
|
|
|
|
|
|
|
inline bool isTypewriter() const { return ( m_textAnn->inplaceIntent() == Okular::TextAnnotation::TypeWriter ); }
|
|
|
|
|
2006-09-21 08:45:36 +00:00
|
|
|
Okular::TextAnnotation * m_textAnn;
|
Add typewriter annotation tool
Summary:
Typewriter is originally specified by the PDF reference as special FreeText annotation, where Intent=FreeTextTypewriter. It features opaque letters on transparent background, so that users can fill non interactive forms. Herewith typewriter is implemented natively for PDF, and there's also an Okular specific implementation for other document types. The added tool reuses the inline note UI.
This work was done during GSoC 2018. See https://community.kde.org/GSoC/2018/StatusReports/DileepSankhla for details.
FEATURE: 353401
Test Plan:
- okularpartrc is generated (if not yet existing) with typewriter as 10th tool
- typewriter tool is also available in Annotation Tools -> Add, Typ "Typewriter"
- selecting the tool and left click into document opens inline note input dialog
- finishing creates an annotation similar to inline note, but with transparent background
- saving into PDF results in /Subtype FreeText /IT /FreeTextTypeWriter
- saving typewriter into archive stores color with alpha channel = 0x00
- opening annotated archive works, if archive was created with old Okular, and opened in patched Okular
- opening annotated archive works, if archive was created with patched Okular, and opened in old Okular
Reviewers: sander
Reviewed By: sander
Subscribers: ngraham, sander, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D15204
2018-09-21 20:10:04 +00:00
|
|
|
PixmapPreviewSelector * m_pixmapSelector { nullptr };
|
|
|
|
KFontRequester * m_fontReq { nullptr };
|
2018-10-03 14:31:40 +00:00
|
|
|
KColorButton *m_textColorBn { nullptr };
|
Add typewriter annotation tool
Summary:
Typewriter is originally specified by the PDF reference as special FreeText annotation, where Intent=FreeTextTypewriter. It features opaque letters on transparent background, so that users can fill non interactive forms. Herewith typewriter is implemented natively for PDF, and there's also an Okular specific implementation for other document types. The added tool reuses the inline note UI.
This work was done during GSoC 2018. See https://community.kde.org/GSoC/2018/StatusReports/DileepSankhla for details.
FEATURE: 353401
Test Plan:
- okularpartrc is generated (if not yet existing) with typewriter as 10th tool
- typewriter tool is also available in Annotation Tools -> Add, Typ "Typewriter"
- selecting the tool and left click into document opens inline note input dialog
- finishing creates an annotation similar to inline note, but with transparent background
- saving into PDF results in /Subtype FreeText /IT /FreeTextTypeWriter
- saving typewriter into archive stores color with alpha channel = 0x00
- opening annotated archive works, if archive was created with old Okular, and opened in patched Okular
- opening annotated archive works, if archive was created with patched Okular, and opened in old Okular
Reviewers: sander
Reviewed By: sander
Subscribers: ngraham, sander, okular-devel
Tags: #okular
Differential Revision: https://phabricator.kde.org/D15204
2018-09-21 20:10:04 +00:00
|
|
|
QComboBox * m_textAlign { nullptr };
|
|
|
|
QDoubleSpinBox * m_spinWidth { nullptr };
|
2006-09-13 18:19:22 +00:00
|
|
|
};
|
|
|
|
|
2006-09-12 20:21:34 +00:00
|
|
|
class StampAnnotationWidget
|
|
|
|
: public AnnotationWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-08-18 13:27:20 +00:00
|
|
|
explicit StampAnnotationWidget( Okular::Annotation * ann );
|
2006-09-12 20:21:34 +00:00
|
|
|
|
2017-03-02 19:39:24 +00:00
|
|
|
void applyChanges() override;
|
2006-09-12 20:21:34 +00:00
|
|
|
|
2008-04-18 20:34:35 +00:00
|
|
|
protected:
|
2017-03-02 19:39:24 +00:00
|
|
|
QWidget * createStyleWidget() override;
|
2008-04-18 20:34:35 +00:00
|
|
|
|
2006-09-12 20:21:34 +00:00
|
|
|
private:
|
2006-09-21 08:45:36 +00:00
|
|
|
Okular::StampAnnotation * m_stampAnn;
|
2006-09-13 17:28:32 +00:00
|
|
|
PixmapPreviewSelector * m_pixmapSelector;
|
2006-09-12 20:21:34 +00:00
|
|
|
};
|
|
|
|
|
2006-09-16 14:58:32 +00:00
|
|
|
class LineAnnotationWidget
|
|
|
|
: public AnnotationWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-08-18 13:27:20 +00:00
|
|
|
explicit LineAnnotationWidget( Okular::Annotation * ann );
|
2006-09-16 14:58:32 +00:00
|
|
|
|
2017-03-02 19:39:24 +00:00
|
|
|
void applyChanges() override;
|
2006-09-16 14:58:32 +00:00
|
|
|
|
2008-04-18 20:34:35 +00:00
|
|
|
protected:
|
2017-03-02 19:40:09 +00:00
|
|
|
QWidget * createStyleWidget() override;
|
2008-04-18 20:34:35 +00:00
|
|
|
|
2006-09-16 14:58:32 +00:00
|
|
|
private:
|
2006-09-21 08:45:36 +00:00
|
|
|
Okular::LineAnnotation * m_lineAnn;
|
2006-09-16 14:58:32 +00:00
|
|
|
int m_lineType;
|
|
|
|
QDoubleSpinBox * m_spinLL;
|
|
|
|
QDoubleSpinBox * m_spinLLE;
|
2012-07-27 02:39:14 +00:00
|
|
|
QCheckBox * m_useColor;
|
|
|
|
KColorButton * m_innerColor;
|
2007-12-08 11:31:37 +00:00
|
|
|
QDoubleSpinBox * m_spinSize;
|
2006-09-16 14:58:32 +00:00
|
|
|
};
|
|
|
|
|
2006-11-18 20:37:03 +00:00
|
|
|
class HighlightAnnotationWidget
|
|
|
|
: public AnnotationWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-08-18 13:27:20 +00:00
|
|
|
explicit HighlightAnnotationWidget( Okular::Annotation * ann );
|
2006-11-18 20:37:03 +00:00
|
|
|
|
2017-03-02 19:39:24 +00:00
|
|
|
void applyChanges() override;
|
2006-11-18 20:37:03 +00:00
|
|
|
|
2008-04-18 20:34:35 +00:00
|
|
|
protected:
|
2017-03-02 19:39:24 +00:00
|
|
|
QWidget * createStyleWidget() override;
|
2008-04-18 20:34:35 +00:00
|
|
|
|
2006-11-18 20:37:03 +00:00
|
|
|
private:
|
|
|
|
Okular::HighlightAnnotation * m_hlAnn;
|
|
|
|
QComboBox * m_typeCombo;
|
|
|
|
};
|
|
|
|
|
2006-11-19 00:46:01 +00:00
|
|
|
class GeomAnnotationWidget
|
|
|
|
: public AnnotationWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-08-18 13:27:20 +00:00
|
|
|
explicit GeomAnnotationWidget( Okular::Annotation * ann );
|
2006-11-19 00:46:01 +00:00
|
|
|
|
2017-03-02 19:39:24 +00:00
|
|
|
void applyChanges() override;
|
2006-11-19 00:46:01 +00:00
|
|
|
|
2008-04-18 20:34:35 +00:00
|
|
|
protected:
|
2017-03-02 19:39:24 +00:00
|
|
|
QWidget * createStyleWidget() override;
|
2008-04-18 20:34:35 +00:00
|
|
|
|
2006-11-19 00:46:01 +00:00
|
|
|
private:
|
|
|
|
Okular::GeomAnnotation * m_geomAnn;
|
|
|
|
QComboBox * m_typeCombo;
|
|
|
|
QCheckBox * m_useColor;
|
|
|
|
KColorButton * m_innerColor;
|
2008-04-06 23:14:33 +00:00
|
|
|
QDoubleSpinBox * m_spinSize;
|
2006-11-19 00:46:01 +00:00
|
|
|
};
|
|
|
|
|
2008-04-18 21:37:41 +00:00
|
|
|
class FileAttachmentAnnotationWidget
|
|
|
|
: public AnnotationWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-08-18 13:27:20 +00:00
|
|
|
explicit FileAttachmentAnnotationWidget( Okular::Annotation * ann );
|
2008-04-18 21:37:41 +00:00
|
|
|
|
2017-03-02 19:39:24 +00:00
|
|
|
void applyChanges() override;
|
2008-04-18 21:37:41 +00:00
|
|
|
|
|
|
|
protected:
|
2017-03-02 19:39:24 +00:00
|
|
|
QWidget * createStyleWidget() override;
|
|
|
|
QWidget * createExtraWidget() override;
|
2008-04-18 21:37:41 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Okular::FileAttachmentAnnotation * m_attachAnn;
|
2008-04-19 10:00:19 +00:00
|
|
|
PixmapPreviewSelector * m_pixmapSelector;
|
2008-04-18 21:37:41 +00:00
|
|
|
};
|
|
|
|
|
2008-04-23 07:55:39 +00:00
|
|
|
class CaretAnnotationWidget
|
|
|
|
: public AnnotationWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-08-18 13:27:20 +00:00
|
|
|
explicit CaretAnnotationWidget( Okular::Annotation * ann );
|
2008-04-23 07:55:39 +00:00
|
|
|
|
2017-03-02 19:39:24 +00:00
|
|
|
void applyChanges() override;
|
2008-04-23 07:55:39 +00:00
|
|
|
|
|
|
|
protected:
|
2017-03-02 19:39:24 +00:00
|
|
|
QWidget * createStyleWidget() override;
|
2008-04-23 07:55:39 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Okular::CaretAnnotation * m_caretAnn;
|
|
|
|
PixmapPreviewSelector * m_pixmapSelector;
|
|
|
|
};
|
|
|
|
|
2012-07-26 19:46:00 +00:00
|
|
|
class InkAnnotationWidget
|
|
|
|
: public AnnotationWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-08-18 13:27:20 +00:00
|
|
|
explicit InkAnnotationWidget( Okular::Annotation * ann );
|
2012-07-26 19:46:00 +00:00
|
|
|
|
2017-03-02 19:39:24 +00:00
|
|
|
void applyChanges() override;
|
2012-07-26 19:46:00 +00:00
|
|
|
|
|
|
|
protected:
|
2017-03-02 19:39:24 +00:00
|
|
|
QWidget * createStyleWidget() override;
|
2012-07-26 19:46:00 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Okular::InkAnnotation * m_inkAnn;
|
|
|
|
QDoubleSpinBox * m_spinSize;
|
|
|
|
};
|
|
|
|
|
2006-09-12 20:21:34 +00:00
|
|
|
#endif
|