blob: 8cb3ebd07e269114c3fe528622f729901bdc9ea1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
/* ============================================================
*
* This file is a part of kipi-plugins project
* http://www.kipi-plugins.org
*
* Date : 2004-10-01
* Description : Screenshot batch dialog
*
* Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
* Copyright (C) Richard J. Moore 1997-2002 from KSnapshot
* Copyright (C) Matthias Ettrich 2000 from KSnapshot
* Copyright (C) Aaron J. Seigo 2002 from KSnapshot
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
* Public License as published by the Free Software Foundation;
* either version 2, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* ============================================================ */
#ifndef SCREENSHOOTDIALOG_H
#define SCREENSHOOTDIALOG_H
// Include files for Qt
#include <qimage.h>
#include <qpixmap.h>
#include <qtimer.h>
// Include files for KDE
#include <kdialogbase.h>
// Include files for X11
extern "C"
{
#include <X11/X.h>
#include <X11/Xlib.h>
}
// Include files for libKipi.
#include <libkipi/interface.h>
class QWidget;
class QCheckBox;
class QPushButton;
class KConfig;
class KIntNumInput;
namespace KIPIAcquireImagesPlugin
{
class AcquireImageDialog;
class ScreenGrabDialog : public KDialogBase
{
Q_OBJECT
public:
ScreenGrabDialog( KIPI::Interface* interface,
QWidget *parent=0, const char *name=0);
~ScreenGrabDialog();
private slots:
void slotHelp();
void slotClose(void);
void slotGrab(void);
void slotPerformGrab(void);
private:
bool eventFilter( QObject* o, QEvent* e);
void endGrab(void);
private:
KIPI::Interface *m_interface;
bool m_inSelect;
QCheckBox *m_desktopCB;
QCheckBox *m_hideCB;
KIntNumInput *m_delay;
AcquireImageDialog *m_acquireImageDialog;
QImage m_screenshotImage;
KConfig *m_config;
QWidget *m_grabber;
QTimer m_grabTimer;
QPixmap m_snapshot;
QPushButton *m_helpButton;
QValueList< QWidget* > m_hiddenWindows;
};
} // NameSpace KIPIAcquireImagesPlugin
#endif // SCREENSHOOTDIALOG_H
|