Changeset View
Changeset View
Standalone View
Standalone View
src/PlatformBackends/ImageGrabber.h
Context not available. | |||||
52 | 52 | | |||
---|---|---|---|---|---|
53 | Q_ENUM(GrabMode); | 53 | Q_ENUM(GrabMode); | ||
54 | 54 | | |||
55 | enum SaveMode { | ||||
56 | File = 0, | ||||
57 | Clipboard = 1 | ||||
58 | }; | ||||
59 | | ||||
60 | Q_ENUM(SaveMode); | ||||
61 | | ||||
55 | explicit ImageGrabber(QObject *parent = 0); | 62 | explicit ImageGrabber(QObject *parent = 0); | ||
56 | ~ImageGrabber(); | 63 | ~ImageGrabber(); | ||
57 | 64 | | |||
Context not available. | |||||
59 | bool capturePointer() const; | 66 | bool capturePointer() const; | ||
60 | bool captureDecorations() const; | 67 | bool captureDecorations() const; | ||
61 | GrabMode grabMode() const; | 68 | GrabMode grabMode() const; | ||
69 | SaveMode saveMode() const; | ||||
62 | 70 | | |||
63 | virtual bool onClickGrabSupported() const; | 71 | virtual bool onClickGrabSupported() const; | ||
64 | 72 | | |||
65 | void setCapturePointer(const bool newCapturePointer); | 73 | void setCapturePointer(const bool newCapturePointer); | ||
66 | void setCaptureDecorations(const bool newCaptureDecorations); | 74 | void setCaptureDecorations(const bool newCaptureDecorations); | ||
67 | void setGrabMode(const GrabMode newGrabMode); | 75 | void setGrabMode(const GrabMode newGrabMode); | ||
76 | void setSaveMode(const SaveMode newSaveMode); | ||||
68 | 77 | | |||
69 | signals: | 78 | signals: | ||
70 | 79 | | |||
Context not available. | |||||
92 | bool mCapturePointer; | 101 | bool mCapturePointer; | ||
93 | bool mCaptureDecorations; | 102 | bool mCaptureDecorations; | ||
94 | GrabMode mGrabMode; | 103 | GrabMode mGrabMode; | ||
104 | SaveMode mSaveMode; | ||||
95 | QPixmap mPixmap; | 105 | QPixmap mPixmap; | ||
96 | }; | 106 | }; | ||
97 | 107 | | |||
Context not available. |