Diffstat (limited to 'core/applets/screenshotapplet/screenshot.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/screenshotapplet/screenshot.h | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/core/applets/screenshotapplet/screenshot.h b/core/applets/screenshotapplet/screenshot.h index c8dfeaa..74cc5e6 100644 --- a/core/applets/screenshotapplet/screenshot.h +++ b/core/applets/screenshotapplet/screenshot.h | |||
@@ -31,52 +31,40 @@ class QPushButton; | |||
31 | 31 | ||
32 | class ScreenshotControl : public QFrame | 32 | class ScreenshotControl : public QFrame |
33 | { | 33 | { |
34 | Q_OBJECT | 34 | Q_OBJECT |
35 | public: | 35 | public: |
36 | ScreenshotControl( QWidget *parent=0, const char *name=0 ); | 36 | ScreenshotControl( QWidget *parent=0, const char *name=0 ); |
37 | void performGrab(); | ||
38 | 37 | ||
39 | public: | 38 | private: |
40 | QPushButton *grabItButton, *scapButton; | 39 | QPushButton *grabItButton, *scapButton; |
41 | QPixmap snapshot; | 40 | QPixmap snapshot; |
42 | QTimer* grabTimer; | 41 | QTimer* grabTimer; |
43 | QCheckBox *saveNamedCheck; | 42 | QCheckBox *saveNamedCheck; |
44 | QString FileNamePath; | 43 | QString FileNamePath; |
45 | bool setFileName; | 44 | bool setFileName; |
46 | void slotSave(); | ||
47 | void slotCopy(); | ||
48 | void setTime(int newTime); | ||
49 | |||
50 | QSpinBox *delaySpin; | 45 | QSpinBox *delaySpin; |
51 | private: | ||
52 | int buttonPushed; | 46 | int buttonPushed; |
47 | |||
53 | private slots: | 48 | private slots: |
54 | void slotGrab(); | 49 | void slotGrab(); |
55 | void slotScap(); | 50 | void slotScap(); |
56 | void savePixmap(); | 51 | void savePixmap(); |
57 | void grabTimerDone(); | 52 | void performGrab(); |
58 | void nameScreenshot(bool); | ||
59 | }; | 53 | }; |
60 | 54 | ||
61 | class ScreenshotApplet : public QWidget | 55 | class ScreenshotApplet : public QWidget { |
62 | { | ||
63 | Q_OBJECT | ||
64 | public: | 56 | public: |
65 | ScreenshotApplet( QWidget *parent = 0, const char *name=0 ); | 57 | ScreenshotApplet( QWidget *parent = 0, const char *name=0 ); |
66 | ~ScreenshotApplet(); | 58 | ~ScreenshotApplet(); |
67 | ScreenshotControl *vc; | 59 | |
68 | public slots: | 60 | protected: |
69 | private: | ||
70 | void mousePressEvent( QMouseEvent * ); | 61 | void mousePressEvent( QMouseEvent * ); |
71 | void paintEvent( QPaintEvent* ); | 62 | void paintEvent( QPaintEvent* ); |
72 | 63 | ||
73 | private: | 64 | private: |
74 | QPixmap snapshotPixmap; | 65 | QPixmap m_icon; |
75 | private slots: | ||
76 | |||
77 | |||
78 | }; | 66 | }; |
79 | 67 | ||
80 | 68 | ||
81 | #endif // __SCREENSHOT_APPLET_H__ | 69 | #endif // __SCREENSHOT_APPLET_H__ |
82 | 70 | ||