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

#include <ContainerWidget.h>

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

Public Member Functions

 ContainerWidgetBase (QWidget *parent=nullptr)
 
virtual ~ContainerWidgetBase ()
 
- Public Member Functions inherited from QCustomStackedWidgetBase
void setSpeed (int speed)
 
void setAnimation (enum QEasingCurve::Type animationtype)
 
void setVerticalMode (bool vertical=true)
 
void setWrap (bool wrap)
 
void setCustomPixmap (QPixmap *pixmap)
 

Protected Member Functions

virtual SectionWidgetaddSectionContent (SectionContent *sc, SectionWidget *sw, DropArea area=e_drop_center)
 
virtual FloatingWidgetaddSectionContent (SectionContent *sc)
 
FloatingWidgetmakeFloating (SectionContent *sc, bool show, PopupInfo start=PopupInfo(), PopupInfo end=PopupInfo())
 
FloatingWidgetmakeFullScreen (SectionContent *sc, PopupInfo start=PopupInfo())
 
bool popWindowStack ()
 
bool hasSectionContent (SectionContent *sc)
 
bool removeSectionContent (SectionContent *sc)
 
void resizeEvent (QResizeEvent *event) override
 
bool showSectionContent (SectionContent *sc, PopupInfo start=PopupInfo(), PopupInfo end=PopupInfo())
 
bool hideSectionContent (SectionContent *sc, PopupInfo end=PopupInfo())
 
bool raiseSectionContent (SectionContent *sc)
 
void bringFloatingWidgetsForward ()
 
void setTabLock (bool tab_lock)
 
void beginResetAll ()
 
void removeFromResetShow (UUID id)
 
void endResetAll ()
 
bool isSectionContentVisible (SectionContent *sc)
 
void swapSectionContent (SectionContent *section_a, SectionContent *section_b)
 
Buffer< SectionContent * > contents () const
 
QRect outerTopDropRect () const
 
QRect outerRightDropRect () const
 
QRect outerBottomDropRect () const
 
QRect outerLeftDropRect () const
 
QSize sizeHint () const override
 
QSize minimumSizeHint () const override
 
DropOverlaydropOverlay ()
 
virtual void setShouldAnimateAdd (bool animate)
 
virtual void clearAllSectionContent ()
 
virtual void clearAllNonFloatingContent ()
 
bool event (QEvent *event) override
 
- Protected Member Functions inherited from QCustomStackedWidgetBase
 QCustomStackedWidgetBase (QWidget *parent=nullptr)
 
virtual ~QCustomStackedWidgetBase ()
 
void resizeEvent (QResizeEvent *event) override
 
void showEvent (QShowEvent *event) override
 
void setAnimationPercent (double animation_percent)
 
double animationPercent () const
 
void paintEvent (QPaintEvent *) override
 
virtual void swapIndices (uint04 a, uint04 b)
 
virtual void moveContent (uint04 from, uint04 to)
 
virtual uint04 addWidget (QWidget *w)
 
void insertWidget (uint04 index, QWidget *w)
 
void removeWidget (QWidget *widget)
 
void removeWidget (QWidget *widget, QWidget *slide_to_if_active)
 
bool eventFilter (QObject *object, QEvent *event) override
 
uint04 activeIndex () const
 
QWidget * activeWidget () const
 
QWidget * currentWidget () const
 
QSize sizeHint () const override
 
QSize minimumSizeHint () const override
 
QWidget * widget (uint04 index) const
 
uint04 indexOf (QWidget *widget) const
 
uint04 currentIndex () const
 
uint04 count () const
 
virtual void setCurrentIdx (uint04 current_index)
 
virtual void slideInNext ()
 
virtual void slideInPrev ()
 
virtual void slideInIdx (uint04 idx, PopupInfo origin_rect, int delay_time=0, enum t_direction direction=AUTOMATIC)
 
