34#include <NDEVR/RibbonArea.h>
35#include <NDEVR/SectionTab.h>
39class QPropertyAnimation;
40class QGraphicsOpacityEffect;
49 class TranslatedString;
53 Q_PROPERTY(QColor background_color READ backgroundColor WRITE setBackgroundColor)
58 void setFlat(
bool flat);
60 void setSelected(
bool is_selected)
override;
61 void paintEvent(QPaintEvent *)
override;
62 void resizeEvent(QResizeEvent *event)
override;
63 void setFullscreen(
bool fullscreen)
override;
64 QSize sizeHint()
const override;
65 QSize minimumSizeHint()
const override;
66 QIcon getIcon()
const override;
67 QColor backgroundColor();
69 void setBackgroundColor(QColor color);
70 void mouseDoubleClickEvent(QMouseEvent* e)
override;
71 void setIconID(
const String& icon);
73 void setDocked(
bool is_docked)
override { m_is_docked = is_docked; }
74 void setLocation(
RibbonArea area,
bool is_docked)
override;
76 void setIcon(
const QIcon& icon);
78 void contextMenu(
const QPoint& point);
79 void onVisible(
bool is_visible);
80 void updateClosedButton();
81 void updateFullscreenButton();
85 QPalette::ColorRole preferredColorRoll()
const;
86 void updateBackgroundColor();
87 bool event(QEvent *event)
override;
88 void updateIconSizes();
89 void updateRoundedCorners();
Definition ImageView.h:40
Definition QCustomLabel.h:42
Definition SectionContent.h:47
Definition SectionIconTab.h:51
void setDocked(bool is_docked) override
Definition SectionIconTab.h:73
ImageView * m_icon_label
Definition SectionIconTab.h:93
bool isDocked()
Definition SectionIconTab.h:72
bool m_is_hovering
Definition SectionIconTab.h:103
DockItem * m_widget
Definition SectionIconTab.h:92
QGraphicsOpacityEffect * m_opacity_effect
Definition SectionIconTab.h:99
bool m_is_flat
Definition SectionIconTab.h:101
Button * m_fullscreen_button
Definition SectionIconTab.h:97
bool m_is_docked
Definition SectionIconTab.h:100
RibbonArea m_ribbon_area
Definition SectionIconTab.h:98
QPropertyAnimation * m_color_animation
Definition SectionIconTab.h:95
bool m_is_selected
Definition SectionIconTab.h:102
Button * m_close_button
Definition SectionIconTab.h:96
QCustomLabel * m_title_label
Definition SectionIconTab.h:94
Definition SectionTab.h:44
Definition TranslatedString.h:9
RibbonArea
Definition RibbonArea.h:68