API Documentation
Loading...
Searching...
No Matches
SectionTab Class Referenceabstract

Provides a tab that is 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 <SectionTab.h>

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

Signals

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

Public Member Functions

bool event (QEvent *event) override
 
virtual QIcon getIcon () const
 
virtual TranslatedString getTitle () const
 
bool isActiveTab () const
 
virtual bool isMovable () const
 
virtual bool isShown () const
 
 SectionTab (SectionContent *content, QWidget *parent)
 
void setActiveTab (bool active)
 
virtual void setDocked (bool is_docked)=0
 
virtual void setFloatingWidget (FloatingWidget *widget)
 
virtual void setFullscreen (bool fullscreen)
 
void setIsShown (bool shown)
 
virtual void setLocation (RibbonArea area, bool is_docked)=0
 
void setRoundedCorners (int radius_tl, int radius_tr, int radius_bl, int radius_br)
 
void setSectionContent (SectionContent *content)
 
virtual void setSelected (bool is_selected)=0
 
void updateRoundedCorners ()
 
virtual ~SectionTab ()
 

Protected Member Functions

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

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
 

Detailed Description

Provides a tab that is 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

◆ SectionTab()

SectionTab ( SectionContent * content,
QWidget * parent )

◆ ~SectionTab()

virtual ~SectionTab ( )
virtual

Member Function Documentation

◆ activeTabChanged

void activeTabChanged ( )
signal

◆ clickedSignal

void clickedSignal ( SectionContent * content)
signal

◆ closableUpdated

void closableUpdated ( bool is_moveable)
signal

◆ closedSignal

void closedSignal ( SectionContent * content)
signal

◆ event()

bool event ( QEvent * event)
override

◆ fullscreenSignal

void fullscreenSignal ( bool fullscreen)
signal

◆ fullscreenUpdated

void fullscreenUpdated ( bool is_moveable)
signal

◆ getIcon()

virtual QIcon getIcon ( ) const
inlinevirtual

Reimplemented in SectionIconTab.

◆ getTitle()

virtual TranslatedString getTitle ( ) const
virtual

Reimplemented in SectionIconTab.

◆ isActiveTab()

bool isActiveTab ( ) const

◆ isMovable()

virtual bool isMovable ( ) const
virtual

◆ isShown()

virtual bool isShown ( ) const
virtual

◆ isShownUpdated

void isShownUpdated ( bool is_shown)
signal

◆ leaveEvent()

virtual void leaveEvent ( QEvent * event)
overrideprotectedvirtual

◆ mouseMoveEvent()

virtual void mouseMoveEvent ( QMouseEvent * ev)
overrideprotectedvirtual

◆ mousePressEvent()

virtual void mousePressEvent ( QMouseEvent * event)
overrideprotectedvirtual

◆ mouseReleaseEvent()

virtual void mouseReleaseEvent ( QMouseEvent * ev)
overrideprotectedvirtual

◆ moveableUpdated

void moveableUpdated ( bool is_moveable)
signal

◆ recieveCloseButtonClicked()

void recieveCloseButtonClicked ( )
protected

◆ recieveFullScreenButtonClicked()

void recieveFullScreenButtonClicked ( )
protected

◆ setActiveTab()

void setActiveTab ( bool active)

◆ setDocked()

virtual void setDocked ( bool is_docked)
pure virtual

Implemented in SectionIconTab.

◆ setFloatingWidget()

virtual void setFloatingWidget ( FloatingWidget * widget)
virtual

Reimplemented in SectionIconTab.

◆ setFullscreen()

virtual void setFullscreen ( bool fullscreen)
virtual

Reimplemented in SectionIconTab.

◆ setIsShown()

void setIsShown ( bool shown)

◆ setLocation()

virtual void setLocation ( RibbonArea area,
bool is_docked )
pure virtual

Implemented in SectionIconTab.

◆ setRoundedCorners()

void setRoundedCorners ( int radius_tl,
int radius_tr,
int radius_bl,
int radius_br )

◆ setSectionContent()

void setSectionContent ( SectionContent * content)

◆ setSelected()

virtual void setSelected ( bool is_selected)
pure virtual

Implemented in SectionIconTab.

◆ updateClosableSignal

void updateClosableSignal ( )
signal

◆ updateMoveableSignal

void updateMoveableSignal ( )
signal

◆ updateRoundedCorners()

void updateRoundedCorners ( )

Member Data Documentation

◆ m_active_tab

bool m_active_tab
protected

◆ m_content

SectionContent* m_content
protected

◆ m_drag_start_pos

QPointF m_drag_start_pos
protected

◆ m_floating_widget

FloatingWidget* m_floating_widget
protected

◆ m_is_fullscreen

bool m_is_fullscreen
protected

◆ m_local_drag_pos

QPointF m_local_drag_pos
protected

◆ m_tab_moving

bool m_tab_moving
protected

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