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

#include <SectionIconTab.h>

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

Public Slots

void setIcon (const QIcon &icon)
 
void setTitle (const TranslatedString &title)
 
void contextMenu (const QPoint &point)
 
void onVisible (bool is_visible)
 
void updateClosedButton ()
 
void updateFullscreenButton ()
 
void updateMovable ()
 
void updateShowTab ()
 

Public Member Functions

 SectionIconTab (SectionContent *content, DockItem *widget)
 
void init ()
 
virtual ~SectionIconTab ()
 
void setFlat (bool flat)
 
void setFloatingWidget (FloatingWidget *widget) override
 
void setSelected (bool is_selected) override
 
void paintEvent (QPaintEvent *) override
 
void resizeEvent (QResizeEvent *event) override
 
void setFullscreen (bool fullscreen) override
 
QSize sizeHint () const override
 
QSize minimumSizeHint () const override
 
QIcon getIcon () const override
 
QColor backgroundColor ()
 
virtual TranslatedString getTitle () const override
 
void setBackgroundColor (QColor color)
 
void mouseDoubleClickEvent (QMouseEvent *e) override
 
void setIconID (const String &icon)
 
bool isDocked ()
 
void setDocked (bool is_docked) override
 
void setLocation (RibbonArea area, bool is_docked) override
 
- Public Member Functions inherited from SectionTab
 SectionTab (SectionContent *content, QWidget *parent)
 
virtual ~SectionTab ()
 
bool isActiveTab () const
 
void setActiveTab (bool active)
 
void setSectionContent (SectionContent *content)
 
void updateRoundedCorners ()
 
void setRoundedCorners (int radius_tl, int radius_tr, int radius_bl, int radius_br)
 
void setIsShown (bool shown)
 
bool event (QEvent *event) override
 
virtual bool isMovable () const
 
virtual bool isShown () const
 

Protected Member Functions

QPalette::ColorRole preferredColorRoll () const
 
void updateBackgroundColor ()
 
bool event (QEvent *event) override
 
void updateIconSizes ()
 
void updateRoundedCorners ()
 
void updateOpacity ()
 
- Protected Member Functions inherited from SectionTab
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *ev) override
 
virtual void mouseMoveEvent (QMouseEvent *ev) override
 
virtual void leaveEvent (QEvent *event) override
 
void recieveCloseButtonClicked ()
 
void recieveFullScreenButtonClicked ()
 

Protected Attributes

DockItemm_widget
 
ImageViewm_icon_label
 
QCustomLabelm_title_label
 
QPropertyAnimation * m_color_animation
 
Buttonm_close_button
 
Buttonm_fullscreen_button
 
RibbonArea m_ribbon_area
 
QGraphicsOpacityEffect * m_opacity_effect
 
bool m_is_docked
 
bool m_is_flat
 
bool m_is_selected
 
bool m_is_hovering
 
- Protected Attributes inherited from SectionTab
bool m_is_shown
 
int m_radius_tl = 0
 
int m_radius_tr = 0
 
int m_radius_bl = 0
 
int m_radius_br = 0
 
SectionContentm_content
 
FloatingWidgetm_floating_widget
 
QPointF _dragStartPos
 
QPointF m_local_drag_pos
 
bool m_tab_moving
 
bool m_active_tab
 
bool m_is_fullscreen
 

Properties

QColor background_color
 

Additional Inherited Members

- Signals inherited from SectionTab
void moveableUpdated (bool is_moveable)
 
void closableUpdated (bool is_moveable)
 
void fullscreenUpdated (bool is_moveable)
 
void isShownUpdated (bool is_shown)
 
void clickedSignal (SectionContent *content)
 
void closedSignal (SectionContent *content)
 
void fullscreenSignal (bool fullscreen)
 
void updateMoveableSignal ()
 
void updateClosableSignal ()
 
void activeTabChanged ()
 

Constructor & Destructor Documentation

◆ SectionIconTab()

SectionIconTab ( SectionContent * content,
DockItem * widget )
explicit

◆ ~SectionIconTab()

~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()

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 * p_event)
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 files: