Changeset View
Changeset View
Standalone View
Standalone View
ui/pagepainter.h
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | |||||
87 | 87 | | |||
88 | class LineAnnotPainter { | 88 | class LineAnnotPainter { | ||
89 | public: | 89 | public: | ||
90 | LineAnnotPainter( const Okular::LineAnnotation * a, QSizeF pageSizeA, double pageScale, const QTransform &paintMatrix ); | 90 | LineAnnotPainter( const Okular::LineAnnotation * a, QSizeF pageSizeA, double pageScale, const QTransform &paintMatrix ); | ||
91 | void draw( QImage &image ) const; | 91 | void draw( QImage &image ) const; | ||
92 | 92 | | |||
93 | private: | 93 | private: | ||
94 | void drawMainLine( QImage &image ) const; | 94 | void drawMainLine( QImage &image ) const; | ||
95 | void drawCaption( QImage &image, double mainSegmentLength, double angle ) const; | ||||
95 | void drawShortenedLine( double mainSegmentLength, double size, QImage &image, const QTransform& constructionMatrix ) const; | 96 | void drawShortenedLine( double mainSegmentLength, double size, QImage &image, const QTransform& constructionMatrix ) const; | ||
96 | void drawLineEnds( double mainSegmentLength, double size, QImage &image, const QTransform& transform ) const; | 97 | void drawLineEnds( double mainSegmentLength, double size, QImage &image, const QTransform& transform ) const; | ||
97 | void drawLineEndArrow( double xEndPos, double size, double flipX, bool close, const QTransform& constructionMatrix, QImage &image ) const; | 98 | void drawLineEndArrow( double xEndPos, double size, double flipX, bool close, const QTransform& constructionMatrix, QImage &image ) const; | ||
98 | void drawLineEndButt( double xEndPos, double size, const QTransform& constructionMatrix, QImage &image ) const; | 99 | void drawLineEndButt( double xEndPos, double size, const QTransform& constructionMatrix, QImage &image ) const; | ||
99 | void drawLineEndCircle( double xEndPos, double size, const QTransform& constructionMatrix, QImage &image ) const; | 100 | void drawLineEndCircle( double xEndPos, double size, const QTransform& constructionMatrix, QImage &image ) const; | ||
100 | void drawLineEndSquare( double xEndPos, double size, const QTransform& constructionMatrix, QImage &image ) const; | 101 | void drawLineEndSquare( double xEndPos, double size, const QTransform& constructionMatrix, QImage &image ) const; | ||
101 | void drawLineEndDiamond( double xEndPos, double size, const QTransform& constructionMatrix, QImage &image ) const; | 102 | void drawLineEndDiamond( double xEndPos, double size, const QTransform& constructionMatrix, QImage &image ) const; | ||
102 | void drawLineEndSlash( double xEndPos, double size, const QTransform& constructionMatrix, QImage &image ) const; | 103 | void drawLineEndSlash( double xEndPos, double size, const QTransform& constructionMatrix, QImage &image ) const; | ||
Show All 26 Lines |