Vuo 2.4.4
Loading...
Searching...
No Matches
VuoDialogForInputEditor.hh
Go to the documentation of this file.
1
10#pragma once
11
15class VuoDialogForInputEditor : public QDialog
16{
17 Q_OBJECT
18
19public:
20 VuoDialogForInputEditor(bool isDark, bool showArrow);
21 QMargins getPopoverContentsMargins(void) const;
22 QSize sizeHint(void) const;
23 void setShowArrow(bool show);
24
25public slots:
26 virtual void keyPressEvent(QKeyEvent *e);
27 virtual bool event(QEvent *e);
28
29private:
30 QPainterPath getPopoverPath(void);
31 void paintEvent(QPaintEvent *event);
32 void showEvent(QShowEvent *event);
33 static const int popoverArrowHalfWidth;
34 int arrowPixelsFromTopOrLeft;
35 bool _isDark;
36 bool _showArrow;
37 bool respondingToKeypress;
38};