You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
655 B
30 lines
655 B
14 years ago
|
#ifndef UBWINDOWCAPTUREDELEGATE_H_
|
||
|
#define UBWINDOWCAPTUREDELEGATE_H_
|
||
|
|
||
|
#include <QtGui>
|
||
|
|
||
|
class UBWindowCaptureDelegate : public QObject
|
||
|
{
|
||
|
Q_OBJECT;
|
||
|
|
||
|
public:
|
||
|
UBWindowCaptureDelegate(QObject *parent = 0);
|
||
|
~UBWindowCaptureDelegate();
|
||
|
|
||
|
int execute();
|
||
|
const QPixmap getCapturedWindow();
|
||
|
|
||
|
private:
|
||
|
bool eventFilter(QObject *target, QEvent *event);
|
||
|
void processPos(QPoint pPoint);
|
||
|
void drawSelectionRect();
|
||
|
|
||
|
bool mIsCapturing;
|
||
|
bool mCancel;
|
||
|
QPoint mLastPoint;
|
||
|
HWND mCurrentWindow;
|
||
|
QPixmap mCapturedPixmap;
|
||
|
|
||
|
};
|
||
|
#endif /* UBWINDOWCAPTUREDELEGATE_H_ */
|