virtual void slideInIdx (uint04 idx, int delay_time=0, enum t_direction direction=AUTOMATIC)
 
virtual void slideInIdx (uint04 idx, enum t_direction direction)
 
virtual void slideInAnimation (PopupInfo origin_rect, enum t_direction direction=AUTOMATIC, bool cache_in_image=false)
 
virtual void slideInAnimation (enum t_direction direction=AUTOMATIC, bool cache_in_image=false)
 
virtual void slideInWgt (QWidget *widget, enum t_direction direction=AUTOMATIC, bool force_slide=false)
 

Protected Attributes

Dictionary< UUID, SectionWidget * > m_sections
 
Dictionary< UUID, SectionContent * > m_section_content
 
SharedSectionContentAream_top_splitter = nullptr
 
DropOverlaym_drop_overlay
 
SectionWidgetm_top_section_widget = nullptr
 
Buffer< SharedSectionContentArea * > m_shared_content
 
Buffer< std::pair< QPointer< QWidget >, Buffer< QPointer< FloatingWidget > > > > m_fullscreen_stack
 
Buffer< std::pair< QPointer< QWidget >, Buffer< QPointer< FloatingWidget > > > > m_reset_fullscreen_stack
 
Buffer< UUIDm_reset_visible_sections
 
bool m_animate_add = true
 
bool m_reset_is_on_home = false
 
- Protected Attributes inherited from QCustomStackedWidgetBase
int m_speed
 
enum QEasingCurve::Type m_animationtype
 
uint04 m_now
 
uint04 m_next
 
uint04 m_last
 
int m_last_animation_time
 
QPoint m_offset
 
PopupInfo m_popup_info
 
double m_animation_percent
 
uint04 m_current_index
 
Buffer< QWidget * > m_child_widgets
 
QPointer< QPropertyAnimation > m_move_animation
 
bool m_is_animating
 
bool m_vertical
 
bool m_wrap = false
 

Friends

class SectionContent
 
class SectionWidget
 
class FloatingWidget
 
class SectionTab
 
class DockItem
 
class QCustomDockWidget
 
class CustomDockButton
 
class MainWindow
 

Additional Inherited Members

- Public Types inherited from QCustomStackedWidgetBase
enum  t_direction {
  LEFT2RIGHT , RIGHT2LEFT , TOP2BOTTOM , BOTTOM2TOP ,
  AUTOMATIC
}
 
- Signals inherited from QCustomStackedWidgetBase
void animationFinished ()
 
- Static Public Attributes inherited from QCustomStackedWidgetBase
static ApplicationOption< sint04default_stack_animation_speed
 
- Protected Slots inherited from QCustomStackedWidgetBase
void childDestroyedSlot (QObject *widget)
 
void animationDoneSlot ()
 
- Properties inherited from QCustomStackedWidgetBase
double animation_percent
 

Constructor & Destructor Documentation

◆ ContainerWidgetBase()

ContainerWidgetBase ( QWidget * parent = nullptr)
explicit

◆ ~ContainerWidgetBase()

~ContainerWidgetBase ( )
virtual

Member Function Documentation

◆ addSectionContent() [1/2]

FloatingWidget * addSectionContent ( SectionContent * sc)
protectedvirtual

◆ addSectionContent() [2/2]

SectionWidget * addSectionContent ( SectionContent * sc,
SectionWidget * sw,
DropArea area = e_drop_center )
protectedvirtual

◆ beginResetAll()

void beginResetAll ( )
protected

◆ bringFloatingWidgetsForward()

void bringFloatingWidgetsForward ( )
protected

◆ clearAllNonFloatingContent()

void clearAllNonFloatingContent ( )
protectedvirtual

◆ clearAllSectionContent()

void clearAllSectionContent ( )
protectedvirtual

Reimplemented in ContainerWidget.

◆ contents()

Buffer< SectionContent * > contents ( ) const
protected

◆ dropOverlay()

