API Documentation
Loading...
Searching...
No Matches
SectionIconTab Class Reference

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>

Inheritance diagram for SectionIconTab:
[legend]
Collaboration diagram for SectionIconTab:
[legend]

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

Buttonm_close_button
 
QPropertyAnimation * m_color_animation
 
Buttonm_fullscreen_button
 
ImageViewm_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
 
QCustomLabelm_title_label
 
DockItemm_widget
 
- Protected Attributes inherited from SectionTab
bool m_active_tab
 
SectionContentm_content
 
QPointF m_drag_start_pos
 
FloatingWidgetm_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 ()
 

Detailed Description

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.


Constructor & Destructor Documentation

◆ SectionIconTab()

SectionIconTab ( SectionContent * content,
DockItem * widget )
explicit

◆ ~SectionIconTab()

virtual ~SectionIconTab ( )
virtual

Member Function Documentation

◆ backgroundColor()

QColor backgroundColor ( )

◆ contextMenu

void contextMenu ( const QPoint & point)
slot

◆ event()

bool event ( QEvent * event)
overrideprotected

◆ getIcon()

QIcon getIcon ( ) const
overridevirtual

Reimplemented from SectionTab.

◆ getTitle()

virtual TranslatedString getTitle ( ) const
overridevirtual

Reimplemented from SectionTab.

◆ init()

void init ( )

◆ isDocked()

bool isDocked ( )
inline

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
override

◆ mouseDoubleClickEvent()

void mouseDoubleClickEvent ( QMouseEvent * e)
override

◆ onVisible

void onVisible ( bool is_visible)
slot

◆ paintEvent()

void paintEvent ( QPaintEvent * )
override

◆ preferredColorRoll()

QPalette::ColorRole preferredColorRoll ( ) const
protected

◆ resizeEvent()

void resizeEvent ( QResizeEvent * event)
override

◆ setBackgroundColor()

void setBackgroundColor ( QColor color)

◆ setDocked()

void setDocked ( bool is_docked)
inlineoverridevirtual

Implements SectionTab.

◆ setFlat()

void setFlat ( bool flat)

◆ setFloatingWidget()

void setFloatingWidget ( FloatingWidget * widget)
overridevirtual

Reimplemented from SectionTab.

◆ setFullscreen()

void setFullscreen ( bool fullscreen)
overridevirtual

Reimplemented from SectionTab.

◆ setIcon

void setIcon ( const QIcon & icon)
slot

◆ setIconID()

void setIconID ( const String & icon)

◆ setLocation()

void setLocation ( RibbonArea area,
bool is_docked )
overridevirtual

Implements SectionTab.

◆ setSelected()

void setSelected ( bool is_selected)
overridevirtual

Implements SectionTab.

◆ setTitle

void setTitle ( const TranslatedString & title)
slot

◆ sizeHint()

QSize sizeHint ( ) const
override

◆ updateBackgroundColor()

void updateBackgroundColor ( )
protected

◆ updateClosedButton

void updateClosedButton ( )
slot

◆ updateFullscreenButton

void updateFullscreenButton ( )
slot

◆ updateIconSizes()

void updateIconSizes ( )
protected

◆ updateMovable

void updateMovable ( )
slot

◆ updateOpacity()

void updateOpacity ( )
protected

◆ updateRoundedCorners()

void updateRoundedCorners ( )
protected

◆ updateShowTab

void updateShowTab ( )
slot

Member Data Documentation

◆ m_close_button

Button* m_close_button
protected

◆ m_color_animation

QPropertyAnimation* m_color_animation
protected

◆ m_fullscreen_button

Button* m_fullscreen_button
protected

◆ m_icon_label

ImageView* m_icon_label
protected

◆ m_is_docked

bool m_is_docked
protected

◆ m_is_flat

bool m_is_flat
protected

◆ m_is_hovering

bool m_is_hovering
protected

◆ m_is_selected

bool m_is_selected
protected

◆ m_opacity_effect

QGraphicsOpacityEffect* m_opacity_effect
protected

◆ m_ribbon_area

RibbonArea m_ribbon_area
protected

◆ m_title_label

QCustomLabel* m_title_label
protected

◆ m_widget

DockItem* m_widget
protected

Property Documentation

◆ background_color

QColor background_color
readwrite

The documentation for this class was generated from the following file: