34#include <NDEVR/RibbonArea.h>
35#include <NDEVR/SectionTab.h>
39class QPropertyAnimation;
40class QGraphicsOpacityEffect;
49 class TranslatedString;
57 Q_PROPERTY(QColor background_color READ backgroundColor WRITE setBackgroundColor)
77 void setDocked(
bool is_docked)
override { m_is_docked = is_docked; }
91 bool event(QEvent *event)
override;
The root class that allows iterface with the NDEVR API Widget Docking system.
Definition DockItem.h:54
A widget that shows a raster image or icon.
Definition ImageView.h:43
Displays translated text. No user interaction functionality is provided. The visual appearance of the...
Definition QCustomLabel.h:46
The core container for objects using the NDEVR API Widget Docking system. Contains information used t...
Definition SectionContent.h:51
Provides a tab that contains an icon and some buttons used for either a tab if the section content is...
Definition SectionIconTab.h:55
void onVisible(bool is_visible)
QSize minimumSizeHint() const override
void paintEvent(QPaintEvent *) override
void updateRoundedCorners()
void setDocked(bool is_docked) override
Definition SectionIconTab.h:77
void updateBackgroundColor()
void updateFullscreenButton()
QSize sizeHint() const override
QIcon getIcon() const override
ImageView * m_icon_label
Definition SectionIconTab.h:97
bool isDocked()
Definition SectionIconTab.h:76
void contextMenu(const QPoint &point)
void setTitle(const TranslatedString &title)
void setFullscreen(bool fullscreen) override
void updateClosedButton()
bool event(QEvent *event) override
void setIcon(const QIcon &icon)
bool m_is_hovering
Definition SectionIconTab.h:107
DockItem * m_widget
Definition SectionIconTab.h:96
QGraphicsOpacityEffect * m_opacity_effect
Definition SectionIconTab.h:103
void setFloatingWidget(FloatingWidget *widget) override
bool m_is_flat
Definition SectionIconTab.h:105
void setLocation(RibbonArea area, bool is_docked) override
Button * m_fullscreen_button
Definition SectionIconTab.h:101
void setSelected(bool is_selected) override
void setIconID(const String &icon)
void resizeEvent(QResizeEvent *event) override
bool m_is_docked
Definition SectionIconTab.h:104
void setBackgroundColor(QColor color)
RibbonArea m_ribbon_area
Definition SectionIconTab.h:102
SectionIconTab(SectionContent *content, DockItem *widget)
void mouseDoubleClickEvent(QMouseEvent *e) override
virtual ~SectionIconTab()
QPropertyAnimation * m_color_animation
Definition SectionIconTab.h:99
bool m_is_selected
Definition SectionIconTab.h:106
virtual TranslatedString getTitle() const override
QPalette::ColorRole preferredColorRoll() const
Button * m_close_button
Definition SectionIconTab.h:100
QCustomLabel * m_title_label
Definition SectionIconTab.h:98
Provides a tab that is used for either a tab if the section content is attached to a Container,...
Definition SectionTab.h:48
The core String class for the NDEVR API.
Definition String.h:69
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
RibbonArea
Requests a ribbon or tab area to be in a certain location and orientation relative to another widget.
Definition RibbonArea.h:71