![]() |
API Documentation
|
Provides a tab that contains an icon and some buttons used for either a tab if the section content is attached to a Container, or as the drag bar if the content is floating. More...
#include <SectionIconTab.h>
Public Slots | |
| void | contextMenu (const QPoint &point) |
| void | onVisible (bool is_visible) |
| void | setIcon (const QIcon &icon) |
| void | setTitle (const TranslatedString &title) |
| void | updateClosedButton () |
| void | updateFullscreenButton () |
| void | updateMovable () |
| void | updateShowTab () |
Public Member Functions | |
| QColor | backgroundColor () |
| QIcon | getIcon () const override |
| virtual TranslatedString | getTitle () const override |
| void | init () |
| bool | isDocked () |
| QSize | minimumSizeHint () const override |
| void | mouseDoubleClickEvent (QMouseEvent *e) override |
| void | paintEvent (QPaintEvent *) override |
| void | resizeEvent (QResizeEvent *event) override |
| SectionIconTab (SectionContent *content, DockItem *widget) | |
| void | setBackgroundColor (QColor color) |
| void | setDocked (bool is_docked) override |
| void | setFlat (bool flat) |
| void | setFloatingWidget (FloatingWidget *widget) override |
| void | setFullscreen (bool fullscreen) override |
| void | setIconID (const String &icon) |
| void | setLocation (RibbonArea area, bool is_docked) override |
| void | setSelected (bool is_selected) override |
| QSize | sizeHint () const override |
| virtual | ~SectionIconTab () |
Public Member Functions inherited from SectionTab | |
| bool | event (QEvent *event) override |
| bool | isActiveTab () const |
| virtual bool | isMovable () const |
| virtual bool | isShown () const |
| SectionTab (SectionContent *content, QWidget *parent) | |
| void | setActiveTab (bool active) |
| void | setIsShown (bool shown) |
| void | setRoundedCorners (int radius_tl, int radius_tr, int radius_bl, int radius_br) |
| void | setSectionContent (SectionContent *content) |
| void | updateRoundedCorners () |
| virtual | ~SectionTab () |
Protected Member Functions | |
| bool | event (QEvent *event) override |
| QPalette::ColorRole | preferredColorRoll () const |
| void | updateBackgroundColor () |
| void | updateIconSizes () |
| void | updateOpacity () |
| void | updateRoundedCorners () |
Protected Member Functions inherited from SectionTab | |
| virtual void | leaveEvent (QEvent *event) override |
| virtual void | mouseMoveEvent (QMouseEvent *ev) override |
| virtual void | mousePressEvent (QMouseEvent *event) override |
| virtual void | mouseReleaseEvent (QMouseEvent *ev) override |
| void | recieveCloseButtonClicked () |
| void | recieveFullScreenButtonClicked () |
Protected Attributes | |
| Button * | m_close_button |
| QPropertyAnimation * | m_color_animation |
| Button * | m_fullscreen_button |
| ImageView * | m_icon_label |
| bool | m_is_docked |
| bool | m_is_flat |
| bool | m_is_hovering |
| bool | m_is_selected |
| QGraphicsOpacityEffect * | m_opacity_effect |
| RibbonArea | m_ribbon_area |
| QCustomLabel * | m_title_label |
| DockItem * | m_widget |
Protected Attributes inherited from SectionTab | |
| bool | m_active_tab |
| SectionContent * | m_content |
| QPointF | m_drag_start_pos |
| FloatingWidget * | m_floating_widget |
| bool | m_is_fullscreen |
| QPointF | m_local_drag_pos |
| bool | m_tab_moving |
Properties | |
| QColor | background_color |
Additional Inherited Members | |
Signals inherited from SectionTab | |
| void | activeTabChanged () |
| void | clickedSignal (SectionContent *content) |
| void | closableUpdated (bool is_moveable) |
| void | closedSignal (SectionContent *content) |
| void | fullscreenSignal (bool fullscreen) |
| void | fullscreenUpdated (bool is_moveable) |
| void | isShownUpdated (bool is_shown) |
| void | moveableUpdated (bool is_moveable) |
| void | updateClosableSignal () |
| void | updateMoveableSignal () |
Provides a tab that contains an icon and some buttons used for either a tab if the section content is attached to a Container, or as the drag bar if the content is floating.
|
explicit |
|
virtual |
| QColor backgroundColor | ( | ) |
|
slot |
|
overrideprotected |
|
overridevirtual |
Reimplemented from SectionTab.
|
overridevirtual |
Reimplemented from SectionTab.
| void init | ( | ) |
|
inline |
|
override |
|
override |
|
slot |
|
override |
|
protected |
|
override |
| void setBackgroundColor | ( | QColor | color | ) |
|
inlineoverridevirtual |
Implements SectionTab.
| void setFlat | ( | bool | flat | ) |
|
overridevirtual |
Reimplemented from SectionTab.
|
overridevirtual |
Reimplemented from SectionTab.
|
slot |
| void setIconID | ( | const String & | icon | ) |
|
overridevirtual |
Implements SectionTab.
|
overridevirtual |
Implements SectionTab.
|
slot |
|
override |
|
protected |
|
slot |
|
slot |
|
protected |
|
slot |
|
protected |
|
protected |
|
slot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
readwrite |