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

#include <SectionTab.h>

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

Signals

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

Public Member Functions

 SectionTab (SectionContent *content, QWidget *parent)
 
virtual ~SectionTab ()
 
bool isActiveTab () const
 
void setActiveTab (bool active)
 
virtual void setFloatingWidget (FloatingWidget *widget)
 
virtual void setFullscreen (bool fullscreen)
 
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
 
virtual QIcon getIcon () const
 
virtual TranslatedString getTitle () const
 
virtual void setLocation (RibbonArea area, bool is_docked)=0
 
virtual void setDocked (bool is_docked)=0
 
virtual void setSelected (bool is_selected)=0
 

Protected Member Functions

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

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
 

Constructor & Destructor Documentation

◆ SectionTab()

SectionTab ( SectionContent * content,
QWidget * parent )

◆ ~SectionTab()

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

TranslatedString getTitle ( ) const
virtual

Reimplemented in SectionIconTab.

◆ isActiveTab()

bool isActiveTab ( ) const

◆ isMovable()

bool isMovable ( ) const
virtual

◆ isShown()

bool isShown ( ) const
virtual

◆ isShownUpdated

void isShownUpdated ( bool is_shown)
signal

◆ leaveEvent()

void leaveEvent ( QEvent * event)
overrideprotectedvirtual

◆ mouseMoveEvent()

void mouseMoveEvent ( QMouseEvent * ev)
overrideprotectedvirtual

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent * event)
overrideprotectedvirtual

◆ mouseReleaseEvent()

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

void setFloatingWidget ( FloatingWidget * widget)
virtual

Reimplemented in SectionIconTab.

◆ setFullscreen()

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

◆ _dragStartPos

QPointF _dragStartPos
protected

◆ m_active_tab

bool m_active_tab
protected

◆ m_content

SectionContent* m_content
protected

◆ m_floating_widget

FloatingWidget* m_floating_widget
protected

◆ m_is_fullscreen

bool m_is_fullscreen
protected

◆ m_is_shown

bool m_is_shown
protected

◆ m_local_drag_pos

QPointF m_local_drag_pos
protected

◆ m_radius_bl

int m_radius_bl = 0
protected

◆ m_radius_br

int m_radius_br = 0
protected

◆ m_radius_tl

int m_radius_tl = 0
protected

◆ m_radius_tr

int m_radius_tr = 0
protected

◆ m_tab_moving

bool m_tab_moving
protected

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