22class LIBDTKWIDGETSHARED_EXPORT
DAbstractDialog :
public QDialog,
public DTK_CORE_NAMESPACE::DObject
26 Q_PROPERTY(
DisplayPosition displayPosition READ displayPosition WRITE setDisplayPosition)
34 DisplayCenter = Center,
35 DisplayTopRight = TopRight
38 Q_ENUMS(DisplayPosition)
39 Q_ENUMS(DisplayPostion)
41 DAbstractDialog(QWidget *parent =
nullptr);
42 DAbstractDialog(
bool blurIfPossible, QWidget *parent =
nullptr);
44 DisplayPosition displayPosition()
const;
46 void move(
const QPoint &pos);
47 inline void move(
int x,
int y)
48 { move(QPoint(x, y));}
50 void setGeometry(
const QRect &rect);
51 inline void setGeometry(
int x,
int y,
int width,
int height)
52 { setGeometry(QRect(x, y, width, height));}
56 void moveToTopRight();
57 void moveToCenterByRect(
const QRect &rect);
58 void moveToTopRightByRect(
const QRect &rect);
60 void setDisplayPosition(DisplayPosition displayPosition);
71 void mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
72 void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
73 void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
74 void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
75 void showEvent(QShowEvent *event)
override;