API Documentation
|
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>
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 |
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 |
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.
SectionTab | ( | SectionContent * | content, |
QWidget * | parent ) |
|
virtual |
|
signal |
|
signal |
|
signal |
|
signal |
|
override |
|
signal |
|
signal |
|
inlinevirtual |
Reimplemented in SectionIconTab.
|
virtual |
Reimplemented in SectionIconTab.
bool isActiveTab | ( | ) | const |
|
virtual |
|
virtual |
|
signal |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
signal |
|
protected |
|
protected |
void setActiveTab | ( | bool | active | ) |
|
pure virtual |
Implemented in SectionIconTab.
|
virtual |
Reimplemented in SectionIconTab.
|
virtual |
Reimplemented in SectionIconTab.
void setIsShown | ( | bool | shown | ) |
|
pure virtual |
Implemented in SectionIconTab.
void setRoundedCorners | ( | int | radius_tl, |
int | radius_tr, | ||
int | radius_bl, | ||
int | radius_br ) |
void setSectionContent | ( | SectionContent * | content | ) |
|
pure virtual |
Implemented in SectionIconTab.
|
signal |
|
signal |
void updateRoundedCorners | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |