18#ifndef SCREENSELECTOR_H
19#define SCREENSELECTOR_H
23class ScreenSelector :
public QFrame
27 ScreenSelector(QWidget *parent = 0);
28 void setFixedSize(
const QSize &size);
29 void setBoundingRect(
const QRect &rect);
30 void setSelectedRect(
const QRect &rect);
37 void startSelection(QPoint initialPos = QPoint(-1, -1));
40 void screenSelected(
const QRect &);
41 void pointSelected(
const QPoint &);
45 bool onMousePressEvent(QMouseEvent *event);
46 bool onMouseMoveEvent(QMouseEvent *event);
47 bool onMouseReleaseEvent(QMouseEvent *event);
48 bool onKeyPressEvent(QKeyEvent *event);
51 bool eventFilter(QObject *, QEvent *event);
54 void lockGeometry(
const QRect &rect);
57 bool m_selectionInProgress;
58 QRect m_selectionRect;
59 QPoint m_selectionPoint;