Changeset View
Changeset View
Standalone View
Standalone View
lib/documentview/abstractdocumentviewadapter.h
Show All 33 Lines | |||||
34 | 34 | | |||
35 | class QCursor; | 35 | class QCursor; | ||
36 | class QGraphicsWidget; | 36 | class QGraphicsWidget; | ||
37 | class QRectF; | 37 | class QRectF; | ||
38 | 38 | | |||
39 | namespace Gwenview | 39 | namespace Gwenview | ||
40 | { | 40 | { | ||
41 | 41 | | |||
42 | class ImageView; | 42 | class AbstractImageView; | ||
43 | class RasterImageView; | 43 | class RasterImageView; | ||
44 | 44 | | |||
45 | /** | 45 | /** | ||
46 | * Classes inherit from this class so that they can be used inside the | 46 | * Classes inherit from this class so that they can be used inside the | ||
47 | * DocumentPanel. | 47 | * DocumentPanel. | ||
48 | */ | 48 | */ | ||
49 | class GWENVIEWLIB_EXPORT AbstractDocumentViewAdapter : public QObject | 49 | class GWENVIEWLIB_EXPORT AbstractDocumentViewAdapter : public QObject | ||
50 | { | 50 | { | ||
51 | Q_OBJECT | 51 | Q_OBJECT | ||
52 | public: | 52 | public: | ||
53 | AbstractDocumentViewAdapter(); | 53 | AbstractDocumentViewAdapter(); | ||
54 | virtual ~AbstractDocumentViewAdapter(); | 54 | virtual ~AbstractDocumentViewAdapter(); | ||
55 | 55 | | |||
56 | QGraphicsWidget* widget() const | 56 | QGraphicsWidget* widget() const | ||
57 | { | 57 | { | ||
58 | return mWidget; | 58 | return mWidget; | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | virtual MimeTypeUtils::Kind kind() const = 0; | 61 | virtual MimeTypeUtils::Kind kind() const = 0; | ||
62 | 62 | | |||
63 | virtual ImageView* imageView() const | 63 | virtual AbstractImageView* imageView() const | ||
64 | { | 64 | { | ||
65 | return 0; | 65 | return 0; | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | virtual RasterImageView* rasterImageView() const | 68 | virtual RasterImageView* rasterImageView() const | ||
69 | { | 69 | { | ||
70 | return 0; | 70 | return 0; | ||
71 | } | 71 | } | ||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |