SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
rollupwidget.h
Go to the documentation of this file.
1 #ifndef INCLUDE_ROLLUPWIDGET_H
2 #define INCLUDE_ROLLUPWIDGET_H
3 
4 #include <QWidget>
5 #include "export.h"
6 
7 class SDRGUI_API RollupWidget : public QWidget {
8  Q_OBJECT
9 
10 public:
11  RollupWidget(QWidget* parent = NULL);
12  void setTitleColor(const QColor& c);
13  void setHighlighted(bool highlighted);
14 
15 signals:
16  void widgetRolled(QWidget* widget, bool rollDown);
17 
18 protected:
19  enum {
20  VersionMarker = 0xff
21  };
22 
24  {
27  ContextMenuStreamSettings
28  };
29 
30  QColor m_titleColor;
35 
36  int arrangeRollups();
37 
38  QByteArray saveState(int version = 0) const;
39  bool restoreState(const QByteArray& state, int version = 0);
40 
41  void paintEvent(QPaintEvent*);
42  int paintRollup(QWidget* rollup, int pos, QPainter* p, bool last, const QColor& frame);
43 
44  void resizeEvent(QResizeEvent* size);
45  void mousePressEvent(QMouseEvent* event);
46 
47  bool event(QEvent* event);
48  bool eventFilter(QObject* object, QEvent* event);
49 
50  void resetContextMenuType() { m_contextMenuType = ContextMenuNone; }
51  void setStreamIndicator(const QString& indicator);
52 };
53 
54 #endif // INCLUDE_ROLLUPWIDGET_H
QColor m_titleTextColor
Definition: rollupwidget.h:31
void resetContextMenuType()
Definition: rollupwidget.h:50
ContextMenuType m_contextMenuType
Definition: rollupwidget.h:33
QColor m_titleColor
Definition: rollupwidget.h:30
#define SDRGUI_API
Definition: export.h:52
bool m_highlighted
Definition: rollupwidget.h:32
QString m_streamIndicator
Definition: rollupwidget.h:34