DropOverlay * dropOverlay ( )
protected

◆ endResetAll()

void endResetAll ( )
protected

◆ event()

bool event ( QEvent * event)
overrideprotected

◆ hasSectionContent()

bool hasSectionContent ( SectionContent * sc)
protected

◆ hideSectionContent()

bool hideSectionContent ( SectionContent * sc,
PopupInfo end = PopupInfo() )
protected

◆ isSectionContentVisible()

bool isSectionContentVisible ( SectionContent * sc)
protected

◆ makeFloating()

FloatingWidget * makeFloating ( SectionContent * sc,
bool show,
PopupInfo start = PopupInfo(),
PopupInfo end = PopupInfo() )
protected

◆ makeFullScreen()

FloatingWidget * makeFullScreen ( SectionContent * sc,
PopupInfo start = PopupInfo() )
protected

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
overrideprotected

◆ outerBottomDropRect()

QRect outerBottomDropRect ( ) const
protected

◆ outerLeftDropRect()

QRect outerLeftDropRect ( ) const
protected

◆ outerRightDropRect()

QRect outerRightDropRect ( ) const
protected

◆ outerTopDropRect()

QRect outerTopDropRect ( ) const
protected

◆ popWindowStack()

bool popWindowStack ( )
protected

◆ raiseSectionContent()

bool raiseSectionContent ( SectionContent * sc)
protected

◆ removeFromResetShow()

void removeFromResetShow ( UUID id)
protected

◆ removeSectionContent()

bool removeSectionContent ( SectionContent * sc)
protected

◆ resizeEvent()

void resizeEvent ( QResizeEvent * event)
overrideprotected

◆ setShouldAnimateAdd()

void setShouldAnimateAdd ( bool animate)
protectedvirtual

Reimplemented in ContainerWidget.

◆ setTabLock()

void setTabLock ( bool tab_lock)
protected

◆ showSectionContent()

bool showSectionContent ( SectionContent * sc,
PopupInfo start = PopupInfo(),
PopupInfo end = PopupInfo() )
protected

◆ sizeHint()

QSize sizeHint ( ) const
overrideprotected

◆ swapSectionContent()

void swapSectionContent ( SectionContent * section_a,
SectionContent * section_b )
protected

Friends And Related Symbol Documentation

◆ CustomDockButton

friend class CustomDockButton
friend

◆ DockItem

friend class DockItem
friend

◆ FloatingWidget

friend class FloatingWidget
friend

◆ MainWindow

friend class MainWindow
friend

◆ QCustomDockWidget

friend class QCustomDockWidget
friend

◆ SectionContent

friend class SectionContent
friend

◆ SectionTab

friend class SectionTab
friend

◆ SectionWidget

friend class SectionWidget
friend

Member Data Documentation

◆ m_animate_add

bool m_animate_add = true
protected

◆ m_drop_overlay

DropOverlay* m_drop_overlay
protected

◆ m_fullscreen_stack

Buffer<std::pair<QPointer<QWidget>, Buffer<QPointer<FloatingWidget> > > > m_fullscreen_stack
protected

◆ m_reset_fullscreen_stack

Buffer<std::pair<QPointer<QWidget>, Buffer<QPointer<FloatingWidget> > > > m_reset_fullscreen_stack
protected

◆ m_reset_is_on_home

bool m_reset_is_on_home = false
protected

◆ m_reset_visible_sections

Buffer<UUID> m_reset_visible_sections
protected

◆ m_section_content

Dictionary<UUID, SectionContent*> m_section_content
protected

◆ m_sections

Dictionary<UUID, SectionWidget*> m_sections
protected

◆ m_shared_content

Buffer<SharedSectionContentArea*> m_shared_content
protected

◆ m_top_section_widget

SectionWidget* m_top_section_widget = nullptr
protected

◆ m_top_splitter

SharedSectionContentArea* m_top_splitter = nullptr
protected

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