author | sandman <sandman> | 2002-12-30 04:49:31 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-12-30 04:49:31 (UTC) |
commit | 597ebce95168c56dbfdec4a79b11a4b793bdd351 (patch) (unidiff) | |
tree | 390dc4ccc6eacbe472cd5e4610f21921940ad73d /core/applets/screenshotapplet/screenshot.h | |
parent | 67391742b90744379da532fc41e6229660e40df6 (diff) | |
download | opie-597ebce95168c56dbfdec4a79b11a4b793bdd351.zip opie-597ebce95168c56dbfdec4a79b11a4b793bdd351.tar.gz opie-597ebce95168c56dbfdec4a79b11a4b793bdd351.tar.bz2 |
- rewrote the SCAP part (doesn't need netcat anymore now)
- cleaned up the code
- reworked the GUI a bit
Diffstat (limited to 'core/applets/screenshotapplet/screenshot.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/applets/screenshotapplet/screenshot.h | 26 |
1 files changed, 7 insertions, 19 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 | |||
@@ -34,47 +34,35 @@ class ScreenshotControl : public QFrame | |||
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 | ||