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);
33 void startSelection(QPoint initialPos = QPoint(-1, -1));
36 void screenSelected(
const QRect &);
37 void pointSelected(
const QPoint &);
41 bool onMousePressEvent(QMouseEvent *event);
42 bool onMouseMoveEvent(QMouseEvent *event);
43 bool onMouseReleaseEvent(QMouseEvent *event);
44 bool onKeyPressEvent(QKeyEvent *event);
47 bool eventFilter(QObject *, QEvent *event);
50 void lockGeometry(
const QRect &rect);
53 bool m_selectionInProgress;
54 QRect m_selectionRect;
55 QPoint m_selectionPoint;