forked from jonathanverner/comment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtextTool.h
49 lines (35 loc) · 1.18 KB
/
textTool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _textTool_H
#define _textTool_H
/***************************************************************
* textTool.h
* @Author: Jonathan Verner ([email protected])
* @License: GPL v2.0 or later
* @Created: 2008-10-17.
* @Last Change: 2008-10-17.
* @Revision: 0.0
* Description:
* Usage:
* TODO:
*CHANGES:
***************************************************************/
#include "abstractTool.h"
#include <QtGui/QIcon>
class toolBox;
class textAnnotation;
class textTool : public abstractTool {
Q_OBJECT
private:
static QIcon icon;
public:
textTool( pdfScene *Scene, toolBox *ToolBar, QStackedWidget *EditArea);
virtual abstractAnnotation *processAnnotation( PoDoFo::PdfDocument *doc, PoDoFo::PdfAnnotation *annotation, pdfCoords *transform );
virtual void newActionEvent( const QPointF *ScenePos );
virtual bool acceptEventsFor( QGraphicsItem *item );
friend class textAnnotation;
};
class textAnnotation : public abstractAnnotation {
public:
textAnnotation( textTool *tool, PoDoFo::PdfAnnotation *textAnnot = NULL, pdfCoords *transform = NULL );
static bool isA( PoDoFo::PdfAnnotation *annotation );
};
#endif /* _textTool_H */