Changeset View
Changeset View
Standalone View
Standalone View
thumbnail/textcreator.h
Show All 16 Lines | 1 | /* This file is part of the KDE libraries | |||
---|---|---|---|---|---|
17 | Boston, MA 02110-1301, USA. | 17 | Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef _TEXTCREATOR_H_ | 20 | #ifndef _TEXTCREATOR_H_ | ||
21 | #define _TEXTCREATOR_H_ | 21 | #define _TEXTCREATOR_H_ | ||
22 | 22 | | |||
23 | #include <QPixmap> | 23 | #include <QPixmap> | ||
24 | #include <kio/thumbcreator.h> | 24 | #include <kio/thumbcreator.h> | ||
25 | #include <KSyntaxHighlighting/Repository> | ||||
25 | 26 | | |||
26 | class TextCreator : public ThumbCreator | 27 | class TextCreator : public ThumbCreator | ||
27 | { | 28 | { | ||
28 | public: | 29 | public: | ||
29 | TextCreator(); | 30 | TextCreator(); | ||
30 | ~TextCreator() override; | 31 | ~TextCreator() override; | ||
31 | bool create(const QString &path, int width, int height, QImage &img) override; | 32 | bool create(const QString &path, int width, int height, QImage &img) override; | ||
32 | Flags flags() const override; | 33 | Flags flags() const override; | ||
33 | 34 | | |||
34 | private: | 35 | private: | ||
35 | char *m_data; | 36 | char *m_data; | ||
36 | int m_dataSize; | 37 | int m_dataSize; | ||
37 | QPixmap m_pixmap; | 38 | QPixmap m_pixmap; | ||
39 | | ||||
40 | KSyntaxHighlighting::Repository m_highlightingRepository; | ||||
38 | }; | 41 | }; | ||
39 | 42 | | |||
40 | #endif | 43 | #endif |