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