18 #ifndef SCREENSELECTOR_H
19 #define SCREENSELECTOR_H
23 class 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);
31 bool useDBus()
const {
return m_useDBus; }
34 void startSelection(QPoint initialPos = QPoint(-1, -1));
37 void screenSelected(
const QRect &);
38 void pointSelected(
const QPoint &);
42 bool onMousePressEvent(QMouseEvent *event);
43 bool onMouseMoveEvent(QMouseEvent *event);
44 bool onMouseReleaseEvent(QMouseEvent *event);
45 bool onKeyPressEvent(QKeyEvent *event);
48 bool eventFilter(QObject *, QEvent *event);
51 void lockGeometry(
const QRect &rect);
54 bool m_selectionInProgress;
55 QRect m_selectionRect;
56 QPoint m_selectionPoint;